9package com.google.ortools.constraintsolver;
16 private transient long swigCPtr;
19 super(mainJNI.RegularLimit_SWIGUpcast(cPtr), cMemoryOwn);
24 return (obj ==
null) ? 0 : obj.swigCPtr;
31 throw new RuntimeException(
"Cannot release ownership as memory is not owned");
33 obj.swigCMemOwn =
false;
39 @SuppressWarnings({
"deprecation",
"removal"})
48 mainJNI.delete_RegularLimit(swigCPtr);
64 long cPtr = mainJNI.RegularLimit_makeClone(swigCPtr,
this);
65 return (cPtr == 0) ? null :
new SearchLimit(cPtr,
false);
69 long cPtr = mainJNI.RegularLimit_MakeIdenticalClone(swigCPtr,
this);
70 return (cPtr == 0) ? null :
new RegularLimit(cPtr,
false);
74 return mainJNI.RegularLimit_CheckWithOffset(swigCPtr,
this, SWIGTYPE_p_absl__Duration.getCPtr(offset));
78 mainJNI.RegularLimit_init(swigCPtr,
this);
82 mainJNI.RegularLimit_exitSearch(swigCPtr,
this);
86 mainJNI.RegularLimit_UpdateLimits(swigCPtr,
this, SWIGTYPE_p_absl__Duration.getCPtr(time),
branches,
failures,
solutions);
90 return mainJNI.RegularLimit_wall_time(swigCPtr,
this);
94 return mainJNI.RegularLimit_branches(swigCPtr,
this);
98 return mainJNI.RegularLimit_failures(swigCPtr,
this);
102 return mainJNI.RegularLimit_solutions(swigCPtr,
this);
106 return mainJNI.RegularLimit_IsUncheckedSolutionLimitReached(swigCPtr,
this);
110 return mainJNI.RegularLimit_progressPercent(swigCPtr,
this);
114 return mainJNI.RegularLimit_toString(swigCPtr,
this);
118 mainJNI.RegularLimit_install(swigCPtr,
this);