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.
- Module = Portfolio Core Module
- Library = Asset Allocation Analytics
- Project = Portfolio Construction under Allocation Constraints
- Package = Asset Characteristics, Bounds, Portfolio Benchmarks
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description AssetComponent(java.lang.String id, double amount)
AssetComponent Constructor -
Method Summary
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.ExceptionAssetComponent Constructor- Parameters:
id
- Asset IDamount
- 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
-