All Superinterfaces:
Expression , IntExpression , Serializable
All Known Subinterfaces:
SymbolicBoolExpression , SymbolicBoolVar , SymbolicIntVar
All Known Implementing Classes:
Abs , And , BoolVarImpl , Constant , CstMul , CstOffset , Element1D , Element1DVar , Element2D , Element2DVar , EndAfter , EndBefore , EndBeforeStart , Eq , GreaterOrEq , InSet , IntervalEnd , IntervalEndOrValue , IntervalLength , IntervalLengthOrValue , IntervalStart , IntervalStartOrValue , IntervalStatus , IntVarRangeImpl , IntVarSetImpl , IsNodeRequired , LessOrEq , Max , Min , Mul , MulBinary , Not , NotEq , Or , Present , StartAfter , StartBefore , Sum , UnaryMinus , WeightedSum
Method Summary
All Methods Instance Methods Abstract Methods Default Methods
default boolean
Returns whether this expression *can* contain v.
default boolean
int
default int
int
int
default int
default int
Evaluate this expression.
default int
Fill an array of minimum size size() with a *superset* of the domain of this expression.
default int
Return an *upper bound* for this expression
default int
Return a *lower bound* for this expression
default int
*Upper bound* on the size of the domain of this expression.
Method Details
evaluate
Evaluate this expression. All variables referenced have to be fixed.
Specified by:
evaluate in interface IntExpression
Returns:
the value of this expression
Throws:
VariableNotFixedException - when a variable is not fixed
min
default int min ()
Return a *lower bound* for this expression
Specified by:
min in interface IntExpression
defaultMin
int defaultMin ()
max
default int max ()
Return an *upper bound* for this expression
Specified by:
max in interface IntExpression
defaultMax
int defaultMax ()
contains
default boolean contains (int v)
Returns whether this expression *can* contain v.
Specified by:
contains in interface IntExpression
defaultContains
default boolean defaultContains (int v)
fillArray
default int fillArray (int[] array)
Fill an array of minimum size size() with a *superset* of the domain of this expression.
Returns `v`, the size of the domain after it has been computed, with v <= size().
Specified by:
fillArray in interface IntExpression
defaultFillArray
default int defaultFillArray (int[] array)
size
default int size ()
*Upper bound* on the size of the domain of this expression.
Specified by:
size in interface IntExpression
defaultSize
default int defaultSize ()