jopt.csp.spi.solver
Class ReversibleLongArray

java.lang.Object
  extended byjopt.csp.spi.solver.ReversibleNumberArray
      extended byjopt.csp.spi.solver.ReversibleLongArray
All Implemented Interfaces:
ChoicePointEntryListener

public class ReversibleLongArray
extends ReversibleNumberArray

Creates a long array that is reversible with the choicepoint stack. The stack must be set on the array for this functionality to work properly.

Author:
Chris Johnson

Constructor Summary
ReversibleLongArray(int size)
          Constructor
 
Method Summary
 void adjValue(int idx, java.lang.Number val)
          Sets the value of the reversible array at a particular index
 void clear()
           
 java.lang.Number getValue(int idx)
          Returns the value of the reversible array at a particular index
 
Methods inherited from class jopt.csp.spi.solver.ReversibleNumberArray
afterChoicePointPopEvent, afterChoicePointPushEvent, beforeChoicePointPopEvent, beforeChoicePointPushEvent, setChoicePointStack
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReversibleLongArray

public ReversibleLongArray(int size)
Constructor

Method Detail

adjValue

public void adjValue(int idx,
                     java.lang.Number val)
Sets the value of the reversible array at a particular index

Specified by:
adjValue in class ReversibleNumberArray

getValue

public java.lang.Number getValue(int idx)
Returns the value of the reversible array at a particular index

Specified by:
getValue in class ReversibleNumberArray

clear

public void clear()
Specified by:
clear in class ReversibleNumberArray