Package com.anylogic.engine
- java.lang.Object
- com.anylogic.engine.EventOriginator
- com.anylogic.engine.Transition
- com.anylogic.engine.TransitionMessage
- All Implemented Interfaces:
com.anylogic.engine.internal.Child
,Serializable
public class TransitionMessage extends Transition
Statechart transition with trigger of type message. Such transition is executed
when the statechart receives a message (integer or Object) that conforms with the
transition trigger.
If the guard appears to be
Memory: sizeof(Transition) + 8 bytes = 30 bytes
false
when the transition is about to execute,
it is not taken and becomes inactive until the next message arrival.Memory: sizeof(Transition) + 8 bytes = 30 bytes
- Author:
- AnyLogic North America, LLC https://anylogic.com
- See Also:
- Serialized Form
Constructor | Description |
---|---|
TransitionMessage |
Constructs the transition object with Message trigger.
|
public TransitionMessage(Agent ao)
Constructs the transition object with Message trigger. Does not activate it.
- Parameters:
ao
- agent where this transition belongs to
public String getName()
Returns the name of the message 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.
Performs initial event scheduling. Adds this transition to the statechart
active list. Must be called in a subclass.
@AnyLogicInternalCodegenAPI public void cancel()
Should be called when this transition becomes deactivated e.g. as a result
of alternative transition being taken. Clears the message.
- Specified by:
cancel
in classTransition