1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd">
5 <!-- Generated by javadoc on Wed Jul 09 10:18:16 PDT 2003 -->
7 PC^
2: Class ClientScoreData
9 <LINK REL =
"stylesheet" TYPE=
"text/css" HREF=
"../../stylesheet.css" TITLE=
"Style">
11 <BODY BGCOLOR=
"white">
13 <!-- ========== START OF NAVBAR ========== -->
14 <A NAME=
"navbar_top"><!-- --></A>
15 <TABLE BORDER=
"0" WIDTH=
"100%" CELLPADDING=
"1" CELLSPACING=
"0">
17 <TD COLSPAN=
2 BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1">
18 <A NAME=
"navbar_top_firstrow"><!-- --></A>
19 <TABLE BORDER=
"0" CELLPADDING=
"0" CELLSPACING=
"3">
20 <TR ALIGN=
"center" VALIGN=
"top">
21 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"package-summary.html"><FONT CLASS=
"NavBarFont1"><B>Package
</B></FONT></A> </TD>
22 <TD BGCOLOR=
"#FFFFFF" CLASS=
"NavBarCell1Rev"> <FONT CLASS=
"NavBarFont1Rev"><B>Class
</B></FONT> </TD>
23 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"package-tree.html"><FONT CLASS=
"NavBarFont1"><B>Tree
</B></FONT></A> </TD>
24 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../deprecated-list.html"><FONT CLASS=
"NavBarFont1"><B>Deprecated
</B></FONT></A> </TD>
25 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../index-all.html"><FONT CLASS=
"NavBarFont1"><B>Index
</B></FONT></A> </TD>
26 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../help-doc.html"><FONT CLASS=
"NavBarFont1"><B>Help
</B></FONT></A> </TD>
30 <TD ALIGN=
"right" VALIGN=
"top" ROWSPAN=
3><EM>
31 Questions?
<A HREf=mailto:pc2@ecs.csus.edu
>Send mail to PC
<sup>2</sup></a></EM>
36 <TD BGCOLOR=
"white" CLASS=
"NavBarCell2"><FONT SIZE=
"-2">
37 <A HREF=
"../../pc2/ex/ClarInfoAndFiles.html"><B>PREV CLASS
</B></A>
38 <A HREF=
"../../pc2/ex/ContestInfo.html"><B>NEXT CLASS
</B></A></FONT></TD>
39 <TD BGCOLOR=
"white" CLASS=
"NavBarCell2"><FONT SIZE=
"-2">
40 <A HREF=
"../../index.html" TARGET=
"_top"><B>FRAMES
</B></A>
41 <A HREF=
"ClientScoreData.html" TARGET=
"_top"><B>NO FRAMES
</B></A></FONT></TD>
44 <TD VALIGN=
"top" CLASS=
"NavBarCell3"><FONT SIZE=
"-2">
45 SUMMARY:
INNER
|
FIELD
|
<A HREF=
"#constructor_summary">CONSTR
</A> |
<A HREF=
"#method_summary">METHOD
</A></FONT></TD>
46 <TD VALIGN=
"top" CLASS=
"NavBarCell3"><FONT SIZE=
"-2">
47 DETAIL:
FIELD
|
<A HREF=
"#constructor_detail">CONSTR
</A> |
<A HREF=
"#method_detail">METHOD
</A></FONT></TD>
50 <!-- =========== END OF NAVBAR =========== -->
53 <!-- ======== START OF CLASS DATA ======== -->
58 Class ClientScoreData
</H2>
62 +--
<B>pc2.ex.ClientScoreData
</B>
66 <DT>public class
<B>ClientScoreData
</B><DT>extends java.lang.Object
</DL>
69 Client Score/Statistics Data, per Team
71 Stores score and statistics data for a specific client, including
72 rank, score, number of problems solved and time of last problem
73 solved (as a tie breaker).
78 <!-- ======== INNER CLASS SUMMARY ======== -->
81 <!-- =========== FIELD SUMMARY =========== -->
84 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
86 <A NAME=
"constructor_summary"><!-- --></A>
87 <TABLE BORDER=
"1" CELLPADDING=
"3" CELLSPACING=
"0" WIDTH=
"100%">
88 <TR BGCOLOR=
"#CCCCFF" CLASS=
"TableHeadingColor">
89 <TD COLSPAN=
2><FONT SIZE=
"+2">
90 <B>Constructor Summary
</B></FONT></TD>
92 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
93 <TD><CODE><B><A HREF=
"../../pc2/ex/ClientScoreData.html#ClientScoreData()">ClientScoreData
</A></B>()
</CODE>
96 ClientScoreData constructor comment.
</TD>
100 <!-- ========== METHOD SUMMARY =========== -->
102 <A NAME=
"method_summary"><!-- --></A>
103 <TABLE BORDER=
"1" CELLPADDING=
"3" CELLSPACING=
"0" WIDTH=
"100%">
104 <TR BGCOLOR=
"#CCCCFF" CLASS=
"TableHeadingColor">
105 <TD COLSPAN=
2><FONT SIZE=
"+2">
106 <B>Method Summary
</B></FONT></TD>
108 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
109 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
110 <CODE> long
</CODE></FONT></TD>
111 <TD><CODE><B><A HREF=
"../../pc2/ex/ClientScoreData.html#getNumberOfSolvedProblems()">getNumberOfSolvedProblems
</A></B>()
</CODE>
114 </TD>
116 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
117 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
118 <CODE> <A HREF=
"../../pc2/ex/ProblemScoreData.html">ProblemScoreData
</A></CODE></FONT></TD>
119 <TD><CODE><B><A HREF=
"../../pc2/ex/ClientScoreData.html#getProblemScoreData(long)">getProblemScoreData
</A></B>(long
probId)
</CODE>
122 returns the score data for a problem
125 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
126 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
127 <CODE> long
</CODE></FONT></TD>
128 <TD><CODE><B><A HREF=
"../../pc2/ex/ClientScoreData.html#getRank()">getRank
</A></B>()
</CODE>
131 Return rank
133 There may be more than one team with the same rank.
</TD>
135 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
136 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
137 <CODE> long
</CODE></FONT></TD>
138 <TD><CODE><B><A HREF=
"../../pc2/ex/ClientScoreData.html#getScore()">getScore
</A></B>()
</CODE>
141 Get total score/penalty for all problems for this team
</TD>
143 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
144 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
145 <CODE> java.lang.String
</CODE></FONT></TD>
146 <TD><CODE><B><A HREF=
"../../pc2/ex/ClientScoreData.html#getTeamName()">getTeamName
</A></B>()
</CODE>
149 </TD>
151 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
152 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
153 <CODE> long
</CODE></FONT></TD>
154 <TD><CODE><B><A HREF=
"../../pc2/ex/ClientScoreData.html#getTimeOfLastSolvedProblem()">getTimeOfLastSolvedProblem
</A></B>()
</CODE>
157 return time (in minutes) of last problem solved
160 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
161 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
162 <CODE> long
</CODE></FONT></TD>
163 <TD><CODE><B><A HREF=
"../../pc2/ex/ClientScoreData.html#getUserID()">getUserID
</A></B>()
</CODE>
166 </TD>
168 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
169 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
170 <CODE> long
</CODE></FONT></TD>
171 <TD><CODE><B><A HREF=
"../../pc2/ex/ClientScoreData.html#getUserSiteID()">getUserSiteID
</A></B>()
</CODE>
174 </TD>
176 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
177 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
178 <CODE> void
</CODE></FONT></TD>
179 <TD><CODE><B><A HREF=
"../../pc2/ex/ClientScoreData.html#setNumberOfSolvedProblems(long)">setNumberOfSolvedProblems
</A></B>(long
newNumberOfSolvedProblems)
</CODE>
182 </TD>
184 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
185 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
186 <CODE> void
</CODE></FONT></TD>
187 <TD><CODE><B><A HREF=
"../../pc2/ex/ClientScoreData.html#setProblemScoreData(pc2.ex.ProblemScoreData)">setProblemScoreData
</A></B>(
<A HREF=
"../../pc2/ex/ProblemScoreData.html">ProblemScoreData
</A> newProblemScoreData)
</CODE>
190 </TD>
192 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
193 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
194 <CODE> void
</CODE></FONT></TD>
195 <TD><CODE><B><A HREF=
"../../pc2/ex/ClientScoreData.html#setRank(long)">setRank
</A></B>(long
newRank)
</CODE>
198 </TD>
200 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
201 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
202 <CODE> void
</CODE></FONT></TD>
203 <TD><CODE><B><A HREF=
"../../pc2/ex/ClientScoreData.html#setScore(long)">setScore
</A></B>(long
newScore)
</CODE>
206 </TD>
208 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
209 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
210 <CODE> void
</CODE></FONT></TD>
211 <TD><CODE><B><A HREF=
"../../pc2/ex/ClientScoreData.html#setTeamName(java.lang.String)">setTeamName
</A></B>(java.lang.String
newTeamName)
</CODE>
214 </TD>
216 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
217 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
218 <CODE> void
</CODE></FONT></TD>
219 <TD><CODE><B><A HREF=
"../../pc2/ex/ClientScoreData.html#setTimeOfLastSolvedProblem(long)">setTimeOfLastSolvedProblem
</A></B>(long
newTimeOfLastSolvedProblem)
</CODE>
222 </TD>
224 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
225 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
226 <CODE> void
</CODE></FONT></TD>
227 <TD><CODE><B><A HREF=
"../../pc2/ex/ClientScoreData.html#setUserID(long)">setUserID
</A></B>(long
newUserID)
</CODE>
230 </TD>
232 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
233 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
234 <CODE> void
</CODE></FONT></TD>
235 <TD><CODE><B><A HREF=
"../../pc2/ex/ClientScoreData.html#setUserSiteID(long)">setUserSiteID
</A></B>(long
newUserSiteID)
</CODE>
238 </TD>
241 <A NAME=
"methods_inherited_from_class_java.lang.Object"><!-- --></A>
242 <TABLE BORDER=
"1" CELLPADDING=
"3" CELLSPACING=
"0" WIDTH=
"100%">
243 <TR BGCOLOR=
"#EEEEFF" CLASS=
"TableSubHeadingColor">
244 <TD><B>Methods inherited from class java.lang.Object
</B></TD>
246 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
247 <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
</CODE></TD>
253 <!-- ============ FIELD DETAIL =========== -->
256 <!-- ========= CONSTRUCTOR DETAIL ======== -->
258 <A NAME=
"constructor_detail"><!-- --></A>
259 <TABLE BORDER=
"1" CELLPADDING=
"3" CELLSPACING=
"0" WIDTH=
"100%">
260 <TR BGCOLOR=
"#CCCCFF" CLASS=
"TableHeadingColor">
261 <TD COLSPAN=
1><FONT SIZE=
"+2">
262 <B>Constructor Detail
</B></FONT></TD>
266 <A NAME=
"ClientScoreData()"><!-- --></A><H3>
269 public
<B>ClientScoreData
</B>()
</PRE>
271 <DD>ClientScoreData constructor comment.
</DL>
273 <!-- ============ METHOD DETAIL ========== -->
275 <A NAME=
"method_detail"><!-- --></A>
276 <TABLE BORDER=
"1" CELLPADDING=
"3" CELLSPACING=
"0" WIDTH=
"100%">
277 <TR BGCOLOR=
"#CCCCFF" CLASS=
"TableHeadingColor">
278 <TD COLSPAN=
1><FONT SIZE=
"+2">
279 <B>Method Detail
</B></FONT></TD>
283 <A NAME=
"getNumberOfSolvedProblems()"><!-- --></A><H3>
284 getNumberOfSolvedProblems
</H3>
286 public long
<B>getNumberOfSolvedProblems
</B>()
</PRE>
289 <DT><B>Returns:
</B><DD>long
</DL>
294 <A NAME=
"getProblemScoreData(long)"><!-- --></A><H3>
295 getProblemScoreData
</H3>
297 public
<A HREF=
"../../pc2/ex/ProblemScoreData.html">ProblemScoreData
</A> <B>getProblemScoreData
</B>(long
probId)
</PRE>
299 <DD>returns the score data for a problem
301 <DT><B>Returns:
</B><DD>pc2.ex.ProblemScoreData
</DL>
306 <A NAME=
"getRank()"><!-- --></A><H3>
309 public long
<B>getRank
</B>()
</PRE>
313 There may be more than one team with the same rank.
<DD><DL>
314 <DT><B>Returns:
</B><DD>long
</DL>
319 <A NAME=
"getScore()"><!-- --></A><H3>
322 public long
<B>getScore
</B>()
</PRE>
324 <DD>Get total score/penalty for all problems for this team
<DD><DL>
325 <DT><B>Returns:
</B><DD>long
</DL>
330 <A NAME=
"getTeamName()"><!-- --></A><H3>
333 public java.lang.String
<B>getTeamName
</B>()
</PRE>
336 <DT><B>Returns:
</B><DD>java.lang.String
</DL>
341 <A NAME=
"getTimeOfLastSolvedProblem()"><!-- --></A><H3>
342 getTimeOfLastSolvedProblem
</H3>
344 public long
<B>getTimeOfLastSolvedProblem
</B>()
</PRE>
346 <DD>return time (in minutes) of last problem solved
348 This can be used as a tie breaker to determine
349 which teams with identical rank and scores are
350 ranked higher and lower.
<DD><DL>
351 <DT><B>Returns:
</B><DD>long
</DL>
356 <A NAME=
"getUserID()"><!-- --></A><H3>
359 public long
<B>getUserID
</B>()
</PRE>
362 <DT><B>Returns:
</B><DD>long
</DL>
367 <A NAME=
"getUserSiteID()"><!-- --></A><H3>
370 public long
<B>getUserSiteID
</B>()
</PRE>
373 <DT><B>Returns:
</B><DD>long
</DL>
378 <A NAME=
"setNumberOfSolvedProblems(long)"><!-- --></A><H3>
379 setNumberOfSolvedProblems
</H3>
381 public void
<B>setNumberOfSolvedProblems
</B>(long
newNumberOfSolvedProblems)
</PRE>
384 <DT><B>Parameters:
</B><DD><CODE>newNumberOfSolvedProblems
</CODE> - long
</DL>
389 <A NAME=
"setProblemScoreData(pc2.ex.ProblemScoreData)"><!-- --></A><H3>
390 setProblemScoreData
</H3>
392 public void
<B>setProblemScoreData
</B>(
<A HREF=
"../../pc2/ex/ProblemScoreData.html">ProblemScoreData
</A> newProblemScoreData)
</PRE>
395 <DT><B>Parameters:
</B><DD><CODE>newProblemScoreData
</CODE> - pc2.ex.ProblemScoreData
</DL>
400 <A NAME=
"setRank(long)"><!-- --></A><H3>
403 public void
<B>setRank
</B>(long
newRank)
</PRE>
406 <DT><B>Parameters:
</B><DD><CODE>newRank
</CODE> - long
</DL>
411 <A NAME=
"setScore(long)"><!-- --></A><H3>
414 public void
<B>setScore
</B>(long
newScore)
</PRE>
417 <DT><B>Parameters:
</B><DD><CODE>newScore
</CODE> - long
</DL>
422 <A NAME=
"setTeamName(java.lang.String)"><!-- --></A><H3>
425 public void
<B>setTeamName
</B>(java.lang.String
newTeamName)
</PRE>
428 <DT><B>Parameters:
</B><DD><CODE>newTeamName
</CODE> - java.lang.String
</DL>
433 <A NAME=
"setTimeOfLastSolvedProblem(long)"><!-- --></A><H3>
434 setTimeOfLastSolvedProblem
</H3>
436 public void
<B>setTimeOfLastSolvedProblem
</B>(long
newTimeOfLastSolvedProblem)
</PRE>
439 <DT><B>Parameters:
</B><DD><CODE>newTimeOfLastSolvedProblem
</CODE> - long
</DL>
444 <A NAME=
"setUserID(long)"><!-- --></A><H3>
447 public void
<B>setUserID
</B>(long
newUserID)
</PRE>
450 <DT><B>Parameters:
</B><DD><CODE>newUserID
</CODE> - long
</DL>
455 <A NAME=
"setUserSiteID(long)"><!-- --></A><H3>
458 public void
<B>setUserSiteID
</B>(long
newUserSiteID)
</PRE>
461 <DT><B>Parameters:
</B><DD><CODE>newUserSiteID
</CODE> - long
</DL>
464 <!-- ========= END OF CLASS DATA ========= -->
467 <!-- ========== START OF NAVBAR ========== -->
468 <A NAME=
"navbar_bottom"><!-- --></A>
469 <TABLE BORDER=
"0" WIDTH=
"100%" CELLPADDING=
"1" CELLSPACING=
"0">
471 <TD COLSPAN=
2 BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1">
472 <A NAME=
"navbar_bottom_firstrow"><!-- --></A>
473 <TABLE BORDER=
"0" CELLPADDING=
"0" CELLSPACING=
"3">
474 <TR ALIGN=
"center" VALIGN=
"top">
475 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"package-summary.html"><FONT CLASS=
"NavBarFont1"><B>Package
</B></FONT></A> </TD>
476 <TD BGCOLOR=
"#FFFFFF" CLASS=
"NavBarCell1Rev"> <FONT CLASS=
"NavBarFont1Rev"><B>Class
</B></FONT> </TD>
477 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"package-tree.html"><FONT CLASS=
"NavBarFont1"><B>Tree
</B></FONT></A> </TD>
478 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../deprecated-list.html"><FONT CLASS=
"NavBarFont1"><B>Deprecated
</B></FONT></A> </TD>
479 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../index-all.html"><FONT CLASS=
"NavBarFont1"><B>Index
</B></FONT></A> </TD>
480 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../help-doc.html"><FONT CLASS=
"NavBarFont1"><B>Help
</B></FONT></A> </TD>
484 <TD ALIGN=
"right" VALIGN=
"top" ROWSPAN=
3><EM>
485 Questions?
<A HREf=mailto:pc2@ecs.csus.edu
>Send mail to PC
<sup>2</sup></a></EM>
490 <TD BGCOLOR=
"white" CLASS=
"NavBarCell2"><FONT SIZE=
"-2">
491 <A HREF=
"../../pc2/ex/ClarInfoAndFiles.html"><B>PREV CLASS
</B></A>
492 <A HREF=
"../../pc2/ex/ContestInfo.html"><B>NEXT CLASS
</B></A></FONT></TD>
493 <TD BGCOLOR=
"white" CLASS=
"NavBarCell2"><FONT SIZE=
"-2">
494 <A HREF=
"../../index.html" TARGET=
"_top"><B>FRAMES
</B></A>
495 <A HREF=
"ClientScoreData.html" TARGET=
"_top"><B>NO FRAMES
</B></A></FONT></TD>
498 <TD VALIGN=
"top" CLASS=
"NavBarCell3"><FONT SIZE=
"-2">
499 SUMMARY:
INNER
|
FIELD
|
<A HREF=
"#constructor_summary">CONSTR
</A> |
<A HREF=
"#method_summary">METHOD
</A></FONT></TD>
500 <TD VALIGN=
"top" CLASS=
"NavBarCell3"><FONT SIZE=
"-2">
501 DETAIL:
FIELD
|
<A HREF=
"#constructor_detail">CONSTR
</A> |
<A HREF=
"#method_detail">METHOD
</A></FONT></TD>
504 <!-- =========== END OF NAVBAR =========== -->