|
Venice 0.7beta | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Account
Generic interface for all financial account objects. This interface defines some generic properties that all accounts need to have such as name, type and value.
Field Summary | |
---|---|
static int |
CASH_ACCOUNT
Account is a cash account (bank account, cash management account etc) |
static int |
SHARE_ACCOUNT
Account is a share trading account which contains a list of shares |
Method Summary | |
---|---|
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(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. |
Field Detail |
---|
static final int CASH_ACCOUNT
static final int SHARE_ACCOUNT
Method Detail |
---|
java.lang.String getName()
int getType()
CASH_ACCOUNT
or
SHARE_ACCOUNT
Money getValue(EODQuoteBundle quoteBundle, int dateOffset) throws MissingQuoteException
quoteBundle
- the quote bundledateOffset
- fast date offset
MissingQuoteException
Money getValue(EODQuoteBundle quoteBundle, TradingDate date) throws MissingQuoteException
quoteBundle
- the quote bundledate
- the date
MissingQuoteException
Currency getCurrency()
void transaction(Transaction transaction)
transaction
- transaction to occurvoid removeAllTransactions()
|
Venice 0.7beta | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |