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

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

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

  protected void finalize() {
    delete();
  }

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

  public void set_path(vectorInt value) {
    openbabelJNI.OBRing__path_set(swigCPtr, this, vectorInt.getCPtr(value), value);
  }

  public vectorInt get_path() {
    return new vectorInt(openbabelJNI.OBRing__path_get(swigCPtr, this), false);
  }

  public void set_pathset(OBBitVec value) {
    openbabelJNI.OBRing__pathset_set(swigCPtr, this, OBBitVec.getCPtr(value), value);
  }

  public OBBitVec get_pathset() {
    return new OBBitVec(openbabelJNI.OBRing__pathset_get(swigCPtr, this), false);
  }

  public OBRing() {
    this(openbabelJNI.new_OBRing__SWIG_0(), true);
  }

  public OBRing(vectorInt path, int size) {
    this(openbabelJNI.new_OBRing__SWIG_1(vectorInt.getCPtr(path), path, size), true);
  }

  public OBRing(vectorInt path, OBBitVec set) {
    this(openbabelJNI.new_OBRing__SWIG_2(vectorInt.getCPtr(path), path, OBBitVec.getCPtr(set), set), true);
  }

  public OBRing(OBRing src) {
    this(openbabelJNI.new_OBRing__SWIG_3(OBRing.getCPtr(src), src), true);
  }

  public int Size() {
    return openbabelJNI.OBRing_Size(swigCPtr, this);
  }

  public int PathSize() {
    return openbabelJNI.OBRing_PathSize(swigCPtr, this);
  }

  public boolean IsAromatic() {
    return openbabelJNI.OBRing_IsAromatic(swigCPtr, this);
  }

  public void SetType(String type) {
    openbabelJNI.OBRing_SetType__SWIG_0(swigCPtr, this, type);
  }

  public void SetType(SWIGTYPE_p_std__string type) {
    openbabelJNI.OBRing_SetType__SWIG_1(swigCPtr, this, SWIGTYPE_p_std__string.getCPtr(type));
  }

  public String GetType() {
    return openbabelJNI.OBRing_GetType(swigCPtr, this);
  }

  public long GetRootAtom() {
    return openbabelJNI.OBRing_GetRootAtom(swigCPtr, this);
  }

  public boolean IsMember(OBAtom a) {
    return openbabelJNI.OBRing_IsMember__SWIG_0(swigCPtr, this, OBAtom.getCPtr(a), a);
  }

  public boolean IsMember(OBBond b) {
    return openbabelJNI.OBRing_IsMember__SWIG_1(swigCPtr, this, OBBond.getCPtr(b), b);
  }

  public boolean IsInRing(int i) {
    return openbabelJNI.OBRing_IsInRing(swigCPtr, this, i);
  }

  public void SetParent(OBMol m) {
    openbabelJNI.OBRing_SetParent(swigCPtr, this, OBMol.getCPtr(m), m);
  }

  public OBMol GetParent() {
    long cPtr = openbabelJNI.OBRing_GetParent(swigCPtr, this);
    return (cPtr == 0) ? null : new OBMol(cPtr, false);
  }

  public boolean findCenterAndNormal(vector3 center, vector3 norm1, vector3 norm2) {
    return openbabelJNI.OBRing_findCenterAndNormal(swigCPtr, this, vector3.getCPtr(center), center, vector3.getCPtr(norm1), norm1, vector3.getCPtr(norm2), norm2);
  }

}
