|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--lima.testing.TestWU
| Field Summary | |
protected int |
workCounter
|
| Constructor Summary | |
TestWU(int sernum)
|
|
| 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)
|
void |
generateHashCode()
WHAT DOES THIS DO? WHY? - pw |
int |
getSerial()
Method getSerial. |
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. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected int workCounter
| Constructor Detail |
public TestWU(int sernum)
| Method Detail |
public void generateHashCode()
WorkUnit
generateHashCode in interface WorkUnitpublic void run(lima.storage.Cache c)
WorkUnit
run in interface WorkUnitWorkUnit.run(lima.storage.Cache)public int cost()
WorkUnit
cost in interface WorkUnitWorkUnit.cost()
public int runtime()
throws java.lang.IllegalStateException
WorkUnit
runtime in interface WorkUnitjava.lang.IllegalStateException - iff run has not been called.WorkUnit.runtime()public int hashCode()
hashCode in class java.lang.Objectpublic boolean hasRun()
WorkUnit
hasRun in interface WorkUnitWorkUnit.hasRun()public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int getSerial()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||