edu.rit.mri
Class PixelSchedule

java.lang.Object
  extended by edu.rit.mri.PixelSchedule

public class PixelSchedule
extends Object

Class PixelSchedule provides a load balancing schedule object used by class SpinRelaxometryClu for partitioning the pixels of the input spin signal data sets among the workers. The data sets are divided into chunks of a fixed size.


Constructor Summary
PixelSchedule(int chunkSize, String[] signalFileName)
          Construct a new pixel schedule object.
 
Method Summary
 PixelChunk next()
          Get the next chunk of pixels to analyze.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PixelSchedule

public PixelSchedule(int chunkSize,
                     String[] signalFileName)
Construct a new pixel schedule object.

Parameters:
chunkSize - Maximum number of pixels in each chunk.
signalFileName - Array of spin signal data set file names.
Method Detail

next

public PixelChunk next()
                throws IOException
Get the next chunk of pixels to analyze. If there are no more chunks, null is returned.

Returns:
Chunk, or null.
Throws:
IOException - Thrown if an I/O error occurred.


Copyright © 2005-2012 by Alan Kaminsky. All rights reserved. Send comments to ark­@­cs.rit.edu.