9 package com.google.ortools.constraintsolver;
12 private transient long swigCPtr;
15 super(mainJNI.BooleanVar_SWIGUpcast(cPtr), cMemoryOwn);
20 return (obj ==
null) ? 0 : obj.swigCPtr;
23 @SuppressWarnings(
"deprecation")
28 public synchronized void delete() {
32 mainJNI.delete_BooleanVar(swigCPtr);
40 return mainJNI.BooleanVar_kUnboundBooleanVarValue_get();
44 return mainJNI.BooleanVar_min(swigCPtr,
this);
48 mainJNI.BooleanVar_setMin(swigCPtr,
this, m);
52 return mainJNI.BooleanVar_max(swigCPtr,
this);
56 mainJNI.BooleanVar_setMax(swigCPtr,
this, m);
60 mainJNI.BooleanVar_setRange(swigCPtr,
this, mi, ma);
64 return mainJNI.BooleanVar_bound(swigCPtr,
this);
68 return mainJNI.BooleanVar_value(swigCPtr,
this);
72 mainJNI.BooleanVar_removeValue(swigCPtr,
this, v);
76 mainJNI.BooleanVar_removeInterval(swigCPtr,
this, l, u);
80 mainJNI.BooleanVar_whenBound(swigCPtr,
this,
Demon.
getCPtr(d), d);
84 mainJNI.BooleanVar_whenRange(swigCPtr,
this,
Demon.
getCPtr(d), d);
88 mainJNI.BooleanVar_whenDomain(swigCPtr,
this,
Demon.
getCPtr(d), d);
91 public java.math.BigInteger
size() {
92 return mainJNI.BooleanVar_size(swigCPtr,
this);
96 return mainJNI.BooleanVar_contains(swigCPtr,
this, v);
100 long cPtr = mainJNI.BooleanVar_makeHoleIterator(swigCPtr,
this, reversible);
105 long cPtr = mainJNI.BooleanVar_makeDomainIterator(swigCPtr,
this, reversible);
110 return mainJNI.BooleanVar_toString(swigCPtr,
this);
114 return mainJNI.BooleanVar_varType(swigCPtr,
this);
118 long cPtr = mainJNI.BooleanVar_isEqual(swigCPtr,
this, constant);
119 return (cPtr == 0) ? null :
new IntVar(cPtr,
false);
123 long cPtr = mainJNI.BooleanVar_isDifferent(swigCPtr,
this, constant);
124 return (cPtr == 0) ? null :
new IntVar(cPtr,
false);
128 long cPtr = mainJNI.BooleanVar_isGreaterOrEqual(swigCPtr,
this, constant);
129 return (cPtr == 0) ? null :
new IntVar(cPtr,
false);
133 long cPtr = mainJNI.BooleanVar_isLessOrEqual(swigCPtr,
this, constant);
134 return (cPtr == 0) ? null :
new IntVar(cPtr,
false);
138 mainJNI.BooleanVar_restoreValue(swigCPtr,
this);
142 return mainJNI.BooleanVar_baseName(swigCPtr,
this);
146 return mainJNI.BooleanVar_rawValue(swigCPtr,
this);