modelParallel
Composite or parallel step
Extends from Modelica_StateGraph2.Internal.Interfaces.PartialParallelBase (Base class of a parallel component (including a composite step as special case)).
Information
This component acts both as a composite step (having just one branch) and as a Step that has parallel branches that are executed in parallel to each other. The details are summarized here in the tutorial. A typical example for the usage is shown in the next Figure (component "p"):
In the following table different configurations of a Parallel component are shown:
use_inPort=true
use_inPort=true
use_outPort=true
use_inPort=true
use_suspend=true
use_activePort=true
initialStep=true
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | nIn (from PartialParallelBase) | 0 | Number of input connections |
| Integer | nOut (from PartialParallelBase) | 0 | Number of output connections |
| Integer | nSuspend (from PartialParallelBase) | 0 | Number of suspend ports |
| Integer | nResume (from PartialParallelBase) | 0 | Number of resume ports |
| Integer | nEntry (from PartialParallelBase) | 0 | Number of entry branches |
| Integer | nExit (from PartialParallelBase) | 0 | Number of exit branches |
| Boolean | initialStep (from PartialParallelBase) | false | =true, if initial step (start state machine at entry ports of Parallel) |
| Boolean | use_inPort (from PartialParallelBase) | true | =true, if inPort enabled |
| Boolean | use_outPort (from PartialParallelBase) | false | =true, if outPort enabled |
| Boolean | use_suspend (from PartialParallelBase) | false | =true, if suspend and resume ports enabled |
| Boolean | use_activePort (from PartialParallelBase) | false | =true, if activePort enabled |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica_StateGraph2.Internal.Interfaces.Step_in[nIn] | inPort | If enabled, port for one or more input transitions | |
| Modelica_StateGraph2.Internal.Interfaces.Step_out[nOut] | outPort | If enabled, port for one or more output transitions | |
| Modelica_StateGraph2.Internal.Interfaces.Composite_suspend[nSuspend] | suspend | If enabled, port for zero, one or more suspend transitions | |
| Modelica_StateGraph2.Internal.Interfaces.Composite_resume[nResume] | resume | If enabled, port for zero, one or more resume transitions | |
| Modelica_StateGraph2.Internal.Interfaces.EntryPort[nEntry] | entry | Entry port for one or more branches (Step or Parallel components must be connected to this port) | |
| Modelica_StateGraph2.Internal.Interfaces.ExitPort[nExit] | exit | If enabled, synchronization port for one or more branches (Step or Parallel components must be connected to this port) | |
| Modelica.Blocks.Interfaces.BooleanOutput | activePort | active | = true if Parallel component is active, otherwise it is not active |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | active (from PartialParallelBase) | = true if composite/parallel step is active, otherwise it is not active |



