Class AssetComponent

java.lang.Object
org.drip.portfolioconstruction.asset.AssetComponent

public class AssetComponent
extends java.lang.Object
AssetComponent holds the Amount of an Asset given by the corresponding ID.

Author:
Lakshmi Krishnamurthy
  • Constructor Summary

    Constructors
    Constructor Description
    AssetComponent​(java.lang.String id, double amount)
    AssetComponent Constructor
  • Method Summary

    Modifier and Type Method Description
    double amount()
    Retrieve the Asset Amount
    java.lang.String id()
    Retrieve the Asset ID

    Methods inherited from class java.lang.Object

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

    • AssetComponent

      public AssetComponent​(java.lang.String id, double amount) throws java.lang.Exception
      AssetComponent Constructor
      Parameters:
      id - Asset ID
      amount - Asset Amount
      Throws:
      java.lang.Exception - Thrown if the Inputs are Invalid
  • Method Details

    • id

      public java.lang.String id()
      Retrieve the Asset ID
      Returns:
      The Asset ID
    • amount

      public double amount()
      Retrieve the Asset Amount
      Returns:
      The Asset Amount