org.dolben.MarkN
Class NumberSequence

java.lang.Object
  extended by org.dolben.MarkN.Numbah
      extended by org.dolben.MarkN.NumberSequence
All Implemented Interfaces:
java.lang.Cloneable

public class NumberSequence
extends Numbah

This is a generator of a complete sequence of valid N Digit Numbers.


Constructor Summary
NumberSequence()
          constructs a new sequence generator
 
Method Summary
static void main(java.lang.String[] arg)
          tests the class
 boolean next()
          generates the next number
 
Methods inherited from class org.dolben.MarkN.Numbah
clone, copy, getDigit, random, score, setDigit, toString, valid
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NumberSequence

public NumberSequence()
constructs a new sequence generator

Method Detail

next

public boolean next()
generates the next number

Returns:
true iff there is a number left to generate

main

public static void main(java.lang.String[] arg)
tests the class

Parameters:
arg - ignored