Class ControlBlock
java.lang.Object
org.lfenergy.compas.sct.commons.dto.LNodeMetaDataEmbedder
org.lfenergy.compas.sct.commons.dto.ControlBlock
- Direct Known Subclasses:
GooseControlBlock
,ReportControlBlock
,SMVControlBlock
A representation of the model object ControlBlock.
-
GooseControlBlock
,
- ReportControlBlock
,
- SMVControlBlock
,
The following features are supported:
appID, smvID or rptID
Name
dataSetRef
Desc
Refers To confRev
Refers To IedNames
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected Long
protected String
protected String
protected String
protected String
protected List<ControlBlockTarget>
Fields inherited from class org.lfenergy.compas.sct.commons.dto.LNodeMetaDataEmbedder
metaData
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract TControl
Add the ControlBlock to an LN or LN0 elementprotected static TProtocol
copyProtocol
(TProtocol tProtocol) Copy a TProtocol objectGet ConfRev value.abstract ControlBlockEnum
Get ControlBlockEnumgetControlBlockServiceSetting
(TServices tServices) Get Control block settings from ServiceDeprecated.TServiceType provides REPORT, SMV, GOOSE and POLL.abstract TControl
Map the object to TControlvoid
Validate Control block structureprotected abstract void
validateSecurityEnabledValue
(TServices tServices) Abstract method to check validity of Security Enable state for Control blocksfinal void
validateSecurityEnabledValue
(IEDAdapter iedAdapter) Check if Security is enabled in IED (Services)Methods inherited from class org.lfenergy.compas.sct.commons.dto.LNodeMetaDataEmbedder
getHolderIEDName, getHolderLDInst, getHolderLnClass, getHolderLnInst, getHolderLnPrefix, setHolderIEDName, setHolderLDInst, setHolderLnClass, setHolderLnInst, setHolderLnPrefix, setMetaData
-
Field Details
-
id
-
name
-
dataSetRef
-
desc
-
confRev
-
targets
-
-
Constructor Details
-
ControlBlock
public ControlBlock()
-
-
Method Details
-
getServiceType
Deprecated.TServiceType provides REPORT, SMV, GOOSE and POLL. It does not provide "LOG" for LogControl and provides "POLL" which is not a valid ControlBlock type. Use getControlBlockEnum() instead.Get ServiceType- Returns:
- ServiceType enum object
- See Also:
-
getControlBlockEnum
Get ControlBlockEnum- Returns:
- ControlBlockEnum of the instance
-
toTControl
Map the object to TControl- Returns:
- new instance of TControl element with all the attributes copied from the current object
-
validateCB
Validate Control block structure- Throws:
ScdException
- when ControlBlock structure is not valid
-
validateSecurityEnabledValue
Check if Security is enabled in IED (Services)- Parameters:
iedAdapter
- IED adapter containing IED data- Throws:
ScdException
- when ControlBlock Security is not consistent
-
getConfRev
Get ConfRev value. ConfRev is 0 for newly created control blocks without data set reference- Returns:
- confRev long value
-
validateSecurityEnabledValue
Abstract method to check validity of Security Enable state for Control blocks- Parameters:
tServices
- Service object- Throws:
ScdException
- when ControlBlock Security is not consistent
-
getControlBlockServiceSetting
Get Control block settings from Service- Parameters:
tServices
- Service object- Returns:
- ServiceSettingsNoDynEnum enum value
-
addToLN
Add the ControlBlock to an LN or LN0 element- Parameters:
tAnyLN
- tLN or tLNO element- Returns:
- the added TControl
-
copyProtocol
Copy a TProtocol object- Parameters:
tProtocol
- input instance- Returns:
- new instance of tProtocol with the same fields as input
-