Class 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
    • Field Summary

      Fields 
      Modifier and Type Field Description
      double amount
      The actual amount to be exchanged between the contract parties
      de.dlr.gitlab.fame.time.TimeStamp validAt
      The time the DataItem is valid at
      • Fields inherited from class de.dlr.gitlab.fame.communication.message.DataItem

        CLASS_NOT_KNOWN, ERR_MISSING_CONSTRUCTOR
    • Constructor Summary

      Constructors 
      Constructor Description
      AmountAtTime​(de.dlr.gitlab.fame.protobuf.Agent.ProtoDataItem proto)
      Mandatory for deserialisation of DataItems
      AmountAtTime​(de.dlr.gitlab.fame.time.TimeStamp timeStamp, double amount)
      Creates a new AmountAtTime message
    • Field Detail

      • validAt

        public final de.dlr.gitlab.fame.time.TimeStamp validAt
        The time the DataItem is valid at
      • amount

        public final double amount
        The actual amount to be exchanged between the contract parties
    • Constructor Detail

      • AmountAtTime

        public AmountAtTime​(de.dlr.gitlab.fame.time.TimeStamp timeStamp,
                            double amount)
        Creates a new AmountAtTime message
        Parameters:
        timeStamp - to which the specified amount is associated with
        amount - value associated with the given timeStamp
      • AmountAtTime

        public AmountAtTime​(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)
        Specified by:
        fillDataFields in class de.dlr.gitlab.fame.communication.message.DataItem