Package communications.message
Class AmountAtTime
- java.lang.Object
-
- de.dlr.gitlab.fame.communication.message.DataItem
-
- communications.message.PointInTime
-
- communications.message.AmountAtTime
-
- Direct Known Subclasses:
Co2Cost
,FuelBid
,FuelCost
,YieldPotential
public class AmountAtTime extends PointInTime
Specifies an arbitrary amount at a specific time- Author:
- Christoph Schimeczek, Marc Deissenroth
-
-
Field Summary
Fields Modifier and Type Field Description double
amount
The actual amount to be exchanged between the contract parties-
Fields inherited from class communications.message.PointInTime
validAt
-
-
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
-
-
Method Detail
-
fillDataFields
protected void fillDataFields(de.dlr.gitlab.fame.protobuf.Agent.ProtoDataItem.Builder builder)
- Overrides:
fillDataFields
in classPointInTime
-
-