Generated on Fri Oct 6 16:26:43 2006 for Gecode/J by doxygen 1.4.7

DFSSearch.java

Go to the documentation of this file.
00001 /* ----------------------------------------------------------------------------
00002  * This file was automatically generated by SWIG (http://www.swig.org).
00003  * Version 1.3.29
00004  *
00005  * Do not make changes to this file unless you know what you are doing--modify
00006  * the SWIG interface file instead.
00007  * ----------------------------------------------------------------------------- */
00008 
00009 package org.gecode;
00010 
00016 public class DFSSearch {
00017   private long swigCPtr;
00018   protected boolean swigCMemOwn;
00019 
00020   protected DFSSearch(long cPtr, boolean cMemoryOwn) {
00021     swigCMemOwn = cMemoryOwn;
00022     swigCPtr = cPtr;
00023   }
00024 
00025   protected static long getCPtr(DFSSearch obj) {
00026     return (obj == null) ? 0 : obj.swigCPtr;
00027   }
00028 
00029   protected void finalize() {
00030     delete();
00031   }
00032 
00033   public void delete() {
00034     if(swigCPtr != 0 && swigCMemOwn) {
00035       swigCMemOwn = false;
00036       GecodeJNI.delete_DFSSearch(swigCPtr);
00037     }
00038     swigCPtr = 0;
00039   }
00040  public synchronized JavaSpace next() {
00043     JavaSpace s = next_internal();
00044     if (s != null)
00045        s.swigTakeOwnership();
00046     return s;
00047   }
00048 
00049    public DFSSearch(JavaSpace s, int c_d, int a_d, Stop st) {
00057     this(GecodeJNI.new_DFSSearch__SWIG_0(JavaSpace.getCPtr(s), c_d, a_d, Stop.getCPtr(st)), true);
00058   }
00059 
00060    public DFSSearch(JavaSpace s, int c_d, int a_d) {
00068     this(GecodeJNI.new_DFSSearch__SWIG_1(JavaSpace.getCPtr(s), c_d, a_d), true);
00069   }
00070 
00071    public DFSSearch(JavaSpace s, int c_d) {
00079     this(GecodeJNI.new_DFSSearch__SWIG_2(JavaSpace.getCPtr(s), c_d), true);
00080   }
00081 
00082    public DFSSearch(JavaSpace s) {
00090     this(GecodeJNI.new_DFSSearch__SWIG_3(JavaSpace.getCPtr(s)), true);
00091   }
00092 
00093    public synchronized JavaSpace next_internal() {
00096     return GecodeJNI.DFSSearch_next_internal(swigCPtr);
00097   }
00098 
00099    public synchronized Statistics statistics() {
00102     return new Statistics(GecodeJNI.DFSSearch_statistics(swigCPtr), true);
00103   }
00104 
00105 }