jopt.csp.variable
Interface CspGenericIntConstant

All Superinterfaces:
CspGenericConstant, CspGenericNumConstant

public interface CspGenericIntConstant
extends CspGenericNumConstant

Interface for CspGenericIntConstant objects

Author:
Jim Boerkoel

Method Summary
 java.lang.Integer[] getIntegerConstants()
          Returns all the Integer objects wrapped by this generic constant
 java.lang.Integer getIntegerForIndex()
          Returns the number at the current index value as an Integer object
 java.lang.Integer getMax()
          Returns the maximum value of all the constant values as an Integer object
 java.lang.Integer getMin()
          Returns the minimal value of all the constant values as an Integer object
 
Methods inherited from interface jopt.csp.variable.CspGenericNumConstant
add, add, contains, createFragment, divide, divide, divideBy, divideBy, divideByCeil, divideByCeil, divideByFloor, divideByFloor, divideCeil, divideCeil, divideFloor, divideFloor, getNumber, getNumberForIndex, getNumberType, getNumConstants, getNumMax, getNumMin, multiply, multiply, subtract, subtract, subtractFrom, subtractFrom
 
Methods inherited from interface jopt.csp.variable.CspGenericConstant
containsIndex, getConstantCount, getIndices, setIndicesToNodeOffset, toString
 

Method Detail

getIntegerForIndex

public java.lang.Integer getIntegerForIndex()
Returns the number at the current index value as an Integer object

Returns:
Integer object currently being indexed

getIntegerConstants

public java.lang.Integer[] getIntegerConstants()
Returns all the Integer objects wrapped by this generic constant

Returns:
array of all Integer objects wrapped by this generic constant

getMin

public java.lang.Integer getMin()
Returns the minimal value of all the constant values as an Integer object

Returns:
Integer object representing the minimum value of all the constant values

getMax

public java.lang.Integer getMax()
Returns the maximum value of all the constant values as an Integer object

Returns:
Integer object representing the maximum value of all the constant values