sdsu.algorithms.data
Class DoubleObjectGenerator

java.lang.Object
  |
  +--sdsu.algorithms.data.DoubleObjectGenerator

public class DoubleObjectGenerator
extends java.lang.Object
implements ObjectGenerator

Converts a sequence of numbers to a sequence of Double objects. Uses a NumberGenerator to actually generate the sequence.

Version:
1.0 19 June 1997
Author:
Roger Whitney (whitney@cs.sdsu.edu)
See Also:
sdsu.data.ObjectGenerator, sdsu.data.NumberGenerator

Constructor Summary
DoubleObjectGenerator(NumberGenerator aGenerator)
          Create an DoubleObjectGenerator which uses aGenerator to generate the actual sequence of numbers.
 
Method Summary
 java.lang.Object nextElement()
          Returns the next double in the sequence.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DoubleObjectGenerator

public DoubleObjectGenerator(NumberGenerator aGenerator)
Create an DoubleObjectGenerator which uses aGenerator to generate the actual sequence of numbers.
Method Detail

nextElement

public java.lang.Object nextElement()
Returns the next double in the sequence. The double is rapped in a Double object.
Specified by:
nextElement in interface ObjectGenerator