java.lang.Object
net.finmath.marketdata.products.AbstractAnalyticProduct
net.finmath.marketdata.products.Cashflow
- All Implemented Interfaces:
- AnalyticProduct,- Product
Implements the valuation of a single cashflow by a discount curve.
- Version:
- 1.0
- Author:
- Christian Fries
- To dos:
- Currency is neither checked nor used.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiondoublegetValue(double evaluationTime, AnalyticModel model)Return the valuation of the product using the given model.Methods inherited from class net.finmath.marketdata.products.AbstractAnalyticProductgetValue, getValue
- 
Constructor Details- 
Cashflowpublic Cashflow(String currency, double flowAmount, double flowDate, boolean isPayer, String discountCurveName)Create a single deterministic cashflow at a fixed time.- Parameters:
- currency- The currency.
- flowAmount- The amount of the cash flow.
- flowDate- The flow date.
- isPayer- If true, this cash flow will be multiplied by -1 prior valuation.
- discountCurveName- Name of the discount curve for the cashflow.
 
 
- 
- 
Method Details- 
getValueDescription copied from interface:AnalyticProductReturn the valuation of the product using the given model. The model has to implement the modes ofAnalyticModel.- Specified by:
- getValuein interface- AnalyticProduct
- Parameters:
- evaluationTime- The evaluation time as double. Cash flows prior and including this time are not considered.
- model- The model under which the product is valued.
- Returns:
- The value of the product using the given model.
 
 
-