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 ofBmInputinstances.getBmPlants(Set<NodeInput> nodes, Set<OperatorInput> operators, Set<BmTypeInput> types) Returns a set ofBmInputinstances.Returns a unique set ofChpInputinstances.getChpPlants(Set<NodeInput> nodes, Set<OperatorInput> operators, Set<ChpTypeInput> types, Set<ThermalBusInput> thermalBuses, Set<ThermalStorageInput> thermalStorages) Returns a set ofChpInputinstances.Returns a unique set ofEmInputinstances.getEmSystems(Set<NodeInput> nodes, Set<OperatorInput> operators) This set has to be unique in the sense of object uniqueness but also in the sense ofUUIDuniqueness of the providedEmInputwhich has to be checked manually, asEmInput.equals(Object)is NOT restricted on the uuid ofEmInput.getEvCS()Returns a unique set ofEvcsInputinstances.getEvCS(Set<NodeInput> nodes, Set<OperatorInput> operators) Returns a set ofEvcsInputinstances.getEvs()Returns a unique set ofEvInputinstances.getEvs(Set<NodeInput> nodes, Set<OperatorInput> operators, Set<EvTypeInput> types) Returns a set ofEvInputinstances.Returns a unique set ofFixedFeedInInputinstances.getFixedFeedIns(Set<NodeInput> nodes, Set<OperatorInput> operators) Returns a set ofFixedFeedInInputinstances.Returns a unique set ofHpInputinstances.getHeatPumps(Set<NodeInput> nodes, Set<OperatorInput> operators, Set<HpTypeInput> types, Set<ThermalBusInput> thermalBuses) Returns a set ofHpInputinstances.getLoads()Returns a unique set ofLoadInputinstances.getLoads(Set<NodeInput> nodes, Set<OperatorInput> operators) Returns a set ofLoadInputinstances.Returns a unique set ofPvInputinstances.getPvPlants(Set<NodeInput> nodes, Set<OperatorInput> operators) Returns a set ofPvInputinstances.Returns a unique set ofStorageInputinstances.getStorages(Set<NodeInput> nodes, Set<OperatorInput> operators, Set<StorageTypeInput> types) Returns a set ofStorageInputinstances.Should return either a consistent instance ofSystemParticipantswrapped inOptionalor an emptyOptional.Returns a unique set ofWecInputinstances.getWecPlants(Set<NodeInput> nodes, Set<OperatorInput> operators, Set<WecTypeInput> types) Returns a set ofWecInputinstances.
-
Method Details
-
getSystemParticipants
Optional<SystemParticipants> getSystemParticipants()Should return either a consistent instance ofSystemParticipantswrapped inOptionalor an emptyOptional. The decision to useOptionalinstead of returning theSystemParticipantsinstance directly is motivated by the fact, that aSystemParticipantsis a container instance that depends on several other entities. Without being complete, it is useless for further processing.Hence, whenever at least one entity
SystemParticipantsdepends 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
SystemParticipantsinstance, 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
SystemParticipantsoptional orOptional.empty()
-
getFixedFeedIns
Set<FixedFeedInInput> getFixedFeedIns()Returns a unique set ofFixedFeedInInputinstances.This set has to be unique in the sense of object uniqueness but also in the sense of
UUIDuniqueness of the providedFixedFeedInInputwhich has to be checked manually, asFixedFeedInInput.equals(Object)is NOT restricted on the uuid ofFixedFeedInInput.- Returns:
- a set of object and uuid unique
FixedFeedInInputentities
-
getFixedFeedIns
Returns a set ofFixedFeedInInputinstances. This set has to be unique in the sense of object uniqueness but also in the sense ofUUIDuniqueness of the providedFixedFeedInInputwhich 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 ofNodeInputandOperatorInputentities, theFixedFeedInInputinstances 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 uniqueOperatorInputthat should be used for the returning instancesnodes- a set of object and uuid uniqueNodeInputentities- Returns:
- a set of object and uuid unique
FixedFeedInInputentities
-
getPvPlants
Returns a unique set ofPvInputinstances.This set has to be unique in the sense of object uniqueness but also in the sense of
UUIDuniqueness of the providedPvInputwhich has to be checked manually, asPvInput.equals(Object)is NOT restricted on the uuid ofPvInput.- Returns:
- a set of object and uuid unique
PvInputentities
-
getPvPlants
Returns a set ofPvInputinstances. This set has to be unique in the sense of object uniqueness but also in the sense ofUUIDuniqueness of the providedPvInputwhich 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 ofNodeInputandOperatorInputentities, thePvInputinstances 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 uniqueOperatorInputthat should be used for the returning instancesnodes- a set of object and uuid uniqueNodeInputentities- Returns:
- a set of object and uuid unique
PvInputentities
-
getLoads
Returns a unique set ofLoadInputinstances.This set has to be unique in the sense of object uniqueness but also in the sense of
UUIDuniqueness of the providedLoadInputwhich has to be checked manually, asLoadInput.equals(Object)is NOT restricted on the uuid ofLoadInput.- Returns:
- a set of object and uuid unique
LoadInputentities
-
getLoads
Returns a set ofLoadInputinstances. This set has to be unique in the sense of object uniqueness but also in the sense ofUUIDuniqueness of the providedLoadInputwhich 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 ofNodeInputandOperatorInputentities, theLoadInputinstances 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 uniqueOperatorInputthat should be used for the returning instancesnodes- a set of object and uuid uniqueNodeInputentities- Returns:
- a set of object and uuid unique
LoadInputentities
-
getEvCS
Returns a unique set ofEvcsInputinstances.This set has to be unique in the sense of object uniqueness but also in the sense of
UUIDuniqueness of the providedEvcsInputwhich has to be checked manually, asEvcsInput.equals(Object)is NOT restricted on the uuid ofEvcsInput.- Returns:
- a set of object and uuid unique
EvcsInputentities
-
getEvCS
Returns a set ofEvcsInputinstances. This set has to be unique in the sense of object uniqueness but also in the sense ofUUIDuniqueness of the providedEvcsInputwhich 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 ofNodeInputandOperatorInputentities, theEvcsInputinstances 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 uniqueOperatorInputthat should be used for the returning instancesnodes- a set of object and uuid uniqueNodeInputentities- Returns:
- a set of object and uuid unique
EvcsInputentities
-
getBmPlants
Returns a unique set ofBmInputinstances.This set has to be unique in the sense of object uniqueness but also in the sense of
UUIDuniqueness of the providedBmInputwhich has to be checked manually, asBmInput.equals(Object)is NOT restricted on the uuid ofBmInput.- Returns:
- a set of object and uuid unique
BmInputentities
-
getBmPlants
Set<BmInput> getBmPlants(Set<NodeInput> nodes, Set<OperatorInput> operators, Set<BmTypeInput> types) Returns a set ofBmInputinstances. This set has to be unique in the sense of object uniqueness but also in the sense ofUUIDuniqueness of the providedBmInputwhich 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,BmTypeInputandOperatorInputentities, theBmInputinstances 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 uniqueOperatorInputthat should be used for the returning instancesnodes- a set of object and uuid uniqueNodeInputentitiestypes- a set of object and uuid uniqueBmTypeInputentities- Returns:
- a set of object and uuid unique
BmInputentities
-
getStorages
Set<StorageInput> getStorages()Returns a unique set ofStorageInputinstances.This set has to be unique in the sense of object uniqueness but also in the sense of
UUIDuniqueness of the providedStorageInputwhich has to be checked manually, asStorageInput.equals(Object)is NOT restricted on the uuid ofStorageInput.- Returns:
- a set of object and uuid unique
StorageInputentities
-
getStorages
Set<StorageInput> getStorages(Set<NodeInput> nodes, Set<OperatorInput> operators, Set<StorageTypeInput> types) Returns a set ofStorageInputinstances. This set has to be unique in the sense of object uniqueness but also in the sense ofUUIDuniqueness of the providedStorageInputwhich 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,StorageTypeInputandOperatorInputentities, theStorageInputinstances 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 uniqueOperatorInputthat should be used for the returning instancesnodes- a set of object and uuid uniqueNodeInputentitiestypes- a set of object and uuid uniqueStorageTypeInputentities- Returns:
- a set of object and uuid unique
StorageInputentities
-
getWecPlants
Returns a unique set ofWecInputinstances.This set has to be unique in the sense of object uniqueness but also in the sense of
UUIDuniqueness of the providedWecInputwhich has to be checked manually, asWecInput.equals(Object)is NOT restricted on the uuid ofWecInput.- Returns:
- a set of object and uuid unique
WecInputentities
-
getWecPlants
Set<WecInput> getWecPlants(Set<NodeInput> nodes, Set<OperatorInput> operators, Set<WecTypeInput> types) Returns a set ofWecInputinstances. This set has to be unique in the sense of object uniqueness but also in the sense ofUUIDuniqueness of the providedWecInputwhich 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,WecTypeInputandOperatorInputentities, theWecInputinstances 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 uniqueOperatorInputthat should be used for the returning instancesnodes- a set of object and uuid uniqueNodeInputentitiestypes- a set of object and uuid uniqueWecTypeInputentities- Returns:
- a set of object and uuid unique
WecInputentities
-
getEvs
Returns a unique set ofEvInputinstances.This set has to be unique in the sense of object uniqueness but also in the sense of
UUIDuniqueness of the providedEvInputwhich has to be checked manually, asEvInput.equals(Object)is NOT restricted on the uuid ofEvInput.- Returns:
- a set of object and uuid unique
EvInputentities
-
getEvs
Returns a set ofEvInputinstances. This set has to be unique in the sense of object uniqueness but also in the sense ofUUIDuniqueness of the providedEvInputwhich 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,EvTypeInputandOperatorInputentities, theEvInputinstances 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 uniqueOperatorInputthat should be used for the returning instancesnodes- a set of object and uuid uniqueNodeInputentitiestypes- a set of object and uuid uniqueEvTypeInputentities- Returns:
- a set of object and uuid unique
EvInputentities
-
getChpPlants
Returns a unique set ofChpInputinstances.This set has to be unique in the sense of object uniqueness but also in the sense of
UUIDuniqueness of the providedChpInputwhich has to be checked manually, asChpInput.equals(Object)is NOT restricted on the uuid ofChpInput.- Returns:
- a set of object and uuid unique
ChpInputentities
-
getChpPlants
Set<ChpInput> getChpPlants(Set<NodeInput> nodes, Set<OperatorInput> operators, Set<ChpTypeInput> types, Set<ThermalBusInput> thermalBuses, Set<ThermalStorageInput> thermalStorages) Returns a set ofChpInputinstances. This set has to be unique in the sense of object uniqueness but also in the sense ofUUIDuniqueness of the providedChpInputwhich 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,ThermalStorageInputandOperatorInputentities, theChpInputinstances 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 uniqueOperatorInputthat should be used for the returning instancesnodes- a set of object and uuid uniqueNodeInputentitiestypes- a set of object and uuid uniqueChpTypeInputentitiesthermalBuses- a set of object and uuid uniqueThermalBusInputentitiesthermalStorages- a set of object and uuid uniqueThermalStorageInputentities- Returns:
- a set of object and uuid unique
ChpInputentities
-
getHeatPumps
Returns a unique set ofHpInputinstances.This set has to be unique in the sense of object uniqueness but also in the sense of
UUIDuniqueness of the providedHpInputwhich has to be checked manually, asHpInput.equals(Object)is NOT restricted on the uuid ofHpInput.- Returns:
- a set of object and uuid unique
HpInputentities
-
getHeatPumps
Set<HpInput> getHeatPumps(Set<NodeInput> nodes, Set<OperatorInput> operators, Set<HpTypeInput> types, Set<ThermalBusInput> thermalBuses) Returns a set ofHpInputinstances. This set has to be unique in the sense of object uniqueness but also in the sense ofUUIDuniqueness of the providedHpInputwhich 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,ThermalStorageInputandOperatorInputentities, theHpInputinstances 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 uniqueOperatorInputthat should be used for the returning instancesnodes- a set of object and uuid uniqueNodeInputentitiestypes- a set of object and uuid uniqueHpTypeInputentitiesthermalBuses- a set of object and uuid uniqueThermalBusInputentities- Returns:
- a set of object and uuid unique
HpInputentities
-
getEmSystems
Returns a unique set ofEmInputinstances.This set has to be unique in the sense of object uniqueness but also in the sense of
UUIDuniqueness of the providedEmInputwhich has to be checked manually, asEmInput.equals(Object)is NOT restricted on the uuid ofEmInput.- Returns:
- a set of object and uuid unique
EmInputentities
-
getEmSystems
This set has to be unique in the sense of object uniqueness but also in the sense ofUUIDuniqueness of the providedEmInputwhich 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 ofNodeInputandOperatorInputentities, theEmInputinstances 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 uniqueOperatorInputthat should be used for the returning instancesnodes- a set of object and uuid uniqueNodeInputentities- Returns:
- a set of object and uuid unique
EmInputentities
-