jopt.csp.variable
Interface CspGenericDoubleConstant

All Superinterfaces:
CspGenericConstant, CspGenericNumConstant

public interface CspGenericDoubleConstant
extends CspGenericNumConstant

Interface for CspGenericDoubleConstant objects

Author:
Jim Boerkoel

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

getDoubleForIndex

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

Returns:
Double object referenced by the current index

getDoubleConstants

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

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

getMin

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

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

getMax

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

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