Class AssetPosition
java.lang.Object
org.drip.portfolioconstruction.core.Block
org.drip.portfolioconstruction.core.Asset
org.drip.portfolioconstruction.core.AssetPosition
public class AssetPosition extends Asset
BlockCategory contains the Block Category Enum's.
- 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 AssetPosition(java.lang.String name, java.lang.String id, java.lang.String description, java.lang.String currency, java.lang.String sector, double quantity, double unitPrice)
AssetPosition Constructor -
Method Summary
Modifier and Type Method Description AssetPosition
clone()
Clone the Asset Position Instancedouble
marketValue()
Retrieve the Market Value of the Positiondouble
quantity()
Retrieve the Asset Quantitydouble
unitPrice()
Retrieve the Asset Unit PriceMethods inherited from class org.drip.portfolioconstruction.core.Block
category, description, id, name, Standard, timeStamp
Methods inherited from class java.lang.Object
equals, getClass, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
AssetPosition
public AssetPosition(java.lang.String name, java.lang.String id, java.lang.String description, java.lang.String currency, java.lang.String sector, double quantity, double unitPrice) throws java.lang.ExceptionAssetPosition Constructor- Parameters:
name
- The Asset Nameid
- The Asset IDdescription
- The Asset Descriptioncurrency
- The Asset Currencysector
- The Asset Sector- Throws:
java.lang.Exception
- Thrown if the Inputs are Invalid
-
-
Method Details
-
quantity
public double quantity()Retrieve the Asset Quantity- Returns:
- Asset Quantity
-
unitPrice
public double unitPrice()Retrieve the Asset Unit Price- Returns:
- Asset Unit Price
-
marketValue
public double marketValue()Retrieve the Market Value of the Position- Returns:
- Market Value of the Position
-
clone
Clone the Asset Position Instance- Returns:
- The Asset Position Instance
-