Class LocalUniverse
java.lang.Object
org.drip.portfolioconstruction.core.LocalUniverse
public class LocalUniverse
extends java.lang.Object
LocalUniverse contains all the Assets in the Local 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 LocalUniverse()
Empty LocalUniverse Constructor -
Method Summary
Modifier and Type Method Description boolean
add(Asset asset)
Add an Asset to the Local Universeboolean
contains(java.lang.String id)
Indicate if the Asset is contained in the Local Universeboolean
contains(Asset asset)
Indicate if the Asset is contained in the Local Universejava.util.Set<java.lang.String>
idSet()
Retrieve the List of the Asset IdentifiersMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
LocalUniverse
public LocalUniverse()Empty LocalUniverse Constructor
-
-
Method Details
-
add
Add an Asset to the Local Universe- Parameters:
asset
- Asset to be added- Returns:
- TRUE - The Asset has been added successfully
-
contains
Indicate if the Asset is contained in the Local Universe- Parameters:
asset
- The Asset Instance- Returns:
- TRUE - The Asset is contained in the Local Universe
-
contains
public boolean contains(java.lang.String id)Indicate if the Asset is contained in the Local Universe- Parameters:
id
- The Asset ID- Returns:
- TRUE - The Asset is contained in the Local Universe
-
idSet
public java.util.Set<java.lang.String> idSet()Retrieve the List of the Asset Identifiers- Returns:
- The List of the Asset Identifiers
-