9 package com.google.ortools.constraintsolver;
12 private transient long swigCPtr;
15 super(mainJNI.SolutionCollector_SWIGUpcast(cPtr), cMemoryOwn);
20 return (obj ==
null) ? 0 : obj.swigCPtr;
23 @SuppressWarnings(
"deprecation")
24 protected
void finalize() {
28 public synchronized void delete() {
32 mainJNI.delete_SolutionCollector(swigCPtr);
48 return mainJNI.SolutionCollector_toString(swigCPtr,
this);
52 mainJNI.SolutionCollector_add__SWIG_0(swigCPtr,
this,
IntVar.getCPtr(var), var);
56 mainJNI.SolutionCollector_add__SWIG_1(swigCPtr,
this, vars);
60 mainJNI.SolutionCollector_add__SWIG_2(swigCPtr,
this,
IntervalVar.getCPtr(var), var);
64 mainJNI.SolutionCollector_add__SWIG_3(swigCPtr,
this, vars);
68 mainJNI.SolutionCollector_add__SWIG_4(swigCPtr,
this,
SequenceVar.getCPtr(var), var);
72 mainJNI.SolutionCollector_add__SWIG_5(swigCPtr,
this, vars);
76 mainJNI.SolutionCollector_addObjective(swigCPtr,
this,
IntVar.getCPtr(objective), objective);
80 mainJNI.SolutionCollector_enterSearch(swigCPtr,
this);
84 return mainJNI.SolutionCollector_solutionCount(swigCPtr,
this);
88 long cPtr = mainJNI.SolutionCollector_solution(swigCPtr,
this, n);
89 return (cPtr == 0) ? null :
new Assignment(cPtr,
false);
93 return mainJNI.SolutionCollector_wallTime(swigCPtr,
this, n);
97 return mainJNI.SolutionCollector_branches(swigCPtr,
this, n);
101 return mainJNI.SolutionCollector_failures(swigCPtr,
this, n);
105 return mainJNI.SolutionCollector_objectiveValue(swigCPtr,
this, n);
109 return mainJNI.SolutionCollector_value(swigCPtr,
this, n,
IntVar.getCPtr(var), var);
113 return mainJNI.SolutionCollector_startValue(swigCPtr,
this, n,
IntervalVar.getCPtr(var), var);
117 return mainJNI.SolutionCollector_endValue(swigCPtr,
this, n,
IntervalVar.getCPtr(var), var);
121 return mainJNI.SolutionCollector_durationValue(swigCPtr,
this, n,
IntervalVar.getCPtr(var), var);
125 return mainJNI.SolutionCollector_performedValue(swigCPtr,
this, n,
IntervalVar.getCPtr(var), var);
129 return mainJNI.SolutionCollector_forwardSequence(swigCPtr,
this, n,
SequenceVar.getCPtr(var), var);
133 return mainJNI.SolutionCollector_backwardSequence(swigCPtr,
this, n,
SequenceVar.getCPtr(var), var);
137 return mainJNI.SolutionCollector_unperformed(swigCPtr,
this, n,
SequenceVar.getCPtr(var), var);