|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.moneydance.apps.md.model.AssetTypeGroup
public class AssetTypeGroup
Tracks the list of accounts and balances for a particular asset type.
Constructor Summary | |
---|---|
AssetTypeGroup(java.lang.String assetType,
CurrencyType baseCurr,
int asofDate)
Constructor to provide the output currency. |
Method Summary | |
---|---|
void |
addAccount(Account account,
long balance)
Add an account to the asset type. |
java.util.List<Account> |
getAccountList()
|
long |
getBalance(Account account)
Get the balance for the specified account, as of the specified date . |
double |
getPercent(Account account)
Get the percentage of an account's balance with respect to the entire asset group's balance, for the specified account, as of the specified date . |
long |
getTotalBalance()
Obtain the total balance for the entire asset group. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AssetTypeGroup(java.lang.String assetType, CurrencyType baseCurr, int asofDate)
assetType
- The asset/security type and subtype (colon-separated).baseCurr
- The base currency to use.asofDate
- The effective date of the balances herein.Method Detail |
---|
public void addAccount(Account account, long balance)
account
- The account to add.balance
- The balance of the account as of the date specified by _asofDate
.public java.util.List<Account> getAccountList()
specified date
.public long getBalance(Account account)
specified date
.
account
- The account to get the balance for.
public double getPercent(Account account)
specified date
.
account
- The account to get the balance for.
public long getTotalBalance()
base currency
, of the entire asset group.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |