Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
com.google.ortools.constraintsolver.BooleanVar Class Reference
Inheritance diagram for com.google.ortools.constraintsolver.BooleanVar:
com.google.ortools.constraintsolver.IntVar com.google.ortools.constraintsolver.IntExpr com.google.ortools.constraintsolver.PropagationBaseObject com.google.ortools.constraintsolver.BaseObject

Public Member Functions

synchronized void delete ()
 
long min ()
 
void setMin (long m)
 
long max ()
 
void setMax (long m)
 
void setRange (long mi, long ma)
 
boolean bound ()
 
long value ()
 
void removeValue (long v)
 
void removeInterval (long l, long u)
 
void whenBound (Demon d)
 
void whenRange (Demon d)
 
void whenDomain (Demon d)
 
long size ()
 
boolean contains (long v)
 
IntVarIterator makeHoleIterator (boolean reversible)
 
IntVarIterator makeDomainIterator (boolean reversible)
 
String toString ()
 
int varType ()
 
IntVar isEqual (long constant)
 
IntVar isDifferent (long constant)
 
IntVar isGreaterOrEqual (long constant)
 
IntVar isLessOrEqual (long constant)
 
void restoreValue ()
 
String baseName ()
 
int rawValue ()
 
- Public Member Functions inherited from com.google.ortools.constraintsolver.IntVar
boolean isVar ()
 
IntVar var ()
 
void removeValues (long[] values)
 
void setValue (long[] values)
 
void whenBound (Runnable closure)
 
void whenDomain (Runnable closure)
 
long oldMin ()
 
long oldMax ()
 
void accept (ModelVisitor visitor)
 
int index ()
 
- Public Member Functions inherited from com.google.ortools.constraintsolver.IntExpr
void range (long[] l, long[] u)
 
void setValue (long v)
 
IntVar varWithName (String name)
 
void whenRange (Runnable closure)
 
- Public Member Functions inherited from com.google.ortools.constraintsolver.PropagationBaseObject
 PropagationBaseObject (Solver s)
 
Solver solver ()
 
void freezeQueue ()
 
void unfreezeQueue ()
 
void enqueueDelayedDemon (Demon d)
 
void enqueueVar (Demon d)
 
void reset_action_on_fail ()
 
void set_variable_to_clean_on_fail (IntVar v)
 
String name ()
 
void setName (String name)
 
boolean hasName ()
 
- Public Member Functions inherited from com.google.ortools.constraintsolver.BaseObject
 BaseObject ()
 

Static Public Member Functions

static int getKUnboundBooleanVarValue ()
 

Protected Member Functions

 BooleanVar (long cPtr, boolean cMemoryOwn)
 
void finalize ()
 
- Protected Member Functions inherited from com.google.ortools.constraintsolver.IntVar
 IntVar (long cPtr, boolean cMemoryOwn)
 
- Protected Member Functions inherited from com.google.ortools.constraintsolver.IntExpr
 IntExpr (long cPtr, boolean cMemoryOwn)
 
- Protected Member Functions inherited from com.google.ortools.constraintsolver.PropagationBaseObject
 PropagationBaseObject (long cPtr, boolean cMemoryOwn)
 
- Protected Member Functions inherited from com.google.ortools.constraintsolver.BaseObject
 BaseObject (long cPtr, boolean cMemoryOwn)
 

Static Protected Member Functions

static long getCPtr (BooleanVar obj)
 
static long swigRelease (BooleanVar obj)
 
- Static Protected Member Functions inherited from com.google.ortools.constraintsolver.IntVar
static long getCPtr (IntVar obj)
 
static long swigRelease (IntVar obj)
 
- Static Protected Member Functions inherited from com.google.ortools.constraintsolver.IntExpr
static long getCPtr (IntExpr obj)
 
static long swigRelease (IntExpr obj)
 
- Static Protected Member Functions inherited from com.google.ortools.constraintsolver.PropagationBaseObject
static long getCPtr (PropagationBaseObject obj)
 
static long swigRelease (PropagationBaseObject obj)
 
- Static Protected Member Functions inherited from com.google.ortools.constraintsolver.BaseObject
static long getCPtr (BaseObject obj)
 
