9package com.google.ortools.constraintsolver;
17 private transient long swigCPtr;
20 super(mainJNI.SolutionCollector_SWIGUpcast(cPtr), cMemoryOwn);
25 return (obj ==
null) ? 0 : obj.swigCPtr;
32 throw new RuntimeException(
"Cannot release ownership as memory is not owned");
34 obj.swigCMemOwn =
false;
40 @SuppressWarnings({
"deprecation",
"removal"})
49 mainJNI.delete_SolutionCollector(swigCPtr);
65 mainJNI.SolutionCollector_install(swigCPtr,
this);
69 return mainJNI.SolutionCollector_toString(swigCPtr,
this);
76 mainJNI.SolutionCollector_add__SWIG_0(swigCPtr,
this,
IntVar.
getCPtr(var), var);
80 mainJNI.SolutionCollector_add__SWIG_1(swigCPtr,
this, vars);
88 mainJNI.SolutionCollector_add__SWIG_3(swigCPtr,
this, vars);
96 mainJNI.SolutionCollector_add__SWIG_5(swigCPtr,
this, vars);
100 mainJNI.SolutionCollector_addObjective(swigCPtr,
this,
IntVar.
getCPtr(objective), objective);
104 mainJNI.SolutionCollector_AddObjectives(swigCPtr,
this, objectives);
111 mainJNI.SolutionCollector_enterSearch(swigCPtr,
this);
118 return mainJNI.SolutionCollector_solutionCount(swigCPtr,
this);
125 return mainJNI.SolutionCollector_has_solution(swigCPtr,
this);
132 long cPtr = mainJNI.SolutionCollector_solution(swigCPtr,
this, n);
133 return (cPtr == 0) ? null :
new Assignment(cPtr,
false);
140 long cPtr = mainJNI.SolutionCollector_last_solution_or_null(swigCPtr,
this);
141 return (cPtr == 0) ? null :
new Assignment(cPtr,
false);
148 return mainJNI.SolutionCollector_wallTime(swigCPtr,
this, n);
155 return mainJNI.SolutionCollector_branches(swigCPtr,
this, n);
163 return mainJNI.SolutionCollector_failures(swigCPtr,
this, n);
170 return mainJNI.SolutionCollector_objectiveValue(swigCPtr,
this, n);
177 return mainJNI.SolutionCollector_ObjectiveValueFromIndex(swigCPtr,
this, n, index);
184 return mainJNI.SolutionCollector_value(swigCPtr,
this, n,
IntVar.
getCPtr(var), var);
191 return mainJNI.SolutionCollector_startValue(swigCPtr,
this, n,
IntervalVar.
getCPtr(var), var);
198 return mainJNI.SolutionCollector_endValue(swigCPtr,
this, n,
IntervalVar.
getCPtr(var), var);
205 return mainJNI.SolutionCollector_durationValue(swigCPtr,
this, n,
IntervalVar.
getCPtr(var), var);
212 return mainJNI.SolutionCollector_performedValue(swigCPtr,
this, n,
IntervalVar.
getCPtr(var), var);
221 return mainJNI.SolutionCollector_forwardSequence(swigCPtr,
this, n,
SequenceVar.
getCPtr(var), var);
230 return mainJNI.SolutionCollector_backwardSequence(swigCPtr,
this, n,
SequenceVar.
getCPtr(var), var);
238 return mainJNI.SolutionCollector_unperformed(swigCPtr,
this, n,
SequenceVar.
getCPtr(var), var);