Class 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 purchased
      String fuelType
      the type of fuel this bid is associated with
      • Fields inherited from class de.dlr.gitlab.fame.communication.message.DataItem

        CLASS_NOT_KNOWN, ERR_MISSING_CONSTRUCTOR
    • Constructor Summary

      Constructors 
      Constructor Description
      FuelBid​(de.dlr.gitlab.fame.protobuf.Agent.ProtoDataItem proto)
      Mandatory for deserialisation of DataItems
      FuelBid​(de.dlr.gitlab.fame.time.TimeStamp timeStamp, double amount, FuelBid.BidType bidType, String fuelType)
      Constructs a new FuelBid
    • 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 new FuelBid
        Parameters:
        timeStamp - for which this fuel bid is valid at
        amount - of fuel to be sold or purchased in thermal MWH
        bidType - whether fuel is to be offered or purchased
        fuelType - type of fuel this bid is associated with
      • FuelBid

        public FuelBid​(de.dlr.gitlab.fame.protobuf.Agent.ProtoDataItem proto)
        Mandatory for deserialisation of DataItems
        Parameters:
        proto - protobuf representation
    • Method Detail

      • fillDataFields

        protected void fillDataFields​(de.dlr.gitlab.fame.protobuf.Agent.ProtoDataItem.Builder builder)
        Overrides:
        fillDataFields in class AmountAtTime