Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
PropagationMonitor.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
9package com.google.ortools.constraintsolver;
10
11public class PropagationMonitor extends SearchMonitor {
12 private transient long swigCPtr;
13
14 protected PropagationMonitor(long cPtr, boolean cMemoryOwn) {
15 super(mainJNI.PropagationMonitor_SWIGUpcast(cPtr), cMemoryOwn);
16 swigCPtr = cPtr;
17 }
18
19 protected static long getCPtr(PropagationMonitor obj) {
20 return (obj == null) ? 0 : obj.swigCPtr;
21 }
22
23 protected static long swigRelease(PropagationMonitor obj) {
24 long ptr = 0;
25 if (obj != null) {
26 if (!obj.swigCMemOwn)
27 throw new RuntimeException("Cannot release ownership as memory is not owned");
28 ptr = obj.swigCPtr;
29 obj.swigCMemOwn = false;
30 obj.delete();
31 }
32 return ptr;
33 }
34
35 @SuppressWarnings({"deprecation", "removal"})
36 protected void finalize() {
37 delete();
38 }
39
40 public synchronized void delete() {
41 if (swigCPtr != 0) {
42 if (swigCMemOwn) {
43 swigCMemOwn = false;
44 mainJNI.delete_PropagationMonitor(swigCPtr);
45 }
46 swigCPtr = 0;
47 }
48 super.delete();
49 }
50
51 public String toString() {
52 return mainJNI.PropagationMonitor_toString(swigCPtr, this);
53 }
54
59 mainJNI.PropagationMonitor_beginConstraintInitialPropagation(swigCPtr, this, Constraint.getCPtr(constraint), constraint);
60 }
61
63 mainJNI.PropagationMonitor_endConstraintInitialPropagation(swigCPtr, this, Constraint.getCPtr(constraint), constraint);
64 }
65
67 mainJNI.PropagationMonitor_beginNestedConstraintInitialPropagation(swigCPtr, this, Constraint.getCPtr(parent), parent, Constraint.getCPtr(nested), nested);
68 }
69
71 mainJNI.PropagationMonitor_endNestedConstraintInitialPropagation(swigCPtr, this, Constraint.getCPtr(parent), parent, Constraint.getCPtr(nested), nested);
72 }
73
74 public void registerDemon(Demon demon) {
75 mainJNI.PropagationMonitor_registerDemon(swigCPtr, this, Demon.getCPtr(demon), demon);
76 }
77
78 public void beginDemonRun(Demon demon) {
79 mainJNI.PropagationMonitor_beginDemonRun(swigCPtr, this, Demon.getCPtr(demon), demon);
80 }
81
82 public void endDemonRun(Demon demon) {
83 mainJNI.PropagationMonitor_endDemonRun(swigCPtr, this, Demon.getCPtr(demon), demon);
84 }
85
87 mainJNI.PropagationMonitor_startProcessingIntegerVariable(swigCPtr, this, IntVar.getCPtr(var), var);
88 }
89
91 mainJNI.PropagationMonitor_endProcessingIntegerVariable(swigCPtr, this, IntVar.getCPtr(var), var);
92 }
93
94 public void pushContext(String context) {
95 mainJNI.PropagationMonitor_pushContext(swigCPtr, this, context);
96 }
97
98 public void popContext() {
99 mainJNI.PropagationMonitor_popContext(swigCPtr, this);
100 }
101
105 public void setMin(IntExpr expr, long new_min) {
106 mainJNI.PropagationMonitor_setMin__SWIG_0(swigCPtr, this, IntExpr.getCPtr(expr), expr, new_min);
107 }
108
109 public void setMax(IntExpr expr, long new_max) {
110 mainJNI.PropagationMonitor_setMax__SWIG_0(swigCPtr, this, IntExpr.getCPtr(expr), expr, new_max);
111 }
112
113 public void setRange(IntExpr expr, long new_min, long new_max) {
114 mainJNI.PropagationMonitor_setRange__SWIG_0(swigCPtr, this, IntExpr.getCPtr(expr), expr, new_min, new_max);
115 }
116
120 public void setMin(IntVar var, long new_min) {
121 mainJNI.PropagationMonitor_setMin__SWIG_1(swigCPtr, this, IntVar.getCPtr(var), var, new_min);
122 }
123
124 public void setMax(IntVar var, long new_max) {
125 mainJNI.PropagationMonitor_setMax__SWIG_1(swigCPtr, this, IntVar.getCPtr(var), var, new_max);
126 }
127
128 public void setRange(IntVar var, long new_min, long new_max) {
129 mainJNI.PropagationMonitor_setRange__SWIG_1(swigCPtr, this, IntVar.getCPtr(var), var, new_min, new_max);
130 }
131
132 public void removeValue(IntVar var, long value) {
133 mainJNI.PropagationMonitor_removeValue(swigCPtr, this, IntVar.getCPtr(var), var, value);
134 }
135
136 public void setValue(IntVar var, long value) {
137 mainJNI.PropagationMonitor_setValue__SWIG_0(swigCPtr, this, IntVar.getCPtr(var), var, value);
138 }
139
140 public void removeInterval(IntVar var, long imin, long imax) {
141 mainJNI.PropagationMonitor_removeInterval(swigCPtr, this, IntVar.getCPtr(var), var, imin, imax);
142 }
143
144 public void setValue(IntVar var, long[] values) {
145 mainJNI.PropagationMonitor_setValue__SWIG_1(swigCPtr, this, IntVar.getCPtr(var), var, values);
146 }
147
148 public void removeValues(IntVar var, long[] values) {
149 mainJNI.PropagationMonitor_removeValues(swigCPtr, this, IntVar.getCPtr(var), var, values);
150 }
151
155 public void setStartMin(IntervalVar var, long new_min) {
156 mainJNI.PropagationMonitor_setStartMin(swigCPtr, this, IntervalVar.getCPtr(var), var, new_min);
157 }
158
159 public void setStartMax(IntervalVar var, long new_max) {
160 mainJNI.PropagationMonitor_setStartMax(swigCPtr, this, IntervalVar.getCPtr(var), var, new_max);
161 }
162
163 public void setStartRange(IntervalVar var, long new_min, long new_max) {
164 mainJNI.PropagationMonitor_setStartRange(swigCPtr, this, IntervalVar.getCPtr(var), var, new_min, new_max);
165 }
166
167 public void setEndMin(IntervalVar var, long new_min) {
168 mainJNI.PropagationMonitor_setEndMin(swigCPtr, this, IntervalVar.getCPtr(var), var, new_min);
169 }
170
171 public void setEndMax(IntervalVar var, long new_max) {
172 mainJNI.PropagationMonitor_setEndMax(swigCPtr, this, IntervalVar.getCPtr(var), var, new_max);
173 }
174
175 public void setEndRange(IntervalVar var, long new_min, long new_max) {
176 mainJNI.PropagationMonitor_setEndRange(swigCPtr, this, IntervalVar.getCPtr(var), var, new_min, new_max);
177 }
178
179 public void setDurationMin(IntervalVar var, long new_min) {
180 mainJNI.PropagationMonitor_setDurationMin(swigCPtr, this, IntervalVar.getCPtr(var), var, new_min);
181 }
182
183 public void setDurationMax(IntervalVar var, long new_max) {
184 mainJNI.PropagationMonitor_setDurationMax(swigCPtr, this, IntervalVar.getCPtr(var), var, new_max);
185 }
186
187 public void setDurationRange(IntervalVar var, long new_min, long new_max) {
188 mainJNI.PropagationMonitor_setDurationRange(swigCPtr, this, IntervalVar.getCPtr(var), var, new_min, new_max);
189 }
190
191 public void setPerformed(IntervalVar var, boolean value) {
192 mainJNI.PropagationMonitor_setPerformed(swigCPtr, this, IntervalVar.getCPtr(var), var, value);
193 }
194
198 public void rankFirst(SequenceVar var, int index) {
199 mainJNI.PropagationMonitor_rankFirst(swigCPtr, this, SequenceVar.getCPtr(var), var, index);
200 }
201
202 public void rankNotFirst(SequenceVar var, int index) {
203 mainJNI.PropagationMonitor_rankNotFirst(swigCPtr, this, SequenceVar.getCPtr(var), var, index);
204 }
205
206 public void rankLast(SequenceVar var, int index) {
207 mainJNI.PropagationMonitor_rankLast(swigCPtr, this, SequenceVar.getCPtr(var), var, index);
208 }
209
210 public void rankNotLast(SequenceVar var, int index) {
211 mainJNI.PropagationMonitor_rankNotLast(swigCPtr, this, SequenceVar.getCPtr(var), var, index);
212 }
213
214 public void rankSequence(SequenceVar var, int[] rank_first, int[] rank_last, int[] unperformed) {
215 mainJNI.PropagationMonitor_rankSequence(swigCPtr, this, SequenceVar.getCPtr(var), var, rank_first, rank_last, unperformed);
216 }
217
221 public void install() {
222 mainJNI.PropagationMonitor_install(swigCPtr, this);
223 }
224
225}
void removeInterval(IntVar var, long imin, long imax)
void beginNestedConstraintInitialPropagation(Constraint parent, Constraint nested)
void rankSequence(SequenceVar var, int[] rank_first, int[] rank_last, int[] unperformed)
void setDurationRange(IntervalVar var, long new_min, long new_max)
void setRange(IntVar var, long new_min, long new_max)
void endNestedConstraintInitialPropagation(Constraint parent, Constraint nested)
void setStartRange(IntervalVar var, long new_min, long new_max)
void setRange(IntExpr expr, long new_min, long new_max)
void setEndRange(IntervalVar var, long new_min, long new_max)