The "inPort" (= ellipse at the top part of a Step; see Figure to the right), the "resume" port (= ellipse at the left part of a Parallel component), the "outPort" (= triangle at the bottom part of a Step and of a Parallel component), and the "suspend" port (= triangle at the left part of a Parallel component) connectors are vector of connectors, respectively. When drawing a connection line from, e.g., a Transition to a Step inPort connector, the dimension of the vector of connectors Step.inPort has to be increased by one, say to dimension N, and then the connection has to be performed from Transition.outPort to Step.outPort[N]. Performing this manually is inconvenient and error prone. For this reason, in Modelica 3.1 (section 17.6) the new annotation connectorSizing was introduced. This annotation is used for all vector connectors in the StateGraph2 library. Example:

  model Step
     parameter Integer nIn=0 annotation(Dialog(ConnectorSizing=true));
     Modelica_StateGraph2.Internal.Interfaces.Step_in inPort[nIn];
  end Step;

When this model is used and a connection is made to vector "inPort", then the tool increments the dimension nIn by one and performs the connection to this new index. Therefore, performing connections between Steps and Transitions or Parallel components and Transitions is convenient for a user and only requires to draw a line between the corresponding connectors.

Generated at 2020-03-30T01:39:08Z by OpenModelicaOpenModelica 1.16.0~dev-257-g14ef94c using GenerateDoc.mos