Package org.powertac.common
Class CashPosition
java.lang.Object
org.powertac.common.state.XStreamStateLoggable
org.powertac.common.BrokerTransaction
org.powertac.common.CashPosition
@Domain(fields={"postedTimeslot","balance"}) public class CashPosition extends BrokerTransaction
A CashPosition domain instance represents the current state of
a broker's cash account. An new CashPosition is sent to brokers
during each timeslot. This is not public information.
- Author:
- Carsten Block, David Dauer, John Collins
-
Field Summary
-
Constructor Summary
Constructors Constructor Description CashPosition(Broker broker, double balance, int timeslot) -
Method Summary
Modifier and Type Method Description doublegetBalance()Returns the balance in the account at the time this CashPosition was generated.StringtoString()Methods inherited from class org.powertac.common.BrokerTransaction
getBroker, getId, getPostedTime, getPostedTimeslot, getPostedTimeslotIndex
-
Constructor Details
-
Method Details
-
getBalance
public double getBalance()Returns the balance in the account at the time this CashPosition was generated. -
toString
-