/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (https://www.swig.org).
 * Version 4.1.0
 *
 * Do not make changes to this file unless you know what you are doing - modify
 * the SWIG interface file instead.
 * ----------------------------------------------------------------------------- */

package org.quantlib;

public class MCLDDiscreteArithmeticAPHestonEngine extends PricingEngine {
  private transient long swigCPtr;
  private transient boolean swigCMemOwnDerived;

  protected MCLDDiscreteArithmeticAPHestonEngine(long cPtr, boolean cMemoryOwn) {
    super(QuantLibJNI.MCLDDiscreteArithmeticAPHestonEngine_SWIGSmartPtrUpcast(cPtr), true);
    swigCMemOwnDerived = cMemoryOwn;
    swigCPtr = cPtr;
  }

  protected static long getCPtr(MCLDDiscreteArithmeticAPHestonEngine obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  protected void swigSetCMemOwn(boolean own) {
    swigCMemOwnDerived = own;
    super.swigSetCMemOwn(own);
  }

  @SuppressWarnings("deprecation")
  protected void finalize() {
    delete();
  }

  public synchronized void delete() {
    if (swigCPtr != 0) {
      if (swigCMemOwnDerived) {
        swigCMemOwnDerived = false;
        QuantLibJNI.delete_MCLDDiscreteArithmeticAPHestonEngine(swigCPtr);
      }
      swigCPtr = 0;
    }
    super.delete();
  }

  public MCLDDiscreteArithmeticAPHestonEngine(HestonProcess process, boolean antitheticVariate, int requiredSamples, double requiredTolerance, int maxSamples, int seed, int timeSteps, int timeStepsPerYear, boolean controlVariate) {
    this(QuantLibJNI.new_MCLDDiscreteArithmeticAPHestonEngine__SWIG_0(HestonProcess.getCPtr(process), process, antitheticVariate, requiredSamples, requiredTolerance, maxSamples, seed, timeSteps, timeStepsPerYear, controlVariate), true);
  }

  public MCLDDiscreteArithmeticAPHestonEngine(HestonProcess process, boolean antitheticVariate, int requiredSamples, double requiredTolerance, int maxSamples, int seed, int timeSteps, int timeStepsPerYear) {
    this(QuantLibJNI.new_MCLDDiscreteArithmeticAPHestonEngine__SWIG_1(HestonProcess.getCPtr(process), process, antitheticVariate, requiredSamples, requiredTolerance, maxSamples, seed, timeSteps, timeStepsPerYear), true);
  }

  public MCLDDiscreteArithmeticAPHestonEngine(HestonProcess process, boolean antitheticVariate, int requiredSamples, double requiredTolerance, int maxSamples, int seed, int timeSteps) {
    this(QuantLibJNI.new_MCLDDiscreteArithmeticAPHestonEngine__SWIG_2(HestonProcess.getCPtr(process), process, antitheticVariate, requiredSamples, requiredTolerance, maxSamples, seed, timeSteps), true);
  }

  public MCLDDiscreteArithmeticAPHestonEngine(HestonProcess process, boolean antitheticVariate, int requiredSamples, double requiredTolerance, int maxSamples, int seed) {
    this(QuantLibJNI.new_MCLDDiscreteArithmeticAPHestonEngine__SWIG_3(HestonProcess.getCPtr(process), process, antitheticVariate, requiredSamples, requiredTolerance, maxSamples, seed), true);
  }

  public MCLDDiscreteArithmeticAPHestonEngine(HestonProcess process, boolean antitheticVariate, int requiredSamples, double requiredTolerance, int maxSamples) {
    this(QuantLibJNI.new_MCLDDiscreteArithmeticAPHestonEngine__SWIG_4(HestonProcess.getCPtr(process), process, antitheticVariate, requiredSamples, requiredTolerance, maxSamples), true);
  }

  public MCLDDiscreteArithmeticAPHestonEngine(HestonProcess process, boolean antitheticVariate, int requiredSamples, double requiredTolerance) {
    this(QuantLibJNI.new_MCLDDiscreteArithmeticAPHestonEngine__SWIG_5(HestonProcess.getCPtr(process), process, antitheticVariate, requiredSamples, requiredTolerance), true);
  }

  public MCLDDiscreteArithmeticAPHestonEngine(HestonProcess process, boolean antitheticVariate, int requiredSamples) {
    this(QuantLibJNI.new_MCLDDiscreteArithmeticAPHestonEngine__SWIG_6(HestonProcess.getCPtr(process), process, antitheticVariate, requiredSamples), true);
  }

  public MCLDDiscreteArithmeticAPHestonEngine(HestonProcess process, boolean antitheticVariate) {
    this(QuantLibJNI.new_MCLDDiscreteArithmeticAPHestonEngine__SWIG_7(HestonProcess.getCPtr(process), process, antitheticVariate), true);
  }

  public MCLDDiscreteArithmeticAPHestonEngine(HestonProcess process) {
    this(QuantLibJNI.new_MCLDDiscreteArithmeticAPHestonEngine__SWIG_8(HestonProcess.getCPtr(process), process), true);
  }

}
