9package com.google.ortools.constraintsolver;
13import java.util.function.Supplier;
20 private transient long swigCPtr;
22 protected SearchLog(
long cPtr,
boolean cMemoryOwn) {
23 super(mainJNI.SearchLog_SWIGUpcast(cPtr), cMemoryOwn);
28 return (obj ==
null) ? 0 : obj.swigCPtr;
35 throw new RuntimeException(
"Cannot release ownership as memory is not owned");
37 obj.swigCMemOwn =
false;
43 @SuppressWarnings({
"deprecation",
"removal"})
52 mainJNI.delete_SearchLog(swigCPtr);
59 public SearchLog(
Solver solver,
IntVar[] vars, String vars_name,
double[] scaling_factors,
double[] offsets, Supplier<String> display_callback,
boolean display_on_new_solutions_only,
int period) {
60 this(mainJNI.new_SearchLog(
Solver.
getCPtr(
solver),
solver, vars, vars_name, scaling_factors, offsets, display_callback, display_on_new_solutions_only, period),
true);
64 mainJNI.SearchLog_enterSearch(swigCPtr,
this);
68 mainJNI.SearchLog_exitSearch(swigCPtr,
this);
72 return mainJNI.SearchLog_atSolution(swigCPtr,
this);
76 mainJNI.SearchLog_beginFail(swigCPtr,
this);
80 mainJNI.SearchLog_noMoreSolutions(swigCPtr,
this);
84 mainJNI.SearchLog_AcceptUncheckedNeighbor(swigCPtr,
this);
88 mainJNI.SearchLog_applyDecision(swigCPtr,
this,
Decision.
getCPtr(decision), decision);
92 mainJNI.SearchLog_refuteDecision(swigCPtr,
this,
Decision.
getCPtr(decision), decision);
96 mainJNI.SearchLog_outputDecision(swigCPtr,
this);
100 mainJNI.SearchLog_maintain(swigCPtr,
this);
104 mainJNI.SearchLog_beginInitialPropagation(swigCPtr,
this);
108 mainJNI.SearchLog_endInitialPropagation(swigCPtr,
this);
112 return mainJNI.SearchLog_toString(swigCPtr,
this);