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

Public Member Functions

synchronized void delete ()
 
long startMin ()
 
long startMax ()
 
void setStartMin (long m)
 
void setStartMax (long m)
 
void setStartRange (long mi, long ma)
 
long oldStartMin ()
 
long oldStartMax ()
 
void whenStartRange (Demon d)
 
void whenStartRange (Runnable closure)
 
void whenStartBound (Demon d)
 
void whenStartBound (Runnable closure)
 
long durationMin ()
 
long durationMax ()
 
void setDurationMin (long m)
 
void setDurationMax (long m)
 
void setDurationRange (long mi, long ma)
 
long oldDurationMin ()
 
long oldDurationMax ()
 
void whenDurationRange (Demon d)
 
void whenDurationRange (Runnable closure)
 
void whenDurationBound (Demon d)
 
void whenDurationBound (Runnable closure)
 
long endMin ()
 
long endMax ()
 
void setEndMin (long m)
 
void setEndMax (long m)
 
void setEndRange (long mi, long ma)
 
long oldEndMin ()
 
long oldEndMax ()
 
void whenEndRange (Demon d)
 
void whenEndRange (Runnable closure)
 
void whenEndBound (Demon d)
 
void whenEndBound (Runnable closure)
 
boolean mustBePerformed ()
 
boolean mayBePerformed ()
 
boolean cannotBePerformed ()
 
boolean isPerformedBound ()
 
void setPerformed (boolean val)
 
boolean wasPerformedBound ()
 
void whenPerformedBound (Demon d)
 
void whenPerformedBound (Runnable closure)
 
void whenAnything (Demon d)
 
void whenAnything (Runnable closure)
 
IntExpr startExpr ()
 
IntExpr durationExpr ()
 
IntExpr endExpr ()
 
IntExpr performedExpr ()
 
IntExpr safeStartExpr (long unperformed_value)
 
IntExpr safeDurationExpr (long unperformed_value)
 
IntExpr safeEndExpr (long unperformed_value)
 
void accept (ModelVisitor visitor)
 
- Public Member Functions inherited from com.google.ortools.constraintsolver.PropagationBaseObject
 PropagationBaseObject (Solver s)
 
String toString ()
 
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 ()
 
String baseName ()
 
- Public Member Functions inherited from com.google.ortools.constraintsolver.BaseObject
 BaseObject ()
 

Static Public Member Functions

static long getKMinValidValue ()
 
static long getKMaxValidValue ()
 

Protected Member Functions

 IntervalVar (long cPtr, boolean cMemoryOwn)
 
void finalize ()
 
- 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 (IntervalVar obj)
 
