Package jsl.modeling.resource
Class InactivePeriodNotice
- java.lang.Object
-
- jsl.modeling.resource.InactivePeriodNotice
-
public class InactivePeriodNotice extends java.lang.Object
A InactivePeriodNotice represents a notification that the ResourceUnit should become inactive due to a schedule change. The inactive period notice may be required to be immediate or not. If not immediate, then the inactive period may be delayed until the resource unit finishes its current activity.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
InactivePeriodNotice.ActiveState
protected class
InactivePeriodNotice.CanceledState
protected class
InactivePeriodNotice.CompletedState
protected class
InactivePeriodNotice.CreatedState
protected class
InactivePeriodNotice.DelayedState
protected class
InactivePeriodNotice.InactivePeriodNoticeState
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getCreateTime()
int
getId()
double
getInactiveTime()
boolean
isDelayable()
If the notice can be delayed while resource finishes busy stateboolean
isInActiveState()
boolean
isInCompletedState()
boolean
isInCreatedState()
boolean
isInDelayedState()
boolean
isInIgnoredState()
java.lang.String
toString()
-
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getId
public final int getId()
- Returns:
- a unique id
-
getCreateTime
public final double getCreateTime()
- Returns:
- the time that the notice was created
-
getInactiveTime
public final double getInactiveTime()
- Returns:
- the time that the failure should last
-
isDelayable
public final boolean isDelayable()
If the notice can be delayed while resource finishes busy state- Returns:
- true if the notice can be delayed
-
isInCreatedState
public final boolean isInCreatedState()
- Returns:
- true if in created state
-
isInDelayedState
public final boolean isInDelayedState()
- Returns:
- true if in delayed state
-
isInIgnoredState
public final boolean isInIgnoredState()
- Returns:
- true if in ignored state
-
isInCompletedState
public final boolean isInCompletedState()
- Returns:
- true if in completed state
-
isInActiveState
public final boolean isInActiveState()
- Returns:
- true if in active state
-
-