lima.mathematical.factorisation.ecm
Class EcmWorkUnit

java.lang.Object
  |
  +--lima.mathematical.factorisation.ecm.EcmWorkUnit
All Implemented Interfaces:
java.io.Serializable, WorkUnit

public class EcmWorkUnit
extends java.lang.Object
implements WorkUnit, java.io.Serializable

See Also:
Serialized Form

Field Summary
 int rt
           
 
Constructor Summary
EcmWorkUnit(java.math.BigInteger n, java.math.BigInteger sigma, int B1, int B2, java.math.BigInteger k, int curvenumber)
           
 
Method Summary
 int cost()
          Guess how long this workunit will take to run, in ms on a midrange machine
 boolean equals(java.lang.Object o)
           
 java.math.BigInteger gcd()
          Method gcd.
 void generateHashCode()
          WHAT DOES THIS DO? WHY? - pw
 int hashCode()
           
 boolean hasRun()
          Returns true iff run has completed on this workUnit.
 void run(lima.storage.Cache c)
          Start processing this WorkUnit.
 int runtime()
          How long this WorkUnit took to run in ms.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

rt

public int rt
Constructor Detail

EcmWorkUnit

public EcmWorkUnit(java.math.BigInteger n,
                   java.math.BigInteger sigma,
                   int B1,
                   int B2,
                   java.math.BigInteger k,
                   int curvenumber)
Method Detail

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

generateHashCode

public void generateHashCode()
Description copied from interface: WorkUnit
WHAT DOES THIS DO? WHY? - pw

Specified by:
generateHashCode in interface WorkUnit

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

run

public void run(lima.storage.Cache c)
Description copied from interface: WorkUnit
Start processing this WorkUnit. This method MUST return only after processing has finished, and the WorkUnit can be send back to the server.

Specified by:
run in interface WorkUnit
See Also:
WorkUnit.run(lima.storage.Cache)

cost

public int cost()
Description copied from interface: WorkUnit
Guess how long this workunit will take to run, in ms on a midrange machine

Specified by:
cost in interface WorkUnit
See Also:
WorkUnit.cost()

runtime

public int runtime()
            throws java.lang.IllegalStateException
Description copied from interface: WorkUnit
How long this WorkUnit took to run in ms. This should only be called after run has been called.

Specified by:
runtime in interface WorkUnit
Returns:
int
Throws:
java.lang.IllegalStateException - iff run has not been called.
See Also:
WorkUnit.runtime()

hasRun

public boolean hasRun()
Description copied from interface: WorkUnit
Returns true iff run has completed on this workUnit.

Specified by:
hasRun in interface WorkUnit
Returns:
boolean
See Also:
WorkUnit.hasRun()

gcd

public java.math.BigInteger gcd()
Method gcd.