|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcdx.scorebot.scoring.ScoringInfo
public class ScoringInfo
Describes a score change as well as any thresholds which modify that change
Constructor Summary | |
---|---|
ScoringInfo(int scoreChange)
constructs a ScoringInfo with the specified score change; the ThresholdType is assumed to be NOT_THRESHOLDED since no ScoreEvents are provided |
Method Summary | |
---|---|
void |
addAggravatingEvent(ScoreEvent evt)
Adds a ScoreEvent to denote as an aggravating event (one that impacted the score change caused by this). |
int |
getActualScoreChange()
gets the actual score change |
ScoreEvent |
getAggravatingEvent(int index)
Gets the specified ScoreEvent which impacted the score change caused by this. |
java.util.Vector<ScoreEvent> |
getAggravatingEvents()
gets the ScoreEvents which caused this score's impact to be reduced due to ThresholdType.MAX_RULE_PENALTY_TIME only (if any) |
int |
getScoreChange()
gets the unthresholded number of points to add to the score (negative number => penalty) |
int |
getThresholdedScoreChange()
gets the thresholded # of points to add to the score (negative # => penalty) |
ThresholdType |
getThresholdType()
gets the kind of threshold is being applied |
void |
removeAggravatingEvent(int index)
Removes the ScoreEvent from the list of aggravating events which impacted the score change caused by this. |
void |
setScoreChange(int scoreChange)
sets the unthresholded number of points to add to the score (negative number => penalty) |
void |
setThresholdedScoreChange(int thresholdedScoreChange)
sets the thresholded # of points to add to the score (negative # => penalty) |
void |
setThresholdType(ThresholdType type)
sets the kind of threshold is being applied |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ScoringInfo(int scoreChange)
scoreChange
- the unthresholded # of points to add to the score (negative # => penalty)Method Detail |
---|
public void addAggravatingEvent(ScoreEvent evt)
evt
- the ScoreEvent to add to this ScoringInfopublic void removeAggravatingEvent(int index) throws java.lang.ArrayIndexOutOfBoundsException
index
- remove the ScoreEvent at the specified index.
java.lang.ArrayIndexOutOfBoundsException
- if the index was invalid.public ScoreEvent getAggravatingEvent(int index) throws java.lang.ArrayIndexOutOfBoundsException
java.lang.ArrayIndexOutOfBoundsException
- if the index was invalid.public java.util.Vector<ScoreEvent> getAggravatingEvents()
public int getActualScoreChange()
public int getScoreChange()
public void setScoreChange(int scoreChange)
public int getThresholdedScoreChange()
public void setThresholdedScoreChange(int thresholdedScoreChange)
public ThresholdType getThresholdType()
public void setThresholdType(ThresholdType type)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |