Package jsl.modeling.elements.entity
Class ReleaseRequirement
- java.lang.Object
-
- jsl.modeling.elements.entity.ReleaseRequirement
-
- All Implemented Interfaces:
java.lang.Comparable<ReleaseRequirement>
- Direct Known Subclasses:
ReleaseResourceRequirement
,ReleaseResourceSetRequirement
public abstract class ReleaseRequirement extends java.lang.Object implements java.lang.Comparable<ReleaseRequirement>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ReleaseRequirement.ReleaseOption
-
Field Summary
Fields Modifier and Type Field Description protected static int
myCounter_
protected int
myId
protected int
myReleaseAmount
-
Constructor Summary
Constructors Constructor Description ReleaseRequirement(int amt)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description int
compareTo(ReleaseRequirement req)
Returns a negative integer, zero, or a positive integer if this object is less than, equal to, or greater than the specified object.int
getId()
int
getReleaseAmount()
abstract void
release(Entity e)
-
-
-
Method Detail
-
getReleaseAmount
public int getReleaseAmount()
-
getId
public final int getId()
-
release
public abstract void release(Entity e)
-
compareTo
public int compareTo(ReleaseRequirement req)
Returns a negative integer, zero, or a positive integer if this object is less than, equal to, or greater than the specified object. Natural ordering: order of creation Lower order of creation goes first Throws ClassCastException if the specified object's type prevents it from begin compared to this object. Throws RuntimeException if the id's of the objects are the same, but the references are not when compared with equals. Note: This class may have a natural ordering that is inconsistent with equals.- Specified by:
compareTo
in interfacejava.lang.Comparable<ReleaseRequirement>
- Parameters:
req
-- Returns:
- Returns a negative integer, zero, or a positive integer if this object is less than, equal to, or greater than the specified object.
-
-