jopt.csp.variable
Interface CspGenericLongConstant

All Superinterfaces:
CspGenericConstant, CspGenericNumConstant

public interface CspGenericLongConstant
extends CspGenericNumConstant

Interface for CspGenericLongConstant objects

Author:
Jim Boerkoel

Method Summary
 java.lang.Long[] getLongConstants()
          Returns all the Long objects wrapped by this generic constant
 java.lang.Long getLongForIndex()
          Returns the number at the current index value as a Long object
 java.lang.Long getMax()
          Returns the maximum value of all the constant values as a Long object
 java.lang.Long getMin()
          Returns the minimal value of all the constant values as a Long 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

getLongForIndex

public java.lang.Long getLongForIndex()
Returns the number at the current index value as a Long object

Returns:
Long object representing the index currently being referenced to

getLongConstants

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

Returns:
an array of all the Long objects being wrapped by this generic constant

getMin

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

Returns:
returns a Long with the minimum value of all the constant values

getMax

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

Returns:
returns a Long with the maximum value of all the constant values