9 package com.google.ortools.constraintsolver;
13 import java.util.function.Supplier;
19 private transient long swigCPtr;
21 protected SearchLog(
long cPtr,
boolean cMemoryOwn) {
22 super(mainJNI.SearchLog_SWIGUpcast(cPtr), cMemoryOwn);
26 protected static long getCPtr(
SearchLog obj) {
27 return (obj ==
null) ? 0 : obj.swigCPtr;
30 @SuppressWarnings(
"deprecation")
31 protected
void finalize() {
35 public synchronized void delete() {
39 mainJNI.delete_SearchLog(swigCPtr);
47 this(mainJNI.new_SearchLog(
Solver.getCPtr(s), s,
OptimizeVar.getCPtr(obj), obj,
IntVar.getCPtr(var), var, scaling_factor, display_callback, period),
true);
51 mainJNI.SearchLog_enterSearch(swigCPtr,
this);
55 mainJNI.SearchLog_exitSearch(swigCPtr,
this);
59 return mainJNI.SearchLog_atSolution(swigCPtr,
this);
63 mainJNI.SearchLog_beginFail(swigCPtr,
this);
67 mainJNI.SearchLog_noMoreSolutions(swigCPtr,
this);
71 mainJNI.SearchLog_AcceptUncheckedNeighbor(swigCPtr,
this);
75 mainJNI.SearchLog_applyDecision(swigCPtr,
this,
Decision.getCPtr(decision), decision);
79 mainJNI.SearchLog_refuteDecision(swigCPtr,
this,
Decision.getCPtr(decision), decision);
83 mainJNI.SearchLog_outputDecision(swigCPtr,
this);
87 mainJNI.SearchLog_maintain(swigCPtr,
this);
91 mainJNI.SearchLog_beginInitialPropagation(swigCPtr,
this);
95 mainJNI.SearchLog_endInitialPropagation(swigCPtr,
this);
99 return mainJNI.SearchLog_toString(swigCPtr,
this);