|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--lima.mathematical.factorisation.quadraticsieve.QSWorkUnit
Objects of this class are work units for a quadratic sieve object.
QuadraticSieve,
WorkUnit,
Serialized Form| Constructor Summary | |
QSWorkUnit(lima.distribution.Constants remoteConstants,
int constantsHashCode,
int[] aFactorsRef,
int cost)
|
|
| Method Summary | |
int |
cost()
Guess how long this workunit will take to run, in ms on a midrange machine |
boolean |
equals(java.lang.Object other)
|
void |
generateHashCode()
WHAT DOES THIS DO? WHY? - pw |
java.math.BigInteger[] |
getRelations()
|
int |
hashCode()
|
boolean |
hasRun()
Returns true iff run has completed on this workUnit. |
void |
run(lima.storage.Cache cache)
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 |
| Constructor Detail |
public QSWorkUnit(lima.distribution.Constants remoteConstants,
int constantsHashCode,
int[] aFactorsRef,
int cost)
| Method Detail |
public void generateHashCode()
WorkUnit
generateHashCode in interface WorkUnitpublic void run(lima.storage.Cache cache)
WorkUnit
run in interface WorkUnitpublic int cost()
WorkUnit
cost in interface WorkUnit();
public int runtime()
throws java.lang.IllegalStateException
WorkUnit
runtime in interface WorkUnitjava.lang.IllegalStateException - iff run has not been called.WorkUnit.runtime()public boolean hasRun()
WorkUnit
hasRun in interface WorkUnitWorkUnit.hasRun()public java.math.BigInteger[] getRelations()
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||