static long swigRelease (IntervalVar 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

Interval variables are often used in scheduling. The main characteristics
of an IntervalVar are the start position, duration, and end
date. All these characteristics can be queried and set, and demons can
be posted on their modifications.

An important aspect is optionality: an IntervalVar can be performed or not.
If unperformed, then it simply does not exist, and its characteristics
cannot be accessed any more. An interval var is automatically marked
as unperformed when it is not consistent anymore (start greater
than end, duration < 0...)

Definition at line 23 of file IntervalVar.java.

Constructor & Destructor Documentation

◆ IntervalVar()

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

Definition at line 26 of file IntervalVar.java.

Member Function Documentation

◆ accept()

void com.google.ortools.constraintsolver.IntervalVar.accept ( ModelVisitor visitor)

Accepts the given visitor.

Definition at line 317 of file IntervalVar.java.

◆ cannotBePerformed()

boolean com.google.ortools.constraintsolver.IntervalVar.cannotBePerformed ( )

Definition at line 231 of file IntervalVar.java.

◆ delete()

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

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

Definition at line 52 of file IntervalVar.java.

◆ durationExpr()

IntExpr com.google.ortools.constraintsolver.IntervalVar.durationExpr ( )

Definition at line 279 of file IntervalVar.java.

◆ durationMax()

long com.google.ortools.constraintsolver.IntervalVar.durationMax ( )

Definition at line 132 of file IntervalVar.java.

◆ durationMin()

long com.google.ortools.constraintsolver.IntervalVar.durationMin ( )

These methods query, set, and watch the duration of the interval var.

Definition at line 128 of file IntervalVar.java.

◆ endExpr()

IntExpr com.google.ortools.constraintsolver.IntervalVar.endExpr ( )

Definition at line 284 of file IntervalVar.java.

◆ endMax()

long com.google.ortools.constraintsolver.IntervalVar.endMax ( )

Definition at line 179 of file IntervalVar.java.

◆ endMin()

long com.google.ortools.constraintsolver.IntervalVar.endMin ( )

These methods query, set, and watch the end position of the interval var.

Definition at line 175 of file IntervalVar.java.

◆ finalize()

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

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

Definition at line 48 of file IntervalVar.java.

◆ getCPtr()

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

Definition at line 31 of file IntervalVar.java.

◆ getKMaxValidValue()

static long com.google.ortools.constraintsolver.IntervalVar.getKMaxValidValue ( )
static

The largest acceptable value to be returned by EndMax()

Definition at line 73 of file IntervalVar.java.

◆ getKMinValidValue()

static long com.google.ortools.constraintsolver.IntervalVar.getKMinValidValue ( )
static

The smallest acceptable value to be returned by StartMin()

Definition at line 66 of file IntervalVar.java.

◆ isPerformedBound()

boolean com.google.ortools.constraintsolver.IntervalVar.isPerformedBound ( )

Definition at line 235 of file IntervalVar.java.

◆ mayBePerformed()

boolean com.google.ortools.constraintsolver.IntervalVar.mayBePerformed ( )

Definition at line 227 of file IntervalVar.java.

◆ mustBePerformed()

boolean com.google.ortools.constraintsolver.IntervalVar.mustBePerformed ( )

These methods query, set, and watch the performed status of the
interval var.

Definition at line 223 of file IntervalVar.java.

◆ oldDurationMax()

long com.google.ortools.constraintsolver.IntervalVar.oldDurationMax ( )

Definition at line 152 of file IntervalVar.java.

◆ oldDurationMin()

long com.google.ortools.constraintsolver.IntervalVar.oldDurationMin ( )

Definition at line 148 of file IntervalVar.java.

◆ oldEndMax()

long com.google.ortools.constraintsolver.IntervalVar.oldEndMax ( )

Definition at line 199 of file IntervalVar.java.

◆ oldEndMin()

long com.google.ortools.constraintsolver.IntervalVar.oldEndMin ( )

Definition at line 195 of file IntervalVar.java.

◆ oldStartMax()

long com.google.ortools.constraintsolver.IntervalVar.oldStartMax ( )

Definition at line 105 of file IntervalVar.java.

◆ oldStartMin()

long com.google.ortools.constraintsolver.IntervalVar.oldStartMin ( )

Definition at line 101 of file IntervalVar.java.

◆ performedExpr()

IntExpr com.google.ortools.constraintsolver.IntervalVar.performedExpr ( )

Definition at line 289 of file IntervalVar.java.

◆ safeDurationExpr()

IntExpr com.google.ortools.constraintsolver.IntervalVar.safeDurationExpr ( long unperformed_value)

Definition at line 304 of file IntervalVar.java.

◆ safeEndExpr()

IntExpr com.google.ortools.constraintsolver.IntervalVar.safeEndExpr ( long unperformed_value)

Definition at line 309 of file IntervalVar.java.

◆ safeStartExpr()

IntExpr com.google.ortools.constraintsolver.IntervalVar.safeStartExpr ( long unperformed_value)

These methods create expressions encapsulating the start, end
and duration of the interval var. If the interval var is
unperformed, they will return the unperformed_value.

Definition at line 299 of file IntervalVar.java.

◆ setDurationMax()

void com.google.ortools.constraintsolver.IntervalVar.setDurationMax ( long m)

Definition at line 140 of file IntervalVar.java.

◆ setDurationMin()

void com.google.ortools.constraintsolver.IntervalVar.setDurationMin ( long m)

Definition at line 136 of file IntervalVar.java.

◆ setDurationRange()

void com.google.ortools.constraintsolver.IntervalVar.setDurationRange ( long mi,
long ma )

Definition at line 144 of file IntervalVar.java.

◆ setEndMax()

void com.google.ortools.constraintsolver.IntervalVar.setEndMax ( long m)

Definition at line 187 of file IntervalVar.java.

◆ setEndMin()

void com.google.ortools.constraintsolver.IntervalVar.setEndMin ( long m)

Definition at line 183 of file IntervalVar.java.

◆ setEndRange()

void com.google.ortools.constraintsolver.IntervalVar.setEndRange ( long mi,
long ma )

Definition at line 191 of file IntervalVar.java.

◆ setPerformed()

void com.google.ortools.constraintsolver.IntervalVar.setPerformed ( boolean val)

Definition at line 239 of file IntervalVar.java.

◆ setStartMax()

void com.google.ortools.constraintsolver.IntervalVar.setStartMax ( long m)

Definition at line 93 of file IntervalVar.java.

◆ setStartMin()

void com.google.ortools.constraintsolver.IntervalVar.setStartMin ( long m)

Definition at line 89 of file IntervalVar.java.

◆ setStartRange()

void com.google.ortools.constraintsolver.IntervalVar.setStartRange ( long mi,
long ma )

Definition at line 97 of file IntervalVar.java.

◆ startExpr()

IntExpr com.google.ortools.constraintsolver.IntervalVar.startExpr ( )

These methods create expressions encapsulating the start, end
and duration of the interval var. Please note that these must not
be used if the interval var is unperformed.

Definition at line 274 of file IntervalVar.java.

◆ startMax()

long com.google.ortools.constraintsolver.IntervalVar.startMax ( )

Definition at line 85 of file IntervalVar.java.

◆ startMin()

long com.google.ortools.constraintsolver.IntervalVar.startMin ( )

These methods query, set, and watch the start position of the
interval var.

Definition at line 81 of file IntervalVar.java.

◆ swigRelease()

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

Definition at line 35 of file IntervalVar.java.

◆ wasPerformedBound()

boolean com.google.ortools.constraintsolver.IntervalVar.wasPerformedBound ( )

Definition at line 243 of file IntervalVar.java.

◆ whenAnything() [1/2]

void com.google.ortools.constraintsolver.IntervalVar.whenAnything ( Demon d)

Attaches a demon awakened when anything about this interval changes.

Definition at line 258 of file IntervalVar.java.

◆ whenAnything() [2/2]

void com.google.ortools.constraintsolver.IntervalVar.whenAnything ( Runnable closure)

Attaches a closure awakened when anything about this interval changes.

Definition at line 265 of file IntervalVar.java.

◆ whenDurationBound() [1/2]

void com.google.ortools.constraintsolver.IntervalVar.whenDurationBound ( Demon d)

Definition at line 164 of file IntervalVar.java.

◆ whenDurationBound() [2/2]

void com.google.ortools.constraintsolver.IntervalVar.whenDurationBound ( Runnable closure)

Definition at line 168 of file IntervalVar.java.

◆ whenDurationRange() [1/2]

void com.google.ortools.constraintsolver.IntervalVar.whenDurationRange ( Demon d)

Definition at line 156 of file IntervalVar.java.

◆ whenDurationRange() [2/2]

void com.google.ortools.constraintsolver.IntervalVar.whenDurationRange ( Runnable closure)

Definition at line 160 of file IntervalVar.java.

◆ whenEndBound() [1/2]

void com.google.ortools.constraintsolver.IntervalVar.whenEndBound ( Demon d)

Definition at line 211 of file IntervalVar.java.

◆ whenEndBound() [2/2]

void com.google.ortools.constraintsolver.IntervalVar.whenEndBound ( Runnable closure)

Definition at line 215 of file IntervalVar.java.

◆ whenEndRange() [1/2]

void com.google.ortools.constraintsolver.IntervalVar.whenEndRange ( Demon d)

Definition at line 203 of file IntervalVar.java.

◆ whenEndRange() [2/2]

void com.google.ortools.constraintsolver.IntervalVar.whenEndRange ( Runnable closure)

Definition at line 207 of file IntervalVar.java.

◆ whenPerformedBound() [1/2]

void com.google.ortools.constraintsolver.IntervalVar.whenPerformedBound ( Demon d)

Definition at line 247 of file IntervalVar.java.

◆ whenPerformedBound() [2/2]

void com.google.ortools.constraintsolver.IntervalVar.whenPerformedBound ( Runnable closure)

Definition at line 251 of file IntervalVar.java.

◆ whenStartBound() [1/2]

void com.google.ortools.constraintsolver.IntervalVar.whenStartBound ( Demon d)

Definition at line 117 of file IntervalVar.java.

◆ whenStartBound() [2/2]

void com.google.ortools.constraintsolver.IntervalVar.whenStartBound ( Runnable closure)

Definition at line 121 of file IntervalVar.java.

◆ whenStartRange() [1/2]

void com.google.ortools.constraintsolver.IntervalVar.whenStartRange ( Demon d)

Definition at line 109 of file IntervalVar.java.

◆ whenStartRange() [2/2]

void com.google.ortools.constraintsolver.IntervalVar.whenStartRange ( Runnable closure)

Definition at line 113 of file IntervalVar.java.


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