001/* ----------------------------------------------------------------------------
002 * This file was automatically generated by SWIG (https://www.swig.org).
003 * Version 4.1.1
004 *
005 * Do not make changes to this file unless you know what you are doing - modify
006 * the SWIG interface file instead.
007 * ----------------------------------------------------------------------------- */
008
009package org.quantlib;
010
011public class BlackVolTermStructure extends VolatilityTermStructure implements org.quantlib.helpers.QuantLibJNIHelpers.AutoCloseable {
012  private transient long swigCPtr;
013  private transient boolean swigCMemOwnDerived;
014
015  protected BlackVolTermStructure(long cPtr, boolean cMemoryOwn) {
016    super(QuantLibJNI.BlackVolTermStructure_SWIGSmartPtrUpcast(cPtr), true);
017    swigCMemOwnDerived = cMemoryOwn;
018    swigCPtr = cPtr;
019  }
020
021  protected static long getCPtr(BlackVolTermStructure obj) {
022    return (obj == null) ? 0 : obj.swigCPtr;
023  }
024
025  protected void swigSetCMemOwn(boolean own) {
026    swigCMemOwnDerived = own;
027    super.swigSetCMemOwn(own);
028  }
029
030  @SuppressWarnings("deprecation")
031  protected void finalize() {
032    delete();
033  }
034
035  public synchronized void delete() {
036    if (swigCPtr != 0) {
037      if (swigCMemOwnDerived) {
038        swigCMemOwnDerived = false;
039        QuantLibJNI.delete_BlackVolTermStructure(swigCPtr);
040      }
041      swigCPtr = 0;
042    }
043    super.delete();
044  }
045
046  public double blackVol(Date arg0, double strike, boolean extrapolate) {
047    return QuantLibJNI.BlackVolTermStructure_blackVol__SWIG_0(swigCPtr, this, Date.getCPtr(arg0), arg0, strike, extrapolate);
048  }
049
050  public double blackVol(Date arg0, double strike) {
051    return QuantLibJNI.BlackVolTermStructure_blackVol__SWIG_1(swigCPtr, this, Date.getCPtr(arg0), arg0, strike);
052  }
053
054  public double blackVol(double arg0, double strike, boolean extrapolate) {
055    return QuantLibJNI.BlackVolTermStructure_blackVol__SWIG_2(swigCPtr, this, arg0, strike, extrapolate);
056  }
057
058  public double blackVol(double arg0, double strike) {
059    return QuantLibJNI.BlackVolTermStructure_blackVol__SWIG_3(swigCPtr, this, arg0, strike);
060  }
061
062  public double blackVariance(Date arg0, double strike, boolean extrapolate) {
063    return QuantLibJNI.BlackVolTermStructure_blackVariance__SWIG_0(swigCPtr, this, Date.getCPtr(arg0), arg0, strike, extrapolate);
064  }
065
066  public double blackVariance(Date arg0, double strike) {
067    return QuantLibJNI.BlackVolTermStructure_blackVariance__SWIG_1(swigCPtr, this, Date.getCPtr(arg0), arg0, strike);
068  }
069
070  public double blackVariance(double arg0, double strike, boolean extrapolate) {
071    return QuantLibJNI.BlackVolTermStructure_blackVariance__SWIG_2(swigCPtr, this, arg0, strike, extrapolate);
072  }
073
074  public double blackVariance(double arg0, double strike) {
075    return QuantLibJNI.BlackVolTermStructure_blackVariance__SWIG_3(swigCPtr, this, arg0, strike);
076  }
077
078  public double blackForwardVol(Date arg0, Date arg1, double strike, boolean extrapolate) {
079    return QuantLibJNI.BlackVolTermStructure_blackForwardVol__SWIG_0(swigCPtr, this, Date.getCPtr(arg0), arg0, Date.getCPtr(arg1), arg1, strike, extrapolate);
080  }
081
082  public double blackForwardVol(Date arg0, Date arg1, double strike) {
083    return QuantLibJNI.BlackVolTermStructure_blackForwardVol__SWIG_1(swigCPtr, this, Date.getCPtr(arg0), arg0, Date.getCPtr(arg1), arg1, strike);
084  }
085
086  public double blackForwardVol(double arg0, double arg1, double strike, boolean extrapolate) {
087    return QuantLibJNI.BlackVolTermStructure_blackForwardVol__SWIG_2(swigCPtr, this, arg0, arg1, strike, extrapolate);
088  }
089
090  public double blackForwardVol(double arg0, double arg1, double strike) {
091    return QuantLibJNI.BlackVolTermStructure_blackForwardVol__SWIG_3(swigCPtr, this, arg0, arg1, strike);
092  }
093
094  public double blackForwardVariance(Date arg0, Date arg1, double strike, boolean extrapolate) {
095    return QuantLibJNI.BlackVolTermStructure_blackForwardVariance__SWIG_0(swigCPtr, this, Date.getCPtr(arg0), arg0, Date.getCPtr(arg1), arg1, strike, extrapolate);
096  }
097
098  public double blackForwardVariance(Date arg0, Date arg1, double strike) {
099    return QuantLibJNI.BlackVolTermStructure_blackForwardVariance__SWIG_1(swigCPtr, this, Date.getCPtr(arg0), arg0, Date.getCPtr(arg1), arg1, strike);
100  }
101
102  public double blackForwardVariance(double arg0, double arg1, double strike, boolean extrapolate) {
103    return QuantLibJNI.BlackVolTermStructure_blackForwardVariance__SWIG_2(swigCPtr, this, arg0, arg1, strike, extrapolate);
104  }
105
106  public double blackForwardVariance(double arg0, double arg1, double strike) {
107    return QuantLibJNI.BlackVolTermStructure_blackForwardVariance__SWIG_3(swigCPtr, this, arg0, arg1, strike);
108  }
109
110}