|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cdx.scorebot.scoring.logic.TestNumPair
public class TestNumPair
stores a test and the number of results to track
Constructor Summary | |
---|---|
TestNumPair(java.lang.String testToTrackName,
int numResultsToKeep)
instantiate a TestNumPair |
Method Summary | |
---|---|
void |
clearResults()
removes all known results |
java.lang.Object |
clone()
Returns a clone of this TestNumPair. |
boolean |
equals(java.lang.Object o)
|
int |
getNumResultsToKeep()
gets the number of results to track |
TestEvent |
getResult(int index)
gets the specified result (0 = most recent) |
java.util.Vector<TestEvent> |
getResults()
gets the results this stores (index 0 = most recent) |
java.lang.String |
getTestItemNameToTrack()
gets the name of the test item whose results are to be tracked |
boolean |
hasAllResults()
whether or not this TestNumResult has a value for each of the results it can hold |
boolean |
trackResult(TestEvent e)
adds the specified result to the TestEvents being tracked if the specified result came from the test item being tracked by this TestNumPair |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TestNumPair(java.lang.String testToTrackName, int numResultsToKeep)
testToTrackName
- the name of the test item whose results are to be trackednumResultsToKeep
- the number of results to trackMethod Detail |
---|
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public void clearResults()
public java.lang.Object clone()
TestNumPair
object.
clone
in class java.lang.Object
public TestEvent getResult(int index)
index
- the number of the test to get (0 = most recent)
public java.util.Vector<TestEvent> getResults()
public boolean hasAllResults()
public boolean trackResult(TestEvent e)
e
- the TestEvent to add to the results being tracked (if it is from the
appropriate Test)
public int getNumResultsToKeep()
public java.lang.String getTestItemNameToTrack()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |