JET

edu.utep.cs.jet.rat.gen
Class IncrementalValueGenerator

java.lang.Object
  extended by edu.utep.cs.jet.rat.gen.SimpleValueGenerator
      extended by edu.utep.cs.jet.rat.gen.IncrementalValueGenerator
All Implemented Interfaces:
ValueGenerator

public class IncrementalValueGenerator
extends SimpleValueGenerator

A class to generate values incrementally for object types. This class uses an incremental random approach in that every method or constructor, selected randomly, is checked on-the-fly to ensure a successful invocation of the method or constructor, i.e., no exception and no assertion violation.

Version:
$Revision: 1.8 $
Author:
Yoonsik Cheon

Field Summary
 
Fields inherited from class edu.utep.cs.jet.rat.gen.SimpleValueGenerator
arrayGenerator, interfaceGenerator
 
Constructor Summary
IncrementalValueGenerator(ValueFactory factory)
          Creates a new instance to generate values by using the given value factory.
 
Method Summary
protected  ClassValueGenerator getClassValueGenerator(Class<?> type, ValueFactory factory)
          Creates a class value generator for the given type.
 
Methods inherited from class edu.utep.cs.jet.rat.gen.SimpleValueGenerator
generate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IncrementalValueGenerator

public IncrementalValueGenerator(ValueFactory factory)
Creates a new instance to generate values by using the given value factory.

Method Detail

getClassValueGenerator

protected ClassValueGenerator getClassValueGenerator(Class<?> type,
                                                     ValueFactory factory)
Creates a class value generator for the given type. This method is overridden here to return an incremental value generator.

Overrides:
getClassValueGenerator in class SimpleValueGenerator

JET

JET is Copyright (C) 2005-2008 by The University of Texas at El Paso and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.