|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcdx.scorebot.util.Event
cdx.scorebot.scoring.ScoreEvent
cdx.scorebot.scoring.TestScoreEvent
public class TestScoreEvent
describes a change in score due to a penalty or bonus resulting from test results triggering a scoring rule (includes all relevant information as to why)
| Field Summary | |
|---|---|
static java.lang.String |
XML_EXT
extension for files of this type serialized to XML |
| Constructor Summary | |
|---|---|
TestScoreEvent(ScoringRule generatingRule,
int scoreChange,
java.lang.String title)
Creates the TestScoreEvent from the specified parameters. |
|
TestScoreEvent(ScoringRule generatingRule,
int scoreChange,
java.lang.String title,
java.lang.String msg)
Creates the TestScoreEvent from the specified parameters. |
|
| Method Summary | |
|---|---|
ScoringRule |
getGeneratingRule()
gets the generating rule |
Timestamp |
getTimeCompleted()
gets the ending time of the last TestEvent |
Timestamp |
getTimeGenerated()
gets the time the first (earliest) TestEvent completed (from the generatingRule) (note: this overloads ScoreEvents getTimeGenerated() method) |
Timestamp |
getTimeReported()
the time the last TestEvent to be reported (null if not all TestEvents have been reported yet) |
void |
setTimeReported(Timestamp time)
sets the time all constituent test events was reported |
java.lang.String |
toString()
|
| Methods inherited from class cdx.scorebot.scoring.ScoreEvent |
|---|
getExplanation, getScoringInfo, getTitle, setExplanation, setTitle |
| Methods inherited from class cdx.scorebot.util.Event |
|---|
getFilename, isReported, setFilename, setTimeGenerated |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String XML_EXT
| Constructor Detail |
|---|
public TestScoreEvent(ScoringRule generatingRule,
int scoreChange,
java.lang.String title)
generatingRule - the scoring rule which generated this ScoreEvent (includes all
information about the tests that caused it to fire, etc.)scoreChange - the number of points to add to the score (negative number => penalty)title - a descriptive heading for the event
public TestScoreEvent(ScoringRule generatingRule,
int scoreChange,
java.lang.String title,
java.lang.String msg)
generatingRule - the scoring rule which generated this ScoreEvent (includes all
information about the tests that caused it to fire, etc.)scoreChange - the number of points to add to the score (negative number => penalty)title - a descriptive heading for the eventmsg - explanation for the score change| Method Detail |
|---|
public Timestamp getTimeGenerated()
getTimeGenerated in class Eventpublic Timestamp getTimeCompleted()
public Timestamp getTimeReported()
getTimeReported in class Eventpublic void setTimeReported(Timestamp time)
setTimeReported in class Eventpublic ScoringRule getGeneratingRule()
public java.lang.String toString()
toString in class ScoreEvent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||