|
SSJ V. 2.6.2. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object umontreal.iro.lecuyer.hups.RandomShift
public class RandomShift
This class implements a
PointSetRandomization
.
The RandomStream
is
stored internally. The method randomize
simply
calls
addRandomShift
(stream).
This class can be used as a base class to implement a specific
randomization by overriding method randomize
.
Constructor Summary | |
---|---|
RandomShift()
Empty constructor. |
|
RandomShift(RandomStream stream)
Sets the internal RandomStream to stream. |
Method Summary | |
---|---|
RandomStream |
getStream()
Returns the internal RandomStream . |
void |
randomize(PointSet p)
This method calls addRandomShift (stream). |
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 |
---|
public RandomShift()
public RandomShift(RandomStream stream)
RandomStream
to stream.
stream
- stream to use in the randomizationMethod Detail |
---|
public void randomize(PointSet p)
addRandomShift
(stream).
randomize
in interface PointSetRandomization
p
- Point set to randomizepublic void setStream(RandomStream stream)
RandomStream
to
stream.
setStream
in interface PointSetRandomization
stream
- stream to use in the randomizationpublic RandomStream getStream()
RandomStream
.
getStream
in interface PointSetRandomization
|
SSJ V. 2.6.2. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |