public class Cashflow extends AbstractProductComponent
| Constructor and Description |
|---|
Cashflow(double flowAmount,
double flowDate,
boolean isPayer)
Create a single deterministic cashflow at a fixed time.
|
Cashflow(String currency,
double flowAmount,
double flowDate,
boolean isPayer)
Create a single deterministic cashflow at a fixed time.
|
| Modifier and Type | Method and Description |
|---|---|
RandomVariable |
getValue(double evaluationTime,
LIBORModelMonteCarloSimulationModel model)
This method returns the value random variable of the product within the specified model, evaluated at a given evalutationTime.
|
Set<String> |
queryUnderlyings()
Returns a set of underlying names referenced by this product component (i.e., required for valuation) or null if none.
|
String |
toString() |
getExecutor, getValuesgetFactorDrift, getValue, getValueForModifiedDatagetCurrency, getValue, getValue, getValues, getValues, getValues, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCurrency, getValue, getValue, getValues, getValues, getValues, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedDatapublic Cashflow(String currency, double flowAmount, double flowDate, boolean isPayer)
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.public Cashflow(double flowAmount,
double flowDate,
boolean isPayer)
flowAmount - The amount of the cash flow.flowDate - The flow date.isPayer - If true, this cash flow will be multiplied by -1 prior valuation.public Set<String> queryUnderlyings()
AbstractProductComponentqueryUnderlyings in class AbstractProductComponentpublic RandomVariable getValue(double evaluationTime, LIBORModelMonteCarloSimulationModel model) throws CalculationException
getValue in interface TermStructureMonteCarloProductgetValue in class AbstractLIBORMonteCarloProductevaluationTime - The time on which this products value should be observed.model - The model used to price the product.CalculationException - Thrown if the valuation fails, specific cause may be available via the cause() method.public String toString()
toString in class AbstractMonteCarloProductCopyright © 2019. All rights reserved.