Class SettingLDEPFCsvHelper
java.lang.Object
org.lfenergy.compas.sct.commons.util.SettingLDEPFCsvHelper
- All Implemented Interfaces:
ILDEPFSettings
This class is an implementation example for interface ILDEPFSettings.
It relies on a CSV file.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetIedSources
(SclRootAdapter sclRootAdapter, TCompasBay compasBay, LDEPFSettingData setting) Provides valid IED sources with LDEPF configuration.
Example of LDEPF configuration include:
1.Provides the matching setting for an ExtRef.
-
Constructor Details
-
SettingLDEPFCsvHelper
Constructor- Parameters:
reader
- input
-
-
Method Details
-
getLDEPFSettingDataMatchExtRef
Description copied from interface:ILDEPFSettings
Provides the matching setting for an ExtRef.- Specified by:
getLDEPFSettingDataMatchExtRef
in interfaceILDEPFSettings
- Parameters:
extRef
- The ExtRef object- Returns:
- the matching LDEPFSettingDTO for an ExtRef
-
getIedSources
public List<TIED> getIedSources(SclRootAdapter sclRootAdapter, TCompasBay compasBay, LDEPFSettingData setting) Description copied from interface:ILDEPFSettings
Provides valid IED sources with LDEPF configuration.
Example of LDEPF configuration include:
1. COMPAS-Bay verification that should be closed to the provided Flow Kind
2. COMPAS-ICDHeader verification that should match the provided parameters, seeUtils.isIcdHeaderMatch(org.lfenergy.compas.sct.commons.scl.ied.IEDAdapter, org.lfenergy.compas.sct.commons.dto.LDEPFSettingData)
3. Active LDevice source object that should match the provided parameters, seeUtils.getActiveSourceLDevice(org.lfenergy.compas.sct.commons.scl.ied.IEDAdapter, org.lfenergy.compas.sct.commons.dto.LDEPFSettingData)
4. Active LNode source object that should match the provided parameters, seeUtils.getActiveLNodeSource(org.lfenergy.compas.sct.commons.scl.ied.LDeviceAdapter, org.lfenergy.compas.sct.commons.dto.LDEPFSettingData)
5. Valid DataTypeTemplate Object hierarchy that should match the DO/DA/BDA parameters, seeUtils.isValidDataTypeTemplate(org.lfenergy.compas.sct.commons.scl.ied.AbstractLNAdapter<?>, org.lfenergy.compas.sct.commons.dto.LDEPFSettingData)
- Specified by:
getIedSources
in interfaceILDEPFSettings
- Parameters:
sclRootAdapter
- SCLcompasBay
- TCompasBaysetting
- LDEPFSetting- Returns:
- the IED sources matching the LDEPFSetting
-