/* ----------------------------------------------------------------------------
 * 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 OBFFCalculation3 extends OBFFCalculation2 {
  private long swigCPtr;

  protected OBFFCalculation3(long cPtr, boolean cMemoryOwn) {
    super(openbabelJNI.SWIGOBFFCalculation3Upcast(cPtr), cMemoryOwn);
    swigCPtr = cPtr;
  }

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

  protected void finalize() {
    delete();
  }

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

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

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

  public void setIdx_c(int value) {
    openbabelJNI.OBFFCalculation3_idx_c_set(swigCPtr, this, value);
  }

  public int getIdx_c() {
    return openbabelJNI.OBFFCalculation3_idx_c_get(swigCPtr, this);
  }

  public void setPos_c(SWIGTYPE_p_double value) {
    openbabelJNI.OBFFCalculation3_pos_c_set(swigCPtr, this, SWIGTYPE_p_double.getCPtr(value));
  }

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

  public void setForce_c(SWIGTYPE_p_double value) {
    openbabelJNI.OBFFCalculation3_force_c_set(swigCPtr, this, SWIGTYPE_p_double.getCPtr(value));
  }

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

  public OBFFCalculation3() {
    this(openbabelJNI.new_OBFFCalculation3(), true);
  }

}
