Context Object Parameters
| Parameter Name |
Type |
Read or Write |
Comments |
iEqtPort |
EleLogicalConnectorPort |
Read |
The port of the equipment |
oListstrPortNames |
List of String |
Write |
The list of names of the output ports |
Sample
/* Rule : ELE_GetEquipmentDerivation */
// input args
let eqtPort(EleLogicalConnectorPort)
// output args
let ListoutputPortNames (List)
Notify("Start BR ELE_GetEquipmentDerivation")
let instance(EnsLogicalEquipmentInst)
let strEqtName(String)
let stPorttName(String)
set instance = ThisObject.Instance
set eqtPort = Parameters.GetAttributeObject("iEqtPort")
if (NULL <> eqtPort) { //ok to get input port
stPorttName = eqtPort.Name
}
if (instance <> NULL) {
strEqtName = instance.Name
Notify("ELE_GetEquipmentDerivation : strEqtName = " + strEqtName + " - stPorttName = " + stPorttName )
if (strEqtName == "Eqt3_TB.1") {
if (stPorttName <> "J03")
ListoutputPortNames.Append("J03")
if (stPorttName <> "J04")
ListoutputPortNames.Append("J04")