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
ConstructorsConstructorDescriptionCsvTypeSource(String csvSep, String typeFolderPath, FileNamingStrategy fileNamingStrategy) -
Method Summary
Modifier and TypeMethodDescriptionReturns a set ofBmTypeInputinstances.Returns a set ofChpTypeInputinstances.Returns a set ofEvTypeInputinstances.Returns a set ofHpTypeInputinstances.Returns a set ofLineTypeInputinstances.Returns a set ofOperatorInputinstances.Returns a set ofStorageTypeInputinstances.Returns a set ofTransformer2WTypeInputinstances.Returns a set ofTransformer3WTypeInputinstances.Returns a set ofWecTypeInputinstances.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 ofTransformer2WTypeInputinstances. This set has to be unique in the sense of object uniqueness but also in the sense ofUUIDuniqueness of the providedTransformer2WTypeInputwhich has to be checked manually, asTransformer2WTypeInput.equals(Object)is NOT restricted on the uuid ofTransformer2WTypeInput.- Specified by:
getTransformer2WTypesin interfaceTypeSource- Returns:
- a set of object and uuid unique
Transformer2WTypeInputentities
-
getOperators
Returns a set ofOperatorInputinstances. This set has to be unique in the sense of object uniqueness but also in the sense ofUUIDuniqueness of the providedOperatorInputwhich has to be checked manually, asOperatorInput.equals(Object)is NOT restricted on the uuid ofOperatorInput.- Specified by:
getOperatorsin interfaceTypeSource- Returns:
- a set of object and uuid unique
OperatorInputentities
-
getLineTypes
Returns a set ofLineTypeInputinstances. This set has to be unique in the sense of object uniqueness but also in the sense ofUUIDuniqueness of the providedLineTypeInputwhich has to be checked manually, asLineTypeInput.equals(Object)is NOT restricted on the uuid ofLineTypeInput.- Specified by:
getLineTypesin interfaceTypeSource- Returns:
- a set of object and uuid unique
LineTypeInputentities
-
getTransformer3WTypes
Returns a set ofTransformer3WTypeInputinstances. This set has to be unique in the sense of object uniqueness but also in the sense ofUUIDuniqueness of the providedTransformer3WTypeInputwhich has to be checked manually, asTransformer3WTypeInput.equals(Object)is NOT restricted on the uuid ofTransformer3WTypeInput.- Specified by:
getTransformer3WTypesin interfaceTypeSource- Returns:
- a set of object and uuid unique
Transformer3WTypeInputentities
-
getBmTypes
Returns a set ofBmTypeInputinstances. This set has to be unique in the sense of object uniqueness but also in the sense ofUUIDuniqueness of the providedBmTypeInputwhich has to be checked manually, asBmTypeInput.equals(Object)is NOT restricted on the uuid ofBmTypeInput.- Specified by:
getBmTypesin interfaceTypeSource- Returns:
- a set of object and uuid unique
BmTypeInputentities
-
getChpTypes
Returns a set ofChpTypeInputinstances. This set has to be unique in the sense of object uniqueness but also in the sense ofUUIDuniqueness of the providedChpTypeInputwhich has to be checked manually, asChpTypeInput.equals(Object)is NOT restricted on the uuid ofChpTypeInput.- Specified by:
getChpTypesin interfaceTypeSource- Returns:
- a set of object and uuid unique
ChpTypeInputentities
-
getHpTypes
Returns a set ofHpTypeInputinstances. This set has to be unique in the sense of object uniqueness but also in the sense ofUUIDuniqueness of the providedHpTypeInputwhich has to be checked manually, asHpTypeInput.equals(Object)is NOT restricted on the uuid ofHpTypeInput.- Specified by:
getHpTypesin interfaceTypeSource- Returns:
- a set of object and uuid unique
HpTypeInputentities
-
getStorageTypes
Returns a set ofStorageTypeInputinstances. This set has to be unique in the sense of object uniqueness but also in the sense ofUUIDuniqueness of the providedStorageTypeInputwhich has to be checked manually, asStorageTypeInput.equals(Object)is NOT restricted on the uuid ofStorageTypeInput.- Specified by:
getStorageTypesin interfaceTypeSource- Returns:
- a set of object and uuid unique
StorageTypeInputentities
-
getWecTypes
Returns a set ofWecTypeInputinstances. This set has to be unique in the sense of object uniqueness but also in the sense ofUUIDuniqueness of the providedWecTypeInputwhich has to be checked manually, asWecTypeInput.equals(Object)is NOT restricted on the uuid ofWecTypeInput.- Specified by:
getWecTypesin interfaceTypeSource- Returns:
- a set of object and uuid unique
WecTypeInputentities
-
getEvTypes
Returns a set ofEvTypeInputinstances. This set has to be unique in the sense of object uniqueness but also in the sense ofUUIDuniqueness of the providedEvTypeInputwhich has to be checked manually, asEvTypeInput.equals(Object)is NOT restricted on the uuid ofEvTypeInput.- Specified by:
getEvTypesin interfaceTypeSource- Returns:
- a set of object and uuid unique
EvTypeInputentities
-