static long swigRelease (BaseObject obj)
 

Additional Inherited Members

- Protected Attributes inherited from com.google.ortools.constraintsolver.BaseObject
transient boolean swigCMemOwn
 

Detailed Description

Definition at line 11 of file BooleanVar.java.

Constructor & Destructor Documentation

◆ BooleanVar()

com.google.ortools.constraintsolver.BooleanVar.BooleanVar ( long cPtr,
boolean cMemoryOwn )
protected

Definition at line 14 of file BooleanVar.java.

Member Function Documentation

◆ baseName()

String com.google.ortools.constraintsolver.BooleanVar.baseName ( )

Returns a base name for automatic naming.

Reimplemented from com.google.ortools.constraintsolver.PropagationBaseObject.

Definition at line 153 of file BooleanVar.java.

◆ bound()

boolean com.google.ortools.constraintsolver.BooleanVar.bound ( )

Returns true if the min and the max of the expression are equal.

Reimplemented from com.google.ortools.constraintsolver.IntExpr.

Definition at line 75 of file BooleanVar.java.

◆ contains()

boolean com.google.ortools.constraintsolver.BooleanVar.contains ( long v)

This method returns whether the value 'v' is in the domain of the
variable.

Reimplemented from com.google.ortools.constraintsolver.IntVar.

Definition at line 107 of file BooleanVar.java.

◆ delete()

synchronized void com.google.ortools.constraintsolver.BooleanVar.delete ( )

Reimplemented from com.google.ortools.constraintsolver.IntVar.

Definition at line 40 of file BooleanVar.java.

◆ finalize()

void com.google.ortools.constraintsolver.BooleanVar.finalize ( )
protected

Reimplemented from com.google.ortools.constraintsolver.IntVar.

Definition at line 36 of file BooleanVar.java.

◆ getCPtr()

static long com.google.ortools.constraintsolver.BooleanVar.getCPtr ( BooleanVar obj)
staticprotected

Definition at line 19 of file BooleanVar.java.

◆ getKUnboundBooleanVarValue()

static int com.google.ortools.constraintsolver.BooleanVar.getKUnboundBooleanVarValue ( )
static

Definition at line 51 of file BooleanVar.java.

◆ isDifferent()

IntVar com.google.ortools.constraintsolver.BooleanVar.isDifferent ( long constant)

Reimplemented from com.google.ortools.constraintsolver.IntVar.

Definition at line 134 of file BooleanVar.java.

◆ isEqual()

IntVar com.google.ortools.constraintsolver.BooleanVar.isEqual ( long constant)

IsEqual

Reimplemented from com.google.ortools.constraintsolver.IntVar.

Definition at line 129 of file BooleanVar.java.

◆ isGreaterOrEqual()

IntVar com.google.ortools.constraintsolver.BooleanVar.isGreaterOrEqual ( long constant)

Reimplemented from com.google.ortools.constraintsolver.IntVar.

Definition at line 139 of file BooleanVar.java.

◆ isLessOrEqual()

IntVar com.google.ortools.constraintsolver.BooleanVar.isLessOrEqual ( long constant)

Reimplemented from com.google.ortools.constraintsolver.IntVar.

Definition at line 144 of file BooleanVar.java.

◆ makeDomainIterator()

IntVarIterator com.google.ortools.constraintsolver.BooleanVar.makeDomainIterator ( boolean reversible)

Creates a domain iterator. When 'reversible' is false, the
returned object is created on the normal C++ heap and the solver
does NOT take ownership of the object.

Reimplemented from com.google.ortools.constraintsolver.IntVar.

Definition at line 116 of file BooleanVar.java.

◆ makeHoleIterator()

IntVarIterator com.google.ortools.constraintsolver.BooleanVar.makeHoleIterator ( boolean reversible)

Creates a hole iterator. When 'reversible' is false, the returned
object is created on the normal C++ heap and the solver does NOT
take ownership of the object.

Reimplemented from com.google.ortools.constraintsolver.IntVar.

Definition at line 111 of file BooleanVar.java.

◆ max()

