org.powertac.common
Class CashPosition

java.lang.Object
  extended by org.powertac.common.BrokerTransaction
      extended by org.powertac.common.CashPosition

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.

Version:
1.1 - 02/27/2011
Author:
Carsten Block, David Dauer

Field Summary
 
Fields inherited from class org.powertac.common.BrokerTransaction
broker, id, postedTimeslot
 
Constructor Summary
CashPosition(Broker broker, double balance, int timeslot)
           
 
Method Summary
 double getBalance()
          Returns the balance in the account at the time this CashPosition was generated.
 String toString()
           
 
Methods inherited from class org.powertac.common.BrokerTransaction
getBroker, getId, getPostedTime, getPostedTimeslot, getPostedTimeslotIndex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CashPosition

public CashPosition(Broker broker,
                    double balance,
                    int timeslot)
Method Detail

getBalance

public double getBalance()
Returns the balance in the account at the time this CashPosition was generated.


toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013. All Rights Reserved.