|
Venice 0.751beta | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnz.org.venice.portfolio.AbstractAccount
nz.org.venice.portfolio.CashAccount
Representation of a cash account in a portfolio.
| Field Summary |
| Fields inherited from interface nz.org.venice.portfolio.Account |
CASH_ACCOUNT, SHARE_ACCOUNT |
| Constructor Summary | |
CashAccount(java.lang.String name)
Create a new cash account with the default currency. |
|
CashAccount(java.lang.String name,
Currency currency)
Create a new cash account with the given currency. |
|
| Method Summary | |
java.lang.Object |
clone()
Create a clone of this account. |
boolean |
equals(java.lang.Object object)
Compares this cash account to another. |
Currency |
getCurrency()
Return the currency of the account. |
java.lang.String |
getName()
Return the name of this account. |
int |
getType()
Return the type of this account. |
Money |
getValue()
Return the value of this account. |
Money |
getValue(EODQuoteBundle quoteBundle,
int dateOffset)
Return the value of this account on the given day. |
Money |
getValue(EODQuoteBundle quoteBundle,
TradingDate date)
Return the value of this account on the given day. |
void |
removeAllTransactions()
Remove all transactions from account. |
void |
transaction(Transaction transaction)
Perform a transaction on this account. |
| Methods inherited from class nz.org.venice.portfolio.AbstractAccount |
compareTo |
| Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CashAccount(java.lang.String name,
Currency currency)
name - the name of the new cash accountcurrency - the currency of the cash accountpublic CashAccount(java.lang.String name)
name - the name of the new cash account| Method Detail |
public void transaction(Transaction transaction)
Account
transaction in interface Accounttransaction - transaction to occurpublic java.lang.Object clone()
public boolean equals(java.lang.Object object)
object - another cash account
true if the cash accounts are equal; false otherwisepublic java.lang.String getName()
Account
getName in interface Account
public Money getValue(EODQuoteBundle quoteBundle,
int dateOffset)
Account
getValue in interface AccountquoteBundle - the quote bundledateOffset - fast date offset
public Money getValue(EODQuoteBundle quoteBundle,
TradingDate date)
Account
getValue in interface AccountquoteBundle - the quote bundledate - the datepublic Money getValue()
public Currency getCurrency()
Account
getCurrency in interface Accountpublic void removeAllTransactions()
Account
removeAllTransactions in interface Accountpublic int getType()
Account
getType in interface AccountAccount.CASH_ACCOUNT or
Account.SHARE_ACCOUNT
|
Venice 0.751beta | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||