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

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

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

  protected void finalize() {
    delete();
  }

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

  public static OBDescriptor Default() {
    long cPtr = openbabelJNI.OBDescriptor_Default();
    return (cPtr == 0) ? null : new OBDescriptor(cPtr, false);
  }

  public OBDescriptor(String ID, boolean IsDefault) {
    this(openbabelJNI.new_OBDescriptor__SWIG_0(ID, IsDefault), true);
  }

  public OBDescriptor(String ID) {
    this(openbabelJNI.new_OBDescriptor__SWIG_1(ID), true);
  }

  public static OBDescriptor FindType(String ID) {
    long cPtr = openbabelJNI.OBDescriptor_FindType(ID);
    return (cPtr == 0) ? null : new OBDescriptor(cPtr, false);
  }

  public String TypeID() {
    return openbabelJNI.OBDescriptor_TypeID(swigCPtr, this);
  }

  public double Predict(OBBase pOb) {
    return openbabelJNI.OBDescriptor_Predict(swigCPtr, this, OBBase.getCPtr(pOb), pOb);
  }

  public double PredictAndSave(OBBase pOb) {
    return openbabelJNI.OBDescriptor_PredictAndSave(swigCPtr, this, OBBase.getCPtr(pOb), pOb);
  }

  public double GetStringValue(OBBase pOb, SWIGTYPE_p_std__string svalue) {
    return openbabelJNI.OBDescriptor_GetStringValue(swigCPtr, this, OBBase.getCPtr(pOb), pOb, SWIGTYPE_p_std__string.getCPtr(svalue));
  }

  public boolean Compare(OBBase pOb, SWIGTYPE_p_std__istream ss, boolean noEval) {
    return openbabelJNI.OBDescriptor_Compare(swigCPtr, this, OBBase.getCPtr(pOb), pOb, SWIGTYPE_p_std__istream.getCPtr(ss), noEval);
  }

  public boolean Display(SWIGTYPE_p_std__string txt, String param, String ID) {
    return openbabelJNI.OBDescriptor_Display__SWIG_0(swigCPtr, this, SWIGTYPE_p_std__string.getCPtr(txt), param, ID);
  }

  public boolean Display(SWIGTYPE_p_std__string txt, String param) {
    return openbabelJNI.OBDescriptor_Display__SWIG_1(swigCPtr, this, SWIGTYPE_p_std__string.getCPtr(txt), param);
  }

  public static boolean FilterCompare(OBBase pOb, SWIGTYPE_p_std__istream ss, boolean noEval) {
    return openbabelJNI.OBDescriptor_FilterCompare(OBBase.getCPtr(pOb), pOb, SWIGTYPE_p_std__istream.getCPtr(ss), noEval);
  }

  public static void AddProperties(OBBase pOb, String DescrList) {
    openbabelJNI.OBDescriptor_AddProperties(OBBase.getCPtr(pOb), pOb, DescrList);
  }

  public static void DeleteProperties(OBBase pOb, String DescrList) {
    openbabelJNI.OBDescriptor_DeleteProperties(OBBase.getCPtr(pOb), pOb, DescrList);
  }

  public static String GetValues(OBBase pOb, String DescrList) {
    return openbabelJNI.OBDescriptor_GetValues(OBBase.getCPtr(pOb), pOb, DescrList);
  }

}
