edu.jhu.cs.oose.elevel.testTaking
Class SequentialTestAlgorithm

java.lang.Object
  extended by edu.jhu.cs.oose.elevel.testTaking.TestAlgorithm
      extended by edu.jhu.cs.oose.elevel.testTaking.SequentialTestAlgorithm

public class SequentialTestAlgorithm
extends TestAlgorithm


Field Summary
 
Fields inherited from class edu.jhu.cs.oose.elevel.testTaking.TestAlgorithm
cardCount, currentCardIndex, repeat
 
Constructor Summary
SequentialTestAlgorithm(int cardCount, boolean repeat)
           
 
Method Summary
 int nextCard()
          Returns the index of the next Card in the Deck.
 
Methods inherited from class edu.jhu.cs.oose.elevel.testTaking.TestAlgorithm
cardAnswered
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SequentialTestAlgorithm

public SequentialTestAlgorithm(int cardCount,
                               boolean repeat)
Method Detail

nextCard

public int nextCard()
Description copied from class: TestAlgorithm
Returns the index of the next Card in the Deck. Implementation must be provided by subclasses.

Specified by:
nextCard in class TestAlgorithm
Returns:
an int representing the index of the next Card