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 FdHestonVanillaEngine extends PricingEngine implements org.quantlib.helpers.QuantLibJNIHelpers.AutoCloseable {
012  private transient long swigCPtr;
013  private transient boolean swigCMemOwnDerived;
014
015  protected FdHestonVanillaEngine(long cPtr, boolean cMemoryOwn) {
016    super(QuantLibJNI.FdHestonVanillaEngine_SWIGSmartPtrUpcast(cPtr), true);
017    swigCMemOwnDerived = cMemoryOwn;
018    swigCPtr = cPtr;
019  }
020
021  protected static long getCPtr(FdHestonVanillaEngine 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_FdHestonVanillaEngine(swigCPtr);
040      }
041      swigCPtr = 0;
042    }
043    super.delete();
044  }
045
046  public FdHestonVanillaEngine(HestonModel model, long tGrid, long xGrid, long vGrid, long dampingSteps, FdmSchemeDesc schemeDesc, LocalVolTermStructure leverageFct, double mixingFactor) {
047    this(QuantLibJNI.new_FdHestonVanillaEngine__SWIG_0(HestonModel.getCPtr(model), model, tGrid, xGrid, vGrid, dampingSteps, FdmSchemeDesc.getCPtr(schemeDesc), schemeDesc, LocalVolTermStructure.getCPtr(leverageFct), leverageFct, mixingFactor), true);
048  }
049
050  public FdHestonVanillaEngine(HestonModel model, long tGrid, long xGrid, long vGrid, long dampingSteps, FdmSchemeDesc schemeDesc, LocalVolTermStructure leverageFct) {
051    this(QuantLibJNI.new_FdHestonVanillaEngine__SWIG_1(HestonModel.getCPtr(model), model, tGrid, xGrid, vGrid, dampingSteps, FdmSchemeDesc.getCPtr(schemeDesc), schemeDesc, LocalVolTermStructure.getCPtr(leverageFct), leverageFct), true);
052  }
053
054  public FdHestonVanillaEngine(HestonModel model, long tGrid, long xGrid, long vGrid, long dampingSteps, FdmSchemeDesc schemeDesc) {
055    this(QuantLibJNI.new_FdHestonVanillaEngine__SWIG_2(HestonModel.getCPtr(model), model, tGrid, xGrid, vGrid, dampingSteps, FdmSchemeDesc.getCPtr(schemeDesc), schemeDesc), true);
056  }
057
058  public FdHestonVanillaEngine(HestonModel model, long tGrid, long xGrid, long vGrid, long dampingSteps) {
059    this(QuantLibJNI.new_FdHestonVanillaEngine__SWIG_3(HestonModel.getCPtr(model), model, tGrid, xGrid, vGrid, dampingSteps), true);
060  }
061
062  public FdHestonVanillaEngine(HestonModel model, long tGrid, long xGrid, long vGrid) {
063    this(QuantLibJNI.new_FdHestonVanillaEngine__SWIG_4(HestonModel.getCPtr(model), model, tGrid, xGrid, vGrid), true);
064  }
065
066  public FdHestonVanillaEngine(HestonModel model, long tGrid, long xGrid) {
067    this(QuantLibJNI.new_FdHestonVanillaEngine__SWIG_5(HestonModel.getCPtr(model), model, tGrid, xGrid), true);
068  }
069
070  public FdHestonVanillaEngine(HestonModel model, long tGrid) {
071    this(QuantLibJNI.new_FdHestonVanillaEngine__SWIG_6(HestonModel.getCPtr(model), model, tGrid), true);
072  }
073
074  public FdHestonVanillaEngine(HestonModel model) {
075    this(QuantLibJNI.new_FdHestonVanillaEngine__SWIG_7(HestonModel.getCPtr(model), model), true);
076  }
077
078  public FdHestonVanillaEngine(HestonModel model, FdmQuantoHelper quantoHelper, long tGrid, long xGrid, long vGrid, long dampingSteps, FdmSchemeDesc schemeDesc, LocalVolTermStructure leverageFct, double mixingFactor) {
079    this(QuantLibJNI.new_FdHestonVanillaEngine__SWIG_8(HestonModel.getCPtr(model), model, FdmQuantoHelper.getCPtr(quantoHelper), quantoHelper, tGrid, xGrid, vGrid, dampingSteps, FdmSchemeDesc.getCPtr(schemeDesc), schemeDesc, LocalVolTermStructure.getCPtr(leverageFct), leverageFct, mixingFactor), true);
080  }
081
082  public FdHestonVanillaEngine(HestonModel model, FdmQuantoHelper quantoHelper, long tGrid, long xGrid, long vGrid, long dampingSteps, FdmSchemeDesc schemeDesc, LocalVolTermStructure leverageFct) {
083    this(QuantLibJNI.new_FdHestonVanillaEngine__SWIG_9(HestonModel.getCPtr(model), model, FdmQuantoHelper.getCPtr(quantoHelper), quantoHelper, tGrid, xGrid, vGrid, dampingSteps, FdmSchemeDesc.getCPtr(schemeDesc), schemeDesc, LocalVolTermStructure.getCPtr(leverageFct), leverageFct), true);
084  }
085
086  public FdHestonVanillaEngine(HestonModel model, FdmQuantoHelper quantoHelper, long tGrid, long xGrid, long vGrid, long dampingSteps, FdmSchemeDesc schemeDesc) {
087    this(QuantLibJNI.new_FdHestonVanillaEngine__SWIG_10(HestonModel.getCPtr(model), model, FdmQuantoHelper.getCPtr(quantoHelper), quantoHelper, tGrid, xGrid, vGrid, dampingSteps, FdmSchemeDesc.getCPtr(schemeDesc), schemeDesc), true);
088  }
089
090  public FdHestonVanillaEngine(HestonModel model, FdmQuantoHelper quantoHelper, long tGrid, long xGrid, long vGrid, long dampingSteps) {
091    this(QuantLibJNI.new_FdHestonVanillaEngine__SWIG_11(HestonModel.getCPtr(model), model, FdmQuantoHelper.getCPtr(quantoHelper), quantoHelper, tGrid, xGrid, vGrid, dampingSteps), true);
092  }
093
094  public FdHestonVanillaEngine(HestonModel model, FdmQuantoHelper quantoHelper, long tGrid, long xGrid, long vGrid) {
095    this(QuantLibJNI.new_FdHestonVanillaEngine__SWIG_12(HestonModel.getCPtr(model), model, FdmQuantoHelper.getCPtr(quantoHelper), quantoHelper, tGrid, xGrid, vGrid), true);
096  }
097
098  public FdHestonVanillaEngine(HestonModel model, FdmQuantoHelper quantoHelper, long tGrid, long xGrid) {
099    this(QuantLibJNI.new_FdHestonVanillaEngine__SWIG_13(HestonModel.getCPtr(model), model, FdmQuantoHelper.getCPtr(quantoHelper), quantoHelper, tGrid, xGrid), true);
100  }
101
102  public FdHestonVanillaEngine(HestonModel model, FdmQuantoHelper quantoHelper, long tGrid) {
103    this(QuantLibJNI.new_FdHestonVanillaEngine__SWIG_14(HestonModel.getCPtr(model), model, FdmQuantoHelper.getCPtr(quantoHelper), quantoHelper, tGrid), true);
104  }
105
106  public FdHestonVanillaEngine(HestonModel model, FdmQuantoHelper quantoHelper) {
107    this(QuantLibJNI.new_FdHestonVanillaEngine__SWIG_15(HestonModel.getCPtr(model), model, FdmQuantoHelper.getCPtr(quantoHelper), quantoHelper), true);
108  }
109
110  public FdHestonVanillaEngine(HestonModel model, DividendSchedule dividends, long tGrid, long xGrid, long vGrid, long dampingSteps, FdmSchemeDesc schemeDesc, LocalVolTermStructure leverageFct, double mixingFactor) {
111    this(QuantLibJNI.new_FdHestonVanillaEngine__SWIG_16(HestonModel.getCPtr(model), model, DividendSchedule.getCPtr(dividends), dividends, tGrid, xGrid, vGrid, dampingSteps, FdmSchemeDesc.getCPtr(schemeDesc), schemeDesc, LocalVolTermStructure.getCPtr(leverageFct), leverageFct, mixingFactor), true);
112  }
113
114  public FdHestonVanillaEngine(HestonModel model, DividendSchedule dividends, long tGrid, long xGrid, long vGrid, long dampingSteps, FdmSchemeDesc schemeDesc, LocalVolTermStructure leverageFct) {
115    this(QuantLibJNI.new_FdHestonVanillaEngine__SWIG_17(HestonModel.getCPtr(model), model, DividendSchedule.getCPtr(dividends), dividends, tGrid, xGrid, vGrid, dampingSteps, FdmSchemeDesc.getCPtr(schemeDesc), schemeDesc, LocalVolTermStructure.getCPtr(leverageFct), leverageFct), true);
116  }
117
118  public FdHestonVanillaEngine(HestonModel model, DividendSchedule dividends, long tGrid, long xGrid, long vGrid, long dampingSteps, FdmSchemeDesc schemeDesc) {
119    this(QuantLibJNI.new_FdHestonVanillaEngine__SWIG_18(HestonModel.getCPtr(model), model, DividendSchedule.getCPtr(dividends), dividends, tGrid, xGrid, vGrid, dampingSteps, FdmSchemeDesc.getCPtr(schemeDesc), schemeDesc), true);
120  }
121
122  public FdHestonVanillaEngine(HestonModel model, DividendSchedule dividends, long tGrid, long xGrid, long vGrid, long dampingSteps) {
123    this(QuantLibJNI.new_FdHestonVanillaEngine__SWIG_19(HestonModel.getCPtr(model), model, DividendSchedule.getCPtr(dividends), dividends, tGrid, xGrid, vGrid, dampingSteps), true);
124  }
125
126  public FdHestonVanillaEngine(HestonModel model, DividendSchedule dividends, long tGrid, long xGrid, long vGrid) {
127    this(QuantLibJNI.new_FdHestonVanillaEngine__SWIG_20(HestonModel.getCPtr(model), model, DividendSchedule.getCPtr(dividends), dividends, tGrid, xGrid, vGrid), true);
128  }
129
130  public FdHestonVanillaEngine(HestonModel model, DividendSchedule dividends, long tGrid, long xGrid) {
131    this(QuantLibJNI.new_FdHestonVanillaEngine__SWIG_21(HestonModel.getCPtr(model), model, DividendSchedule.getCPtr(dividends), dividends, tGrid, xGrid), true);
132  }
133
134  public FdHestonVanillaEngine(HestonModel model, DividendSchedule dividends, long tGrid) {
135    this(QuantLibJNI.new_FdHestonVanillaEngine__SWIG_22(HestonModel.getCPtr(model), model, DividendSchedule.getCPtr(dividends), dividends, tGrid), true);
136  }
137
138  public FdHestonVanillaEngine(HestonModel model, DividendSchedule dividends) {
139    this(QuantLibJNI.new_FdHestonVanillaEngine__SWIG_23(HestonModel.getCPtr(model), model, DividendSchedule.getCPtr(dividends), dividends), true);
140  }
141
142  public FdHestonVanillaEngine(HestonModel model, DividendSchedule dividends, FdmQuantoHelper quantoHelper, long tGrid, long xGrid, long vGrid, long dampingSteps, FdmSchemeDesc schemeDesc, LocalVolTermStructure leverageFct, double mixingFactor) {
143    this(QuantLibJNI.new_FdHestonVanillaEngine__SWIG_24(HestonModel.getCPtr(model), model, DividendSchedule.getCPtr(dividends), dividends, FdmQuantoHelper.getCPtr(quantoHelper), quantoHelper, tGrid, xGrid, vGrid, dampingSteps, FdmSchemeDesc.getCPtr(schemeDesc), schemeDesc, LocalVolTermStructure.getCPtr(leverageFct), leverageFct, mixingFactor), true);
144  }
145
146  public FdHestonVanillaEngine(HestonModel model, DividendSchedule dividends, FdmQuantoHelper quantoHelper, long tGrid, long xGrid, long vGrid, long dampingSteps, FdmSchemeDesc schemeDesc, LocalVolTermStructure leverageFct) {
147    this(QuantLibJNI.new_FdHestonVanillaEngine__SWIG_25(HestonModel.getCPtr(model), model, DividendSchedule.getCPtr(dividends), dividends, FdmQuantoHelper.getCPtr(quantoHelper), quantoHelper, tGrid, xGrid, vGrid, dampingSteps, FdmSchemeDesc.getCPtr(schemeDesc), schemeDesc, LocalVolTermStructure.getCPtr(leverageFct), leverageFct), true);
148  }
149
150  public FdHestonVanillaEngine(HestonModel model, DividendSchedule dividends, FdmQuantoHelper quantoHelper, long tGrid, long xGrid, long vGrid, long dampingSteps, FdmSchemeDesc schemeDesc) {
151    this(QuantLibJNI.new_FdHestonVanillaEngine__SWIG_26(HestonModel.getCPtr(model), model, DividendSchedule.getCPtr(dividends), dividends, FdmQuantoHelper.getCPtr(quantoHelper), quantoHelper, tGrid, xGrid, vGrid, dampingSteps, FdmSchemeDesc.getCPtr(schemeDesc), schemeDesc), true);
152  }
153
154  public FdHestonVanillaEngine(HestonModel model, DividendSchedule dividends, FdmQuantoHelper quantoHelper, long tGrid, long xGrid, long vGrid, long dampingSteps) {
155    this(QuantLibJNI.new_FdHestonVanillaEngine__SWIG_27(HestonModel.getCPtr(model), model, DividendSchedule.getCPtr(dividends), dividends, FdmQuantoHelper.getCPtr(quantoHelper), quantoHelper, tGrid, xGrid, vGrid, dampingSteps), true);
156  }
157
158  public FdHestonVanillaEngine(HestonModel model, DividendSchedule dividends, FdmQuantoHelper quantoHelper, long tGrid, long xGrid, long vGrid) {
159    this(QuantLibJNI.new_FdHestonVanillaEngine__SWIG_28(HestonModel.getCPtr(model), model, DividendSchedule.getCPtr(dividends), dividends, FdmQuantoHelper.getCPtr(quantoHelper), quantoHelper, tGrid, xGrid, vGrid), true);
160  }
161
162  public FdHestonVanillaEngine(HestonModel model, DividendSchedule dividends, FdmQuantoHelper quantoHelper, long tGrid, long xGrid) {
163    this(QuantLibJNI.new_FdHestonVanillaEngine__SWIG_29(HestonModel.getCPtr(model), model, DividendSchedule.getCPtr(dividends), dividends, FdmQuantoHelper.getCPtr(quantoHelper), quantoHelper, tGrid, xGrid), true);
164  }
165
166  public FdHestonVanillaEngine(HestonModel model, DividendSchedule dividends, FdmQuantoHelper quantoHelper, long tGrid) {
167    this(QuantLibJNI.new_FdHestonVanillaEngine__SWIG_30(HestonModel.getCPtr(model), model, DividendSchedule.getCPtr(dividends), dividends, FdmQuantoHelper.getCPtr(quantoHelper), quantoHelper, tGrid), true);
168  }
169
170  public FdHestonVanillaEngine(HestonModel model, DividendSchedule dividends, FdmQuantoHelper quantoHelper) {
171    this(QuantLibJNI.new_FdHestonVanillaEngine__SWIG_31(HestonModel.getCPtr(model), model, DividendSchedule.getCPtr(dividends), dividends, FdmQuantoHelper.getCPtr(quantoHelper), quantoHelper), true);
172  }
173
174}