public static class InterestRateMonteCarloProductFactory.SwapMonteCarlo extends AbstractLIBORMonteCarloProduct implements DescribedProduct<InterestRateSwapProductDescriptor>
| Constructor and Description |
|---|
SwapMonteCarlo(InterestRateSwapProductDescriptor descriptor,
LocalDate referenceDate)
Create product from descriptor.
|
| Modifier and Type | Method and Description |
|---|---|
InterestRateSwapProductDescriptor |
getDescriptor()
Return a product descriptor representing this product.
|
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.
|
getFactorDrift, getValue, getValueForModifiedData, getValuesgetCurrency, getValue, getValue, getValues, getValues, getValues, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedData, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCurrency, getValue, getValue, getValues, getValues, getValues, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedDatapublic SwapMonteCarlo(InterestRateSwapProductDescriptor descriptor, LocalDate referenceDate)
descriptor - The descriptor of the product.referenceDate - The reference date of the data for the valuation, used to convert absolute date to relative dates in double representation.public RandomVariable getValue(double evaluationTime, LIBORModelMonteCarloSimulationModel model) throws CalculationException
TermStructureMonteCarloProductgetValue 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 InterestRateSwapProductDescriptor getDescriptor()
DescribedProductgetDescriptor in interface DescribedProduct<InterestRateSwapProductDescriptor>Copyright © 2019. All rights reserved.