java.lang.Object
org.drip.portfolioconstruction.core.Block
org.drip.portfolioconstruction.core.Asset
Direct Known Subclasses:
AssetSpecification

public class Asset
extends Block
Author:
Lakshmi Krishnamurthy
  • Constructor Summary

    Constructors
    Constructor Description
    Asset​(java.lang.String name, java.lang.String id, java.lang.String description, java.lang.String currency, java.lang.String sector)
    Asset Constructor
  • Method Summary

    Modifier and Type Method Description
    java.lang.String currency()
    Retrieve the Asset Currency
    int hashCode()  
    java.lang.String sector()
    Retrieve the Asset Sector

    Methods inherited from class org.drip.portfolioconstruction.core.Block

    description, id, name, Standard, timeStamp

    Methods inherited from class java.lang.Object

    equals, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Asset

      public Asset​(java.lang.String name, java.lang.String id, java.lang.String description, java.lang.String currency, java.lang.String sector) throws java.lang.Exception
      Asset Constructor
      Parameters:
      name - The Asset Name
      id - The Asset ID
      description - The Asset Description
      currency - The Asset Currency
      sector - The Asset Sector
      Throws:
      java.lang.Exception - Thrown if the Inputs are Invalid
  • Method Details

    • currency

      public java.lang.String currency()
      Retrieve the Asset Currency
      Returns:
      The Asset Currency
    • sector

      public java.lang.String sector()
      Retrieve the Asset Sector
      Returns:
      The Asset Sector
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Block