Package communications.message
Class FuelBid
- java.lang.Object
-
- de.dlr.gitlab.fame.communication.message.DataItem
-
- communications.message.PointInTime
-
- communications.message.AmountAtTime
-
- communications.message.FuelBid
-
public class FuelBid extends AmountAtTime
Offer or request for an amount of fuel of a certain type at a given time- Author:
- Christoph Schimeczek, Johannes Kochems
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FuelBid.BidType
Type of fuel bid
-
Field Summary
Fields Modifier and Type Field Description FuelBid.BidType
bidType
whether fuel is to be offered or purchasedString
fuelType
the type of fuel this bid is associated with-
Fields inherited from class communications.message.AmountAtTime
amount
-
Fields inherited from class communications.message.PointInTime
validAt
-
-
Constructor Summary
Constructors Constructor Description FuelBid(de.dlr.gitlab.fame.protobuf.Agent.ProtoDataItem proto)
Mandatory for deserialisation ofDataItem
sFuelBid(de.dlr.gitlab.fame.time.TimeStamp timeStamp, double amount, FuelBid.BidType bidType, String fuelType)
Constructs a newFuelBid
-
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)
-
-
-
Field Detail
-
bidType
public final FuelBid.BidType bidType
whether fuel is to be offered or purchased
-
fuelType
public final String fuelType
the type of fuel this bid is associated with
-
-
Constructor Detail
-
FuelBid
public FuelBid(de.dlr.gitlab.fame.time.TimeStamp timeStamp, double amount, FuelBid.BidType bidType, String fuelType)
Constructs a newFuelBid
- Parameters:
timeStamp
- for which this fuel bid is valid atamount
- of fuel to be sold or purchased in thermal MWHbidType
- whether fuel is to be offered or purchasedfuelType
- type of fuel this bid is associated with
-
FuelBid
public FuelBid(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 classAmountAtTime
-
-