9package com.google.ortools.constraintsolver;
15 private transient long swigCPtr;
18 super(mainJNI.SearchMonitor_SWIGUpcast(cPtr), cMemoryOwn);
23 return (obj ==
null) ? 0 : obj.swigCPtr;
30 throw new RuntimeException(
"Cannot release ownership as memory is not owned");
32 obj.swigCMemOwn =
false;
38 @SuppressWarnings({
"deprecation",
"removal"})
47 mainJNI.delete_SearchMonitor(swigCPtr);
61 mainJNI.SearchMonitor_change_ownership(
this, swigCPtr,
false);
66 mainJNI.SearchMonitor_change_ownership(
this, swigCPtr,
true);
73 mainJNI.SearchMonitor_director_connect(
this, swigCPtr,
true,
true);
80 if (getClass() ==
SearchMonitor.class) mainJNI.SearchMonitor_enterSearch(swigCPtr,
this);
else mainJNI.SearchMonitor_enterSearchSwigExplicitSearchMonitor(swigCPtr,
this);
87 if (getClass() ==
SearchMonitor.class) mainJNI.SearchMonitor_restartSearch(swigCPtr,
this);
else mainJNI.SearchMonitor_restartSearchSwigExplicitSearchMonitor(swigCPtr,
this);
94 if (getClass() ==
SearchMonitor.class) mainJNI.SearchMonitor_exitSearch(swigCPtr,
this);
else mainJNI.SearchMonitor_exitSearchSwigExplicitSearchMonitor(swigCPtr,
this);
113 if (getClass() ==
SearchMonitor.class) mainJNI.SearchMonitor_endNextDecision(swigCPtr,
this,
DecisionBuilder.
getCPtr(b), b,
Decision.
getCPtr(d), d);
else mainJNI.SearchMonitor_endNextDecisionSwigExplicitSearchMonitor(swigCPtr,
this,
DecisionBuilder.
getCPtr(b), b,
Decision.
getCPtr(d), d);
123 if (getClass() ==
SearchMonitor.class) mainJNI.SearchMonitor_applyDecision(swigCPtr,
this,
Decision.
getCPtr(d), d);
else mainJNI.SearchMonitor_applyDecisionSwigExplicitSearchMonitor(swigCPtr,
this,
Decision.
getCPtr(d), d);
130 if (getClass() ==
SearchMonitor.class) mainJNI.SearchMonitor_refuteDecision(swigCPtr,
this,
Decision.
getCPtr(d), d);
else mainJNI.SearchMonitor_refuteDecisionSwigExplicitSearchMonitor(swigCPtr,
this,
Decision.
getCPtr(d), d);
138 if (getClass() ==
SearchMonitor.class) mainJNI.SearchMonitor_afterDecision(swigCPtr,
this,
Decision.
getCPtr(d), d, apply);
else mainJNI.SearchMonitor_afterDecisionSwigExplicitSearchMonitor(swigCPtr,
this,
Decision.
getCPtr(d), d, apply);
145 if (getClass() ==
SearchMonitor.class) mainJNI.SearchMonitor_beginFail(swigCPtr,
this);
else mainJNI.SearchMonitor_beginFailSwigExplicitSearchMonitor(swigCPtr,
this);
152 if (getClass() ==
SearchMonitor.class) mainJNI.SearchMonitor_endFail(swigCPtr,
this);
else mainJNI.SearchMonitor_endFailSwigExplicitSearchMonitor(swigCPtr,
this);
159 if (getClass() ==
SearchMonitor.class) mainJNI.SearchMonitor_beginInitialPropagation(swigCPtr,
this);
else mainJNI.SearchMonitor_beginInitialPropagationSwigExplicitSearchMonitor(swigCPtr,
this);
166 if (getClass() ==
SearchMonitor.class) mainJNI.SearchMonitor_endInitialPropagation(swigCPtr,
this);
else mainJNI.SearchMonitor_endInitialPropagationSwigExplicitSearchMonitor(swigCPtr,
this);
175 return (getClass() ==
SearchMonitor.class) ? mainJNI.SearchMonitor_acceptSolution(swigCPtr,
this) : mainJNI.SearchMonitor_acceptSolutionSwigExplicitSearchMonitor(swigCPtr,
this);
184 return (getClass() ==
SearchMonitor.class) ? mainJNI.SearchMonitor_atSolution(swigCPtr,
this) : mainJNI.SearchMonitor_atSolutionSwigExplicitSearchMonitor(swigCPtr,
this);
191 if (getClass() ==
SearchMonitor.class) mainJNI.SearchMonitor_noMoreSolutions(swigCPtr,
this);
else mainJNI.SearchMonitor_noMoreSolutionsSwigExplicitSearchMonitor(swigCPtr,
this);
199 return (getClass() ==
SearchMonitor.class) ? mainJNI.SearchMonitor_localOptimum(swigCPtr,
this) : mainJNI.SearchMonitor_localOptimumSwigExplicitSearchMonitor(swigCPtr,
this);
206 return (getClass() ==
SearchMonitor.class) ? mainJNI.SearchMonitor_acceptDelta(swigCPtr,
this,
Assignment.
getCPtr(delta), delta,
Assignment.
getCPtr(deltadelta), deltadelta) : mainJNI.SearchMonitor_acceptDeltaSwigExplicitSearchMonitor(swigCPtr,
this,
Assignment.
getCPtr(delta), delta,
Assignment.
getCPtr(deltadelta), deltadelta);
213 if (getClass() ==
SearchMonitor.class) mainJNI.SearchMonitor_acceptNeighbor(swigCPtr,
this);
else mainJNI.SearchMonitor_acceptNeighborSwigExplicitSearchMonitor(swigCPtr,
this);
220 if (getClass() ==
SearchMonitor.class) mainJNI.SearchMonitor_AcceptUncheckedNeighbor(swigCPtr,
this);
else mainJNI.SearchMonitor_AcceptUncheckedNeighborSwigExplicitSearchMonitor(swigCPtr,
this);
228 return (getClass() ==
SearchMonitor.class) ? mainJNI.SearchMonitor_IsUncheckedSolutionLimitReached(swigCPtr,
this) : mainJNI.SearchMonitor_IsUncheckedSolutionLimitReachedSwigExplicitSearchMonitor(swigCPtr,
this);
235 if (getClass() ==
SearchMonitor.class) mainJNI.SearchMonitor_periodicCheck(swigCPtr,
this);
else mainJNI.SearchMonitor_periodicCheckSwigExplicitSearchMonitor(swigCPtr,
this);
243 return (getClass() ==
SearchMonitor.class) ? mainJNI.SearchMonitor_progressPercent(swigCPtr,
this) : mainJNI.SearchMonitor_progressPercentSwigExplicitSearchMonitor(swigCPtr,
this);
259 if (getClass() ==
SearchMonitor.class) mainJNI.SearchMonitor_install(swigCPtr,
this);
else mainJNI.SearchMonitor_installSwigExplicitSearchMonitor(swigCPtr,
this);
263 long cPtr = mainJNI.SearchMonitor_solver(swigCPtr,
this);
264 return (cPtr == 0) ? null :
new Solver(cPtr,
false);
267 public final static int kNoProgress = mainJNI.SearchMonitor_kNoProgress_get();