modelSelfTransition

SelfTransition of a step (optionally with delayed transition and/or condition input port and/or synchronization and/or receiver connector of asynchronous communication)

Information

Examples are specified at: "Examples".

SelfTransition works exactly as a Transition. The only difference to the Transition class is that the use_after construct works also for self transitions.

We use these parameters to synchronize the firing of parallel transitions as described in "Synchronization" and to receive asynchronous messages as described in "Message and Mailbox".

Parameters

TypeNameDefaultDescription
Booleanuse_conditionPortfalse= true, if conditionPort enabled
Booleanuse_afterfalse= true, if after construct should be enabled.
Modelica.SIunits.TimeafterTime0Wait time before transition can fire after the source state has been enabled.
Booleanuse_firePortfalse= true, if firePort enabled
Booleanuse_syncSendfalse= true, if using synchronization of kind SEND
Booleanuse_syncReceivefalse= true, if using synchronization of kind SEND
Booleanuse_messageReceivefalse= true, if using asynchron messages of kind TRIGGER
IntegernumberOfSyncSend0
IntegernumberOfSyncReceive0
IntegernumberOfMessageReceive0
IntegernumberOfMessageIntegers0size of the Integer parameter array of a received message
IntegernumberOfMessageBooleans0size of the Boolean parameter array of a received message
IntegernumberOfMessageReals0size of the Real parameter array of a received message
StringsyncChannelName"channelName"name of the synchronization channel
Advanced
BooleanloopChecktrue= true, if one after transition per loop required

Connectors

TypeNameDefaultDescription
Modelica_StateGraph2.Internal.Interfaces.Transition_ininPortInput port of transition (exactly one connection to this port is required)
Modelica_StateGraph2.Internal.Interfaces.Transition_outoutPortOutput port of transition (exactly one connection from this port is required)
Modelica.Blocks.Interfaces.BooleanInputconditionPortFire condition as Boolean input.
Modelica.Blocks.Interfaces.BooleanOutputfirePort= true, if transition fires
Internal.Interfaces.Synchron.receiver[numberOfSyncReceive]receiverreceive port for synchronization channel
Internal.Interfaces.Synchron.sender[numberOfSyncSend]sendersend port for synchronization channel
Internal.Interfaces.Asynchron.transition_input_port[numberOfMessageReceive]transition_input_portport for trigger message

Components

TypeNameDefaultDescription
BooleanconditiontrueFire condition (time varying Boolean expression)
BooleanfireT1.fire= true, if transition fires
TransitionT1
Stepstep1
TransitionT2