Package jsl.simulation
Interface StateAccessorIfc
-
- All Superinterfaces:
GetNameIfc
,IdentityIfc
- All Known Implementing Classes:
Component.Available
,Component.ComponentState
,Component.Created
,Component.Failed
,Component.Operating
,Component.Repairing
,Component.Unavailable
,ModelElementState
,Request.AllocatedState
,Request.CanceledState
,Request.Completed
,Request.CreatedState
,Request.Preempted
,Request.PreparedState
,Request.RejectedState
,Request.RequestState
,Request.WaitingState
,ResourceUnit.Busy
,ResourceUnit.Failed
,ResourceUnit.Idle
,ResourceUnit.Inactive
,ResourceUnit.ResourceState
,State
,Transporter.Allocated
,Transporter.AllocatedMovingEmpty
,Transporter.AllocatedMovingLoaded
,Transporter.Created
,Transporter.Idle
,Transporter.Inactive
,Transporter.MovingIdle
,Transporter.TransporterState
public interface StateAccessorIfc extends IdentityIfc
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description double
getNumberOfTimesEntered()
Gets the number of times the state was entereddouble
getNumberOfTimesExited()
Gets the number of times the state was exitedjava.util.Optional<Statistic>
getSojournTimeStatistic()
Gets a statistic that collected sojourn timesdefault double
getTimeInState()
double
getTimeStateEntered()
Gets the time that the state was last entereddouble
getTimeStateExited()
Gets the time that the state was last exiteddouble
getTotalTimeInState()
Gets the total time spent in the stateboolean
isEntered()
Gets whether or not the state has been entered-
Methods inherited from interface jsl.utilities.GetNameIfc
getName
-
Methods inherited from interface jsl.utilities.IdentityIfc
getId
-
-
-
-
Method Detail
-
isEntered
boolean isEntered()
Gets whether or not the state has been entered- Returns:
- True means that the state has been entered
-
getTimeStateEntered
double getTimeStateEntered()
Gets the time that the state was last entered- Returns:
- A double representing the time that the state was last entered
-
getTimeStateExited
double getTimeStateExited()
Gets the time that the state was last exited- Returns:
- A double representing the time that the state was last exited
-
getNumberOfTimesEntered
double getNumberOfTimesEntered()
Gets the number of times the state was entered- Returns:
- A double representing the number of times entered
-
getNumberOfTimesExited
double getNumberOfTimesExited()
Gets the number of times the state was exited- Returns:
- A double representing the number of times exited
-
getSojournTimeStatistic
java.util.Optional<Statistic> getSojournTimeStatistic()
Gets a statistic that collected sojourn times- Returns:
- A statistic for sojourn times or null if use statistic was false
-
getTotalTimeInState
double getTotalTimeInState()
Gets the total time spent in the state- Returns:
- a double representing the total sojourn time
-
getTimeInState
default double getTimeInState()
- Returns:
- returns getTimeStateExited() - getTimeStateEntered()
-
-