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
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | use_conditionPort | false | = true, if conditionPort enabled |
| Boolean | use_after | false | = true, if after construct should be enabled. |
| Modelica.SIunits.Time | afterTime | 0 | Wait time before transition can fire after the source state has been enabled. |
| Boolean | use_firePort | false | = true, if firePort enabled |
| Boolean | use_syncSend | false | = true, if using synchronization of kind SEND |
| Boolean | use_syncReceive | false | = true, if using synchronization of kind SEND |
| Boolean | use_messageReceive | false | = true, if using asynchron messages of kind TRIGGER |
| Integer | numberOfSyncSend | 0 | |
| Integer | numberOfSyncReceive | 0 | |
| Integer | numberOfMessageReceive | 0 | |
| Integer | numberOfMessageIntegers | 0 | size of the Integer parameter array of a received message |
| Integer | numberOfMessageBooleans | 0 | size of the Boolean parameter array of a received message |
| Integer | numberOfMessageReals | 0 | size of the Real parameter array of a received message |
| String | syncChannelName | "channelName" | name of the synchronization channel |
| Advanced | |||
| Boolean | loopCheck | true | = true, if one after transition per loop required |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica_StateGraph2.Internal.Interfaces.Transition_in | inPort | Input port of transition (exactly one connection to this port is required) | |
| Modelica_StateGraph2.Internal.Interfaces.Transition_out | outPort | Output port of transition (exactly one connection from this port is required) | |
| Modelica.Blocks.Interfaces.BooleanInput | conditionPort | Fire condition as Boolean input. | |
| Modelica.Blocks.Interfaces.BooleanOutput | firePort | = true, if transition fires | |
| Internal.Interfaces.Synchron.receiver[numberOfSyncReceive] | receiver | receive port for synchronization channel | |
| Internal.Interfaces.Synchron.sender[numberOfSyncSend] | sender | send port for synchronization channel | |
| Internal.Interfaces.Asynchron.transition_input_port[numberOfMessageReceive] | transition_input_port | port for trigger message |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | condition | true | Fire condition (time varying Boolean expression) |
| Boolean | fire | T1.fire | = true, if transition fires |
| Transition | T1 | ||
| Step | step1 | ||
| Transition | T2 |