jgnash.engine
Class EquityAccountProxy

java.lang.Object
  extended by jgnash.engine.AccountProxy
      extended by jgnash.engine.EquityAccountProxy

public class EquityAccountProxy
extends AccountProxy

Equity Account Proxy class

Version:
$Id$
Author:
Craig Cavanaugh

Field Summary
 
Fields inherited from class jgnash.engine.AccountProxy
account
 
Constructor Summary
EquityAccountProxy(Account account)
           
 
Method Summary
 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 getBalanceAt(int index)
          Get the account balance up to a specified index.
 java.math.BigDecimal getReconciledBalance()
          Calculates the reconciled balance of the account
 
Methods inherited from class jgnash.engine.AccountProxy
getBalance, getCashBalance, getCashBalance, getCashBalance, getMarketPrice, getMarketValue, getMarketValue, getMarketValue, getOpeningBalanceForReconcile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EquityAccountProxy

public EquityAccountProxy(Account account)
Method Detail

getBalanceAt

public java.math.BigDecimal getBalanceAt(int index)
Description copied from class: AccountProxy
Get the account balance up to a specified index.

Overrides:
getBalanceAt in class AccountProxy
Parameters:
index - the balance of this account at the specified index.
Returns:
the balance of this account at the specified index.

getReconciledBalance

public java.math.BigDecimal getReconciledBalance()
Description copied from class: AccountProxy
Calculates the reconciled balance of the account

Overrides:
getReconciledBalance in class AccountProxy
Returns:
the reconciled balance of this account

getBalance

public java.math.BigDecimal getBalance(java.util.Date date)
Description copied from class: AccountProxy
Returns the account balance up to and inclusive of the supplied date

Overrides:
getBalance in class AccountProxy
Parameters:
date - The inclusive ending date
Returns:
The ending balance

getBalance

public java.math.BigDecimal getBalance(java.util.Date start,
                                       java.util.Date end)
Description copied from class: AccountProxy
Returns the balance of the transactions inclusive of the start and end dates.

Overrides:
getBalance in class AccountProxy
Parameters:
start - The inclusive start date
end - The inclusive end date
Returns:
The ending balance