Class LN0Adapter
java.lang.Object
org.lfenergy.compas.sct.commons.scl.SclElementAdapter<LDeviceAdapter,T>
org.lfenergy.compas.sct.commons.scl.ied.AbstractLNAdapter<LN0>
org.lfenergy.compas.sct.commons.scl.ied.LN0Adapter
A representation of the model object
LN0Adapter.
The following features are supported:
- Adapter
- Principal functions
Returns the value of the inst attributeReturns the value of the lnClass attributeReturns the value of the lnTYpe attributeReturns the logical node name LNName = prefix + lnClass + lnInstReturns the value of the TExtRef containment reference listReturns the value of the TExtRef containment reference list By ExtRefSignalInfothrows exception when specified signal not found in LN targetReturns the value of the DataAttributeRef containment reference By filterReturns DAI (sGroup, value) containment reference list By DataAttributeRef filterReturns the value of the TDataSet object reference By the value of the name attributeReturns the value of the ControlBlock containment reference list that match datSet value of given TDataSetAdd TPrivate under this objectRemove all ControlBlock- Checklist functions
ObjectReference: LDName/LNName.DataName[.DataName[…]].DataAttributeName[.DAComponentName[ ….]]
LDName = "name" attribute of IEDName element + "inst" attribute of LDevice element
LNName = "prefix" + "lnClass" + "lnInst"
- See Also:
-
Field Summary
FieldsFields inherited from class org.lfenergy.compas.sct.commons.scl.ied.AbstractLNAdapter
MOD_DO_TYPE_NAME, STVAL_DA_TYPE_NAMEFields inherited from class org.lfenergy.compas.sct.commons.scl.SclElementAdapter
currentElem, parentAdapter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanCheck if node is child of the reference nodeprotected StringReturns XPath path to current elementGets current LN0 class typeGets Inputs node as an adapterGets LNClass enum value of current LNOGets LNInst value of current LN0Gets Prefix value of current LN0protected booleanmatchesDataAttributes(String dataAttribute) Checks if given attibrute corresponds to DataSet or ReportControl or SMVControl or GSEControl in current LN0voidRemove all SMVControl and GSEControl of current LN0Update DAIs of DO InRef in all LN0 of the SCD using matching ExtRef information.updateLDeviceStatus(List<org.apache.commons.lang3.tuple.Pair<String, String>> iedNameLDeviceInstList) Verify and update LDevice status in parent NodeMethods inherited from class org.lfenergy.compas.sct.commons.scl.ied.AbstractLNAdapter
addControlBlock, addDOI, builder, checkExtRefInfoCoherence, createControlBlockIfNotExists, createDataSetIfNotExists, createDoiSdiDaiChainIfNotExists, extractExtRefFromExtRefInfo, findControlBlock, findDataSetByName, findDoiAdapterByName, findMatch, generateControlBlockId, getControlBlocks, getControlBlocksForMatchingFCDA, getCurrentScd, getDAI, getDaiModStVal, getDaiModStValValue, getDAIValues, getDataSetByName, getDataSetMatchingExtRefInfo, getDataTypeTemplateAdapter, getDOIAdapterByName, getDOIAdapters, getEnumValues, getExtRefs, getExtRefs, getFCDAs, getLNodeName, getLnType, getParentIed, getParentLDevice, getTControlsByType, hasControlBlock, hasInputs, isExtRefExist, matches, overrideAttributesFromDAI, removeAllExtRefSourceBindings, streamControlBlocks, updateDAI, updateExtRefBinders, updateExtRefBindingInfo, updateExtRefSourceMethods inherited from class org.lfenergy.compas.sct.commons.scl.SclElementAdapter
addPrivate, amRootElement, buildFatalReportItem, customInit, getXPath, setCurrentElem
-
Field Details
-
BEHAVIOUR_DO_TYPE_NAME
-
BEHAVIOUR_DA_TYPE_NAME
-
-
Constructor Details
-
LN0Adapter
Constructor- Parameters:
parentAdapter- Parent container referenceln0- Current reference
-
-
Method Details
-
amChildElementRef
protected boolean amChildElementRef()Check if node is child of the reference node- Specified by:
amChildElementRefin classSclElementAdapter<LDeviceAdapter,LN0> - Returns:
- link parent child existence
-
elementXPath
Description copied from class:SclElementAdapterReturns XPath path to current element- Specified by:
elementXPathin classSclElementAdapter<LDeviceAdapter,LN0> - Returns:
- message as undefined
-
getElementClassType
Gets current LN0 class type- Specified by:
getElementClassTypein classAbstractLNAdapter<LN0>- Returns:
- LN0.class
-
getLNClass
Gets LNClass enum value of current LNO- Specified by:
getLNClassin classAbstractLNAdapter<LN0>- Returns:
- LNClass value
-
getLNInst
Gets LNInst value of current LN0- Specified by:
getLNInstin classAbstractLNAdapter<LN0>- Returns:
- ""
-
getPrefix
Gets Prefix value of current LN0- Specified by:
getPrefixin classAbstractLNAdapter<LN0>- Returns:
- ""
-
getInputsAdapter
Gets Inputs node as an adapter- Returns:
- an InputsAdapter
-
matchesDataAttributes
Checks if given attibrute corresponds to DataSet or ReportControl or SMVControl or GSEControl in current LN0- Overrides:
matchesDataAttributesin classAbstractLNAdapter<LN0>- Parameters:
dataAttribute- attribute to check- Returns:
- Boolean value of check result
-
removeAllControlBlocksAndDatasets
public void removeAllControlBlocksAndDatasets()Remove all SMVControl and GSEControl of current LN0- Overrides:
removeAllControlBlocksAndDatasetsin classAbstractLNAdapter<LN0>
-
updateLDeviceStatus
public Optional<SclReportItem> updateLDeviceStatus(List<org.apache.commons.lang3.tuple.Pair<String, String>> iedNameLDeviceInstList) Verify and update LDevice status in parent Node- Parameters:
iedNameLDeviceInstList- pair of Ied name and LDevice inst attributes- Returns:
- Set of Errors
-
updateDoInRef
Update DAIs of DO InRef in all LN0 of the SCD using matching ExtRef information.- Returns:
- A list of SclReport Objects that contain errors
-