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

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

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

  protected void finalize() {
    delete();
  }

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

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

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

  public void setIdx_d(int value) {
    openbabelJNI.OBFFCalculation4_idx_d_set(swigCPtr, this, value);
  }

  public int getIdx_d() {
    return openbabelJNI.OBFFCalculation4_idx_d_get(swigCPtr, this);
  }

  public void setPos_d(SWIGTYPE_p_double value) {
    openbabelJNI.OBFFCalculation4_pos_d_set(swigCPtr, this, SWIGTYPE_p_double.getCPtr(value));
  }

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

  public void setForce_d(SWIGTYPE_p_double value) {
    openbabelJNI.OBFFCalculation4_force_d_set(swigCPtr, this, SWIGTYPE_p_double.getCPtr(value));
  }

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

  public OBFFCalculation4() {
    this(openbabelJNI.new_OBFFCalculation4(), true);
  }

}
