|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jopt.csp.spi.util.GenericIndex
Represents subscript for a generic variable, such as i for Xi + Yi > Zi.
Constructor Summary | |
GenericIndex(java.lang.String name,
int size)
|
Method Summary | |
void |
changeVal(int v)
Sets the current value of the index |
int |
currentVal()
Returns the current numeric value of the index |
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getName()
Returns the name of this index |
int |
hashCode()
|
boolean |
hasNext()
Move the index to the next value |
boolean |
next()
Move the index to the next value |
void |
reset()
Resets index to initial value |
void |
setName(java.lang.String name)
Sets the name of this index |
int |
size()
Returns the size of the index |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public GenericIndex(java.lang.String name, int size)
Method Detail |
public void setName(java.lang.String name)
public java.lang.String getName()
getName
in interface jopt.csp.variable.CspGenericIndex
public void reset()
public boolean next()
public boolean hasNext()
public int size()
size
in interface jopt.csp.variable.CspGenericIndex
public int currentVal()
currentVal
in interface jopt.csp.variable.CspGenericIndex
public void changeVal(int v)
changeVal
in interface jopt.csp.variable.CspGenericIndex
public int hashCode()
public final boolean equals(java.lang.Object obj)
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |