Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
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 |
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.
|
protected |
Definition at line 26 of file IntervalVar.java.
void com.google.ortools.constraintsolver.IntervalVar.accept | ( | ModelVisitor | visitor | ) |
Accepts the given visitor.
Definition at line 317 of file IntervalVar.java.
boolean com.google.ortools.constraintsolver.IntervalVar.cannotBePerformed | ( | ) |
Definition at line 231 of file IntervalVar.java.
synchronized void com.google.ortools.constraintsolver.IntervalVar.delete | ( | ) |
Reimplemented from com.google.ortools.constraintsolver.PropagationBaseObject.
Definition at line 52 of file IntervalVar.java.
IntExpr com.google.ortools.constraintsolver.IntervalVar.durationExpr | ( | ) |
Definition at line 279 of file IntervalVar.java.
long com.google.ortools.constraintsolver.IntervalVar.durationMax | ( | ) |
Definition at line 132 of file IntervalVar.java.
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.
IntExpr com.google.ortools.constraintsolver.IntervalVar.endExpr | ( | ) |
Definition at line 284 of file IntervalVar.java.
long com.google.ortools.constraintsolver.IntervalVar.endMax | ( | ) |
Definition at line 179 of file IntervalVar.java.
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.
|
protected |
Reimplemented from com.google.ortools.constraintsolver.PropagationBaseObject.
Definition at line 48 of file IntervalVar.java.
|
staticprotected |
Definition at line 31 of file IntervalVar.java.
|
static |
The largest acceptable value to be returned by EndMax()
Definition at line 73 of file IntervalVar.java.
|
static |
The smallest acceptable value to be returned by StartMin()
Definition at line 66 of file IntervalVar.java.
boolean com.google.ortools.constraintsolver.IntervalVar.isPerformedBound | ( | ) |
Definition at line 235 of file IntervalVar.java.
boolean com.google.ortools.constraintsolver.IntervalVar.mayBePerformed | ( | ) |
Definition at line 227 of file IntervalVar.java.
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.
long com.google.ortools.constraintsolver.IntervalVar.oldDurationMax | ( | ) |
Definition at line 152 of file IntervalVar.java.
long com.google.ortools.constraintsolver.IntervalVar.oldDurationMin | ( | ) |
Definition at line 148 of file IntervalVar.java.
long com.google.ortools.constraintsolver.IntervalVar.oldEndMax | ( | ) |
Definition at line 199 of file IntervalVar.java.
long com.google.ortools.constraintsolver.IntervalVar.oldEndMin | ( | ) |
Definition at line 195 of file IntervalVar.java.
long com.google.ortools.constraintsolver.IntervalVar.oldStartMax | ( | ) |
Definition at line 105 of file IntervalVar.java.
long com.google.ortools.constraintsolver.IntervalVar.oldStartMin | ( | ) |
Definition at line 101 of file IntervalVar.java.
IntExpr com.google.ortools.constraintsolver.IntervalVar.performedExpr | ( | ) |
Definition at line 289 of file IntervalVar.java.
IntExpr com.google.ortools.constraintsolver.IntervalVar.safeDurationExpr | ( | long | unperformed_value | ) |
Definition at line 304 of file IntervalVar.java.
IntExpr com.google.ortools.constraintsolver.IntervalVar.safeEndExpr | ( | long | unperformed_value | ) |
Definition at line 309 of file IntervalVar.java.
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.
void com.google.ortools.constraintsolver.IntervalVar.setDurationMax | ( | long | m | ) |
Definition at line 140 of file IntervalVar.java.
void com.google.ortools.constraintsolver.IntervalVar.setDurationMin | ( | long | m | ) |
Definition at line 136 of file IntervalVar.java.
void com.google.ortools.constraintsolver.IntervalVar.setDurationRange | ( | long | mi, |
long | ma ) |
Definition at line 144 of file IntervalVar.java.
void com.google.ortools.constraintsolver.IntervalVar.setEndMax | ( | long | m | ) |
Definition at line 187 of file IntervalVar.java.
void com.google.ortools.constraintsolver.IntervalVar.setEndMin | ( | long | m | ) |
Definition at line 183 of file IntervalVar.java.
void com.google.ortools.constraintsolver.IntervalVar.setEndRange | ( | long | mi, |
long | ma ) |
Definition at line 191 of file IntervalVar.java.
void com.google.ortools.constraintsolver.IntervalVar.setPerformed | ( | boolean | val | ) |
Definition at line 239 of file IntervalVar.java.
void com.google.ortools.constraintsolver.IntervalVar.setStartMax | ( | long | m | ) |
Definition at line 93 of file IntervalVar.java.
void com.google.ortools.constraintsolver.IntervalVar.setStartMin | ( | long | m | ) |
Definition at line 89 of file IntervalVar.java.
void com.google.ortools.constraintsolver.IntervalVar.setStartRange | ( | long | mi, |
long | ma ) |
Definition at line 97 of file IntervalVar.java.
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.
long com.google.ortools.constraintsolver.IntervalVar.startMax | ( | ) |
Definition at line 85 of file IntervalVar.java.
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.
|
staticprotected |
Definition at line 35 of file IntervalVar.java.
boolean com.google.ortools.constraintsolver.IntervalVar.wasPerformedBound | ( | ) |
Definition at line 243 of file IntervalVar.java.
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.
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.
void com.google.ortools.constraintsolver.IntervalVar.whenDurationBound | ( | Demon | d | ) |
Definition at line 164 of file IntervalVar.java.
void com.google.ortools.constraintsolver.IntervalVar.whenDurationBound | ( | Runnable | closure | ) |
Definition at line 168 of file IntervalVar.java.
void com.google.ortools.constraintsolver.IntervalVar.whenDurationRange | ( | Demon | d | ) |
Definition at line 156 of file IntervalVar.java.
void com.google.ortools.constraintsolver.IntervalVar.whenDurationRange | ( | Runnable | closure | ) |
Definition at line 160 of file IntervalVar.java.
void com.google.ortools.constraintsolver.IntervalVar.whenEndBound | ( | Demon | d | ) |
Definition at line 211 of file IntervalVar.java.
void com.google.ortools.constraintsolver.IntervalVar.whenEndBound | ( | Runnable | closure | ) |
Definition at line 215 of file IntervalVar.java.
void com.google.ortools.constraintsolver.IntervalVar.whenEndRange | ( | Demon | d | ) |
Definition at line 203 of file IntervalVar.java.
void com.google.ortools.constraintsolver.IntervalVar.whenEndRange | ( | Runnable | closure | ) |
Definition at line 207 of file IntervalVar.java.
void com.google.ortools.constraintsolver.IntervalVar.whenPerformedBound | ( | Demon | d | ) |
Definition at line 247 of file IntervalVar.java.
void com.google.ortools.constraintsolver.IntervalVar.whenPerformedBound | ( | Runnable | closure | ) |
Definition at line 251 of file IntervalVar.java.
void com.google.ortools.constraintsolver.IntervalVar.whenStartBound | ( | Demon | d | ) |
Definition at line 117 of file IntervalVar.java.
void com.google.ortools.constraintsolver.IntervalVar.whenStartBound | ( | Runnable | closure | ) |
Definition at line 121 of file IntervalVar.java.
void com.google.ortools.constraintsolver.IntervalVar.whenStartRange | ( | Demon | d | ) |
Definition at line 109 of file IntervalVar.java.
void com.google.ortools.constraintsolver.IntervalVar.whenStartRange | ( | Runnable | closure | ) |
Definition at line 113 of file IntervalVar.java.