Retrieving Ports and Hierarchical Ports of an Instance

The following path lets you retrieve ports and hierarchical ports of an instance and their characteristics.

This page discusses:

See Also
About Workflow Overview

Path to Ports

The input of this workflow is a parameter of SEVLogicalReference type. By default, the input parameter name is p and you can rename it to SEVLogRef.

To access experience instances from the input parameter, perform the following steps and insert the corresponding methods in your template:

Step Parameter Type or Iteration Variable Type Category Method Return Type
1 SEVLogRef: SEVLogicalReference Navigation System Experience Validation exp: COSIM
2 exp: COSIM Outgoing relationships To innerPart innerExp: COSIM's innerPart
3 innerExp: COSIM's innerPart Outgoing relationships To COSIM CosimInstance inst: COSIM CosimInstance
4 inst: COSIM CosimInstance Outgoing relationships To hasPort instHasPort: COSIM CosimInstance’s hasPort
5 instHasPort: COSIM CosimInstance’s hasPort Outgoing relationships To COSIM CosimPort

Go to Path to Ports table below.

port: COSIM CosimPort
To COSIM CosimHierarchicalPort

Go to Path to Hierarchical Port Data. table below

hPort: COSIM CosimHierarchicalPort

Path to Port Data

To access information on ports, follow these steps:

Step Parameter Type or Iteration Variable Type Category Method Return Type
6 port: COSIM CosimPort Attributes title String
declaredType String
V_Direction String
InitialValue String
description String

Path to Hierarchical Port Data

To access information on hierarchical ports, follow these steps:

Step Parameter Type or Iteration Variable Type Category Method Return Type
6 hPort: COSIM CosimHierarchicalPort Outgoing relationships To hasPort hPortHasPort: COSIM CosimHierarchicalPort’s hasPort
Attributes description String
title String
7 hPortHasPort: COSIM CosimHierarchicalPort’s hasPort Outgoing relationships To COSIM CosimHierarchicalPort

Go to Step 6 of this table for recursion between hierarchical ports.

hPort: COSIM CosimHierarchicalPort
To COSIM CosimPort

Go to Step 6 of previous table to access port data.

port: COSIM CosimPort
Note: To manage recursion, you can use one of the following structure elements: