Class SubstationAdapter
java.lang.Object
org.lfenergy.compas.sct.commons.scl.SclElementAdapter<SclRootAdapter,TSubstation>
org.lfenergy.compas.sct.commons.scl.sstation.SubstationAdapter
A representation of the model object
SubstationAdapter
.
The following features are supported:
- Adapter
Returns the value of the VoltageLevelAdapter reference object By Name
Returns the value of the VoltageLevelAdapter reference object as stream
- Principal functions
XPATH Example :
Substation[@name="SUBSTATION"]
- See Also:
-
Field Summary
Fields inherited from class org.lfenergy.compas.sct.commons.scl.SclElementAdapter
currentElem, parentAdapter
-
Constructor Summary
ConstructorDescriptionSubstationAdapter
(SclRootAdapter parentAdapter) ConstructorSubstationAdapter
(SclRootAdapter parentAdapter, String ssName) ConstructorSubstationAdapter
(SclRootAdapter parentAdapter, TSubstation currentElem) Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
Check if node is child of the reference nodeprotected String
Returns XPath path to current SubstationGets a pair of IedName and LDevice inst from Substation LNodes for LN0 type objectgetVoltageLevelAdapter
(String vLevelName) Gets Voltage Level from current SubstationGets Voltage Level in Stream from current SubstationMethods inherited from class org.lfenergy.compas.sct.commons.scl.SclElementAdapter
addPrivate, amRootElement, buildFatalReportItem, customInit, getXPath, setCurrentElem
-
Constructor Details
-
SubstationAdapter
Constructor- Parameters:
parentAdapter
- Parent container reference
-
SubstationAdapter
Constructor- Parameters:
parentAdapter
- Parent container referencecurrentElem
- Current reference
-
SubstationAdapter
Constructor- Parameters:
parentAdapter
- Parent container referencessName
- Substation name reference- Throws:
ScdException
-
-
Method Details
-
amChildElementRef
protected boolean amChildElementRef()Check if node is child of the reference node- Specified by:
amChildElementRef
in classSclElementAdapter<SclRootAdapter,
TSubstation> - Returns:
- link parent child existence
-
elementXPath
Returns XPath path to current Substation- Specified by:
elementXPath
in classSclElementAdapter<SclRootAdapter,
TSubstation> - Returns:
- path to current Substation
-
getVoltageLevelAdapter
Gets Voltage Level from current Substation- Parameters:
vLevelName
- name of Voltage Level to get- Returns:
- optional of VoltageLevelAdapter object
-
streamVoltageLevelAdapters
Gets Voltage Level in Stream from current Substation- Returns:
- Stream of VoltageLevelAdapter object from Substation
-
getIedAndLDeviceNamesForLN0FromLNode
public List<org.apache.commons.lang3.tuple.Pair<String,String>> getIedAndLDeviceNamesForLN0FromLNode()Gets a pair of IedName and LDevice inst from Substation LNodes for LN0 type object- Returns:
- a pair of Ied name and LDevice inst attributes
-