public class AssetTypeGroup
extends java.lang.Object
| Constructor and Description |
|---|
AssetTypeGroup(java.lang.String assetType,
CurrencyType baseCurr,
int asofDate)
Constructor to provide the output currency.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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.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.