Google OR-Tools
v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
SearchLimit.java
Go to the documentation of this file.
1
/* ----------------------------------------------------------------------------
2
* This file was automatically generated by SWIG (https://www.swig.org).
3
* Version 4.2.1
4
*
5
* Do not make changes to this file unless you know what you are doing - modify
6
* the SWIG interface file instead.
7
* ----------------------------------------------------------------------------- */
8
9
package
com.google.ortools.constraintsolver;
10
14
public
class
SearchLimit
extends
SearchMonitor
{
15
private
transient
long
swigCPtr;
16
17
protected
SearchLimit
(
long
cPtr,
boolean
cMemoryOwn) {
18
super(mainJNI.SearchLimit_SWIGUpcast(cPtr), cMemoryOwn);
19
swigCPtr = cPtr;
20
}
21
22
protected
static
long
getCPtr
(
SearchLimit
obj) {
23
return
(obj ==
null
) ? 0 : obj.swigCPtr;
24
}
25
26
protected
static
long
swigRelease
(
SearchLimit
obj) {
27
long
ptr = 0;
28
if
(obj !=
null
) {
29
if
(!obj.
swigCMemOwn
)
30
throw
new
RuntimeException(
"Cannot release ownership as memory is not owned"
);
31
ptr = obj.swigCPtr;
32
obj.swigCMemOwn =
false
;
33
obj.
delete
();
34
}
35
return
ptr;
36
}
37
38
@SuppressWarnings({
"deprecation"
,
"removal"
})
39
protected
void
finalize
() {
40
delete
();
41
}
42
43
public
synchronized
void
delete
() {
44
if
(swigCPtr != 0) {
45
if
(
swigCMemOwn
) {
46
swigCMemOwn
=
false
;
47
mainJNI.delete_SearchLimit(swigCPtr);
48
}
49
swigCPtr = 0;
50
}
51
super.delete();
52
}
53
54
public
void
keepAliveDecisionBuilder
(
DecisionBuilder
db) {}
55
59
public
boolean
crossed
() {
60
return
mainJNI.SearchLimit_crossed(swigCPtr,
this
);
61
}
62
69
public
boolean
check
() {
70
return
mainJNI.SearchLimit_check(swigCPtr,
this
);
71
}
72
77
public
boolean
CheckWithOffset
(SWIGTYPE_p_absl__Duration offset) {
78
return
mainJNI.SearchLimit_CheckWithOffset(swigCPtr,
this
, SWIGTYPE_p_absl__Duration.getCPtr(offset));
79
}
80
84
public
void
init
() {
85
mainJNI.SearchLimit_init(swigCPtr,
this
);
86
}
87
92
public
void
copy
(
SearchLimit
limit) {
93
mainJNI.SearchLimit_copy(swigCPtr,
this
,
SearchLimit
.
getCPtr
(limit), limit);
94
}
95
99
public
SearchLimit
makeClone
() {
100
long
cPtr = mainJNI.SearchLimit_makeClone(swigCPtr,
this
);
101
return
(cPtr == 0) ? null :
new
SearchLimit
(cPtr,
false
);
102
}
103
107
public
void
enterSearch
() {
108
mainJNI.SearchLimit_enterSearch(swigCPtr,
this
);
109
}
110
111
public
void
beginNextDecision
(
DecisionBuilder
b) {
112
try
{
113
mainJNI.SearchLimit_beginNextDecision(swigCPtr,
this
,
DecisionBuilder
.
getCPtr
(b), b);
114
}
finally
{
115
keepAliveDecisionBuilder
(b);
116
}
117
}
118
119
public
void
periodicCheck
() {
120
mainJNI.SearchLimit_periodicCheck(swigCPtr,
this
);
121
}
122
123
public
void
refuteDecision
(
Decision
d) {
124
mainJNI.SearchLimit_refuteDecision(swigCPtr,
this
,
Decision
.
getCPtr
(d), d);
125
}
126
127
public
String
toString
() {
128
return
mainJNI.SearchLimit_toString(swigCPtr,
this
);
129
}
130
131
public
void
install
() {
132
mainJNI.SearchLimit_install(swigCPtr,
this
);
133
}
134
135
}
com.google.ortools.constraintsolver.BaseObject.swigCMemOwn
transient boolean swigCMemOwn
Definition
BaseObject.java:18
com.google.ortools.constraintsolver.DecisionBuilder
Definition
DecisionBuilder.java:15
com.google.ortools.constraintsolver.DecisionBuilder.getCPtr
static long getCPtr(DecisionBuilder obj)
Definition
DecisionBuilder.java:23
com.google.ortools.constraintsolver.Decision
Definition
Decision.java:15
com.google.ortools.constraintsolver.Decision.getCPtr
static long getCPtr(Decision obj)
Definition
Decision.java:23
com.google.ortools.constraintsolver.SearchLimit
Definition
SearchLimit.java:14
com.google.ortools.constraintsolver.SearchLimit.crossed
boolean crossed()
Definition
SearchLimit.java:59
com.google.ortools.constraintsolver.SearchLimit.init
void init()
Definition
SearchLimit.java:84
com.google.ortools.constraintsolver.SearchLimit.copy
void copy(SearchLimit limit)
Definition
SearchLimit.java:92
com.google.ortools.constraintsolver.SearchLimit.finalize
void finalize()
Definition
SearchLimit.java:39
com.google.ortools.constraintsolver.SearchLimit.refuteDecision
void refuteDecision(Decision d)
Definition
SearchLimit.java:123
com.google.ortools.constraintsolver.SearchLimit.enterSearch
void enterSearch()
Definition
SearchLimit.java:107
com.google.ortools.constraintsolver.SearchLimit.toString
String toString()
Definition
SearchLimit.java:127
com.google.ortools.constraintsolver.SearchLimit.install
void install()
Definition
SearchLimit.java:131
com.google.ortools.constraintsolver.SearchLimit.SearchLimit
SearchLimit(long cPtr, boolean cMemoryOwn)
Definition
SearchLimit.java:17
com.google.ortools.constraintsolver.SearchLimit.keepAliveDecisionBuilder
void keepAliveDecisionBuilder(DecisionBuilder db)
Definition
SearchLimit.java:54
com.google.ortools.constraintsolver.SearchLimit.makeClone
SearchLimit makeClone()
Definition
SearchLimit.java:99
com.google.ortools.constraintsolver.SearchLimit.swigRelease
static long swigRelease(SearchLimit obj)
Definition
SearchLimit.java:26
com.google.ortools.constraintsolver.SearchLimit.check
boolean check()
Definition
SearchLimit.java:69
com.google.ortools.constraintsolver.SearchLimit.delete
synchronized void delete()
Definition
SearchLimit.java:43
com.google.ortools.constraintsolver.SearchLimit.beginNextDecision
void beginNextDecision(DecisionBuilder b)
Definition
SearchLimit.java:111
com.google.ortools.constraintsolver.SearchLimit.getCPtr
static long getCPtr(SearchLimit obj)
Definition
SearchLimit.java:22
com.google.ortools.constraintsolver.SearchLimit.CheckWithOffset
boolean CheckWithOffset(SWIGTYPE_p_absl__Duration offset)
Definition
SearchLimit.java:77
com.google.ortools.constraintsolver.SearchLimit.periodicCheck
void periodicCheck()
Definition
SearchLimit.java:119
com.google.ortools.constraintsolver.SearchMonitor
Definition
SearchMonitor.java:14
build
java
ortools-java
src
main
java
com
google
ortools
constraintsolver
SearchLimit.java
Generated by
1.12.0