Class Universe
java.lang.Object
org.drip.portfolioconstruction.core.Universe
public class Universe
extends java.lang.Object
Universe contains all the Assets in the Universe.
- Module = Portfolio Core Module
- Library = Asset Allocation Analytics
- Project = Portfolio Construction under Allocation Constraints
- Package = Core Portfolio Construction Component Suite
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description Universe()
Empty Universe Constructor -
Method Summary
Modifier and Type Method Description boolean
addAssetPosition(AssetPosition assetPosition)
Add an Asset Position to the Universeboolean
addHoldings(Holdings holdings)
Add a Holdings Entityjava.util.Set<java.lang.String>
assetPositionIDSet()
Retrieve the List of the Asset Position Identifiersjava.util.Map<java.lang.String,AssetPosition>
assetPositionMap()
Retrieve the Asset Position Mapboolean
containsAssetInHoldings(Asset asset)
Indicate if the Asset is contained in the Universe Holdingsboolean
containsAssetInPosition(Asset asset)
Indicate if the Asset is contained in the Universeboolean
containsAssetPosition(java.lang.String id)
Indicate if the Asset Position is contained in the Universeboolean
containsAssetPosition(AssetPosition assetPosition)
Indicate if the Asset Position is contained in the Universeboolean
containsHoldings(java.lang.String id)
Indicate if the Holdings is contained in the Universeboolean
containsHoldings(Holdings holdings)
Indicate if the Holdings is contained in the Universejava.util.Set<java.lang.String>
holdingsIDSet()
Retrieve the List of the Holdings Identifiersjava.util.Map<java.lang.String,Holdings>
holdingsMap()
Retrieve the Holdings MapAsset
retrieveAssetPosition(java.lang.String id)
Retrieve the Asset Position corresponding to the IDHoldings
retrieveHoldings(java.lang.String id)
Retrieve the Holdings corresponding to the IDMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Universe
public Universe()Empty Universe Constructor
-
-
Method Details
-
holdingsMap
Retrieve the Holdings Map- Returns:
- Holdings Map
-
assetPositionMap
Retrieve the Asset Position Map- Returns:
- Asset Position Map
-
addAssetPosition
Add an Asset Position to the Universe- Parameters:
assetPosition
- Asset Position to be added- Returns:
- TRUE - The Asset Position has been added successfully
-
addHoldings
Add a Holdings Entity- Parameters:
holdings
- Holdings Entity- Returns:
- TRUE - The Holdings Entity successfully added
-
containsAssetInPosition
Indicate if the Asset is contained in the Universe- Parameters:
asset
- The Asset Position Instance- Returns:
- TRUE - The Asset is contained in the Universe
-
containsAssetPosition
Indicate if the Asset Position is contained in the Universe- Parameters:
assetPosition
- The Asset Position Instance- Returns:
- TRUE - The Asset Position is contained in the Universe
-
containsHoldings
Indicate if the Holdings is contained in the Universe- Parameters:
holdings
- Holdings- Returns:
- TRUE - The Holdings is contained in the Universe
-
containsAssetInHoldings
Indicate if the Asset is contained in the Universe Holdings- Parameters:
asset
- The Asset Position Instance- Returns:
- TRUE - The Asset is contained in the Universe Holdings
-
containsAssetPosition
public boolean containsAssetPosition(java.lang.String id)Indicate if the Asset Position is contained in the Universe- Parameters:
id
- The Asset Position ID- Returns:
- TRUE - The Asset Position is contained in the Universe
-
containsHoldings
public boolean containsHoldings(java.lang.String id)Indicate if the Holdings is contained in the Universe- Parameters:
id
- Holdings ID- Returns:
- TRUE - The Holdings is contained in the Universe
-
assetPositionIDSet
public java.util.Set<java.lang.String> assetPositionIDSet()Retrieve the List of the Asset Position Identifiers- Returns:
- The List of the Asset Position Identifiers
-
holdingsIDSet
public java.util.Set<java.lang.String> holdingsIDSet()Retrieve the List of the Holdings Identifiers- Returns:
- The List of the Holdings Identifiers
-
retrieveAssetPosition
Retrieve the Asset Position corresponding to the ID- Parameters:
id
- ID- Returns:
- Asset Position corresponding to the ID
-
retrieveHoldings
Retrieve the Holdings corresponding to the ID- Parameters:
id
- ID- Returns:
- Holdings corresponding to the ID
-