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


public class OBFFConstraint {
  private long swigCPtr;
  protected boolean swigCMemOwn;

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

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

  protected void finalize() {
    delete();
  }

  public synchronized void delete() {
    if(swigCPtr != 0 && swigCMemOwn) {
      swigCMemOwn = false;
      openbabelJNI.delete_OBFFConstraint(swigCPtr);
    }
    swigCPtr = 0;
  }

  public void setFactor(double value) {
    openbabelJNI.OBFFConstraint_factor_set(swigCPtr, this, value);
  }

  public double getFactor() {
    return openbabelJNI.OBFFConstraint_factor_get(swigCPtr, this);
  }

  public void setConstraint_value(double value) {
    openbabelJNI.OBFFConstraint_constraint_value_set(swigCPtr, this, value);
  }

  public double getConstraint_value() {
    return openbabelJNI.OBFFConstraint_constraint_value_get(swigCPtr, this);
  }

  public void setRab0(double value) {
    openbabelJNI.OBFFConstraint_rab0_set(swigCPtr, this, value);
  }

  public double getRab0() {
    return openbabelJNI.OBFFConstraint_rab0_get(swigCPtr, this);
  }

  public void setRbc0(double value) {
    openbabelJNI.OBFFConstraint_rbc0_set(swigCPtr, this, value);
  }

  public double getRbc0() {
    return openbabelJNI.OBFFConstraint_rbc0_get(swigCPtr, this);
  }

  public void setType(int value) {
    openbabelJNI.OBFFConstraint_type_set(swigCPtr, this, value);
  }

  public int getType() {
    return openbabelJNI.OBFFConstraint_type_get(swigCPtr, this);
  }

  public void setIa(int value) {
    openbabelJNI.OBFFConstraint_ia_set(swigCPtr, this, value);
  }

  public int getIa() {
    return openbabelJNI.OBFFConstraint_ia_get(swigCPtr, this);
  }

  public void setIb(int value) {
    openbabelJNI.OBFFConstraint_ib_set(swigCPtr, this, value);
  }

  public int getIb() {
    return openbabelJNI.OBFFConstraint_ib_get(swigCPtr, this);
  }

  public void setIc(int value) {
    openbabelJNI.OBFFConstraint_ic_set(swigCPtr, this, value);
  }

  public int getIc() {
    return openbabelJNI.OBFFConstraint_ic_get(swigCPtr, this);
  }

  public void setId(int value) {
    openbabelJNI.OBFFConstraint_id_set(swigCPtr, this, value);
  }

  public int getId() {
    return openbabelJNI.OBFFConstraint_id_get(swigCPtr, this);
  }

  public void setA(OBAtom value) {
    openbabelJNI.OBFFConstraint_a_set(swigCPtr, this, OBAtom.getCPtr(value), value);
  }

  public OBAtom getA() {
    long cPtr = openbabelJNI.OBFFConstraint_a_get(swigCPtr, this);
    return (cPtr == 0) ? null : new OBAtom(cPtr, false);
  }

  public void setB(OBAtom value) {
    openbabelJNI.OBFFConstraint_b_set(swigCPtr, this, OBAtom.getCPtr(value), value);
  }

  public OBAtom getB() {
    long cPtr = openbabelJNI.OBFFConstraint_b_get(swigCPtr, this);
    return (cPtr == 0) ? null : new OBAtom(cPtr, false);
  }

  public void setC(OBAtom value) {
    openbabelJNI.OBFFConstraint_c_set(swigCPtr, this, OBAtom.getCPtr(value), value);
  }

  public OBAtom getC() {
    long cPtr = openbabelJNI.OBFFConstraint_c_get(swigCPtr, this);
    return (cPtr == 0) ? null : new OBAtom(cPtr, false);
  }

  public void setD(OBAtom value) {
    openbabelJNI.OBFFConstraint_d_set(swigCPtr, this, OBAtom.getCPtr(value), value);
  }

  public OBAtom getD() {
    long cPtr = openbabelJNI.OBFFConstraint_d_get(swigCPtr, this);
    return (cPtr == 0) ? null : new OBAtom(cPtr, false);
  }

  public void setGrada(vector3 value) {
    openbabelJNI.OBFFConstraint_grada_set(swigCPtr, this, vector3.getCPtr(value), value);
  }

  public vector3 getGrada() {
    return new vector3(openbabelJNI.OBFFConstraint_grada_get(swigCPtr, this), false);
  }

  public void setGradb(vector3 value) {
    openbabelJNI.OBFFConstraint_gradb_set(swigCPtr, this, vector3.getCPtr(value), value);
  }

  public vector3 getGradb() {
    return new vector3(openbabelJNI.OBFFConstraint_gradb_get(swigCPtr, this), false);
  }

  public void setGradc(vector3 value) {
    openbabelJNI.OBFFConstraint_gradc_set(swigCPtr, this, vector3.getCPtr(value), value);
  }

  public vector3 getGradc() {
    return new vector3(openbabelJNI.OBFFConstraint_gradc_get(swigCPtr, this), false);
  }

  public void setGradd(vector3 value) {
    openbabelJNI.OBFFConstraint_gradd_set(swigCPtr, this, vector3.getCPtr(value), value);
  }

  public vector3 getGradd() {
    return new vector3(openbabelJNI.OBFFConstraint_gradd_get(swigCPtr, this), false);
  }

  public OBFFConstraint() {
    this(openbabelJNI.new_OBFFConstraint(), true);
  }

  public vector3 GetGradient(int a) {
    return new vector3(openbabelJNI.OBFFConstraint_GetGradient(swigCPtr, this, a), true);
  }

}
