|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjgnash.engine.AccountProxy
jgnash.engine.InvestmentAccountProxy
public class InvestmentAccountProxy
Investment Account Proxy class
| Field Summary |
|---|
| Fields inherited from class jgnash.engine.AccountProxy |
|---|
account |
| Constructor Summary | |
|---|---|
InvestmentAccountProxy(Account account)
|
|
| Method Summary | |
|---|---|
java.math.BigDecimal |
getBalance()
Returns the cash balance plus the market value of the shares |
java.math.BigDecimal |
getBalance(java.util.Date date)
Returns the account balance up to and inclusive of the supplied date |
java.math.BigDecimal |
getBalance(java.util.Date start,
java.util.Date end)
Returns the balance of the transactions inclusive of the start and end dates. |
java.math.BigDecimal |
getCashBalance()
Returns the cash balance of this account |
java.math.BigDecimal |
getCashBalance(java.util.Date end)
Returns the cash account balance up to and inclusive of the supplied date. |
java.math.BigDecimal |
getCashBalance(java.util.Date start,
java.util.Date end)
Returns the balance of the transactions inclusive of the start and end dates. |
private java.math.BigDecimal |
getCashBalanceAt(int index)
Get the account's cash balance up to a specified index. |
java.math.BigDecimal |
getMarketPrice(SecurityNode node,
java.util.Date date)
Returns a market price for the supplied SecurityNode that is closest
to the supplied date without exceeding it. |
java.math.BigDecimal |
getMarketValue()
Returns the market value of this account. |
java.math.BigDecimal |
getMarketValue(java.util.Date date)
Returns the market value of the account at a specified date. |
java.math.BigDecimal |
getMarketValue(java.util.Date start,
java.util.Date end)
Returns the market value for an account |
private java.math.BigDecimal |
getMarketValueAt(int index)
Calculates the accounts market value based on the latest security price |
java.math.BigDecimal |
getOpeningBalanceForReconcile()
Get the default opening balance for reconciling the account |
java.math.BigDecimal |
getReconciledBalance()
Calculates the reconciled balance of the account |
private java.math.BigDecimal |
getReconciledMarketValue()
|
| Methods inherited from class jgnash.engine.AccountProxy |
|---|
getBalanceAt |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InvestmentAccountProxy(Account account)
| Method Detail |
|---|
public java.math.BigDecimal getBalance(java.util.Date start,
java.util.Date end)
AccountProxy
getBalance in class AccountProxystart - The inclusive start dateend - The inclusive end date
public java.math.BigDecimal getBalance()
getBalance in class AccountProxypublic java.math.BigDecimal getBalance(java.util.Date date)
AccountProxy
getBalance in class AccountProxydate - The inclusive ending date
public java.math.BigDecimal getCashBalance()
getCashBalance in class AccountProxyprivate java.math.BigDecimal getCashBalanceAt(int index)
index - the balance of the account at the specified index.
public java.math.BigDecimal getCashBalance(java.util.Date start,
java.util.Date end)
The balance includes the cash transactions and is based on the current market value.
getCashBalance in class AccountProxystart - The inclusive start dateend - The inclusive end date
public java.math.BigDecimal getCashBalance(java.util.Date end)
getCashBalance in class AccountProxyend - The inclusive ending date
public java.math.BigDecimal getMarketPrice(SecurityNode node,
java.util.Date date)
SecurityNode that is closest
to the supplied date without exceeding it. The history of the SecurityNode
is searched as well as the account's transaction history to find the closest market price
without exceeding the supplied date.
getMarketPrice in class AccountProxynode - security to search againstdate - date to search against
public java.math.BigDecimal getMarketValue()
getMarketValue in class AccountProxypublic java.math.BigDecimal getMarketValue(java.util.Date date)
getMarketValue in class AccountProxydate - the end date to calculate the market value
public java.math.BigDecimal getMarketValue(java.util.Date start,
java.util.Date end)
AccountProxy
getMarketValue in class AccountProxystart - inclusive start dateend - inclusive end date
private java.math.BigDecimal getMarketValueAt(int index)
index - index to calculate the balance to
private java.math.BigDecimal getReconciledMarketValue()
public java.math.BigDecimal getReconciledBalance()
getReconciledBalance in class AccountProxypublic java.math.BigDecimal getOpeningBalanceForReconcile()
getOpeningBalanceForReconcile in class AccountProxy
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||