Interface SclElementsProvider
- All Known Implementing Classes:
SclElementsProviderService
public interface SclElementsProvider
Service class that will be used to retrieve
SCL
XML Files.
The ElementsProvider class needs to be able to find/list entries.
The following features are supported:
- Communication features
- ExtRef features
- DAI features
- EnumType features
-
Method Summary
Modifier and TypeMethodDescriptiongetDAI
(SCL scd, String iedName, String ldInst, DataAttributeRef dataAttributeRef, boolean updatable) Gets a list of summarized DataTypeTemplate for DataAttribute DA (updatable or not) related to the one given in dataAttributeRefgetEnumTypeValues
(SCL scd, String idEnum) Gets EnumTypes values of ID idEnum from DataTypeTemplate of SCL filegetExtRefBinders
(SCL scd, String iedName, String ldInst, String lnClass, String lnInst, String prefix, ExtRefSignalInfo signalInfo) Gets all possible ExtRefs to bind in SCL file with given ExtRef (signalInfo) in SCL filegetExtRefInfo
(SCL scd, String iedName, String ldInst) Gets all ExtRef from specific IED/LDevice in SCL filegetExtRefSourceInfo
(SCL scd, ExtRefInfo extRefInfo) Gets all Control Blocks related to extRefInfo in given SCL filegetSubnetwork
(SCL scd) Gets list of SCL SubNetworks
-
Method Details
-
getSubnetwork
Gets list of SCL SubNetworks- Parameters:
scd
- SCL file in which SubNetworks should be found- Returns:
- List of SubNetworkDTO from SCL
- Throws:
ScdException
- throws when no Communication in SCL and createIfNotExists == false
-
getExtRefInfo
Gets all ExtRef from specific IED/LDevice in SCL file- Parameters:
scd
- SCL file in which ExtRefs should be foundiedName
- name of IED in which LDevice is localizedldInst
- LdInst of LDevice in which all ExtRefs should be found- Returns:
- list of ExtRefInfo from specified parameter SCL/IED/LDevice
- Throws:
ScdException
- throws when unknown specified IED or LDevice
-
getExtRefBinders
List<ExtRefBindingInfo> getExtRefBinders(SCL scd, String iedName, String ldInst, String lnClass, String lnInst, String prefix, ExtRefSignalInfo signalInfo) throws ScdException Gets all possible ExtRefs to bind in SCL file with given ExtRef (signalInfo) in SCL file- Parameters:
scd
- SCL file in which ExtRefs should be foundiedName
- name of IED in which LDevice is localizedldInst
- ldInst of LDevice in which LN is localizedlnClass
- lnClass of LN in which ExtRef signal to find binders is localizedlnInst
- lnInst of LN in which ExtRef signal to find binders is localizedprefix
- prefix of LN in which ExtRef signal to find binders is localizedsignalInfo
- ExtRef signal for which we should find possible binders in SCL file binders- Returns:
- list of ExtRefBindingInfo object (containing binding data for each LNode in current SCL file) sorted by
compareTo
method. - Throws:
ScdException
- throws when ExtRef contains inconsistency data
-
getExtRefSourceInfo
Gets all Control Blocks related to extRefInfo in given SCL file- Parameters:
scd
- SCL file in which ControlBlocks should be foundextRefInfo
- ExtRef signal for which we should find related ControlBlocks- Returns:
- list of ControlBlock object as ControlBlocks of LNode specified in extRefInfo
- Throws:
ScdException
- throws when mandatory data of ExtRef are missing
-
getDAI
Set<DataAttributeRef> getDAI(SCL scd, String iedName, String ldInst, DataAttributeRef dataAttributeRef, boolean updatable) throws ScdException Gets a list of summarized DataTypeTemplate for DataAttribute DA (updatable or not) related to the one given in dataAttributeRef- Parameters:
scd
- SCL file in which DataTypeTemplate of DAIs should be foundiedName
- name of IED in which DAs are localizedldInst
- ldInst of LDevice in which DAIs are localizeddataAttributeRef
- reference summarized DataTypeTemplate related to IED DAIsupdatable
- true to retrieve DataTypeTemplate's related to only updatable DAIs, false to retrieve all- Returns:
- Set of Data Attribute Reference for DataAttribute (updatable or not)
- Throws:
ScdException
- SCD illegal arguments exception, missing mandatory data
-
getEnumTypeValues
Gets EnumTypes values of ID idEnum from DataTypeTemplate of SCL file- Parameters:
scd
- SCL file in which EnumType should be foundidEnum
- ID of EnumType for which values are retrieved- Returns:
- list of couple EnumType value and it's order
- Throws:
ScdException
- throws when unknown EnumType
-