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 rptIDNamedataSetRefDescRefers To confRevRefers To IedNames
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Longprotected Stringprotected Stringprotected Stringprotected Stringprotected List<ControlBlockTarget>Fields inherited from class org.lfenergy.compas.sct.commons.dto.LNodeMetaDataEmbedder
metaData -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract TControlAdd the ControlBlock to an LN or LN0 elementprotected static TProtocolcopyProtocol(TProtocol tProtocol) Copy a TProtocol objectGet ConfRev value.abstract ControlBlockEnumGet ControlBlockEnumgetControlBlockServiceSetting(TServices tServices) Get Control block settings from ServiceDeprecated.TServiceType provides REPORT, SMV, GOOSE and POLL.abstract TControlMap the object to TControlvoidValidate Control block structureprotected abstract voidvalidateSecurityEnabledValue(TServices tServices) Abstract method to check validity of Security Enable state for Control blocksfinal voidvalidateSecurityEnabledValue(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
-