edu.mssm.crover.ims.tasks.engines
Class FileTaskData

java.lang.Object
  |
  +--edu.mssm.crover.ims.tasks.engines.FileTaskData
All Implemented Interfaces:
java.io.Serializable, TaskData

public class FileTaskData
extends java.lang.Object
implements TaskData, java.io.Serializable

Stores the name of a file.

See Also:
Serialized Form

Field Summary
 java.io.File f
           
 
Constructor Summary
FileTaskData(java.io.File file)
           
 
Method Summary
 boolean canMerge()
          Does this instance support the merge operation?
 boolean canSplit()
          Does this instance support the split operation?
 java.io.File getFile()
           
 java.lang.String getName()
           
 TaskData merge(java.util.Collection task_data)
          Returns the merging of independent task_data in one instance.
 long size()
          Returns a number proportional to the number of data represented by this instance.
 java.util.Collection split(int numpieces)
          Splits the data contained in this instance into several pieces.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

f

public java.io.File f
Constructor Detail

FileTaskData

public FileTaskData(java.io.File file)
Method Detail

canSplit

public boolean canSplit()
Description copied from interface: TaskData
Does this instance support the split operation?

Specified by:
canSplit in interface TaskData

size

public long size()
Description copied from interface: TaskData
Returns a number proportional to the number of data represented by this instance.

Specified by:
size in interface TaskData

split

public java.util.Collection split(int numpieces)
Description copied from interface: TaskData
Splits the data contained in this instance into several pieces.

Specified by:
split in interface TaskData

getName

public java.lang.String getName()

getFile

public java.io.File getFile()

canMerge

public boolean canMerge()
Description copied from interface: TaskData
Does this instance support the merge operation?

Specified by:
canMerge in interface TaskData

merge

public TaskData merge(java.util.Collection task_data)
Description copied from interface: TaskData
Returns the merging of independent task_data in one instance.

Specified by:
merge in interface TaskData


Copyright @ 2003 Mount Sinai School of Medicine. All Rights Reserved.