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 SummaryFieldsModifier and TypeFieldDescriptionprotected Longprotected Stringprotected Stringprotected Stringprotected Stringprotected List<ControlBlockTarget>Fields inherited from class org.lfenergy.compas.sct.commons.dto.LNodeMetaDataEmbeddermetaData
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.LNodeMetaDataEmbeddergetHolderIEDName, getHolderLDInst, getHolderLnClass, getHolderLnInst, getHolderLnPrefix, setHolderIEDName, setHolderLDInst, setHolderLnClass, setHolderLnInst, setHolderLnPrefix, setMetaData
- 
Field Details- 
id
- 
name
- 
dataSetRef
- 
desc
- 
confRev
- 
targets
 
- 
- 
Constructor Details- 
ControlBlockpublic ControlBlock()
 
- 
- 
Method Details- 
getServiceTypeDeprecated.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:
 
- 
getControlBlockEnumGet ControlBlockEnum- Returns:
- ControlBlockEnum of the instance
 
- 
toTControlMap the object to TControl- Returns:
- new instance of TControl element with all the attributes copied from the current object
 
- 
validateCBValidate Control block structure- Throws:
- ScdException- when ControlBlock structure is not valid
 
- 
validateSecurityEnabledValueCheck if Security is enabled in IED (Services)- Parameters:
- iedAdapter- IED adapter containing IED data
- Throws:
- ScdException- when ControlBlock Security is not consistent
 
- 
getConfRevGet ConfRev value. ConfRev is 0 for newly created control blocks without data set reference- Returns:
- confRev long value
 
- 
validateSecurityEnabledValueAbstract method to check validity of Security Enable state for Control blocks- Parameters:
- tServices- Service object
- Throws:
- ScdException- when ControlBlock Security is not consistent
 
- 
getControlBlockServiceSettingGet Control block settings from Service- Parameters:
- tServices- Service object
- Returns:
- ServiceSettingsNoDynEnum enum value
 
- 
addToLNAdd the ControlBlock to an LN or LN0 element- Parameters:
- tAnyLN- tLN or tLNO element
- Returns:
- the added TControl
 
- 
copyProtocolCopy a TProtocol object- Parameters:
- tProtocol- input instance
- Returns:
- new instance of tProtocol with the same fields as input
 
 
-