|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for CspGenericNumConstant objects
Method Summary | |
CspGenericNumConstant |
add(CspGenericNumConstant num)
Creates a new GenericNumConstant representing this+num for each value of this and each associated value of the specified CspGenericNumConstant. |
CspGenericNumConstant |
add(java.lang.Number num)
Creates a new GenericNumConstant representing this+num for each value of this. |
boolean |
contains(java.lang.Number num)
Returns true if the given number is one of the constants contained in the generic constant |
CspGenericNumConstant |
createFragment(CspGenericIndex[] fragIndices)
Returns a CspGenericNumConstant based on the specified indices |
CspGenericNumConstant |
divide(CspGenericNumConstant num)
Creates a new GenericNumConstant representing num/this for each value of this and each associated value of the specified CspGenericNumConstant. |
CspGenericNumConstant |
divide(java.lang.Number num)
Creates a new GenericNumConstant representing num/this for each value of this. |
CspGenericNumConstant |
divideBy(CspGenericNumConstant num)
Creates a new GenericNumConstant representing this/num for each value of this and each associated value of the specified CspGenericNumConstant. |
CspGenericNumConstant |
divideBy(java.lang.Number num)
Creates a new GenericNumConstant representing this/num for each value of this. |
CspGenericNumConstant |
divideByCeil(CspGenericNumConstant num)
Creates a new GenericNumConstant representing ceil(this/num) for each value of this and each associated value of the specified CspGenericNumConstant. |
CspGenericNumConstant |
divideByCeil(java.lang.Number num)
Creates a new GenericNumConstant representing ceil(this/num) for each value of this. |
CspGenericNumConstant |
divideByFloor(CspGenericNumConstant num)
Creates a new GenericNumConstant representing floor(this/num) for each value of this and each associated value of the specified CspGenericNumConstant. |
CspGenericNumConstant |
divideByFloor(java.lang.Number num)
Creates a new GenericNumConstant representing floor(this/num) for each value of this. |
CspGenericNumConstant |
divideCeil(CspGenericNumConstant num)
Creates a new GenericNumConstant representing ceil(num/this) for each value of this and each associated value of the specified CspGenericNumConstant. |
CspGenericNumConstant |
divideCeil(java.lang.Number num)
Creates a new GenericNumConstant representing ceil(num/this) for each value of this. |
CspGenericNumConstant |
divideFloor(CspGenericNumConstant num)
Creates a new GenericNumConstant representing floor(num/this) for each value of this and each associated value of the specified CspGenericNumConstant. |
CspGenericNumConstant |
divideFloor(java.lang.Number num)
Creates a new GenericNumConstant representing floor(num/this) for each value of this. |
java.lang.Number |
getNumber(int offset)
Returns the constant at the specified offset as a Number object |
java.lang.Number |
getNumberForIndex()
Returns the constant at the current index value as a Number object |
int |
getNumberType()
Returns a value representing the type of constants this generic constant contains |
java.lang.Number[] |
getNumConstants()
Returns all the constants wrapped by this generic constant as an array of Number objects |
java.lang.Number |
getNumMax()
Returns the maximum value of all the constant values |
java.lang.Number |
getNumMin()
Returns the minimal value of all the constant values |
CspGenericNumConstant |
multiply(CspGenericNumConstant num)
Creates a new GenericNumConstant representing num*this for each value of this and each associated value of the specified CspGenericNumConstant. |
CspGenericNumConstant |
multiply(java.lang.Number num)
Creates a new GenericNumConstant representing num*this for each value of this. |
CspGenericNumConstant |
subtract(CspGenericNumConstant num)
Creates a new GenericNumConstant representing this-num for each value of this and each associated value of the specified CspGenericNumConstant. |
CspGenericNumConstant |
subtract(java.lang.Number num)
Creates a new GenericNumConstant representing this-num for each value of this. |
CspGenericNumConstant |
subtractFrom(CspGenericNumConstant num)
Creates a new GenericNumConstant representing num-this for each value of this and each associated value of the specified CspGenericNumConstant. |
CspGenericNumConstant |
subtractFrom(java.lang.Number num)
Creates a new GenericNumConstant representing num-this for each value of this. |
Methods inherited from interface jopt.csp.variable.CspGenericConstant |
containsIndex, getConstantCount, getIndices, setIndicesToNodeOffset, toString |
Method Detail |
public java.lang.Number getNumberForIndex()
public int getNumberType()
public java.lang.Number getNumber(int offset)
offset
- index offset of which to obtain the number
public CspGenericNumConstant createFragment(CspGenericIndex[] fragIndices)
fragIndices
- array of indices and values to fragment over
public java.lang.Number[] getNumConstants()
public boolean contains(java.lang.Number num)
num
- Number object to see if it is contained in the generic constants
public java.lang.Number getNumMin()
public java.lang.Number getNumMax()
public CspGenericNumConstant add(java.lang.Number num)
num
- Number constant to add to this constant
public CspGenericNumConstant add(CspGenericNumConstant num)
num
- generic number constant to add to this constant
public CspGenericNumConstant subtractFrom(java.lang.Number num)
num
- number constant to subtract this constant from
public CspGenericNumConstant subtractFrom(CspGenericNumConstant num)
num
- generic number constant to subtract this constant from
public CspGenericNumConstant subtract(java.lang.Number num)
num
- number constant to subtract from this constant
public CspGenericNumConstant subtract(CspGenericNumConstant num)
num
- generic number constant to subtract from this constant
public CspGenericNumConstant multiply(java.lang.Number num)
num
- number constant to multiply by this constant
public CspGenericNumConstant multiply(CspGenericNumConstant num)
num
- generic number constant to multiply by this constant
public CspGenericNumConstant divideByCeil(java.lang.Number num)
num
- number constant to divide this constant by
public CspGenericNumConstant divideByCeil(CspGenericNumConstant num)
num
- generic number constant to divide this constant by
public CspGenericNumConstant divideByFloor(java.lang.Number num)
num
- number constant to divide this constant by
public CspGenericNumConstant divideByFloor(CspGenericNumConstant num)
num
- generic number constant to divide this constant by
public CspGenericNumConstant divideBy(java.lang.Number num)
num
- generic number constant to divide this constant by
public CspGenericNumConstant divideBy(CspGenericNumConstant num)
num
- generic number constant to divide this constant by
public CspGenericNumConstant divide(java.lang.Number num)
num
- number constant to divide by this constant
public CspGenericNumConstant divide(CspGenericNumConstant num)
num
- generic number constant to divide by this constant
public CspGenericNumConstant divideCeil(java.lang.Number num)
num
- number constant to divide by this constant
public CspGenericNumConstant divideCeil(CspGenericNumConstant num)
num
- generic number constant to divide by this constant
public CspGenericNumConstant divideFloor(java.lang.Number num)
num
- number constant to divide by this constant
public CspGenericNumConstant divideFloor(CspGenericNumConstant num)
num
- generic number constant to divide by this constant
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |