Statistics.java
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009 package org.gecode;
00010
00014 public class Statistics {
00015 private long swigCPtr;
00016 protected boolean swigCMemOwn;
00017
00018 protected Statistics(long cPtr, boolean cMemoryOwn) {
00019 swigCMemOwn = cMemoryOwn;
00020 swigCPtr = cPtr;
00021 }
00022
00023 protected static long getCPtr(Statistics obj) {
00024 return (obj == null) ? 0 : obj.swigCPtr;
00025 }
00026
00027 protected void finalize() {
00028 delete();
00029 }
00030
00031 public void delete() {
00032 if(swigCPtr != 0 && swigCMemOwn) {
00033 swigCMemOwn = false;
00034 GecodeJNI.delete_Statistics(swigCPtr);
00035 }
00036 swigCPtr = 0;
00037 }
00038 public void setPropagate(long value) {
00040 GecodeJNI.Statistics_propagate_set(swigCPtr, value);
00041 }
00042 public long getPropagate() {
00044 return GecodeJNI.Statistics_propagate_get(swigCPtr);
00045 }
00046 public void setFail(long value) {
00048 GecodeJNI.Statistics_fail_set(swigCPtr, value);
00049 }
00050 public long getFail() {
00052 return GecodeJNI.Statistics_fail_get(swigCPtr);
00053 }
00054 public void setClone(long value) {
00056 GecodeJNI.Statistics_clone_set(swigCPtr, value);
00057 }
00058 public long getClone() {
00060 return GecodeJNI.Statistics_clone_get(swigCPtr);
00061 }
00062 public void setCommit(long value) {
00064 GecodeJNI.Statistics_commit_set(swigCPtr, value);
00065 }
00066 public long getCommit() {
00068 return GecodeJNI.Statistics_commit_get(swigCPtr);
00069 }
00070 public void setMemory(long value) {
00072 GecodeJNI.Statistics_memory_set(swigCPtr, value);
00073 }
00074 public long getMemory() {
00076 return GecodeJNI.Statistics_memory_get(swigCPtr);
00077 }
00078 public Statistics() {
00080 this(GecodeJNI.new_Statistics(), true);
00081 }
00082
00083 }