Package communications.portable
Class MarginalsAtTime
- java.lang.Object
-
- communications.portable.MarginalsAtTime
-
-
Constructor Summary
Constructors Constructor Description MarginalsAtTime()
required forPortable
sMarginalsAtTime(long producerUuid, de.dlr.gitlab.fame.time.TimeStamp deliveryTime, Marginal... marginals)
Constructs newMarginalsAtTime
DataItem
MarginalsAtTime(long producerUuid, de.dlr.gitlab.fame.time.TimeStamp deliveryTime, List<Marginal> marginals)
Constructs newMarginalsAtTime
DataItem
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addComponentsTo(de.dlr.gitlab.fame.communication.transfer.ComponentCollector collector)
de.dlr.gitlab.fame.time.TimeStamp
getDeliveryTime()
List<Marginal>
getMarginals()
long
getProducerUuid()
double
getTotalPowerPotentialInMW()
void
populate(de.dlr.gitlab.fame.communication.transfer.ComponentProvider provider)
-
-
-
Constructor Detail
-
MarginalsAtTime
public MarginalsAtTime()
required forPortable
s
-
MarginalsAtTime
public MarginalsAtTime(long producerUuid, de.dlr.gitlab.fame.time.TimeStamp deliveryTime, List<Marginal> marginals)
Constructs newMarginalsAtTime
DataItem
- Parameters:
producerUuid
- unique ID of power production agentdeliveryTime
- time at which the power production can be offeredmarginals
- any number ofMarginal
s associated with the given producer and at given time
-
MarginalsAtTime
public MarginalsAtTime(long producerUuid, de.dlr.gitlab.fame.time.TimeStamp deliveryTime, Marginal... marginals)
Constructs newMarginalsAtTime
DataItem
- Parameters:
producerUuid
- unique ID of power production agentdeliveryTime
- time at which the power production can be offeredmarginals
- any number ofMarginal
s associated with the given producer and at given time
-
-
Method Detail
-
addComponentsTo
public void addComponentsTo(de.dlr.gitlab.fame.communication.transfer.ComponentCollector collector)
- Specified by:
addComponentsTo
in interfacede.dlr.gitlab.fame.communication.transfer.Portable
-
populate
public void populate(de.dlr.gitlab.fame.communication.transfer.ComponentProvider provider)
- Specified by:
populate
in interfacede.dlr.gitlab.fame.communication.transfer.Portable
-
getProducerUuid
public long getProducerUuid()
- Returns:
- UUID of power plant associated with the marginals herein
-
getDeliveryTime
public de.dlr.gitlab.fame.time.TimeStamp getDeliveryTime()
- Returns:
- the begin of the delivery interval
-
getMarginals
public List<Marginal> getMarginals()
- Returns:
- marginals of electricity production associated with its producer
-
getTotalPowerPotentialInMW
public double getTotalPowerPotentialInMW()
- Returns:
- sum of all power potentials in the marginals
-
-