State
Create a state with given name and indicate usage of a Statistic object to collect additional statistics
Parameters
The name of the state
a number assigned to the state for labeling purposes
True means collect sojourn time statistics
Constructors
Properties
number of times the state was entered
number of times the state was exited
Indicates whether statistics should be collected on time spent in the state. The default is false
statistical collector
time that the state was entered for the first time
time the state was last entered
time the state was last exited
Total time spent in state
Functions
Initializes the state back to new
Resets the statistics collected on the sojourn time in the state
Resets the counters for the number of times a state was entered, exited, and the total time spent in the state This does not affect whether or the state has been entered, the time it was last entered, or the time it was last exited. To reset those quantities and the state counters use initialize()