Package edu.ie3.datamodel.io.source.csv
Class CsvTypeSource
java.lang.Object
edu.ie3.datamodel.io.source.csv.CsvDataSource
edu.ie3.datamodel.io.source.csv.CsvTypeSource
- All Implemented Interfaces:
DataSource
,TypeSource
Source that provides the capability to build entities of type
SystemParticipantTypeInput
and OperatorInput
from .csv files- Since:
- 05.04.20
-
Field Summary
Fields inherited from class edu.ie3.datamodel.io.source.csv.CsvDataSource
connector, csvSep, FIELDS_TO_VALUES_MAP, log, NODE, NODE_A, NODE_B, OPERATOR, TYPE
-
Constructor Summary
ConstructorDescriptionCsvTypeSource
(String csvSep, String typeFolderPath, FileNamingStrategy fileNamingStrategy) -
Method Summary
Modifier and TypeMethodDescriptionReturns a set ofBmTypeInput
instances.Returns a set ofChpTypeInput
instances.Returns a set ofEvTypeInput
instances.Returns a set ofHpTypeInput
instances.Returns a set ofLineTypeInput
instances.Returns a set ofOperatorInput
instances.Returns a set ofStorageTypeInput
instances.Returns a set ofTransformer2WTypeInput
instances.Returns a set ofTransformer3WTypeInput
instances.Returns a set ofWecTypeInput
instances.Methods inherited from class edu.ie3.datamodel.io.source.csv.CsvDataSource
assetInputEntityDataStream, assetInputEntityDataStream, buildStreamWithFieldsToAttributesMap, buildStreamWithFieldsToAttributesMap, csvRowFieldValueMapping, distinctRowsWithLog, findFirstEntityByUuid, getAssetType, isPresentCollectIfNot, logSkippingWarning, nodeAssetEntityStream, nodeAssetInputEntityDataStream, parseCsvRow, printInvalidElementInformation, saveMapGet, simpleEntityDataStream
-
Constructor Details
-
CsvTypeSource
-
-
Method Details
-
getTransformer2WTypes
Returns a set ofTransformer2WTypeInput
instances. This set has to be unique in the sense of object uniqueness but also in the sense ofUUID
uniqueness of the providedTransformer2WTypeInput
which has to be checked manually, asTransformer2WTypeInput.equals(Object)
is NOT restricted on the uuid ofTransformer2WTypeInput
.- Specified by:
getTransformer2WTypes
in interfaceTypeSource
- Returns:
- a set of object and uuid unique
Transformer2WTypeInput
entities
-
getOperators
Returns a set ofOperatorInput
instances. This set has to be unique in the sense of object uniqueness but also in the sense ofUUID
uniqueness of the providedOperatorInput
which has to be checked manually, asOperatorInput.equals(Object)
is NOT restricted on the uuid ofOperatorInput
.- Specified by:
getOperators
in interfaceTypeSource
- Returns:
- a set of object and uuid unique
OperatorInput
entities
-
getLineTypes
Returns a set ofLineTypeInput
instances. This set has to be unique in the sense of object uniqueness but also in the sense ofUUID
uniqueness of the providedLineTypeInput
which has to be checked manually, asLineTypeInput.equals(Object)
is NOT restricted on the uuid ofLineTypeInput
.- Specified by:
getLineTypes
in interfaceTypeSource
- Returns:
- a set of object and uuid unique
LineTypeInput
entities
-
getTransformer3WTypes
Returns a set ofTransformer3WTypeInput
instances. This set has to be unique in the sense of object uniqueness but also in the sense ofUUID
uniqueness of the providedTransformer3WTypeInput
which has to be checked manually, asTransformer3WTypeInput.equals(Object)
is NOT restricted on the uuid ofTransformer3WTypeInput
.- Specified by:
getTransformer3WTypes
in interfaceTypeSource
- Returns:
- a set of object and uuid unique
Transformer3WTypeInput
entities
-
getBmTypes
Returns a set ofBmTypeInput
instances. This set has to be unique in the sense of object uniqueness but also in the sense ofUUID
uniqueness of the providedBmTypeInput
which has to be checked manually, asBmTypeInput.equals(Object)
is NOT restricted on the uuid ofBmTypeInput
.- Specified by:
getBmTypes
in interfaceTypeSource
- Returns:
- a set of object and uuid unique
BmTypeInput
entities
-
getChpTypes
Returns a set ofChpTypeInput
instances. This set has to be unique in the sense of object uniqueness but also in the sense ofUUID
uniqueness of the providedChpTypeInput
which has to be checked manually, asChpTypeInput.equals(Object)
is NOT restricted on the uuid ofChpTypeInput
.- Specified by:
getChpTypes
in interfaceTypeSource
- Returns:
- a set of object and uuid unique
ChpTypeInput
entities
-
getHpTypes
Returns a set ofHpTypeInput
instances. This set has to be unique in the sense of object uniqueness but also in the sense ofUUID
uniqueness of the providedHpTypeInput
which has to be checked manually, asHpTypeInput.equals(Object)
is NOT restricted on the uuid ofHpTypeInput
.- Specified by:
getHpTypes
in interfaceTypeSource
- Returns:
- a set of object and uuid unique
HpTypeInput
entities
-
getStorageTypes
Returns a set ofStorageTypeInput
instances. This set has to be unique in the sense of object uniqueness but also in the sense ofUUID
uniqueness of the providedStorageTypeInput
which has to be checked manually, asStorageTypeInput.equals(Object)
is NOT restricted on the uuid ofStorageTypeInput
.- Specified by:
getStorageTypes
in interfaceTypeSource
- Returns:
- a set of object and uuid unique
StorageTypeInput
entities
-
getWecTypes
Returns a set ofWecTypeInput
instances. This set has to be unique in the sense of object uniqueness but also in the sense ofUUID
uniqueness of the providedWecTypeInput
which has to be checked manually, asWecTypeInput.equals(Object)
is NOT restricted on the uuid ofWecTypeInput
.- Specified by:
getWecTypes
in interfaceTypeSource
- Returns:
- a set of object and uuid unique
WecTypeInput
entities
-
getEvTypes
Returns a set ofEvTypeInput
instances. This set has to be unique in the sense of object uniqueness but also in the sense ofUUID
uniqueness of the providedEvTypeInput
which has to be checked manually, asEvTypeInput.equals(Object)
is NOT restricted on the uuid ofEvTypeInput
.- Specified by:
getEvTypes
in interfaceTypeSource
- Returns:
- a set of object and uuid unique
EvTypeInput
entities
-