jaga.experiment
Class NRepeatsTPG

java.lang.Object
  |
  +--jaga.experiment.NRepeatsTPG
All Implemented Interfaces:
java.io.Serializable, TestPatternGenerator

public class NRepeatsTPG
extends java.lang.Object
implements TestPatternGenerator

This Pattern Generator generates random input vectors at each step until all possible 2^I (where I is the nr. of inputs) vectors have been seen N times.

See Also:
Serialized Form

Constructor Summary
NRepeatsTPG(int n)
          Creates a new instance of NRepeatsTPG
 
Method Summary
 SampleData[] getPattern(int width)
           
 void setRandomSeed(long seed)
          Seeds the random number generator to repeat a previous random pattern
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NRepeatsTPG

public NRepeatsTPG(int n)
Creates a new instance of NRepeatsTPG
Method Detail

getPattern

public SampleData[] getPattern(int width)
Specified by:
getPattern in interface TestPatternGenerator
Returns:
Test Pattern with defined width.

setRandomSeed

public void setRandomSeed(long seed)
Seeds the random number generator to repeat a previous random pattern
Specified by:
setRandomSeed in interface TestPatternGenerator

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object