Class CsvSystemParticipantSource
- All Implemented Interfaces:
DataSource
,SystemParticipantSource
SystemParticipantInput
as
well as SystemParticipants
container from .csv files.
This source is not buffered which means each call on a getter method always tries to read all data is necessary to return the requested objects in a hierarchical cascading way.
If performance is an issue, it is recommended to read the data cascading starting with reading nodes and then using the getters with arguments to avoid reading the same data multiple times.
The resulting sets are always unique on object and UUID base (with distinct UUIDs).
- Since:
- 03.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
ConstructorDescriptionCsvSystemParticipantSource
(String csvSep, String participantsFolderPath, FileNamingStrategy fileNamingStrategy, TypeSource typeSource, ThermalSource thermalSource, RawGridSource rawGridSource) -
Method Summary
Modifier and TypeMethodDescriptionReturns a unique set ofBmInput
instances.getBmPlants
(Set<NodeInput> nodes, Set<OperatorInput> operators, Set<BmTypeInput> types) Returns a set ofBmInput
instances.Returns a unique set ofChpInput
instances.getChpPlants
(Set<NodeInput> nodes, Set<OperatorInput> operators, Set<ChpTypeInput> types, Set<ThermalBusInput> thermalBuses, Set<ThermalStorageInput> thermalStorages) Returns a set ofChpInput
instances.Returns a unique set ofEmInput
instances.getEmSystems
(Set<NodeInput> nodes, Set<OperatorInput> operators) This set has to be unique in the sense of object uniqueness but also in the sense ofUUID
uniqueness of the providedEmInput
which has to be checked manually, asEmInput.equals(Object)
is NOT restricted on the uuid ofEmInput
.getEvCS()
Returns a unique set ofEvcsInput
instances.getEvCS
(Set<NodeInput> nodes, Set<OperatorInput> operators) Returns a set ofEvcsInput
instances.getEvs()
Returns a unique set ofEvInput
instances.getEvs
(Set<NodeInput> nodes, Set<OperatorInput> operators, Set<EvTypeInput> types) Returns a set ofEvInput
instances.Returns a unique set ofFixedFeedInInput
instances.getFixedFeedIns
(Set<NodeInput> nodes, Set<OperatorInput> operators) Returns a set ofFixedFeedInInput
instances.Returns a unique set ofHpInput
instances.getHeatPumps
(Set<NodeInput> nodes, Set<OperatorInput> operators, Set<HpTypeInput> types, Set<ThermalBusInput> thermalBuses) Returns a set ofHpInput
instances.getLoads()
Returns a unique set ofLoadInput
instances.getLoads
(Set<NodeInput> nodes, Set<OperatorInput> operators) Returns a set ofLoadInput
instances.Returns a unique set ofPvInput
instances.getPvPlants
(Set<NodeInput> nodes, Set<OperatorInput> operators) Returns a set ofPvInput
instances.Returns a unique set ofStorageInput
instances.getStorages
(Set<NodeInput> nodes, Set<OperatorInput> operators, Set<StorageTypeInput> types) Returns a set ofStorageInput
instances.Should return either a consistent instance ofSystemParticipants
wrapped inOptional
or an emptyOptional
.Returns a unique set ofWecInput
instances.getWecPlants
(Set<NodeInput> nodes, Set<OperatorInput> operators, Set<WecTypeInput> types) Returns a set ofWecInput
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
-
CsvSystemParticipantSource
public CsvSystemParticipantSource(String csvSep, String participantsFolderPath, FileNamingStrategy fileNamingStrategy, TypeSource typeSource, ThermalSource thermalSource, RawGridSource rawGridSource)
-
-
Method Details
-
getSystemParticipants
Should return either a consistent instance ofSystemParticipants
wrapped inOptional
or an emptyOptional
. The decision to useOptional
instead of returning theSystemParticipants
instance directly is motivated by the fact, that aSystemParticipants
is a container instance that depends on several other entities. Without being complete, it is useless for further processing.Hence, whenever at least one entity
SystemParticipants
depends on cannot be provided,Optional.empty()
should be returned and extensive logging should provide enough information to debug the error and fix the persistent data that has been failed to processed.Furthermore, it is expected, that the specific implementation of this method ensures not only the completeness of the resulting
SystemParticipants
instance, but also its validity e.g. in the sense that not duplicate UUIDs exist within all entities contained in the returning instance.- Specified by:
getSystemParticipants
in interfaceSystemParticipantSource
- Returns:
- either a valid, complete
SystemParticipants
optional orOptional.empty()
-
getFixedFeedIns
Returns a unique set ofFixedFeedInInput
instances.This set has to be unique in the sense of object uniqueness but also in the sense of
UUID
uniqueness of the providedFixedFeedInInput
which has to be checked manually, asFixedFeedInInput.equals(Object)
is NOT restricted on the uuid ofFixedFeedInInput
.- Specified by:
getFixedFeedIns
in interfaceSystemParticipantSource
- Returns:
- a set of object and uuid unique
FixedFeedInInput
entities
-
getFixedFeedIns
Returns a set ofFixedFeedInInput
instances. This set has to be unique in the sense of object uniqueness but also in the sense ofUUID
uniqueness of the providedFixedFeedInInput
which has to be checked manually, asFixedFeedInInput.equals(Object)
is NOT restricted on the uuid ofFixedFeedInInput
.In contrast to
SystemParticipantSource.getFixedFeedIns()
this interface provides the ability to pass in an already existing set ofNodeInput
andOperatorInput
entities, theFixedFeedInInput
instances depend on. Doing so, already loaded nodes can be recycled to improve performance and prevent unnecessary loading operations.If something fails during the creation process it's up to the concrete implementation of an empty set or a set with all entities that has been able to be build is returned.
If the set of
NodeInput
entities is not exhaustive for all availableFixedFeedInInput
entities (e.g. aNodeInput
entity is missing) or if an error during the building process occurs, the entity that misses something will be skipped (which can be seen as a filtering functionality), but all entities that are able to be built will be returned anyway and the elements that couldn't have been built are logged.If the set with
OperatorInput
is not exhaustive, the corresponding operator is set toOperatorInput.NO_OPERATOR_ASSIGNED
- Specified by:
getFixedFeedIns
in interfaceSystemParticipantSource
- Parameters:
nodes
- a set of object and uuid uniqueNodeInput
entitiesoperators
- a set of object and uuid uniqueOperatorInput
that should be used for the returning instances- Returns:
- a set of object and uuid unique
FixedFeedInInput
entities
-
getPvPlants
Returns a unique set ofPvInput
instances.This set has to be unique in the sense of object uniqueness but also in the sense of
UUID
uniqueness of the providedPvInput
which has to be checked manually, asPvInput.equals(Object)
is NOT restricted on the uuid ofPvInput
.- Specified by:
getPvPlants
in interfaceSystemParticipantSource
- Returns:
- a set of object and uuid unique
PvInput
entities
-
getPvPlants
Returns a set ofPvInput
instances. This set has to be unique in the sense of object uniqueness but also in the sense ofUUID
uniqueness of the providedPvInput
which has to be checked manually, asPvInput.equals(Object)
is NOT restricted on the uuid ofPvInput
.In contrast to
SystemParticipantSource.getPvPlants()
this interface provides the ability to pass in an already existing set ofNodeInput
andOperatorInput
entities, thePvInput
instances depend on. Doing so, already loaded nodes can be recycled to improve performance and prevent unnecessary loading operations.If something fails during the creation process it's up to the concrete implementation of an empty set or a set with all entities that has been able to be build is returned.
If the set of
NodeInput
entities is not exhaustive for all availablePvInput
entities (e.g. aNodeInput
entity is missing) or if an error during the building process occurs, the entity that misses something will be skipped (which can be seen as a filtering functionality), but all entities that are able to be built will be returned anyway and the elements that couldn't have been built are logged.If the set with
OperatorInput
is not exhaustive, the corresponding operator is set toOperatorInput.NO_OPERATOR_ASSIGNED
- Specified by:
getPvPlants
in interfaceSystemParticipantSource
- Parameters:
nodes
- a set of object and uuid uniqueNodeInput
entitiesoperators
- a set of object and uuid uniqueOperatorInput
that should be used for the returning instances- Returns:
- a set of object and uuid unique
PvInput
entities
-
getLoads
Returns a unique set ofLoadInput
instances.This set has to be unique in the sense of object uniqueness but also in the sense of
UUID
uniqueness of the providedLoadInput
which has to be checked manually, asLoadInput.equals(Object)
is NOT restricted on the uuid ofLoadInput
.- Specified by:
getLoads
in interfaceSystemParticipantSource
- Returns:
- a set of object and uuid unique
LoadInput
entities
-
getLoads
Returns a set ofLoadInput
instances. This set has to be unique in the sense of object uniqueness but also in the sense ofUUID
uniqueness of the providedLoadInput
which has to be checked manually, asLoadInput.equals(Object)
is NOT restricted on the uuid ofLoadInput
.In contrast to
SystemParticipantSource.getLoads()
this interface provides the ability to pass in an already existing set ofNodeInput
andOperatorInput
entities, theLoadInput
instances depend on. Doing so, already loaded nodes can be recycled to improve performance and prevent unnecessary loading operations.If something fails during the creation process it's up to the concrete implementation of an empty set or a set with all entities that has been able to be build is returned.
If the set of
NodeInput
entities is not exhaustive for all availableLoadInput
entities (e.g. aNodeInput
entity is missing) or if an error during the building process occurs, the entity that misses something will be skipped (which can be seen as a filtering functionality), but all entities that are able to be built will be returned anyway and the elements that couldn't have been built are logged.If the set with
OperatorInput
is not exhaustive, the corresponding operator is set toOperatorInput.NO_OPERATOR_ASSIGNED
- Specified by:
getLoads
in interfaceSystemParticipantSource
- Parameters:
nodes
- a set of object and uuid uniqueNodeInput
entitiesoperators
- a set of object and uuid uniqueOperatorInput
that should be used for the returning instances- Returns:
- a set of object and uuid unique
LoadInput
entities
-
getEvCS
Returns a unique set ofEvcsInput
instances.This set has to be unique in the sense of object uniqueness but also in the sense of
UUID
uniqueness of the providedEvcsInput
which has to be checked manually, asEvcsInput.equals(Object)
is NOT restricted on the uuid ofEvcsInput
.- Specified by:
getEvCS
in interfaceSystemParticipantSource
- Returns:
- a set of object and uuid unique
EvcsInput
entities
-
getEvCS
Returns a set ofEvcsInput
instances. This set has to be unique in the sense of object uniqueness but also in the sense ofUUID
uniqueness of the providedEvcsInput
which has to be checked manually, asEvcsInput.equals(Object)
is NOT restricted on the uuid ofEvcsInput
.In contrast to
SystemParticipantSource.getEvCS()
this interface provides the ability to pass in an already existing set ofNodeInput
andOperatorInput
entities, theEvcsInput
instances depend on. Doing so, already loaded nodes can be recycled to improve performance and prevent unnecessary loading operations.If something fails during the creation process it's up to the concrete implementation of an empty set or a set with all entities that has been able to be build is returned.
If the set of
NodeInput
entities is not exhaustive for all availableEvcsInput
entities (e.g. aNodeInput
entity is missing) or if an error during the building process occurs, the entity that misses something will be skipped (which can be seen as a filtering functionality), but all entities that are able to be built will be returned anyway and the elements that couldn't have been built are logged.If the set with
OperatorInput
is not exhaustive, the corresponding operator is set toOperatorInput.NO_OPERATOR_ASSIGNED
- Specified by:
getEvCS
in interfaceSystemParticipantSource
- Parameters:
nodes
- a set of object and uuid uniqueNodeInput
entitiesoperators
- a set of object and uuid uniqueOperatorInput
that should be used for the returning instances- Returns:
- a set of object and uuid unique
EvcsInput
entities
-
getBmPlants
Returns a unique set ofBmInput
instances.This set has to be unique in the sense of object uniqueness but also in the sense of
UUID
uniqueness of the providedBmInput
which has to be checked manually, asBmInput.equals(Object)
is NOT restricted on the uuid ofBmInput
.- Specified by:
getBmPlants
in interfaceSystemParticipantSource
- Returns:
- a set of object and uuid unique
BmInput
entities
-
getBmPlants
public Set<BmInput> getBmPlants(Set<NodeInput> nodes, Set<OperatorInput> operators, Set<BmTypeInput> types) Returns a set ofBmInput
instances. This set has to be unique in the sense of object uniqueness but also in the sense ofUUID
uniqueness of the providedBmInput
which has to be checked manually, asBmInput.equals(Object)
is NOT restricted on the uuid ofBmInput
.In contrast to
SystemParticipantSource.getBmPlants()
this interface provides the ability to pass in an already existing set ofNodeInput
,BmTypeInput
andOperatorInput
entities, theBmInput
instances depend on. Doing so, already loaded nodes can be recycled to improve performance and prevent unnecessary loading operations.If something fails during the creation process it's up to the concrete implementation of an empty set or a set with all entities that has been able to be build is returned.
If one of the sets of
NodeInput
orBmTypeInput
entities is not exhaustive for all availableBmInput
entities (e.g. aNodeInput
orBmTypeInput
entity is missing) or if an error during the building process occurs, the entity that misses something will be skipped (which can be seen as a filtering functionality) but all entities that are able to be built will be returned anyway and the elements that couldn't have been built are logged.If the set with
OperatorInput
is not exhaustive, the corresponding operator is set toOperatorInput.NO_OPERATOR_ASSIGNED
- Specified by:
getBmPlants
in interfaceSystemParticipantSource
- Parameters:
nodes
- a set of object and uuid uniqueNodeInput
entitiesoperators
- a set of object and uuid uniqueOperatorInput
that should be used for the returning instancestypes
- a set of object and uuid uniqueBmTypeInput
entities- Returns:
- a set of object and uuid unique
BmInput
entities
-
getStorages
Returns a unique set ofStorageInput
instances.This set has to be unique in the sense of object uniqueness but also in the sense of
UUID
uniqueness of the providedStorageInput
which has to be checked manually, asStorageInput.equals(Object)
is NOT restricted on the uuid ofStorageInput
.- Specified by:
getStorages
in interfaceSystemParticipantSource
- Returns:
- a set of object and uuid unique
StorageInput
entities
-
getStorages
public Set<StorageInput> getStorages(Set<NodeInput> nodes, Set<OperatorInput> operators, Set<StorageTypeInput> types) Returns a set ofStorageInput
instances. This set has to be unique in the sense of object uniqueness but also in the sense ofUUID
uniqueness of the providedStorageInput
which has to be checked manually, asStorageInput.equals(Object)
is NOT restricted on the uuid ofStorageInput
.In contrast to
SystemParticipantSource.getStorages()
this interface provides the ability to pass in an already existing set ofNodeInput
,StorageTypeInput
andOperatorInput
entities, theStorageInput
instances depend on. Doing so, already loaded nodes can be recycled to improve performance and prevent unnecessary loading operations.If something fails during the creation process it's up to the concrete implementation of an empty set or a set with all entities that has been able to be build is returned.
If one of the sets of
NodeInput
orStorageTypeInput
entities is not exhaustive for all availableStorageInput
entities (e.g. aNodeInput
orStorageTypeInput
entity is missing) or if an error during the building process occurs, the entity that misses something will be skipped (which can be seen as a filtering functionality) but all entities that are able to be built will be returned anyway and the elements that couldn't have been built are logged.If the set with
OperatorInput
is not exhaustive, the corresponding operator is set toOperatorInput.NO_OPERATOR_ASSIGNED
- Specified by:
getStorages
in interfaceSystemParticipantSource
- Parameters:
nodes
- a set of object and uuid uniqueNodeInput
entitiesoperators
- a set of object and uuid uniqueOperatorInput
that should be used for the returning instancestypes
- a set of object and uuid uniqueStorageTypeInput
entities- Returns:
- a set of object and uuid unique
StorageInput
entities
-
getWecPlants
Returns a unique set ofWecInput
instances.This set has to be unique in the sense of object uniqueness but also in the sense of
UUID
uniqueness of the providedWecInput
which has to be checked manually, asWecInput.equals(Object)
is NOT restricted on the uuid ofWecInput
.- Specified by:
getWecPlants
in interfaceSystemParticipantSource
- Returns:
- a set of object and uuid unique
WecInput
entities
-
getWecPlants
public Set<WecInput> getWecPlants(Set<NodeInput> nodes, Set<OperatorInput> operators, Set<WecTypeInput> types) Returns a set ofWecInput
instances. This set has to be unique in the sense of object uniqueness but also in the sense ofUUID
uniqueness of the providedWecInput
which has to be checked manually, asWecInput.equals(Object)
is NOT restricted on the uuid ofWecInput
.In contrast to
SystemParticipantSource.getWecPlants()
this interface provides the ability to pass in an already existing set ofNodeInput
,WecTypeInput
andOperatorInput
entities, theWecInput
instances depend on. Doing so, already loaded nodes can be recycled to improve performance and prevent unnecessary loading operations.If something fails during the creation process it's up to the concrete implementation of an empty set or a set with all entities that has been able to be build is returned.
If one of the sets of
NodeInput
orWecTypeInput
entities is not exhaustive for all availableWecInput
entities (e.g. aNodeInput
orWecTypeInput
entity is missing) or if an error during the building process occurs, the entity that misses something will be skipped (which can be seen as a filtering functionality) but all entities that are able to be built will be returned anyway and the elements that couldn't have been built are logged.If the set with
OperatorInput
is not exhaustive, the corresponding operator is set toOperatorInput.NO_OPERATOR_ASSIGNED
- Specified by:
getWecPlants
in interfaceSystemParticipantSource
- Parameters:
nodes
- a set of object and uuid uniqueNodeInput
entitiesoperators
- a set of object and uuid uniqueOperatorInput
that should be used for the returning instancestypes
- a set of object and uuid uniqueWecTypeInput
entities- Returns:
- a set of object and uuid unique
WecInput
entities
-
getEvs
Returns a unique set ofEvInput
instances.This set has to be unique in the sense of object uniqueness but also in the sense of
UUID
uniqueness of the providedEvInput
which has to be checked manually, asEvInput.equals(Object)
is NOT restricted on the uuid ofEvInput
.- Specified by:
getEvs
in interfaceSystemParticipantSource
- Returns:
- a set of object and uuid unique
EvInput
entities
-
getEvs
public Set<EvInput> getEvs(Set<NodeInput> nodes, Set<OperatorInput> operators, Set<EvTypeInput> types) Returns a set ofEvInput
instances. This set has to be unique in the sense of object uniqueness but also in the sense ofUUID
uniqueness of the providedEvInput
which has to be checked manually, asEvInput.equals(Object)
is NOT restricted on the uuid ofEvInput
.In contrast to
SystemParticipantSource.getEvs()
this interface provides the ability to pass in an already existing set ofNodeInput
,EvTypeInput
andOperatorInput
entities, theEvInput
instances depend on. Doing so, already loaded nodes can be recycled to improve performance and prevent unnecessary loading operations.If something fails during the creation process it's up to the concrete implementation of an empty set or a set with all entities that has been able to be build is returned.
If one of the sets of
NodeInput
orEvTypeInput
entities is not exhaustive for all availableEvInput
entities (e.g. aNodeInput
orEvTypeInput
entity is missing) or if an error during the building process occurs, the entity that misses something will be skipped (which can be seen as a filtering functionality) but all entities that are able to be built will be returned anyway and the elements that couldn't have been built are logged.If the set with
OperatorInput
is not exhaustive, the corresponding operator is set toOperatorInput.NO_OPERATOR_ASSIGNED
- Specified by:
getEvs
in interfaceSystemParticipantSource
- Parameters:
nodes
- a set of object and uuid uniqueNodeInput
entitiesoperators
- a set of object and uuid uniqueOperatorInput
that should be used for the returning instancestypes
- a set of object and uuid uniqueEvTypeInput
entities- Returns:
- a set of object and uuid unique
EvInput
entities
-
getChpPlants
Returns a unique set ofChpInput
instances.This set has to be unique in the sense of object uniqueness but also in the sense of
UUID
uniqueness of the providedChpInput
which has to be checked manually, asChpInput.equals(Object)
is NOT restricted on the uuid ofChpInput
.- Specified by:
getChpPlants
in interfaceSystemParticipantSource
- Returns:
- a set of object and uuid unique
ChpInput
entities
-
getChpPlants
public Set<ChpInput> getChpPlants(Set<NodeInput> nodes, Set<OperatorInput> operators, Set<ChpTypeInput> types, Set<ThermalBusInput> thermalBuses, Set<ThermalStorageInput> thermalStorages) Returns a set ofChpInput
instances. This set has to be unique in the sense of object uniqueness but also in the sense ofUUID
uniqueness of the providedChpInput
which has to be checked manually, asChpInput.equals(Object)
is NOT restricted on the uuid ofChpInput
.In contrast to
SystemParticipantSource.getChpPlants()
this interface provides the ability to pass in an already existing set ofNodeInput
,ChpTypeInput
,ThermalBusInput
,ThermalStorageInput
andOperatorInput
entities, theChpInput
instances depend on. Doing so, already loaded nodes can be recycled to improve performance and prevent unnecessary loading operations.If something fails during the creation process it's up to the concrete implementation of an empty set or a set with all entities that has been able to be build is returned.
If one of the sets of
NodeInput
,ThermalBusInput
,ThermalStorageInput
orChpTypeInput
entities is not exhaustive for all availableChpInput
entities (e.g. aNodeInput
orChpTypeInput
entity is missing) or if an error during the building process occurs, the entity that misses something will be skipped (which can be seen as a filtering functionality) but all entities that are able to be built will be returned anyway and the elements that couldn't have been built are logged.If the set with
OperatorInput
is not exhaustive, the corresponding operator is set toOperatorInput.NO_OPERATOR_ASSIGNED
- Specified by:
getChpPlants
in interfaceSystemParticipantSource
- Parameters:
nodes
- a set of object and uuid uniqueNodeInput
entitiesoperators
- a set of object and uuid uniqueOperatorInput
that should be used for the returning instancestypes
- a set of object and uuid uniqueChpTypeInput
entitiesthermalBuses
- a set of object and uuid uniqueThermalBusInput
entitiesthermalStorages
- a set of object and uuid uniqueThermalStorageInput
entities- Returns:
- a set of object and uuid unique
ChpInput
entities
-
getHeatPumps
Returns a unique set ofHpInput
instances.This set has to be unique in the sense of object uniqueness but also in the sense of
UUID
uniqueness of the providedHpInput
which has to be checked manually, asHpInput.equals(Object)
is NOT restricted on the uuid ofHpInput
.- Specified by:
getHeatPumps
in interfaceSystemParticipantSource
- Returns:
- a set of object and uuid unique
HpInput
entities
-
getHeatPumps
public Set<HpInput> getHeatPumps(Set<NodeInput> nodes, Set<OperatorInput> operators, Set<HpTypeInput> types, Set<ThermalBusInput> thermalBuses) Returns a set ofHpInput
instances. This set has to be unique in the sense of object uniqueness but also in the sense ofUUID
uniqueness of the providedHpInput
which has to be checked manually, asHpInput.equals(Object)
is NOT restricted on the uuid ofHpInput
.In contrast to
SystemParticipantSource.getHeatPumps()
this interface provides the ability to pass in an already existing set ofNodeInput
,HpTypeInput
,ThermalBusInput
,ThermalStorageInput
andOperatorInput
entities, theHpInput
instances depend on. Doing so, already loaded nodes can be recycled to improve performance and prevent unnecessary loading operations.If something fails during the creation process it's up to the concrete implementation of an empty set or a set with all entities that has been able to be build is returned.
If one of the sets of
NodeInput
,ThermalBusInput
orHpTypeInput
entities is not exhaustive for all availableHpInput
entities (e.g. aNodeInput
orHpTypeInput
entity is missing) or if an error during the building process occurs, the entity that misses something will be skipped (which can be seen as a filtering functionality) but all entities that are able to be built will be returned anyway and the elements that couldn't have been built are logged.If the set with
OperatorInput
is not exhaustive, the corresponding operator is set toOperatorInput.NO_OPERATOR_ASSIGNED
- Specified by:
getHeatPumps
in interfaceSystemParticipantSource
- Parameters:
nodes
- a set of object and uuid uniqueNodeInput
entitiesoperators
- a set of object and uuid uniqueOperatorInput
that should be used for the returning instancestypes
- a set of object and uuid uniqueHpTypeInput
entitiesthermalBuses
- a set of object and uuid uniqueThermalBusInput
entities- Returns:
- a set of object and uuid unique
HpInput
entities
-
getEmSystems
Description copied from interface:SystemParticipantSource
Returns a unique set ofEmInput
instances.This set has to be unique in the sense of object uniqueness but also in the sense of
UUID
uniqueness of the providedEmInput
which has to be checked manually, asEmInput.equals(Object)
is NOT restricted on the uuid ofEmInput
.- Specified by:
getEmSystems
in interfaceSystemParticipantSource
- Returns:
- a set of object and uuid unique
EmInput
entities
-
getEmSystems
This set has to be unique in the sense of object uniqueness but also in the sense ofUUID
uniqueness of the providedEmInput
which has to be checked manually, asEmInput.equals(Object)
is NOT restricted on the uuid ofEmInput
.In contrast to
SystemParticipantSource.getHeatPumps()
this interface provides the ability to pass in an already existing set ofNodeInput
andOperatorInput
entities, theEmInput
instances depend on. Doing so, already loaded nodes can be recycled to improve performance and prevent unnecessary loading operations.If something fails during the creation process it's up to the concrete implementation of an empty set or a set with all entities that has been able to be build is returned.
If the set of
NodeInput
entities is not exhaustive for all availableLoadInput
entities (e.g. aNodeInput
entity is missing) or if an error during the building process occurs, the entity that misses something will be skipped (which can be seen as a filtering functionality), but all entities that are able to be built will be returned anyway and the elements that couldn't have been built are logged.If the set with
OperatorInput
is not exhaustive, the corresponding operator is set toOperatorInput.NO_OPERATOR_ASSIGNED
- Specified by:
getEmSystems
in interfaceSystemParticipantSource
- Parameters:
nodes
- a set of object and uuid uniqueNodeInput
entitiesoperators
- a set of object and uuid uniqueOperatorInput
that should be used for the returning instances- Returns:
- a set of object and uuid unique
EmInput
entities
-