|
||||||||||
| 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.ManualScoreEvent
public class ManualScoreEvent
describes a change in score due to a penalty or bonus resulting from a manually, user-entered request for such a change
| Field Summary | |
|---|---|
static java.lang.String |
XML_EXT
extension for files of this type serialized to XML |
| Constructor Summary | |
|---|---|
ManualScoreEvent(java.lang.String title,
int scoreChange)
Creates the ManualScoreEvent with the specified score change and an empty message |
|
ManualScoreEvent(java.lang.String title,
int scoreChange,
java.lang.String msg)
Creates the ManualScoreEvent with the specified score change and explanation |
|
ManualScoreEvent(java.lang.String title,
int scoreChange,
java.lang.String msg,
Timestamp reported)
Instantiates a ManualScoreEvent |
|
| Method Summary | |
|---|---|
Timestamp |
getTime()
gets the time of the "event" which caused this score change to be entered |
Timestamp |
getTimeReported()
gets the time the event was reported |
void |
setTime(Timestamp relevantTime)
sets the time of the "event" which caused this score change to be entered |
void |
setTimeReported(Timestamp time)
sets the time the event was reported |
| Methods inherited from class cdx.scorebot.scoring.ScoreEvent |
|---|
getExplanation, getScoringInfo, getTitle, setExplanation, setTitle, toString |
| Methods inherited from class cdx.scorebot.util.Event |
|---|
getFilename, getTimeGenerated, 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 ManualScoreEvent(java.lang.String title,
int scoreChange)
title - a descriptive heading for the eventscoreChange - the number of points to add to the score (negative number => penalty)
public ManualScoreEvent(java.lang.String title,
int scoreChange,
java.lang.String msg)
title - a descriptive heading for the eventscoreChange - the number of points to add to the score (negative number => penalty)msg - explanation for the score change
public ManualScoreEvent(java.lang.String title,
int scoreChange,
java.lang.String msg,
Timestamp reported)
title - a descriptive heading for the eventscoreChange - the number of points to add to the score (negative number => penalty)msg - explanation for the score changereported - whetn this event ws been reported (null if not yet)| Method Detail |
|---|
public Timestamp getTime()
public void setTime(Timestamp relevantTime)
relevantTime - the time of the "event" which caused this score change to be enteredpublic Timestamp getTimeReported()
Event
getTimeReported in class Eventpublic void setTimeReported(Timestamp time)
Event
setTimeReported in class Event
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||