SSJ
V. 2.6.

umontreal.iro.lecuyer.hups
Class EmptyRandomization

java.lang.Object
  extended by umontreal.iro.lecuyer.hups.EmptyRandomization
All Implemented Interfaces:
PointSetRandomization

public class EmptyRandomization
extends Object
implements PointSetRandomization

This class implements an empty PointSetRandomization. The method randomize does nothing. The internal stream is never used. This class can be used in methods where a randomization is needed but you don't want one.


Constructor Summary
EmptyRandomization()
           
 
Method Summary
 RandomStream getStream()
          Returns the internal RandomStream.
 void randomize(PointSet p)
          This method does nothing.
 void setStream(RandomStream stream)
          Sets the internal RandomStream to stream.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmptyRandomization

public EmptyRandomization()
Method Detail

randomize

public void randomize(PointSet p)
This method does nothing.

Specified by:
randomize in interface PointSetRandomization
Parameters:
p - Point set to randomize

setStream

public void setStream(RandomStream stream)
Sets the internal RandomStream to stream.

Specified by:
setStream in interface PointSetRandomization
Parameters:
stream - stream to use in the randomization

getStream

public RandomStream getStream()
Returns the internal RandomStream.

Specified by:
getStream in interface PointSetRandomization
Returns:
stream used in the randomization

SSJ
V. 2.6.

To submit a bug or ask questions, send an e-mail to Pierre L'Ecuyer.