Package com.google.ortools.sat
Class IntervalVar
java.lang.Object
com.google.ortools.sat.IntervalVar
public final class IntervalVar
extends java.lang.Object
An interval variable. This class must be constructed from the CpModel class.
-
Method Summary
Modifier and Type Method Description IntervalConstraintProto.BuildergetBuilder()Returns the interval builder.intgetIndex()Returns the index of the interval constraint in the model.java.lang.StringgetName()Returns the name passed in the constructor.java.lang.StringtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Method Details
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
getIndex
public int getIndex()Returns the index of the interval constraint in the model. -
getBuilder
Returns the interval builder. -
getName
public java.lang.String getName()Returns the name passed in the constructor.
-