Class LDeviceAdapter
java.lang.Object
org.lfenergy.compas.sct.commons.scl.SclElementAdapter<IEDAdapter,TLDevice>
org.lfenergy.compas.sct.commons.scl.ied.LDeviceAdapter
A representation of the model object
LDevice
.
The following features are supported:
- Adapter
Returns the value of the LN0Adapter containment reference list
Returns the value of the LNAdapter reference object By LNClass, inst and prefix
- Principal functions
Returns the value of the inst attribute
Returns the value of the ldName attribute
em>Returns the value of the ExtRefInfo containment reference
Returns the value of the ExtRefBindingInfo containment reference list By ExtRefSignalInfo
Returns the value of the DataAttributeRef containment reference By filter
Add TPrivate under this object
-
Field Summary
Fields inherited from class org.lfenergy.compas.sct.commons.scl.SclElementAdapter
currentElem, parentAdapter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
Check if node is child of the reference nodecreateDataSetAndControlBlocks
(Set<FcdaForDataSetsCreation> allowedFcdas) void
createHmiReportControlBlocks
(List<TFCDA> fcdas) Create DataSet and ReportControl Blocks for the HMI with the given FCDAs.protected String
Returns XPath path to current elementfindLnAdapter
(String lnClass, String lnInst, String prefix) Find a specific LN from current LDevicefindSourceDA
(TExtRef extRef) getDAI
(DataAttributeRef dataAttributeRef, boolean updatableOnly) Gets a list of summarized DataTypeTemplate for DataAttribute DAIs (updatableOnly or not)getExtRefBayReferenceForActifLDEPF
(List<SclReportItem> sclReportItems) Provides a list of ExtRef and associated Bay
- The location of ExtRef should be in an active LDevice (inst=LDEPF)
- ExtRef that lacks Bay or ICDHeader Private is not returnedgetExtRefBinders
(ExtRefSignalInfo signalInfo) Checks all possible ExtRef in current LDevice which could be bound to given ExtRef as parameterGets all ExtRef of all LNodes of current LDevicegetInst()
Gets current LDevice Inst parameter valueGets current LDevice nameGets current LDevice LNode LN0getLNAdapter
(String lnClass, String lnInst, String prefix) Gets specific LNode from current LDeviceGets current LDevice LNodes (except LN0)Gets all LN of LDevice including LN0getXPath()
Gets XPath path to current element from parent elementprotected boolean
hasControlBlockCreationCapability
(ControlBlockEnum controlBlockEnum) Checks if parent AccessPoint has ControlBlock creation capabilityprotected boolean
hasDataSetCreationCapability
(ControlBlockEnum controlBlockEnum) Checks if parent AccessPoint has DataSet creation capabilityboolean
hasLN0()
Checks if LDevice has an LN0 nodemanageMonitoringLns
(List<TExtRef> tExtRefs, String doName, MonitoringLnClassEnum monitoringLnClassEnum) Update and/or create Monitoring LNs (LSVS and LGOS) into LDSUIED from ExtRefs bindingvoid
Updates LDevice name by combining IED name and LDevice ldInst valueMethods inherited from class org.lfenergy.compas.sct.commons.scl.SclElementAdapter
addPrivate, amRootElement, buildFatalReportItem, customInit, setCurrentElem
-
Constructor Details
-
LDeviceAdapter
Constructor- Parameters:
parentAdapter
- Parent container referencecurrentElem
- Current reference
-
-
Method Details
-
createHmiReportControlBlocks
Create DataSet and ReportControl Blocks for the HMI with the given FCDAs. DataSet and ReportControl are created in LN0, even if FCDA refers to another LN.- Parameters:
fcdas
- List of FCDA for which we must create the DataSet and ReportControl
-
amChildElementRef
protected boolean amChildElementRef()Check if node is child of the reference node- Specified by:
amChildElementRef
in classSclElementAdapter<IEDAdapter,
TLDevice> - Returns:
- link parent child existence
-
getAccessPoint
-
elementXPath
Description copied from class:SclElementAdapter
Returns XPath path to current element- Specified by:
elementXPath
in classSclElementAdapter<IEDAdapter,
TLDevice> - Returns:
- message as undefined
-
getXPath
Description copied from class:SclElementAdapter
Gets XPath path to current element from parent element- Overrides:
getXPath
in classSclElementAdapter<IEDAdapter,
TLDevice> - Returns:
- path to current element
-
updateLDName
Updates LDevice name by combining IED name and LDevice ldInst value- Throws:
ScdException
- throws when renaming LDevice and new name has more than 33 caracteres
-
getInst
Gets current LDevice Inst parameter value- Returns:
- Inst parameter value
-
getLdName
Gets current LDevice name- Returns:
- LDevice name
-
getLN0Adapter
Gets current LDevice LNode LN0- Returns:
- LN0Adapter
-
hasLN0
public boolean hasLN0()Checks if LDevice has an LN0 node- Returns:
- true if lDevice has a LN0 node, false otherwise
-
getLNAdapters
Gets current LDevice LNodes (except LN0)- Returns:
- list of LNAdapter object
-
getLNAdapter
Gets specific LNode from current LDevice- Parameters:
lnClass
- LNode lnClass valuelnInst
- LNode lnInst valueprefix
- LNode prefix value- Returns:
- LNAdapter object
- Throws:
ScdException
- thros when specified LNode not found in current IED
-
findLnAdapter
Find a specific LN from current LDevice- Parameters:
lnClass
- LNode lnClass valuelnInst
- LNode lnInst valueprefix
- LNode prefix value- Returns:
- LNAdapter object
- Throws:
ScdException
- thros when specified LNode not found in current IED
-
getExtRefBinders
Checks all possible ExtRef in current LDevice 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 LDNode in current LDevice related to given ExtRef)
-
getExtRefInfo
Gets all ExtRef of all LNodes of current LDevice- Returns:
- list of ExtRefInfo object (containing binding data for each LDNode in current LDevice)
-
getDAI
public Set<DataAttributeRef> getDAI(DataAttributeRef dataAttributeRef, boolean updatableOnly) throws ScdException Gets a list of summarized DataTypeTemplate for DataAttribute DAIs (updatableOnly or not)- Parameters:
dataAttributeRef
- Data Attribute Reference (used as filter)updatableOnly
- true to retrieve only updatableOnly DAIs, false to retrieve all DAIs- Returns:
- Set of DataAttributeRef (updatableOnly or not)
- Throws:
ScdException
- SCD illegal arguments exception
-
getLDeviceStatus
-
getLNAdaptersIncludingLN0
Gets all LN of LDevice including LN0- Returns:
- list of all LN of LDevice
-
createDataSetAndControlBlocks
-
findSourceDA
-
hasDataSetCreationCapability
Checks if parent AccessPoint has DataSet creation capability- Parameters:
controlBlockEnum
- the type of DataSet we want to check for creation capability.- Returns:
- true if parent AccessPoint has the capability, false otherwise
-
hasControlBlockCreationCapability
Checks if parent AccessPoint has ControlBlock creation capability- Parameters:
controlBlockEnum
- the type of ControlBlock we want to check for creation capability.- Returns:
- true if parent AccessPoint has the capability, false otherwise
-
manageMonitoringLns
public Optional<SclReportItem> manageMonitoringLns(List<TExtRef> tExtRefs, String doName, MonitoringLnClassEnum monitoringLnClassEnum) Update and/or create Monitoring LNs (LSVS and LGOS) into LDSUIED from ExtRefs binding- Parameters:
tExtRefs
- ExtRefs for which source Control Blocks (Goose or SMV) should be monitoredmonitoringLnClassEnum
- LNClass value for LN to monitor- Returns:
- a list of SclReport Objects that contains errors
-
getExtRefBayReferenceForActifLDEPF
public List<ExtRefInfo.ExtRefBayReference> getExtRefBayReferenceForActifLDEPF(List<SclReportItem> sclReportItems) Provides a list of ExtRef and associated Bay
- The location of ExtRef should be in an active LDevice (inst=LDEPF)
- ExtRef that lacks Bay or ICDHeader Private is not returned- Parameters:
sclReportItems
- List of SclReportItem- Returns:
- list of ExtRef and associated Bay
-