9package com.google.ortools.sat;
12 private transient long swigCPtr;
21 return (obj ==
null) ? 0 : obj.swigCPtr;
28 throw new RuntimeException(
"Cannot release ownership as memory is not owned");
30 obj.swigCMemOwn =
false;
36 @SuppressWarnings({
"deprecation",
"removal"})
45 mainJNI.delete_SolutionCallback(swigCPtr);
58 mainJNI.SolutionCallback_change_ownership(
this, swigCPtr,
false);
63 mainJNI.SolutionCallback_change_ownership(
this, swigCPtr,
true);
67 mainJNI.SolutionCallback_onSolutionCallback(swigCPtr,
this);
71 return mainJNI.SolutionCallback_numBooleans(swigCPtr,
this);
75 return mainJNI.SolutionCallback_numBranches(swigCPtr,
this);
79 return mainJNI.SolutionCallback_numConflicts(swigCPtr,
this);
83 return mainJNI.SolutionCallback_numBinaryPropagations(swigCPtr,
this);
87 return mainJNI.SolutionCallback_numIntegerPropagations(swigCPtr,
this);
91 return mainJNI.SolutionCallback_wallTime(swigCPtr,
this);
95 return mainJNI.SolutionCallback_userTime(swigCPtr,
this);
99 return mainJNI.SolutionCallback_objectiveValue(swigCPtr,
this);
103 return mainJNI.SolutionCallback_bestObjectiveBound(swigCPtr,
this);
107 return mainJNI.SolutionCallback_solutionIntegerValue(swigCPtr,
this, index);
111 return mainJNI.SolutionCallback_solutionBooleanValue(swigCPtr,
this, index);
115 mainJNI.SolutionCallback_stopSearch(swigCPtr,
this);
119 this(mainJNI.new_SolutionCallback(),
true);
120 mainJNI.SolutionCallback_director_connect(
this, swigCPtr,
true,
true);