public class SwaptionFromSwapSchedules extends AbstractLIBORMonteCarloProduct implements ProcessTimeDiscretizationProvider, Swaption
getValue(double, LIBORModelMonteCarloSimulationModel) method
returns an valuation being \( \mathcal{F}_{t} \}-measurable where \( t \) is the evaluationTime argument.| Modifier and Type | Class and Description |
|---|---|
static class |
SwaptionFromSwapSchedules.SwaptionType |
Swaption.ValueUnit| Constructor and Description |
|---|
SwaptionFromSwapSchedules(LocalDateTime referenceDate,
SwaptionFromSwapSchedules.SwaptionType swaptionType,
LocalDate exerciseDate,
Schedule scheduleFixedLeg,
Schedule scheduleFloatLeg,
double swaprate,
double notional,
Swaption.ValueUnit valueUnit) |
| Modifier and Type | Method and Description |
|---|---|
LocalDate |
getExerciseDate() |
TimeDiscretization |
getProcessTimeDiscretization(LocalDateTime referenceDate)
Returns a suggestion for a time discretization which is suited (or required) for the processing (e.g valuation) of this object.
|
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.
|
static RandomVariable |
getValueOfLegAnalytic(double evaluationTime,
LIBORModelMonteCarloSimulationModel model,
Schedule schedule,
boolean paysFloatingRate,
double fixRate,
double notional)
Determines the time \( t \)-measurable value of a swap leg (can handle fix or float).
|
String |
toString() |
getFactorDrift, getValue, getValueForModifiedData, getValuesgetCurrency, 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 SwaptionFromSwapSchedules(LocalDateTime referenceDate, SwaptionFromSwapSchedules.SwaptionType swaptionType, LocalDate exerciseDate, Schedule scheduleFixedLeg, Schedule scheduleFloatLeg, double swaprate, double notional, Swaption.ValueUnit valueUnit)
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 TimeDiscretization getProcessTimeDiscretization(LocalDateTime referenceDate)
ProcessTimeDiscretizationProvidergetProcessTimeDiscretization in interface ProcessTimeDiscretizationProviderreferenceDate - A reference date relative to which the discretization is generated.public LocalDate getExerciseDate()
public static RandomVariable getValueOfLegAnalytic(double evaluationTime, LIBORModelMonteCarloSimulationModel model, Schedule schedule, boolean paysFloatingRate, double fixRate, double notional) throws CalculationException
evaluationTime - The time \( t \) conditional to which the value is calculated.model - The model implmeneting LIBORModelMonteCarloSimulationModel.schedule - The schedule of the leg.paysFloatingRate - If true, the leg will pay TermStructureMonteCarloSimulationModel.getLIBOR(double, double, double)fixRate - The fixed rate (if any)notional - The notionalCalculationException - Thrown is model failed to provide the required quantities.public String toString()
toString in class AbstractMonteCarloProductCopyright © 2019. All rights reserved.