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.



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 Universe
    boolean contains​(java.lang.String id)
    Indicate if the Asset is contained in the Local Universe
    boolean contains​(Asset asset)
    Indicate if the Asset is contained in the Local Universe
    java.util.Set<java.lang.String> idSet()
    Retrieve the List of the Asset Identifiers

    Methods 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

      public boolean add​(Asset asset)
      Add an Asset to the Local Universe
      Parameters:
      asset - Asset to be added
      Returns:
      TRUE - The Asset has been added successfully
    • contains

      public boolean contains​(Asset asset)
      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