jopt.csp.variable
Interface CspGenericIndex


public interface CspGenericIndex

Interface implemented by a class that represents a subnotation of a generic variable like Xi or Zj


Method Summary
 void changeVal(int v)
          Sets the current value of the index
 int currentVal()
          Returns the current numeric value of the index
 java.lang.String getName()
          Returns the name of this index
 int size()
          Returns the size of the index
 

Method Detail

getName

public java.lang.String getName()
Returns the name of this index

Returns:
name of this index

size

public int size()
Returns the size of the index

Returns:
size of this index

changeVal

public void changeVal(int v)
Sets the current value of the index

Parameters:
v - value to set this index to

currentVal

public int currentVal()
Returns the current numeric value of the index

Returns:
current value of this index