epfl.io
Class VectorShufflePeriodReader

java.lang.Object
  |
  +--epfl.io.VectorUnknownPeriodReader
        |
        +--epfl.io.VectorManualPeriodReader
              |
              +--epfl.io.VectorShufflePeriodReader
All Implemented Interfaces:
VectorReader

public class VectorShufflePeriodReader
extends VectorManualPeriodReader

A double vector manual periodic reader. Period vectors can be read and then the reader must be reset. The vectors can be shuffled at any time.


Constructor Summary
VectorShufflePeriodReader(VectorReader in)
          Creates a new periodic reader.
VectorShufflePeriodReader(VectorReader in, boolean makePeriodicCopy)
          Creates a new periodic reader
 
Method Summary
 void shuffle()
          Shuffles the vectors
 
Methods inherited from class epfl.io.VectorManualPeriodReader
read, reset
 
Methods inherited from class epfl.io.VectorUnknownPeriodReader
close, period, size
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VectorShufflePeriodReader

public VectorShufflePeriodReader(VectorReader in,
                                 boolean makePeriodicCopy)
Creates a new periodic reader
Parameters:
in - the underlying vector reader
makePeriodicCopy - flag saying if on each period a new vector is built

VectorShufflePeriodReader

public VectorShufflePeriodReader(VectorReader in)
Creates a new periodic reader. Each period a new vector is built
Parameters:
in - the underlying vector reader
Method Detail

shuffle

public void shuffle()
Shuffles the vectors