Class SubNetworkAdapter
java.lang.Object
org.lfenergy.compas.sct.commons.scl.SclElementAdapter<CommunicationAdapter,TSubNetwork>
org.lfenergy.compas.sct.commons.scl.com.SubNetworkAdapter
A representation of the model object
SubNetwork
.
The following features are supported:
- See Also:
-
Field Summary
Fields inherited from class org.lfenergy.compas.sct.commons.scl.SclElementAdapter
currentElem, parentAdapter
-
Constructor Summary
ConstructorDescriptionSubNetworkAdapter
(CommunicationAdapter parentAdapter, @NonNull TSubNetwork currentElem) Constructor -
Method Summary
Modifier and TypeMethodDescriptionaddConnectedAP
(@NonNull String iedName, @NonNull String apName) Create a Connected Access Point for this subnetwork.protected boolean
Check if node is child of the reference nodeprotected String
Returns XPath path to current elementfindConnectedAPAdapter
(String iedName, String apName) Find ConnectedAP from SubnetworkgetConnectedAPAdapter
(String iedName, String apName) Gets ConnectedAP from SubnetworkReturns the value of the ConnectedAPAdapter containment reference list.getName()
Returns the value of the name attribute.getType()
Returns the value of the type attribute.Methods inherited from class org.lfenergy.compas.sct.commons.scl.SclElementAdapter
addPrivate, amRootElement, buildFatalReportItem, customInit, getXPath, setCurrentElem
-
Constructor Details
-
SubNetworkAdapter
public SubNetworkAdapter(CommunicationAdapter parentAdapter, @NonNull @NonNull TSubNetwork currentElem) Constructor- Parameters:
parentAdapter
- Parent container referencecurrentElem
- Current reference
-
-
Method Details
-
amChildElementRef
protected boolean amChildElementRef()Check if node is child of the reference node- Specified by:
amChildElementRef
in classSclElementAdapter<CommunicationAdapter,
TSubNetwork> - Returns:
- link parent child existence
-
elementXPath
Description copied from class:SclElementAdapter
Returns XPath path to current element- Specified by:
elementXPath
in classSclElementAdapter<CommunicationAdapter,
TSubNetwork> - Returns:
- message as undefined
-
addConnectedAP
public ConnectedAPAdapter addConnectedAP(@NonNull @NonNull String iedName, @NonNull @NonNull String apName) Create a Connected Access Point for this subnetwork.
Note : this method doesn't check the validity on neither the IED name nor the access point name.
- Parameters:
iedName
- inputapName
- input- Returns:
- the ConnectedAPAdapter object
-
getName
Returns the value of the name attribute.- Returns:
- the value of the name attribute.
-
getType
Returns the value of the type attribute.- Returns:
- the value of the type attribute.
-
getConnectedAPAdapters
Returns the value of the ConnectedAPAdapter containment reference list.- Returns:
- the value of the ConnectedAPAdapter containment reference list.
-
getConnectedAPAdapter
Gets ConnectedAP from Subnetwork- Parameters:
iedName
- IED nameapName
- AccessPoint name- Returns:
- the ConnectedAPAdapter object
- Throws:
ScdException
- when ConnectedAP not found
-
findConnectedAPAdapter
public Optional<ConnectedAPAdapter> findConnectedAPAdapter(String iedName, String apName) throws ScdException Find ConnectedAP from Subnetwork- Parameters:
iedName
- IED nameapName
- AccessPoint name- Returns:
- the ConnectedAPAdapter object
- Throws:
ScdException
-