All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sdsu.algorithms.data.DoubleObjectGenerator

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

public class DoubleObjectGenerator
extends 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:
ObjectGenerator, NumberGenerator

Constructor Index

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

Method Index

 o nextElement()
Returns the next double in the sequence.

Constructors

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

Methods

 o nextElement
 public Object nextElement()
Returns the next double in the sequence. The double is rapped in a Double object.


All Packages  Class Hierarchy  This Package  Previous  Next  Index