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);
66 @SuppressWarnings(
"this-escape")
68 this(mainJNI.new_SolutionCallback(),
true);
69 mainJNI.SolutionCallback_director_connect(
this, swigCPtr,
true,
true);
73 mainJNI.SolutionCallback_onSolutionCallback(swigCPtr,
this);
77 return mainJNI.SolutionCallback_numBooleans(swigCPtr,
this);
81 return mainJNI.SolutionCallback_numBranches(swigCPtr,
this);
85 return mainJNI.SolutionCallback_numConflicts(swigCPtr,
this);
89 return mainJNI.SolutionCallback_numBinaryPropagations(swigCPtr,
this);
93 return mainJNI.SolutionCallback_numIntegerPropagations(swigCPtr,
this);
97 return mainJNI.SolutionCallback_wallTime(swigCPtr,
this);
101 return mainJNI.SolutionCallback_userTime(swigCPtr,
this);
105 return mainJNI.SolutionCallback_objectiveValue(swigCPtr,
this);
109 return mainJNI.SolutionCallback_bestObjectiveBound(swigCPtr,
this);
113 return mainJNI.SolutionCallback_solutionIntegerValue(swigCPtr,
this, index);
117 return mainJNI.SolutionCallback_solutionBooleanValue(swigCPtr,
this, index);
121 mainJNI.SolutionCallback_stopSearch(swigCPtr,
this);