|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.powertac.common.CashPosition
public class CashPosition
A CashPosition domain instance represents the current state of a broker's cash account. An updated CashPosition is sent to brokers during each timeslot. This is not public information.
| Constructor Summary | |
|---|---|
CashPosition(Broker broker,
double initialBalance)
|
|
| Method Summary | |
|---|---|
double |
deposit(double amount)
Updates the balance in this account by the specified amount, returns the resulting balance. |
double |
getBalance()
Returns the balance in the account at the time this CashPosition was generated. |
Broker |
getBroker()
Returns the broker whose cash is represented. |
long |
getId()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CashPosition(Broker broker,
double initialBalance)
| Method Detail |
|---|
public long getId()
public Broker getBroker()
public double getBalance()
public String toString()
toString in class Objectpublic double deposit(double amount)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||