Package org.drip.capital.shell
Class AccountBusinessContext
java.lang.Object
org.drip.capital.shell.AccountBusinessContext
public class AccountBusinessContext
extends java.lang.Object
AccountBusinessContext maintains the Account To Business Mappings. The References are:
- Bank for International Supervision(2005): Stress Testing at Major Financial Institutions: Survey Results and Practice https://www.bis.org/publ/cgfs24.htm
- Glasserman, P. (2004): Monte Carlo Methods in Financial Engineering Springer
- Kupiec, P. H. (2000): Stress Tests and Risk Capital Risk 2 (4) 27-39
- Module = Portfolio Core Module
- Library = Capital Analytics
- Project = Basel Market Risk and Operational Capital
- Package = Economic Risk Capital Parameter Contexts
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description AccountBusinessContext(java.util.Map<java.lang.String,java.lang.String> accountBusinessMap)
AccountBusinessContext Constructor -
Method Summary
Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.String>
accountBusinessMap()
Retrieve the Account To Business Mapjava.util.Set<java.lang.String>
accountSet(java.lang.String business)
Retrieve the Set of Accounts corresponding to the given Businessjava.lang.String
business(java.lang.String account)
Retrieve the Business corresponding to the Accountboolean
containsAccount(java.lang.String account)
Check if the Account ExistsMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
AccountBusinessContext
public AccountBusinessContext(java.util.Map<java.lang.String,java.lang.String> accountBusinessMap) throws java.lang.ExceptionAccountBusinessContext Constructor- Parameters:
accountBusinessMap
- Account To Business Map- Throws:
java.lang.Exception
- Thrwn if the Inputs are Invalid
-
-
Method Details
-
containsAccount
public boolean containsAccount(java.lang.String account)Check if the Account Exists- Parameters:
account
- The Account- Returns:
- TRUE - The Account Exists
-
business
public java.lang.String business(java.lang.String account)Retrieve the Business corresponding to the Account- Parameters:
account
- The Account- Returns:
- The Business corresponding to the Account
-
accountSet
public java.util.Set<java.lang.String> accountSet(java.lang.String business)Retrieve the Set of Accounts corresponding to the given Business- Parameters:
business
- The Business- Returns:
- The Set of Accounts
-
accountBusinessMap
public final java.util.Map<java.lang.String,java.lang.String> accountBusinessMap()Retrieve the Account To Business Map- Returns:
- The Account To Business Map
-