/* ----------------------------------------------------------------------------
 * 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 OBFFCalculation2 {
  private long swigCPtr;
  protected boolean swigCMemOwn;

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

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

  protected void finalize() {
    delete();
  }

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

  public void setEnergy(double value) {
    openbabelJNI.OBFFCalculation2_energy_set(swigCPtr, this, value);
  }

  public double getEnergy() {
    return openbabelJNI.OBFFCalculation2_energy_get(swigCPtr, this);
  }

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

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

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

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

  public void setIdx_a(int value) {
    openbabelJNI.OBFFCalculation2_idx_a_set(swigCPtr, this, value);
  }

  public int getIdx_a() {
    return openbabelJNI.OBFFCalculation2_idx_a_get(swigCPtr, this);
  }

  public void setIdx_b(int value) {
    openbabelJNI.OBFFCalculation2_idx_b_set(swigCPtr, this, value);
  }

  public int getIdx_b() {
    return openbabelJNI.OBFFCalculation2_idx_b_get(swigCPtr, this);
  }

  public void setPos_a(SWIGTYPE_p_double value) {
    openbabelJNI.OBFFCalculation2_pos_a_set(swigCPtr, this, SWIGTYPE_p_double.getCPtr(value));
  }

  public SWIGTYPE_p_double getPos_a() {
    long cPtr = openbabelJNI.OBFFCalculation2_pos_a_get(swigCPtr, this);
    return (cPtr == 0) ? null : new SWIGTYPE_p_double(cPtr, false);
  }

  public void setPos_b(SWIGTYPE_p_double value) {
    openbabelJNI.OBFFCalculation2_pos_b_set(swigCPtr, this, SWIGTYPE_p_double.getCPtr(value));
  }

  public SWIGTYPE_p_double getPos_b() {
    long cPtr = openbabelJNI.OBFFCalculation2_pos_b_get(swigCPtr, this);
    return (cPtr == 0) ? null : new SWIGTYPE_p_double(cPtr, false);
  }

  public void setForce_a(SWIGTYPE_p_double value) {
    openbabelJNI.OBFFCalculation2_force_a_set(swigCPtr, this, SWIGTYPE_p_double.getCPtr(value));
  }

  public SWIGTYPE_p_double getForce_a() {
    long cPtr = openbabelJNI.OBFFCalculation2_force_a_get(swigCPtr, this);
    return (cPtr == 0) ? null : new SWIGTYPE_p_double(cPtr, false);
  }

  public void setForce_b(SWIGTYPE_p_double value) {
    openbabelJNI.OBFFCalculation2_force_b_set(swigCPtr, this, SWIGTYPE_p_double.getCPtr(value));
  }

  public SWIGTYPE_p_double getForce_b() {
    long cPtr = openbabelJNI.OBFFCalculation2_force_b_get(swigCPtr, this);
    return (cPtr == 0) ? null : new SWIGTYPE_p_double(cPtr, false);
  }

  public void SetupPointers() {
    openbabelJNI.OBFFCalculation2_SetupPointers(swigCPtr, this);
  }

  public OBFFCalculation2() {
    this(openbabelJNI.new_OBFFCalculation2(), true);
  }

}
