public class Cashflow extends AbstractAnalyticProduct implements AnalyticProductInterface
| Constructor and Description |
|---|
Cashflow(String currency,
double flowAmount,
double flowDate,
boolean isPayer,
String discountCurveName)
Create a single deterministic cashflow at a fixed time.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getValue(double evaluationTime,
AnalyticModelInterface model)
Return the valuation of the product using the given model.
|
getValue, getValueclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetValuepublic Cashflow(String currency, double flowAmount, double flowDate, boolean isPayer, String discountCurveName)
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.public double getValue(double evaluationTime,
AnalyticModelInterface model)
AnalyticProductInterfaceAnalyticModelInterface.getValue in interface AnalyticProductInterfaceevaluationTime - The evaluation time as double. Cash flows prior and including this time are not considered.model - The model under which the product is valued.Copyright © 2017. All rights reserved.