org.powertac.common
Class MarketTransaction
java.lang.Object
org.powertac.common.BrokerTransaction
org.powertac.common.MarketTransaction
public class MarketTransaction
- extends BrokerTransaction
A MarketTransaction instance represents a trade in the wholesale market.
It is created by the market, used by Accounting to update accounts, and
forwarded to the broker for its records. The values represent changes in
the broker's energy and cash balances, from the viewpoint of the broker.
Therefore, a positive price means that money will be deposited in the
broker's bank account, and a positive amount of energy means that the broker
has an additional quantity of energy in its account for the given timeslot.
- Author:
- Carsten Block, John Collins
MarketTransaction
public MarketTransaction(Broker broker,
org.joda.time.Instant when,
Timeslot timeslot,
double mWh,
double price)
getPrice
public double getPrice()
getMWh
public double getMWh()
getTimeslot
public Timeslot getTimeslot()
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2011. All Rights Reserved.