9 package com.google.ortools.constraintsolver;
13 import java.util.function.Supplier;
16 private transient long swigCPtr;
18 protected SearchLog(
long cPtr,
boolean cMemoryOwn) {
19 super(mainJNI.SearchLog_SWIGUpcast(cPtr), cMemoryOwn);
23 protected static long getCPtr(
SearchLog obj) {
24 return (obj ==
null) ? 0 : obj.swigCPtr;
27 @SuppressWarnings(
"deprecation")
28 protected
void finalize() {
32 public synchronized void delete() {
36 mainJNI.delete_SearchLog(swigCPtr);
44 this(mainJNI.new_SearchLog(
Solver.getCPtr(s), s,
OptimizeVar.getCPtr(obj), obj,
IntVar.getCPtr(var), var, scaling_factor, display_callback, period),
true);
48 mainJNI.SearchLog_enterSearch(swigCPtr,
this);
52 mainJNI.SearchLog_exitSearch(swigCPtr,
this);
56 return mainJNI.SearchLog_atSolution(swigCPtr,
this);
60 mainJNI.SearchLog_beginFail(swigCPtr,
this);
64 mainJNI.SearchLog_noMoreSolutions(swigCPtr,
this);
68 mainJNI.SearchLog_AcceptUncheckedNeighbor(swigCPtr,
this);
72 mainJNI.SearchLog_applyDecision(swigCPtr,
this,
Decision.getCPtr(decision), decision);
76 mainJNI.SearchLog_refuteDecision(swigCPtr,
this,
Decision.getCPtr(decision), decision);
80 mainJNI.SearchLog_outputDecision(swigCPtr,
this);
84 mainJNI.SearchLog_maintain(swigCPtr,
this);
88 mainJNI.SearchLog_beginInitialPropagation(swigCPtr,
this);
92 mainJNI.SearchLog_endInitialPropagation(swigCPtr,
this);
96 return mainJNI.SearchLog_toString(swigCPtr,
this);