package umontreal.iro.lecuyer.hups;

 import umontreal.iro.lecuyer.rng.MRG32k3a;
 import umontreal.iro.lecuyer.rng.RandomStream;


/**
 * This class implements an empty
 * {@link umontreal.iro.lecuyer.hups.PointSetRandomization PointSetRandomization}.
 *  The method {@link #randomize(PointSet) 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.
 * 
 */
public class EmptyRandomization implements PointSetRandomization {
   protected RandomStream stream = new MRG32k3a();



   /**
    * This method does nothing.
    * 
    * @param p Point set to randomize
    * 
    * 
    */
   public void randomize (PointSet p)  {
      // Does nothing
   } 


   /**
    * Sets the internal
    *    {@link umontreal.iro.lecuyer.rng.RandomStream RandomStream} to
    *    stream.
    * 
    * @param stream stream to use in the randomization
    * 
    * 
    */
   public void setStream (RandomStream stream)  {
      this.stream = stream;
   } 


   /**
    * Returns the internal
    *    {@link umontreal.iro.lecuyer.rng.RandomStream RandomStream}.
    * 
    * @return stream used in the randomization
    * 
    */
   public RandomStream getStream()  {
      return stream;
   } 

}

 

Ads help maintain this website.