Package org.lfenergy.compas.sct.commons
Class ControlBlockService
java.lang.Object
org.lfenergy.compas.sct.commons.ControlBlockService
- All Implemented Interfaces:
ControlBlockEditor
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionanalyzeDataGroups
(SCL scd) Checks Control Blocks, DataSets and FCDA number limitation into Access PointsconfigureNetworkForAllControlBlocks
(SCL scd, ControlBlockNetworkSettings controlBlockNetworkSettings, ControlBlockNetworkSettings.RangesPerCbType rangesPerCbType) Configure the network for all the ControlBlocks.createDataSetAndControlBlocks
(SCL scd, String targetIedName, String targetLDeviceInst, Set<FcdaForDataSetsCreation> allowedFcdas) Create All DataSet and ControlBlock for the ExtRef in given IED and LDevicecreateDataSetAndControlBlocks
(SCL scd, String targetIedName, Set<FcdaForDataSetsCreation> allowedFcdas) Create All DataSet and ControlBlock for the ExtRef in given IEDcreateDataSetAndControlBlocks
(SCL scd, Set<FcdaForDataSetsCreation> allowedFcdas) Create All DataSet and ControlBlock in the SCL based on the ExtRefvoid
Removes all ControlBlocks and DataSets for all LNs in SCL
-
Constructor Details
-
ControlBlockService
public ControlBlockService()
-
-
Method Details
-
analyzeDataGroups
Description copied from interface:ControlBlockEditor
Checks Control Blocks, DataSets and FCDA number limitation into Access Points- Specified by:
analyzeDataGroups
in interfaceControlBlockEditor
- Parameters:
scd
- SCL file for which LDevice should be activated or deactivated- Returns:
- list of encountered errors
-
createDataSetAndControlBlocks
public List<SclReportItem> createDataSetAndControlBlocks(SCL scd, Set<FcdaForDataSetsCreation> allowedFcdas) Description copied from interface:ControlBlockEditor
Create All DataSet and ControlBlock in the SCL based on the ExtRef- Specified by:
createDataSetAndControlBlocks
in interfaceControlBlockEditor
- Parameters:
scd
- input SCD object. It could be modified by adding new DataSet and ControlBlocksallowedFcdas
- List of allowed FCDA for DataSets and Control Blocks creation- Returns:
- list of encountered errors
-
createDataSetAndControlBlocks
public List<SclReportItem> createDataSetAndControlBlocks(SCL scd, String targetIedName, Set<FcdaForDataSetsCreation> allowedFcdas) Description copied from interface:ControlBlockEditor
Create All DataSet and ControlBlock for the ExtRef in given IED- Specified by:
createDataSetAndControlBlocks
in interfaceControlBlockEditor
- Parameters:
scd
- input SCD object. The object will be modified with the new DataSet and ControlBlockstargetIedName
- the name of the IED where the ExtRef areallowedFcdas
- List of allowed FCDA for DataSets and Control Blocks creation- Returns:
- list of encountered errors
-
createDataSetAndControlBlocks
public List<SclReportItem> createDataSetAndControlBlocks(SCL scd, String targetIedName, String targetLDeviceInst, Set<FcdaForDataSetsCreation> allowedFcdas) Description copied from interface:ControlBlockEditor
Create All DataSet and ControlBlock for the ExtRef in given IED and LDevice- Specified by:
createDataSetAndControlBlocks
in interfaceControlBlockEditor
- Parameters:
scd
- input SCD object. The object will be modified with the new DataSet and ControlBlockstargetIedName
- the name of the IED where the ExtRef aretargetLDeviceInst
- the name of the LDevice where the ExtRef areallowedFcdas
- List of allowed FCDA for DataSets and Control Blocks creation- Returns:
- list of encountered errors
-
configureNetworkForAllControlBlocks
public List<SclReportItem> configureNetworkForAllControlBlocks(SCL scd, ControlBlockNetworkSettings controlBlockNetworkSettings, ControlBlockNetworkSettings.RangesPerCbType rangesPerCbType) Description copied from interface:ControlBlockEditor
Configure the network for all the ControlBlocks. Create (or update if already existing) these elements - the Communication/SubNetwork/ConnectedAP/GSE element, for the GSEControl blocks - the Communication/SubNetwork/ConnectedAP/SMV element, for the SampledValueControl blocks- Specified by:
configureNetworkForAllControlBlocks
in interfaceControlBlockEditor
- Parameters:
scd
- input SCD object. The object will be modified with the new DataGSESet and SMV elementscontrolBlockNetworkSettings
- a method tha gives the network configuration information for a given ControlBlockrangesPerCbType
- provide NetworkRanges for GSEControl and SampledValueControl. NetworkRanges contains : start-end app APPID range (long value), start-end MAC-Addresses (Mac-Addresses values: Ex: "01-0C-CD-01-01-FF")- Returns:
- list of encountered errors
- See Also:
-
removeAllControlBlocksAndDatasetsAndExtRefSrcBindings
Description copied from interface:ControlBlockEditor
Removes all ControlBlocks and DataSets for all LNs in SCL- Specified by:
removeAllControlBlocksAndDatasetsAndExtRefSrcBindings
in interfaceControlBlockEditor
- Parameters:
scl
- SCL file for which ControlBlocks and DataSets should be deleted
-