|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jopt.csp.spi.arcalgorithm.variable.GenericNumConstant jopt.csp.spi.arcalgorithm.variable.GenericFloatConstant
A generic float constant such as Xi representing 1.1, 7.3, and 12.8 for i=0, i=1, and i=2, respectively
Constructor Summary | |
GenericFloatConstant(java.lang.String name,
jopt.csp.variable.CspGenericIndex[] indices,
float[] vals)
Constructor |
|
GenericFloatConstant(java.lang.String name,
jopt.csp.variable.CspGenericIndex[] indices,
java.lang.Float[] vals)
Constructor |
Method Summary | |
GenericNumConstant |
generateNumConstant(java.lang.Number num)
Generates a GenericNumConstant based on only one number |
GenericNumConstant |
generateNumConstant(java.lang.String name,
jopt.csp.variable.CspGenericIndex[] indices,
java.lang.Number[] vals)
Create a new GenericNumConstant with the given indices and constant values |
java.lang.Float[] |
getFloatConstants()
|
java.lang.Float |
getFloatForIndex()
|
java.lang.Float |
getMax()
|
java.lang.Float |
getMin()
|
int |
getNumberType()
|
java.lang.String |
toString()
Displays name of node along with indices |
Methods inherited from class jopt.csp.spi.arcalgorithm.variable.GenericNumConstant |
add, add, contains, containsIndex, createFragment, divide, divide, divideBy, divideBy, divideByCeil, divideByCeil, divideByFloor, divideByFloor, divideCeil, divideCeil, divideFloor, divideFloor, getConstantCount, getIndices, getNumber, getNumberForIndex, getNumConstants, getNumMax, getNumMin, multiply, multiply, setIndicesToNodeOffset, subtract, subtract, subtractFrom, subtractFrom |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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, getNumConstants, getNumMax, getNumMin, multiply, multiply, subtract, subtract, subtractFrom, subtractFrom |
Methods inherited from interface jopt.csp.variable.CspGenericConstant |
containsIndex, getConstantCount, getIndices, setIndicesToNodeOffset |
Constructor Detail |
public GenericFloatConstant(java.lang.String name, jopt.csp.variable.CspGenericIndex[] indices, java.lang.Float[] vals)
name
- unique name of this nodeindices
- array of indices that generic node is based uponvals
- array of vals that this generic constant wrapspublic GenericFloatConstant(java.lang.String name, jopt.csp.variable.CspGenericIndex[] indices, float[] vals)
name
- unique name of this nodeindices
- array of indices that generic node is based uponvals
- array of vals that this generic constant wrapsMethod Detail |
public GenericNumConstant generateNumConstant(java.lang.Number num)
GenericNumConstant
generateNumConstant
in class GenericNumConstant
num
- number to base singly indexed constant on
public GenericNumConstant generateNumConstant(java.lang.String name, jopt.csp.variable.CspGenericIndex[] indices, java.lang.Number[] vals)
GenericNumConstant
generateNumConstant
in class GenericNumConstant
name
- Name of the new generic constantindices
- Indices on which the generic constant is basedvals
- Array of constant values that the generic constant will wrap
public java.lang.Float getFloatForIndex()
getFloatForIndex
in interface jopt.csp.variable.CspGenericFloatConstant
public int getNumberType()
getNumberType
in interface jopt.csp.variable.CspGenericNumConstant
public java.lang.Float[] getFloatConstants()
getFloatConstants
in interface jopt.csp.variable.CspGenericFloatConstant
public java.lang.Float getMin()
getMin
in interface jopt.csp.variable.CspGenericFloatConstant
public java.lang.Float getMax()
getMax
in interface jopt.csp.variable.CspGenericFloatConstant
public java.lang.String toString()
GenericNumConstant
toString
in interface jopt.csp.variable.CspGenericConstant
toString
in class GenericNumConstant
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |