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;
27 public synchronized void delete() {
31 mainJNI.delete_BooleanVar(swigCPtr);
39 return mainJNI.BooleanVar_kUnboundBooleanVarValue_get();
43 return mainJNI.BooleanVar_min(swigCPtr,
this);
47 mainJNI.BooleanVar_setMin(swigCPtr,
this, m);
51 return mainJNI.BooleanVar_max(swigCPtr,
this);
55 mainJNI.BooleanVar_setMax(swigCPtr,
this, m);
59 mainJNI.BooleanVar_setRange(swigCPtr,
this, mi, ma);
63 return mainJNI.BooleanVar_bound(swigCPtr,
this);
67 return mainJNI.BooleanVar_value(swigCPtr,
this);
71 mainJNI.BooleanVar_removeValue(swigCPtr,
this, v);
75 mainJNI.BooleanVar_removeInterval(swigCPtr,
this, l, u);
79 mainJNI.BooleanVar_whenBound(swigCPtr,
this,
Demon.
getCPtr(d), d);
83 mainJNI.BooleanVar_whenRange(swigCPtr,
this,
Demon.
getCPtr(d), d);
87 mainJNI.BooleanVar_whenDomain(swigCPtr,
this,
Demon.
getCPtr(d), d);
90 public java.math.BigInteger
size() {
91 return mainJNI.BooleanVar_size(swigCPtr,
this);
95 return mainJNI.BooleanVar_contains(swigCPtr,
this, v);
99 long cPtr = mainJNI.BooleanVar_makeHoleIterator(swigCPtr,
this, reversible);
104 long cPtr = mainJNI.BooleanVar_makeDomainIterator(swigCPtr,
this, reversible);
109 return mainJNI.BooleanVar_toString(swigCPtr,
this);
113 return mainJNI.BooleanVar_varType(swigCPtr,
this);
117 long cPtr = mainJNI.BooleanVar_isEqual(swigCPtr,
this, constant);
118 return (cPtr == 0) ? null :
new IntVar(cPtr,
false);
122 long cPtr = mainJNI.BooleanVar_isDifferent(swigCPtr,
this, constant);
123 return (cPtr == 0) ? null :
new IntVar(cPtr,
false);
127 long cPtr = mainJNI.BooleanVar_isGreaterOrEqual(swigCPtr,
this, constant);
128 return (cPtr == 0) ? null :
new IntVar(cPtr,
false);
132 long cPtr = mainJNI.BooleanVar_isLessOrEqual(swigCPtr,
this, constant);
133 return (cPtr == 0) ? null :
new IntVar(cPtr,
false);
137 mainJNI.BooleanVar_restoreValue(swigCPtr,
this);
141 return mainJNI.BooleanVar_baseName(swigCPtr,
this);
145 return mainJNI.BooleanVar_rawValue(swigCPtr,
this);