Class Bid

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

    public class Bid
    extends Object
    implements de.dlr.gitlab.fame.communication.transfer.Portable
    A bid offering or requesting a given amount of energy for a specified price
    Author:
    Martin Klein, Christoph Schimeczek
    • Constructor Detail

      • Bid

        public Bid()
        required for Portables
      • Bid

        public Bid​(double energyAmountInMWH,
                   double offerPriceInEURperMWH,
                   double marginalCostInEURperMWH,
                   long traderUuid,
                   Bid.Type type)
        Creates a Bid
        Parameters:
        energyAmountInMWH - amount of energy requested or offered (depending on Type of this Bid)
        offerPriceInEURperMWH - maximum / minimum offer price (depending on Type of this Bid)
        marginalCostInEURperMWH - actual marginal cost associated with this Bid
        traderUuid - id of the Trader that issued this Bid
        type - of this Bid
    • Method Detail

      • getOfferPriceInEURperMWH

        public double getOfferPriceInEURperMWH()
        Returns:
        maximum / minimum offer price (depending on Type of this Bid)
      • getEnergyAmountInMWH

        public double getEnergyAmountInMWH()
        Returns:
        amount of energy requested or offered (depending on Type of this Bid)
      • getTraderUuid

        public long getTraderUuid()
        Returns:
        id of the Trader that issued this Bid
      • getMarginalCost

        public double getMarginalCost()
        Returns:
        actual marginal cost associated with this Bid
      • addComponentsTo

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

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