long com.google.ortools.constraintsolver.BooleanVar.max ( )

Reimplemented from com.google.ortools.constraintsolver.IntExpr.

Definition at line 63 of file BooleanVar.java.

◆ min()

long com.google.ortools.constraintsolver.BooleanVar.min ( )

Reimplemented from com.google.ortools.constraintsolver.IntExpr.

Definition at line 55 of file BooleanVar.java.

◆ rawValue()

int com.google.ortools.constraintsolver.BooleanVar.rawValue ( )

Definition at line 157 of file BooleanVar.java.

◆ removeInterval()

void com.google.ortools.constraintsolver.BooleanVar.removeInterval ( long l,
long u )

This method removes the interval 'l' .. 'u' from the domain of
the variable. It assumes that 'l' <= 'u'.

Reimplemented from com.google.ortools.constraintsolver.IntVar.

Definition at line 87 of file BooleanVar.java.

◆ removeValue()

void com.google.ortools.constraintsolver.BooleanVar.removeValue ( long v)

This method removes the value 'v' from the domain of the variable.

Reimplemented from com.google.ortools.constraintsolver.IntVar.

Definition at line 83 of file BooleanVar.java.

◆ restoreValue()

void com.google.ortools.constraintsolver.BooleanVar.restoreValue ( )

Definition at line 149 of file BooleanVar.java.

◆ setMax()

void com.google.ortools.constraintsolver.BooleanVar.setMax ( long m)

Reimplemented from com.google.ortools.constraintsolver.IntExpr.

Definition at line 67 of file BooleanVar.java.

◆ setMin()

void com.google.ortools.constraintsolver.BooleanVar.setMin ( long m)

Reimplemented from com.google.ortools.constraintsolver.IntExpr.

Definition at line 59 of file BooleanVar.java.

◆ setRange()

void com.google.ortools.constraintsolver.BooleanVar.setRange ( long l,
long u )

This method sets both the min and the max of the expression.

Reimplemented from com.google.ortools.constraintsolver.IntExpr.

Definition at line 71 of file BooleanVar.java.

◆ size()

long com.google.ortools.constraintsolver.BooleanVar.size ( )

This method returns the number of values in the domain of the variable.

Reimplemented from com.google.ortools.constraintsolver.IntVar.

Definition at line 103 of file BooleanVar.java.

◆ swigRelease()

static long com.google.ortools.constraintsolver.BooleanVar.swigRelease ( BooleanVar obj)
staticprotected

Definition at line 23 of file BooleanVar.java.

◆ toString()

String com.google.ortools.constraintsolver.BooleanVar.toString ( )

Reimplemented from com.google.ortools.constraintsolver.PropagationBaseObject.

Definition at line 121 of file BooleanVar.java.

◆ value()

long com.google.ortools.constraintsolver.BooleanVar.value ( )

This method returns the value of the variable. This method checks
before that the variable is bound.

Reimplemented from com.google.ortools.constraintsolver.IntVar.

Definition at line 79 of file BooleanVar.java.

◆ varType()

int com.google.ortools.constraintsolver.BooleanVar.varType ( )

Reimplemented from com.google.ortools.constraintsolver.IntVar.

Definition at line 125 of file BooleanVar.java.

◆ whenBound()

void com.google.ortools.constraintsolver.BooleanVar.whenBound ( Demon d)

This method attaches a demon that will be awakened when the
variable is bound.

Reimplemented from com.google.ortools.constraintsolver.IntVar.

Definition at line 91 of file BooleanVar.java.

◆ whenDomain()

void com.google.ortools.constraintsolver.BooleanVar.whenDomain ( Demon d)

This method attaches a demon that will watch any domain
modification of the domain of the variable.

Reimplemented from com.google.ortools.constraintsolver.IntVar.

Definition at line 99 of file BooleanVar.java.

◆ whenRange()

void com.google.ortools.constraintsolver.BooleanVar.whenRange ( Demon d)

Attach a demon that will watch the min or the max of the expression.

Reimplemented from com.google.ortools.constraintsolver.IntExpr.

Definition at line 95 of file BooleanVar.java.


The documentation for this class was generated from the following file: