Package agents.markets.meritOrder
Class Bid
- java.lang.Object
-
- agents.markets.meritOrder.Bid
-
- All Implemented Interfaces:
de.dlr.gitlab.fame.communication.transfer.Portable
,Cloneable
public class Bid extends Object implements de.dlr.gitlab.fame.communication.transfer.Portable, Cloneable
A bid offering or requesting a given amount of energy for a specified price- Author:
- Martin Klein, Christoph Schimeczek, A. Achraf El Ghazi
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addComponentsTo(de.dlr.gitlab.fame.communication.transfer.ComponentCollector collector)
required forPortable
sBid
clone()
double
getEnergyAmountInMWH()
double
getMarginalCost()
double
getOfferPriceInEURperMWH()
boolean
matches(Bid bid)
void
populate(de.dlr.gitlab.fame.communication.transfer.ComponentProvider provider)
required forPortable
svoid
setEnergyAmountInMWH(double energyAmountInMWH)
set amount of energy requested or offered (depending on Type of this Bid)String
toString()
-
-
-
Constructor Detail
-
Bid
public Bid()
required forPortable
s
-
Bid
public Bid(double energyAmountInMWH, double offerPriceInEURperMWH, double marginalCostInEURperMWH)
Creates aBid
- 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
-
Bid
public Bid(double energyAmountInMWH, double offerPriceInEURperMWH)
Creates aBid
with marginalCost=NaN- 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)
-
-
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)
-
setEnergyAmountInMWH
public void setEnergyAmountInMWH(double energyAmountInMWH)
set amount of energy requested or offered (depending on Type of this Bid)- Parameters:
energyAmountInMWH
- energy amount to set (in MHW).
-
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 forPortable
s- Specified by:
addComponentsTo
in interfacede.dlr.gitlab.fame.communication.transfer.Portable
-
populate
public void populate(de.dlr.gitlab.fame.communication.transfer.ComponentProvider provider)
required forPortable
s- Specified by:
populate
in interfacede.dlr.gitlab.fame.communication.transfer.Portable
-
matches
public boolean matches(Bid bid)
- Parameters:
bid
- to check for match.- Returns:
- true if this object's content matches that of the given Bid.
-
-