Class BidsAtTime

  • All Implemented Interfaces:
    de.dlr.gitlab.fame.communication.transfer.Portable

    public class BidsAtTime
    extends Object
    implements de.dlr.gitlab.fame.communication.transfer.Portable
    Summary of multiple bids from one trader for one bidding time period
    Author:
    Christoph Schimeczek
    • Constructor Detail

      • BidsAtTime

        public BidsAtTime()
        required for Portables
      • BidsAtTime

        public BidsAtTime​(de.dlr.gitlab.fame.time.TimeStamp deliveryTime,
                          long traderUuid,
                          List<Bid> supplyBids,
                          List<Bid> demandBids)
        Create a Bid message
        Parameters:
        deliveryTime - at which the bids shall be valid
        traderUuid - id of the trader that is associated with the bids
        supplyBids - list of supplyBids, may be null or empty
        demandBids - list of demandBids, may be null or empty
    • Method Detail

      • addComponentsTo

        public void addComponentsTo​(de.dlr.gitlab.fame.communication.transfer.ComponentCollector collector)
        Specified by:
        addComponentsTo in interface de.dlr.gitlab.fame.communication.transfer.Portable
      • populate

        public void populate​(de.dlr.gitlab.fame.communication.transfer.ComponentProvider provider)
        Specified by:
        populate in interface de.dlr.gitlab.fame.communication.transfer.Portable
      • getSupplyBids

        public List<Bid> getSupplyBids()
        Returns:
        supply bids from the associated trader for the respective bidding time
      • getDemandBids

        public List<Bid> getDemandBids()
        Returns:
        demand bids from the associated trader for the respective bidding time
      • getTraderUuid

        public long getTraderUuid()
        Returns:
        the UUID of the trader associated with the bids
      • getDeliveryTime

        public de.dlr.gitlab.fame.time.TimeStamp getDeliveryTime()
        Returns:
        time for which the bids were created