edu.usc.bg.base.generator
Class Generator

java.lang.Object
  extended by edu.usc.bg.base.generator.Generator
Direct Known Subclasses:
IntegerGenerator, UniformGenerator

public abstract class Generator
extends java.lang.Object

An expression that generates a sequence of string values, following some distribution (Uniform, Zipfian, Sequential, etc.)


Constructor Summary
Generator()
           
 
Method Summary
abstract  java.lang.String lastString()
          Return the previous string generated by the distribution; e.g., returned from the last nextString() call.
abstract  java.lang.String nextString()
          Generate the next string in the distribution.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Generator

public Generator()
Method Detail

nextString

public abstract java.lang.String nextString()
Generate the next string in the distribution.


lastString

public abstract java.lang.String lastString()
Return the previous string generated by the distribution; e.g., returned from the last nextString() call. Calling lastString() should not advance the distribution or have any side effects. If nextString() has not yet been called, lastString() should return something reasonable.