/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (http://www.swig.org).
 * Version 1.3.29
 *
 * 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 FalsePosition {
  private long swigCPtr;
  protected boolean swigCMemOwn;

  protected FalsePosition(long cPtr, boolean cMemoryOwn) {
    swigCMemOwn = cMemoryOwn;
    swigCPtr = cPtr;
  }

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

  protected void finalize() {
    delete();
  }

  public void delete() {
    if(swigCPtr != 0 && swigCMemOwn) {
      swigCMemOwn = false;
      QuantLibJNI.delete_FalsePosition(swigCPtr);
    }
    swigCPtr = 0;
  }

  public void setMaxEvaluations(long evaluations) {
    QuantLibJNI.FalsePosition_setMaxEvaluations(swigCPtr, evaluations);
  }

  public void setLowerBound(double lowerBound) {
    QuantLibJNI.FalsePosition_setLowerBound(swigCPtr, lowerBound);
  }

  public void setUpperBound(double upperBound) {
    QuantLibJNI.FalsePosition_setUpperBound(swigCPtr, upperBound);
  }

  public FalsePosition() {
    this(QuantLibJNI.new_FalsePosition(), true);
  }

}
