|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcdx.scorebot.util.Event
cdx.scorebot.net.tests.TestEvent
public class TestEvent
contains info about a test and its results for a single run
Nested Class Summary | |
---|---|
class |
TestEvent.ResultInfoPair
stores results from the test and any audits of those results |
Field Summary | |
---|---|
static java.lang.String |
XML_EXT
extension for files of this type serialized to XML |
Constructor Summary | |
---|---|
TestEvent(TestItem ti,
Configuration config)
Creates a TestEvent to store the results from the Test in TestItem ti |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
|
Configuration |
getConfig()
gets the configuration of the test which generated this event |
long |
getDuration()
Gets the amount of time this test took to run |
java.lang.String |
getExplanation()
gets an explanation about what happened |
java.util.HashMap<java.lang.String,TestEvent.ResultInfoPair> |
getResults()
gets the results (and audits) of this test |
java.util.Vector<TestEvent.ResultInfoPair> |
getResultsWithNames()
gets the results (and audits) of this test and sets the name of each result |
TestItem |
getTestItem()
gets the TestItem this event is for |
Timestamp |
getTimeCompleted()
gets the ending timestamp |
Timestamp |
getTimeReported()
gets the time the event was reported |
Timestamp |
getTimeStarted()
gets the starting timestamp |
int |
hashCode()
this is computed by summing (as a Long) the hashCode of every option name, option current value, result name, result value, test item name, and current time as a long and then finding the hashCode of that Long sum. |
void |
setExplanation(java.lang.String explanation)
sets the explanation about what happened |
void |
setResult(java.lang.String propertyName,
java.lang.Object result)
Adds a result to the TestEvent |
void |
setResultValues(java.util.Vector<TestEvent.ResultInfoPair> res)
sets the results (and audits) of this test (the ResultInfoPair's must have their name set) |
void |
setTimeCompleted()
sets the end timestamp to the current time |
void |
setTimeReported(Timestamp time)
sets the time the event was reported |
java.lang.String |
toString()
|
Methods inherited from class cdx.scorebot.util.Event |
---|
getFilename, getTimeGenerated, isReported, setFilename, setTimeGenerated |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String XML_EXT
Constructor Detail |
---|
public TestEvent(TestItem ti, Configuration config)
ti
- the TestItem this event is forconfig
- the options the test was configured withMethod Detail |
---|
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public void setResult(java.lang.String propertyName, java.lang.Object result)
propertyName
- name of the property this result is forresult
- the result valuepublic long getDuration()
public void setTimeCompleted()
public int hashCode()
hashCode
in class java.lang.Object
public Configuration getConfig()
public java.lang.String getExplanation()
public void setExplanation(java.lang.String explanation)
public Timestamp getTimeStarted()
public Timestamp getTimeCompleted()
public Timestamp getTimeReported()
getTimeReported
in class Event
public void setTimeReported(Timestamp time)
setTimeReported
in class Event
public TestItem getTestItem()
public java.util.HashMap<java.lang.String,TestEvent.ResultInfoPair> getResults()
public java.util.Vector<TestEvent.ResultInfoPair> getResultsWithNames()
public void setResultValues(java.util.Vector<TestEvent.ResultInfoPair> res)
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |