Package com.google.ortools.sat
Class IntervalVar
- java.lang.Object
-
- com.google.ortools.sat.IntervalVar
-
public final class IntervalVar extends java.lang.ObjectAn interval variable. This class must be constructed from the CpModel class.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntervalConstraintProto.BuildergetBuilder()Returns the interval builder.LinearExprgetEndExpr()Returns the end expression.intgetIndex()Returns the index of the interval constraint in the model.java.lang.StringgetName()Returns the name passed in the constructor.LinearExprgetSizeExpr()Returns the size expression.LinearExprgetStartExpr()Returns the start expression.java.lang.StringtoString()
-
-
-
Method Detail
-
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
public IntervalConstraintProto.Builder getBuilder()
Returns the interval builder.
-
getName
public java.lang.String getName()
Returns the name passed in the constructor.
-
getStartExpr
public LinearExpr getStartExpr()
Returns the start expression.
-
getSizeExpr
public LinearExpr getSizeExpr()
Returns the size expression.
-
getEndExpr
public LinearExpr getEndExpr()
Returns the end expression.
-
-