Skip to content
This repository was archived by the owner on Oct 28, 2025. It is now read-only.

Commit 1b380e9

Browse files
committed
Add score breakdown models
1 parent 9c615c9 commit 1b380e9

3 files changed

Lines changed: 180 additions & 2 deletions

File tree

src/main/java/com/thebluealliance/models/Match.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
public class Match extends SimpleMatch {
44

55
private long post_result_time;
6-
private Object score_breakdown;
6+
private ScoreBreakdown score_breakdown;
77
private Media[] videos;
88

99
public long getPostResultTime() {
1010
return post_result_time;
1111
}
12-
public Object getScoreBreakdown() {
12+
public ScoreBreakdown getScoreBreakdown() {
1313
return score_breakdown;
1414
}
1515
public Media[] getVideos() {
Lines changed: 164 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,164 @@
1+
package com.thebluealliance.models;
2+
3+
public class MatchScoreBreakdown2018Alliance {
4+
5+
int adjustPoints, autoOwnershipPoints, autoPoints, foulCount, foulPoints, rp,
6+
techFoulCount, teleopOwnershipPoints, teleopPoints, teleopScaleBoostSec, teleopScaleForceSec,
7+
teleopScaleOwnershipSec, teleopSwitchBoostSec, teleopSwitchForceSec, teleopSwitchOwnershipSec,
8+
totalPoints, vaultBoostPlayed, vaultBoostTotal, vaultForcePlayed, vaultForceTotal,
9+
vaultLevitatePlayed, vaultLevitateTotal, vaultPoints, autoSwitchOwnershipSec,
10+
endgamePoints, autoRunPoints, autoScaleOwnershipSec;
11+
12+
public int getAdjustPoints() {
13+
return adjustPoints;
14+
}
15+
16+
public int getAutoOwnershipPoints() {
17+
return autoOwnershipPoints;
18+
}
19+
20+
public int getAutoPoints() {
21+
return autoPoints;
22+
}
23+
24+
public int getFoulCount() {
25+
return foulCount;
26+
}
27+
28+
public int getFoulPoints() {
29+
return foulPoints;
30+
}
31+
32+
public int getRp() {
33+
return rp;
34+
}
35+
36+
public int getTechFoulCount() {
37+
return techFoulCount;
38+
}
39+
40+
public int getTeleopOwnershipPoints() {
41+
return teleopOwnershipPoints;
42+
}
43+
44+
public int getTeleopPoints() {
45+
return teleopPoints;
46+
}
47+
48+
public int getTeleopScaleBoostSec() {
49+
return teleopScaleBoostSec;
50+
}
51+
52+
public int getTeleopScaleForceSec() {
53+
return teleopScaleForceSec;
54+
}
55+
56+
public int getTeleopScaleOwnershipSec() {
57+
return teleopScaleOwnershipSec;
58+
}
59+
60+
public int getTeleopSwitchBoostSec() {
61+
return teleopSwitchBoostSec;
62+
}
63+
64+
public int getTeleopSwitchForceSec() {
65+
return teleopSwitchForceSec;
66+
}
67+
68+
public int getTeleopSwitchOwnershipSec() {
69+
return teleopSwitchOwnershipSec;
70+
}
71+
72+
public int getTotalPoints() {
73+
return totalPoints;
74+
}
75+
76+
public int getVaultBoostPlayed() {
77+
return vaultBoostPlayed;
78+
}
79+
80+
public int getVaultBoostTotal() {
81+
return vaultBoostTotal;
82+
}
83+
84+
public int getVaultForcePlayed() {
85+
return vaultForcePlayed;
86+
}
87+
88+
public int getVaultForceTotal() {
89+
return vaultForceTotal;
90+
}
91+
92+
public int getVaultLevitatePlayed() {
93+
return vaultLevitatePlayed;
94+
}
95+
96+
public int getVaultLevitateTotal() {
97+
return vaultLevitateTotal;
98+
}
99+
100+
public int getVaultPoints() {
101+
return vaultPoints;
102+
}
103+
104+
public int getAutoSwitchOwnershipSec() {
105+
return autoSwitchOwnershipSec;
106+
}
107+
108+
public int getEndgamePoints() {
109+
return endgamePoints;
110+
}
111+
112+
public int getAutoRunPoints() {
113+
return autoRunPoints;
114+
}
115+
116+
public int getAutoScaleOwnershipSec() {
117+
return autoScaleOwnershipSec;
118+
}
119+
120+
public boolean isAutoQuestRankingPoints() {
121+
return autoQuestRankingPoints;
122+
}
123+
124+
public boolean isAutoSwitchAtZero() {
125+
return autoSwitchAtZero;
126+
}
127+
128+
public boolean isFaceTheBossRankingPoint() {
129+
return faceTheBossRankingPoint;
130+
}
131+
132+
public String getAutoRobot1() {
133+
return autoRobot1;
134+
}
135+
136+
public String getAutoRobot2() {
137+
return autoRobot2;
138+
}
139+
140+
public String getAutoRobot3() {
141+
return autoRobot3;
142+
}
143+
144+
public String getEndgameRobot1() {
145+
return endgameRobot1;
146+
}
147+
148+
public String getEndgameRobot2() {
149+
return endgameRobot2;
150+
}
151+
152+
public String getEndgameRobot3() {
153+
return endgameRobot3;
154+
}
155+
156+
public String getTba_gameData() {
157+
return tba_gameData;
158+
}
159+
160+
boolean autoQuestRankingPoints, autoSwitchAtZero, faceTheBossRankingPoint;
161+
162+
String autoRobot1, autoRobot2, autoRobot3, endgameRobot1, endgameRobot2, endgameRobot3, tba_gameData;
163+
164+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package com.thebluealliance.models;
2+
3+
public class ScoreBreakdown {
4+
5+
MatchScoreBreakdown2018Alliance blue, red;
6+
7+
public MatchScoreBreakdown2018Alliance getBlue() {
8+
return blue;
9+
}
10+
11+
public MatchScoreBreakdown2018Alliance getRed() {
12+
return red;
13+
}
14+
}

0 commit comments

Comments
 (0)