modelParallel

Composite or parallel step
Diagram of Parallel

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

TypeNameDefaultDescription
IntegernIn (from PartialParallelBase)0Number of input connections
IntegernOut (from PartialParallelBase)0Number of output connections
IntegernSuspend (from PartialParallelBase)0Number of suspend ports
IntegernResume (from PartialParallelBase)0Number of resume ports
IntegernEntry (from PartialParallelBase)0Number of entry branches
IntegernExit (from PartialParallelBase)0Number of exit branches
BooleaninitialStep (from PartialParallelBase)false=true, if initial step (start state machine at entry ports of Parallel)
Booleanuse_inPort (from PartialParallelBase)true=true, if inPort enabled
Booleanuse_outPort (from PartialParallelBase)false=true, if outPort enabled
Booleanuse_suspend (from PartialParallelBase)false=true, if suspend and resume ports enabled
Booleanuse_activePort (from PartialParallelBase)false=true, if activePort enabled

Connectors

TypeNameDefaultDescription
Modelica_StateGraph2.Internal.Interfaces.Step_in[nIn]inPortIf enabled, port for one or more input transitions
Modelica_StateGraph2.Internal.Interfaces.Step_out[nOut]outPortIf enabled, port for one or more output transitions
Modelica_StateGraph2.Internal.Interfaces.Composite_suspend[nSuspend]suspendIf enabled, port for zero, one or more suspend transitions
Modelica_StateGraph2.Internal.Interfaces.Composite_resume[nResume]resumeIf enabled, port for zero, one or more resume transitions
Modelica_StateGraph2.Internal.Interfaces.EntryPort[nEntry]entryEntry port for one or more branches (Step or Parallel components must be connected to this port)
Modelica_StateGraph2.Internal.Interfaces.ExitPort[nExit]exitIf enabled, synchronization port for one or more branches (Step or Parallel components must be connected to this port)
Modelica.Blocks.Interfaces.BooleanOutputactivePortactive= true if Parallel component is active, otherwise it is not active

Components

TypeNameDefaultDescription
Booleanactive (from PartialParallelBase)= true if composite/parallel step is active, otherwise it is not active