9 package com.google.ortools.sat;
12 private transient long swigCPtr;
21 return (obj ==
null) ? 0 : obj.swigCPtr;
24 @SuppressWarnings(
"deprecation")
29 public synchronized void delete() {
33 mainJNI.delete_SolutionCallback(swigCPtr);
46 mainJNI.SolutionCallback_change_ownership(
this, swigCPtr,
false);
51 mainJNI.SolutionCallback_change_ownership(
this, swigCPtr,
true);
55 mainJNI.SolutionCallback_onSolutionCallback(swigCPtr,
this);
59 return mainJNI.SolutionCallback_numBooleans(swigCPtr,
this);
63 return mainJNI.SolutionCallback_numBranches(swigCPtr,
this);
67 return mainJNI.SolutionCallback_numConflicts(swigCPtr,
this);
71 return mainJNI.SolutionCallback_numBinaryPropagations(swigCPtr,
this);
75 return mainJNI.SolutionCallback_numIntegerPropagations(swigCPtr,
this);
79 return mainJNI.SolutionCallback_wallTime(swigCPtr,
this);
83 return mainJNI.SolutionCallback_userTime(swigCPtr,
this);
87 return mainJNI.SolutionCallback_objectiveValue(swigCPtr,
this);
91 return mainJNI.SolutionCallback_bestObjectiveBound(swigCPtr,
this);
95 return mainJNI.SolutionCallback_solutionIntegerValue(swigCPtr,
this, index);
99 return mainJNI.SolutionCallback_solutionBooleanValue(swigCPtr,
this, index);
103 mainJNI.SolutionCallback_stopSearch(swigCPtr,
this);
107 this(mainJNI.new_SolutionCallback(),
true);
108 mainJNI.SolutionCallback_director_connect(
this, swigCPtr,
true,
true);