Package communications.message
Class AmountAtTime
- java.lang.Object
-
- de.dlr.gitlab.fame.communication.message.DataItem
-
- communications.message.AmountAtTime
-
- Direct Known Subclasses:
Co2Cost
,FuelBid
,FuelCost
,YieldPotential
public class AmountAtTime extends de.dlr.gitlab.fame.communication.message.DataItem
Specifies an arbitrary amount at a specific time- Author:
- Christoph Schimeczek, Marc Deissenroth
-
-
Constructor Summary
Constructors Constructor Description AmountAtTime(de.dlr.gitlab.fame.protobuf.Agent.ProtoDataItem proto)
Mandatory for deserialisation ofDataItem
sAmountAtTime(de.dlr.gitlab.fame.time.TimeStamp timeStamp, double amount)
Creates a newAmountAtTime
message
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
fillDataFields(de.dlr.gitlab.fame.protobuf.Agent.ProtoDataItem.Builder builder)
-
-
-
Constructor Detail
-
AmountAtTime
public AmountAtTime(de.dlr.gitlab.fame.time.TimeStamp timeStamp, double amount)
Creates a newAmountAtTime
message- Parameters:
timeStamp
- to which the specified amount is associated withamount
- value associated with the given timeStamp
-
AmountAtTime
public AmountAtTime(de.dlr.gitlab.fame.protobuf.Agent.ProtoDataItem proto)
Mandatory for deserialisation ofDataItem
s- Parameters:
proto
- protobuf representation
-
-