lima.distribution
Interface WorkUnitSource

All Superinterfaces:
java.rmi.Remote
All Known Implementing Classes:
EcmSource, TestTX, WUPipe

public interface WorkUnitSource
extends java.rmi.Remote

A Source of Unprocessed WorkUnits. This is the interface that the distribution system gets WorkUnits from the algorithm-specific code.


Method Summary
 java.lang.String getOwner()
          Return a textual description of a source's owner.
 boolean hasNext()
          Will next() succeed?
 lima.distribution.WorkUnit next()
          Return the next WorkUnit that needs to be processed.
 

Method Detail

next

public lima.distribution.WorkUnit next()
                                throws java.rmi.RemoteException
Return the next WorkUnit that needs to be processed. MUST NOT be called if hasNext()==false.

Returns:
WorkUnit - -The next WorkUnit
java.rmi.RemoteException

hasNext

public boolean hasNext()
                throws java.rmi.RemoteException
Will next() succeed?

Returns:
boolean
java.rmi.RemoteException

getOwner

public java.lang.String getOwner()
                          throws java.rmi.RemoteException
Return a textual description of a source's owner.

java.rmi.RemoteException