lima.mathematical.factorisation.quadraticsieve
Class QSWorkUnitSink

java.lang.Object
  |
  +--java.rmi.server.RemoteObject
        |
        +--java.rmi.server.RemoteServer
              |
              +--java.rmi.server.UnicastRemoteObject
                    |
                    +--lima.mathematical.factorisation.quadraticsieve.QSWorkUnitSink
All Implemented Interfaces:
java.rmi.Remote, java.io.Serializable, WorkUnitSink

public class QSWorkUnitSink
extends java.rmi.server.UnicastRemoteObject
implements WorkUnitSink

This is the sink of relations for the QS. Its results are feed back to the GaussianThread via QSAlg.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
QSWorkUnitSink()
           
QSWorkUnitSink(lima.mathematical.factorisation.quadraticsieve.QuadraticSieveAlg th)
           
 
Method Summary
 void allDone()
          Signals that all WorkUnits have been done.
 void flush(lima.distribution.WorkUnit o)
          Flush the WorkUnit w back to the distribution system.
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QSWorkUnitSink

public QSWorkUnitSink()
               throws java.rmi.RemoteException

QSWorkUnitSink

public QSWorkUnitSink(lima.mathematical.factorisation.quadraticsieve.QuadraticSieveAlg th)
               throws java.rmi.RemoteException
Method Detail

flush

public void flush(lima.distribution.WorkUnit o)
           throws java.rmi.RemoteException
Description copied from interface: WorkUnitSink
Flush the WorkUnit w back to the distribution system. Note that order is not maintained.

Specified by:
flush in interface WorkUnitSink
Parameters:
o -
java.rmi.RemoteException
See Also:
WorkUnitSink.flush(lima.distribution.WorkUnit)

allDone

public void allDone()
             throws java.rmi.RemoteException
Description copied from interface: WorkUnitSink
Signals that all WorkUnits have been done.

Specified by:
allDone in interface WorkUnitSink
java.rmi.RemoteException
See Also:
WorkUnitSink.allDone()