Modelica_StateGraph2.Examples.BasicStateGraphs.Utilities

Utility models used in the examples

Package Content

NameDescription
Modelica_StateGraph2.Examples.BasicStateGraphs.Utilities.Composite2_Subgraph Composite2_Subgraph  


Modelica_StateGraph2.Examples.BasicStateGraphs.Utilities.Composite2_Subgraph Modelica_StateGraph2.Examples.BasicStateGraphs.Utilities.Composite2_Subgraph

Modelica_StateGraph2.Examples.BasicStateGraphs.Utilities.Composite2_Subgraph

Information

Extends from Modelica_StateGraph2.PartialParallel (Partial compont to construct a parallel submodel via inheritance).

Parameters

TypeNameDefaultDescription
BooleaninitialStepfalse=true, if initial step (start state machine at entry ports of Parallel)
Booleanuse_suspendtrue=true, if suspend and resume ports enabled
Booleanuse_activePortfalse=true, if activePort enabled

Connectors

TypeNameDescription
Step_ininPort[nIn]If enabled, port for one or more input transitions
Step_outoutPort[nOut]If enabled, port for one or more output transitions
Composite_resumeresume[nResume]If enabled, port for zero, one or more resume transitions
Composite_suspendsuspend[nSuspend]If enabled, port for zero, one or more suspend transitions
output BooleanOutputactivePort= true if Parallel component is active, otherwise it is not active

Modelica definition

model Composite2_Subgraph
  extends Modelica_StateGraph2.PartialParallel(           final 
    use_inPort,                                                            final 
    use_outPort,                             nEntry=1, nExit=1);

  Modelica_StateGraph2.Step step3(
             nOut=1, nIn=2);
  Modelica_StateGraph2.Transition T2(
                delayedTransition=true, waitTime=1);
  Modelica_StateGraph2.Step step4(
             nOut=2, nIn=1);
  Modelica_StateGraph2.Transition T6(
                delayedTransition=true, waitTime=1);
  Modelica_StateGraph2.Step step6(
             nOut=nExit,
                     nIn=1);
  Modelica_StateGraph2.Transition T7(    waitTime=1,
    delayedTransition=false,
    condition=time > 2.5 and time < 4.5);
equation 
  connect(step3.outPort[1], T2.inPort);
  connect(T2.outPort, step4.inPort[1]);
  connect(T6.outPort, step6.inPort[1]);
  connect(T6.inPort, step4.outPort[1]);
  connect(step4.outPort[2], T7.inPort);
  connect(step3.inPort[1], entry[1]);
  connect(T7.outPort, step3.inPort[2]);
  connect(step6.outPort[1], exit[1]);
end Composite2_Subgraph;

Automatically generated Fri Nov 12 17:26:49 2010.