Package jsl.modeling.elements.entity
Class SeizeRequirement
- java.lang.Object
-
- jsl.modeling.elements.entity.SeizeRequirement
-
- All Implemented Interfaces:
java.lang.Comparable<SeizeRequirement>
- Direct Known Subclasses:
ResourceSeizeRequirement
,ResourceSetSeizeRequirement
public abstract class SeizeRequirement extends java.lang.Object implements java.lang.Comparable<SeizeRequirement>
-
-
Field Summary
Fields Modifier and Type Field Description protected int
myAmtNeeded
protected static int
myCounter_
protected int
myId
protected boolean
myPartialFillFlag
protected int
myPriority
-
Constructor Summary
Constructors Constructor Description SeizeRequirement(int amt, int priority, boolean partialFillFlag)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description int
compareTo(SeizeRequirement req)
Returns a negative integer, zero, or a positive integer if this object is less than, equal to, or greater than the specified object.abstract Request
createRequest(Entity entity, AllocationListenerIfc listener)
int
getAmountRequired()
int
getId()
int
getPriority()
abstract SeizeIfc
getResource()
boolean
isPartiallyFillable()
-
-
-
Method Detail
-
createRequest
public abstract Request createRequest(Entity entity, AllocationListenerIfc listener)
-
getResource
public abstract SeizeIfc getResource()
-
getAmountRequired
public final int getAmountRequired()
-
getPriority
public final int getPriority()
-
isPartiallyFillable
public final boolean isPartiallyFillable()
-
getId
public final int getId()
-
compareTo
public int compareTo(SeizeRequirement 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: priority, then order of creation Lower priority, 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<SeizeRequirement>
- Parameters:
req
- The requirement to compare this listener to- Returns:
- Returns a negative integer, zero, or a positive integer if this object is less than, equal to, or greater than the specified object.
-
-