Class IEDAdapter
java.lang.Object
org.lfenergy.compas.sct.commons.scl.SclElementAdapter<SclRootAdapter,TIED>
org.lfenergy.compas.sct.commons.scl.ied.IEDAdapter
A representation of the model object
IED
.
The following features are supported:
- Adapter
LDeviceAdapters Returns the value of the LDeviceAdapter containment reference list
Returns the value of the LDeviceAdapter reference object By LDevice Inst
Returns the value of the LDeviceAdapter reference object By LDevice Inst
- Principal functions
Returns the value of the name attribute
Returns the value of the Service object
Returns the value of the TPrivate containment reference list
Returns the value of the ExtRefBindingInfo containment reference list By ExtRefSignalInfo
Add TPrivate under this object
Update Type describing the value of the children TAnyLN
- Checklist functions
-
Field Summary
Fields inherited from class org.lfenergy.compas.sct.commons.scl.SclElementAdapter
currentElem, parentAdapter
-
Constructor Summary
ConstructorDescriptionIEDAdapter
(SclRootAdapter parentAdapter) ConstructorIEDAdapter
(SclRootAdapter parentAdapter, String iedName) ConstructorIEDAdapter
(SclRootAdapter parentAdapter, TIED currentElem) Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
Check if node is child of the reference nodeChecks if Controls and FCDAs of source IEDs respect config limitationChecks if Controls, DataSets and FCDAs of IED respect config limitationprotected String
Returns XPath path to current elementboolean
findAccessPointByName
(String apName) Checks existence of Access Point in curent IED by namefindLDeviceAdapterByLdInst
(String ldInst) Gets LDevice from current IED by ldInst parameterGet value of private type COMPAS-ICDHeaderGet value of private type COMPAS-SystemVersiongetExtRefBinders
(@NonNull ExtRefSignalInfo signalInfo) Checks all possible ExtRef in current IED which could be bound to given ExtRef as parametergetLDeviceAdapterByLdInst
(String ldInst) Gets LDevice from current IED by ldInst parametergetName()
Gets name of current IEDExtract private compas:BaygetPrivateHeader
(String privateType) Gets IED Private corresponding to specified type in parameterGets Services of current IEDboolean
isSettingConfig
(String ldInst) Checks for a given LDevice in current IED if Setting Group is well settedUpdate and/or create Monitoring LNs (LSVS and LGOS) into LDSUIED for each bound ExtRef of each LDeviceboolean
matches
(ObjectReference objRef) Checks if given ObjectReference matches with one of current IED LNode (ie having common reference with DataSet, ReportControl or DataTypeTemplate)void
setIEDName
(String iedName) Sets IED name in current IEDGets All LDevice from current IED as LDeviceAdaptervoid
updateLDeviceNodesType
(Map<String, String> pairOldNewId) Updates all LNode type value specified in pairOldNewId as key (oldID), by corresponding value (newID) in all LDevice of the current IED.Methods inherited from class org.lfenergy.compas.sct.commons.scl.SclElementAdapter
addPrivate, amRootElement, buildFatalReportItem, customInit, getXPath, setCurrentElem
-
Constructor Details
-
IEDAdapter
Constructor- Parameters:
parentAdapter
- Parent container reference
-
IEDAdapter
Constructor- Parameters:
parentAdapter
- Parent container referencecurrentElem
- Current reference
-
IEDAdapter
Constructor- Parameters:
parentAdapter
- Parent container referenceiedName
- IED 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,
TIED> - Returns:
- link parent child existence
-
elementXPath
Description copied from class:SclElementAdapter
Returns XPath path to current element- Specified by:
elementXPath
in classSclElementAdapter<SclRootAdapter,
TIED> - Returns:
- message as undefined
-
setIEDName
Sets IED name in current IED- Parameters:
iedName
- new name to set
-
streamLDeviceAdapters
Gets All LDevice from current IED as LDeviceAdapter- Returns:
- Stream of LDeviceAdapter object
-
getLDeviceAdapterByLdInst
Gets LDevice from current IED by ldInst parameter- Parameters:
ldInst
- ldInst value of LDevice to get- Returns:
- LDeviceAdapter object
- Throws:
ScdException
- when LDevice is not found
-
findLDeviceAdapterByLdInst
Gets LDevice from current IED by ldInst parameter- Parameters:
ldInst
- ldInst value of LDevice to get- Returns:
- optional of LDeviceAdapter object
-
updateLDeviceNodesType
Updates all LNode type value specified in pairOldNewId as key (oldID), by corresponding value (newID) in all LDevice of the current IED. Update LDevice name by combining IED name and LDevice ldInst value- Parameters:
pairOldNewId
- map of old ID and new ID. Old ID to find in LNode Type and replace it with New ID- Throws:
ScdException
- throws when renaming LDevice and new name has more than 33 caracteres
-
getServices
Gets Services of current IED- Returns:
- TServices object
-
getName
Gets name of current IED- Returns:
- string name
-
matches
Checks if given ObjectReference matches with one of current IED LNode (ie having common reference with DataSet, ReportControl or DataTypeTemplate)- Parameters:
objRef
- reference to compare with LNodes data's- Returns:
- Boolean value of check result
-
findAccessPointByName
Checks existence of Access Point in curent IED by name- Parameters:
apName
- AccessPoint name to check- Returns:
- Boolean value of check result
-
getExtRefBinders
public List<ExtRefBindingInfo> getExtRefBinders(@NonNull @NonNull ExtRefSignalInfo signalInfo) throws ScdException Checks all possible ExtRef in current IED which could be bound to given ExtRef as parameter- Parameters:
signalInfo
- ExtRef to bind data- Returns:
- list of ExtRefBindingInfo object (containing binding data for each LDevice in current IED)
- Throws:
ScdException
- throws when ExtRef contains inconsistency data
-
isSettingConfig
Checks for a given LDevice in current IED if Setting Group is well setted- Parameters:
ldInst
- ldInst for LDevice for which Setting Group is checked- Returns:
- Boolean value of check result
-
getPrivateHeader
Gets IED Private corresponding to specified type in parameter- Parameters:
privateType
- Private type to get- Returns:
- optional of TPrivate object
-
getPrivateCompasBay
Extract private compas:Bay- Returns:
- value of private compas:Bay if present, empty Optional otherwise
-
checkDataGroupCoherence
Checks if Controls, DataSets and FCDAs of IED respect config limitation- Returns:
- empty list if all IED respect limits, otherwise list of errors
-
checkBindingDataGroupCoherence
Checks if Controls and FCDAs of source IEDs respect config limitation- Returns:
- empty list if all IED respect limits, otherwise list of errors
-
getCompasICDHeader
Get value of private type COMPAS-ICDHeader- Returns:
- COMPAS-ICDHeader private value if present, else empty Optional
-
getCompasSystemVersion
Get value of private type COMPAS-SystemVersion- Returns:
- COMPAS-SystemVersion private value if present, else empty Optional
-
manageMonitoringLns
Update and/or create Monitoring LNs (LSVS and LGOS) into LDSUIED for each bound ExtRef of each LDevice- Returns:
- a list of SclReport Objects that contains errors
-