|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcdx.scorebot.app.reporter.TeamScoringInfo
public class TeamScoringInfo
contains all the scoring/reporting information for a particular team
Field Summary | |
---|---|
java.util.HashMap<Service,java.util.Vector<TestSuite>> |
assocTS
|
TeamReportingInfo |
basicInfo
basic information about the team this is for |
int |
initScore
|
java.util.Vector<ManualScoreEvent> |
manualScoreEvents
all manual score events in the order they occurred |
int |
mseTotalScore
total score for manual score events |
java.util.Vector<ScoringRule> |
rules
all scoring rules (from ntp) |
java.util.Vector<Service> |
services
all services |
java.util.Vector<TestSuite> |
suites
all suites (from ntp) |
java.util.Vector<java.util.Vector<TestScoreEvent>> |
suiteScoreEv
|
java.util.Vector<java.lang.Integer> |
suiteScores
|
int |
teamTotalScore
total score for the team |
java.util.Vector<TestEvent> |
testEvents
all test events in the order they occurred |
java.util.Vector<TestItem> |
testItems
all test items in the order they are defined within suites (from ntp) |
java.util.Vector<java.lang.Integer> |
testNumRuns
|
java.util.Vector<Test> |
tests
all tests |
java.util.Vector<java.lang.Integer> |
testScore
|
java.util.Vector<TestScoreEvent> |
testScoreEvents
all test score events in the order they occurred |
java.util.Vector<java.lang.Integer> |
tiNumRuns
|
java.util.Vector<java.lang.Integer> |
tiScore
|
java.util.Vector<java.util.Vector<TestScoreEvent>> |
tiTestScoreEvents
temporary computed values stored here |
Constructor Summary | |
---|---|
TeamScoringInfo(TeamReportingInfo teamInfo,
int initPts,
boolean hideUnreportedInfo)
Initializes a TeamScoringInfo to hold scoring statistics regarding the specified team |
Method Summary | |
---|---|
void |
clean()
removes most computed information |
int |
compareTo(TeamScoringInfo t)
highest score first |
protected java.lang.Integer |
getIndex(ManualScoreEvent mse)
|
protected java.lang.Integer |
getIndex(ScoringRule rule)
|
protected java.lang.Integer |
getIndex(Service s)
|
protected java.lang.Integer |
getIndex(Test t)
|
protected java.lang.Integer |
getIndex(TestEvent te)
|
protected java.lang.Integer |
getIndex(TestItem ti)
|
protected java.lang.Integer |
getIndex(TestScoreEvent tse)
|
protected java.lang.Integer |
getIndex(TestSuite ts)
|
protected int |
getTestIndex(Test t)
|
protected int |
getTINumRuns(TestItem ti)
|
protected int |
getTIScore(TestItem ti)
|
protected TestSuite |
getTSfromTI(TestItem ti)
find the suite a test item belongs to |
protected TestSuite |
getTSfromTSE(TestScoreEvent e)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final TeamReportingInfo basicInfo
public final java.util.Vector<TestEvent> testEvents
public final java.util.Vector<ManualScoreEvent> manualScoreEvents
public final java.util.Vector<TestScoreEvent> testScoreEvents
public final int initScore
public int teamTotalScore
public int mseTotalScore
public final java.util.Vector<Service> services
public final java.util.HashMap<Service,java.util.Vector<TestSuite>> assocTS
public final java.util.Vector<Test> tests
public final java.util.Vector<java.lang.Integer> testNumRuns
public final java.util.Vector<java.lang.Integer> testScore
public final java.util.Vector<TestSuite> suites
public final java.util.Vector<java.lang.Integer> suiteScores
public final java.util.Vector<java.util.Vector<TestScoreEvent>> suiteScoreEv
public final java.util.Vector<TestItem> testItems
public final java.util.Vector<ScoringRule> rules
public final java.util.Vector<java.lang.Integer> tiNumRuns
public final java.util.Vector<java.lang.Integer> tiScore
public final java.util.Vector<java.util.Vector<TestScoreEvent>> tiTestScoreEvents
Constructor Detail |
---|
public TeamScoringInfo(TeamReportingInfo teamInfo, int initPts, boolean hideUnreportedInfo) throws java.io.FileNotFoundException, LogicException, ParseException, TokenMgrError
teamInfo
- basic information about the team to gather statistics oninitPts
- the initial number of points the team starts withhideUnreportedInfo
- whether or not to take unreported info into account (true => complete info)
BaseException
- if the object cannot be deserialized
FileNotFoundException
- if the file exists but is a directory rather
than a regular file, does not exist but cannot
be created, or cannot be opened for any other reason
LogicException
- if the scoring language in a file is invalid
ParseException
- if the scoring language in a file is invalid
TokenMgrError
- if there is a problem parsing the codeMethod Detail |
---|
public void clean()
public int compareTo(TeamScoringInfo t)
compareTo
in interface java.lang.Comparable<TeamScoringInfo>
protected java.lang.Integer getIndex(TestSuite ts)
protected java.lang.Integer getIndex(TestItem ti)
protected java.lang.Integer getIndex(ScoringRule rule)
protected java.lang.Integer getIndex(Test t)
protected java.lang.Integer getIndex(Service s)
protected java.lang.Integer getIndex(TestEvent te)
protected java.lang.Integer getIndex(ManualScoreEvent mse)
protected java.lang.Integer getIndex(TestScoreEvent tse)
protected TestSuite getTSfromTSE(TestScoreEvent e)
protected TestSuite getTSfromTI(TestItem ti)
protected int getTestIndex(Test t)
protected int getTINumRuns(TestItem ti)
protected int getTIScore(TestItem ti)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |