SSJ
V. labo.

umontreal.iro.lecuyer.hups
Class DigitalSequence.DigitalNetIteratorShiftGenerators

java.lang.Object
  extended by umontreal.iro.lecuyer.hups.PointSet.DefaultPointSetIterator
      extended by umontreal.iro.lecuyer.hups.DigitalNet.DigitalNetIterator
          extended by umontreal.iro.lecuyer.hups.DigitalSequence.DigitalNetIteratorShiftGenerators
All Implemented Interfaces:
PointSetIterator, RandomStream
Enclosing class:
DigitalSequence

protected class DigitalSequence.DigitalNetIteratorShiftGenerators
extends DigitalNet.DigitalNetIterator


Field Summary
 
Fields inherited from class umontreal.iro.lecuyer.hups.DigitalNet.DigitalNetIterator
bdigit, cachedCurPoint, dimS, gdigit, idigits
 
Fields inherited from class umontreal.iro.lecuyer.hups.PointSet.DefaultPointSetIterator
curCoordIndex, curPointIndex, EpsilonHalf
 
Constructor Summary
DigitalSequence.DigitalNetIteratorShiftGenerators()
           
 
Method Summary
 void init()
           
 void init2()
           
 int resetToNextPoint()
          Increases the current point index by 1 and returns its new value.
 void setCurPointIndex(int i)
          Resets the current point index to i and the current coordinate index to zero.
 
Methods inherited from class umontreal.iro.lecuyer.hups.DigitalNet.DigitalNetIterator
nextCoordinate, nextDouble, resetCurPointIndex
 
Methods inherited from class umontreal.iro.lecuyer.hups.PointSet.DefaultPointSetIterator
formatState, getCurCoordIndex, getCurPointIndex, hasNextCoordinate, hasNextPoint, nextArrayOfDouble, nextArrayOfInt, nextCoordinates, nextInt, nextPoint, outOfBounds, resetCurCoordIndex, resetNextSubstream, resetStartStream, resetStartSubstream, setAntithetic, setCurCoordIndex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface umontreal.iro.lecuyer.rng.RandomStream
toString
 

Constructor Detail

DigitalSequence.DigitalNetIteratorShiftGenerators

public DigitalSequence.DigitalNetIteratorShiftGenerators()
Method Detail

init

public void init()
Overrides:
init in class DigitalNet.DigitalNetIterator

init2

public void init2()

setCurPointIndex

public void setCurPointIndex(int i)
Description copied from interface: PointSetIterator
Resets the current point index to i and the current coordinate index to zero. If i is larger or equal to the number of points, an exception will not be raised here, but only later if we ask for a new coordinate or point.

Specified by:
setCurPointIndex in interface PointSetIterator
Overrides:
setCurPointIndex in class DigitalNet.DigitalNetIterator
Parameters:
i - new index of the current point

resetToNextPoint

public int resetToNextPoint()
Description copied from interface: PointSetIterator
Increases the current point index by 1 and returns its new value. If there is no more point, an exception will be raised only if we ask for a new coordinate or point later on.

Specified by:
resetToNextPoint in interface PointSetIterator
Overrides:
resetToNextPoint in class DigitalNet.DigitalNetIterator
Returns:
index of the new current point

SSJ
V. labo.

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