Class CommunicationAdapter
java.lang.Object
org.lfenergy.compas.sct.commons.scl.SclElementAdapter<SclRootAdapter,TCommunication>
org.lfenergy.compas.sct.commons.scl.com.CommunicationAdapter
A representation of the model object
Communication
.
The following features are supported:
- See Also:
-
Field Summary
Fields inherited from class org.lfenergy.compas.sct.commons.scl.SclElementAdapter
currentElem, parentAdapter
-
Constructor Summary
ConstructorDescriptionCommunicationAdapter
(SclRootAdapter parentAdapter) ConstructorCommunicationAdapter
(SclRootAdapter parentAdapter, TCommunication currentElem) Constructor -
Method Summary
Modifier and TypeMethodDescriptionaddSubnetwork
(String snName, String snType, String iedName, String apName) Add Subnetwork node in Communication one.boolean
Check if node is child of the reference nodeprotected String
Returns XPath path to current elementGets all Subnetworks from Communication node in an adapter wrappergetSubnetworkByName
(String snName) Gets Subnetwork by name from Communication in an adapter wrapperMethods inherited from class org.lfenergy.compas.sct.commons.scl.SclElementAdapter
addPrivate, amRootElement, buildFatalReportItem, customInit, getXPath, setCurrentElem
-
Constructor Details
-
CommunicationAdapter
Constructor- Parameters:
parentAdapter
- Parent container reference
-
CommunicationAdapter
Constructor- Parameters:
parentAdapter
- Parent container referencecurrentElem
- Current reference
-
-
Method Details
-
amChildElementRef
public boolean amChildElementRef()Check if node is child of the reference node- Specified by:
amChildElementRef
in classSclElementAdapter<SclRootAdapter,
TCommunication> - Returns:
- link parent child existence
-
elementXPath
Description copied from class:SclElementAdapter
Returns XPath path to current element- Specified by:
elementXPath
in classSclElementAdapter<SclRootAdapter,
TCommunication> - Returns:
- message as undefined
-
addSubnetwork
public SubNetworkAdapter addSubnetwork(String snName, String snType, String iedName, String apName) throws ScdException Add Subnetwork node in Communication one. For that :- coherence is checked first one AccessPoint's name between given * data and IED/Services/AccessPoint
- If good, Subnetworks are created
- And then AccessPoint are created two in the Subnetwork
- Parameters:
snName
- Subnetwork namesnType
- Subnetwork typeiedName
- IED nameapName
- AccessPoint name- Returns:
- SubNetworkAdapter Current reference
- Throws:
ScdException
-
getSubnetworkByName
Gets Subnetwork by name from Communication in an adapter wrapper- Parameters:
snName
- Subnetwork name- Returns:
- Optional SubNetworkAdapter object
-
getSubNetworkAdapters
Gets all Subnetworks from Communication node in an adapter wrapper- Returns:
- the value of the SubNetworkAdapter containment reference list.
-