umontreal.iro.lecuyer.hups
Class EmptyRandomization
- java.lang.Object
-
- umontreal.iro.lecuyer.hups.EmptyRandomization
-
- All Implemented Interfaces:
- PointSetRandomization
public class EmptyRandomization extends java.lang.Object implements PointSetRandomization
This class implements an emptyPointSetRandomization. The methodrandomizedoes 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
Constructors Constructor and Description EmptyRandomization()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description RandomStreamgetStream()Returns the internalRandomStream.voidrandomize(PointSet p)This method does nothing.voidsetStream(RandomStream stream)Sets the internalRandomStreamto stream.
-
-
-
Method Detail
-
randomize
public void randomize(PointSet p)
This method does nothing.- Specified by:
randomizein interfacePointSetRandomization- Parameters:
p- Point set to randomize
-
setStream
public void setStream(RandomStream stream)
Sets the internalRandomStreamto stream.- Specified by:
setStreamin interfacePointSetRandomization- Parameters:
stream- stream to use in the randomization
-
getStream
public RandomStream getStream()
Returns the internalRandomStream.- Specified by:
getStreamin interfacePointSetRandomization- Returns:
- stream used in the randomization
-
-
DMelt 3.0 © DataMelt by jWork.ORG