Interface SystemParticipantSource
- All Superinterfaces:
DataSource
- All Known Implementing Classes:
CsvSystemParticipantSource
SystemParticipantInput
as well as SystemParticipants
container from .csv files.- Since:
- 08.04.20
-
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.
-
Method Details
-
getSystemParticipants
Optional<SystemParticipants> 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.- Returns:
- either a valid, complete
SystemParticipants
optional orOptional.empty()
-
getFixedFeedIns
Set<FixedFeedInInput> 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
.- 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
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.
- Parameters:
operators
- a set of object and uuid uniqueOperatorInput
that should be used for the returning instancesnodes
- a set of object and uuid uniqueNodeInput
entities- 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
.- 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
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.
- Parameters:
operators
- a set of object and uuid uniqueOperatorInput
that should be used for the returning instancesnodes
- a set of object and uuid uniqueNodeInput
entities- 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
.- 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
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.
- Parameters:
operators
- a set of object and uuid uniqueOperatorInput
that should be used for the returning instancesnodes
- a set of object and uuid uniqueNodeInput
entities- 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
.- 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
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.
- Parameters:
operators
- a set of object and uuid uniqueOperatorInput
that should be used for the returning instancesnodes
- a set of object and uuid uniqueNodeInput
entities- 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
.- Returns:
- a set of object and uuid unique
BmInput
entities
-
getBmPlants
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
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.
- Parameters:
operators
- a set of object and uuid uniqueOperatorInput
that should be used for the returning instancesnodes
- a set of object and uuid uniqueNodeInput
entitiestypes
- a set of object and uuid uniqueBmTypeInput
entities- Returns:
- a set of object and uuid unique
BmInput
entities
-
getStorages
Set<StorageInput> 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
.- Returns:
- a set of object and uuid unique
StorageInput
entities
-
getStorages
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
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.
- Parameters:
operators
- a set of object and uuid uniqueOperatorInput
that should be used for the returning instancesnodes
- a set of object and uuid uniqueNodeInput
entitiestypes
- 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
.- Returns:
- a set of object and uuid unique
WecInput
entities
-
getWecPlants
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
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.
- Parameters:
operators
- a set of object and uuid uniqueOperatorInput
that should be used for the returning instancesnodes
- a set of object and uuid uniqueNodeInput
entitiestypes
- 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
.- Returns:
- a set of object and uuid unique
EvInput
entities
-
getEvs
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
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.
- Parameters:
operators
- a set of object and uuid uniqueOperatorInput
that should be used for the returning instancesnodes
- a set of object and uuid uniqueNodeInput
entitiestypes
- 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
.- Returns:
- a set of object and uuid unique
ChpInput
entities
-
getChpPlants
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
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.
- Parameters:
operators
- a set of object and uuid uniqueOperatorInput
that should be used for the returning instancesnodes
- a set of object and uuid uniqueNodeInput
entitiestypes
- 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
.- Returns:
- a set of object and uuid unique
HpInput
entities
-
getHeatPumps
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
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.
- Parameters:
operators
- a set of object and uuid uniqueOperatorInput
that should be used for the returning instancesnodes
- a set of object and uuid uniqueNodeInput
entitiestypes
- 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
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
.- 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
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.
- Parameters:
operators
- a set of object and uuid uniqueOperatorInput
that should be used for the returning instancesnodes
- a set of object and uuid uniqueNodeInput
entities- Returns:
- a set of object and uuid unique
EmInput
entities
-