Class ControlBlockAdapter
java.lang.Object
org.lfenergy.compas.sct.commons.scl.SclElementAdapter<AbstractLNAdapter<? extends TAnyLN>,TControl>
 
org.lfenergy.compas.sct.commons.scl.ied.ControlBlockAdapter
public class ControlBlockAdapter
extends SclElementAdapter<AbstractLNAdapter<? extends TAnyLN>,TControl> 
A representation of the model object
 
ControlBlockAdapter.
 The following features are supported:
- 
Field SummaryFields inherited from class org.lfenergy.compas.sct.commons.scl.SclElementAdaptercurrentElem, parentAdapter
- 
Constructor SummaryConstructorsConstructorDescriptionControlBlockAdapter(AbstractLNAdapter<? extends TAnyLN> parentAdapter, TControl tControl) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddTargetIfNotExists(AbstractLNAdapter<?> targetLn) Add a ClientLN to ReportControl or IEDName to GSEControl/SampleValueControl, if it does not already exist.protected booleanCheck if node is child of the reference nodeconfigureNetwork(long appId, String macAddress, Integer vlanId, Byte vlanPriority, TDurationInMilliSec minTime, TDurationInMilliSec maxTime) Configure the Communication section for this ControlBlock - Communication/SubNetwork/ConnectedAP/GSE for GSEControl block - Communication/SubNetwork/ConnectedAP/SMV for SampledValueControl blockprotected StringReturns local XPathgetName()Get the name of this ControlBlockGet parent IEDMethods inherited from class org.lfenergy.compas.sct.commons.scl.SclElementAdapteraddPrivate, amRootElement, buildFatalReportItem, customInit, getXPath, setCurrentElem
- 
Constructor Details- 
ControlBlockAdapter
 
- 
- 
Method Details- 
getControlBlockEnum
- 
amChildElementRefprotected boolean amChildElementRef()Check if node is child of the reference node- Specified by:
- amChildElementRefin class- SclElementAdapter<AbstractLNAdapter<? extends TAnyLN>,- TControl> 
- Returns:
- link parent child existence
 
- 
elementXPathReturns local XPath- Specified by:
- elementXPathin class- SclElementAdapter<AbstractLNAdapter<? extends TAnyLN>,- TControl> 
- Returns:
- XPath for current element (not including parent XPath)
 
- 
getNameGet the name of this ControlBlock- Returns:
- name of ControlBlock
 
- 
addTargetIfNotExistsAdd a ClientLN to ReportControl or IEDName to GSEControl/SampleValueControl, if it does not already exist.- Parameters:
- targetLn- target LN (where the target ExtRef is)
 
- 
configureNetworkpublic Optional<SclReportItem> configureNetwork(long appId, String macAddress, Integer vlanId, Byte vlanPriority, TDurationInMilliSec minTime, TDurationInMilliSec maxTime) Configure the Communication section for this ControlBlock - Communication/SubNetwork/ConnectedAP/GSE for GSEControl block - Communication/SubNetwork/ConnectedAP/SMV for SampledValueControl block- Parameters:
- appId- value for P type APPID
- macAddress- value for P type MAC-Address
- vlanId- value for P type VLAN-ID
- vlanPriority- value for P type VLAN-PRIORITY
- minTime- MinTime Element
- maxTime- MaxTime Element
- Returns:
- An empty Optional if network have been configured, else a SclReportItem.
 
- 
getParentIedAdapterGet parent IED- Returns:
- ControlBlock's parent IEDAdapter
 
 
-