Package com.anylogic.engine
- java.lang.Object
- com.anylogic.engine.EventOriginator
- com.anylogic.engine.Transition
- com.anylogic.engine.TransitionTimeout
- All Implemented Interfaces:
com.anylogic.engine.internal.Child
,Serializable
public class TransitionTimeout extends Transition
Statechart transition with trigger of type timeout. Is executed with the
timeout specified (counted from the moment the statechart came to the
transition's source state). If the guard appears to be
Memory: sizeof(Transition) = 22 bytes
false
when the
transition is about to execute, it is not taken and becomes inactive.Memory: sizeof(Transition) = 22 bytes
- Author:
- AnyLogic North America, LLC https://anylogic.com
- See Also:
- Serialized Form
Constructor | Description |
---|---|
TransitionTimeout |
Constructs the transition object with Timeout trigger.
|
public TransitionTimeout(Agent ao)
Constructs the transition object with Timeout trigger. Does not activate it.
- Parameters:
ao
- agent where this transition belongs to
public String getName()
Returns the name of the timeout transition as specified by the user.
- Specified by:
getName
in classEventOriginator
- Returns:
- The name of the transition
@AnyLogicInternalCodegenAPI public void start()
Should be called when the statechart enters to the transition's source state.
Schedules event according to the timeout.
@AnyLogicInternalCodegenAPI public void cancel()
Should be called when this transition becomes deactivated e.g. as a result
of alternative transition being taken. Removes this transition from the
statechart active list.
- Specified by:
cancel
in classTransition