/** * Copyright (C) 2012 - present by OpenGamma Inc. and the OpenGamma group of companies * * Please see distribution for license. */ package com.opengamma.financial.analytics.model.sabrcube; import com.opengamma.analytics.financial.interestrate.InstrumentDerivative; import com.opengamma.analytics.financial.interestrate.PresentValueCalculator; import com.opengamma.analytics.financial.interestrate.PresentValueSABRCalculator; import com.opengamma.analytics.financial.model.option.definition.SABRInterestRateDataBundle; import com.opengamma.engine.value.ValueRequirement; import com.opengamma.engine.value.ValueRequirementNames; import com.opengamma.financial.analytics.model.sabr.NoExtrapolationSABRDiscountingPVFunction; /** * Calculates the present value using the SABR with no right extrapolation model. * @deprecated Use {@link NoExtrapolationSABRDiscountingPVFunction} */ @Deprecated public class SABRNoExtrapolationPresentValueFunction extends SABRNoExtrapolationFunction { private static final PresentValueCalculator CALCULATOR = PresentValueSABRCalculator.getInstance(); @Override protected String getValueRequirement() { return ValueRequirementNames.PRESENT_VALUE; } @Override protected Object getResult(final InstrumentDerivative derivative, final SABRInterestRateDataBundle data, final ValueRequirement desiredValue) { return derivative.accept(CALCULATOR, data); } }