~codescore-dev/codescore/version-1.0

« back to all changes in this revision

Viewing changes to doc/java_doc/net/codescore/managers/CompetitionManager.html

  • Committer: Adam Cornett
  • Date: 2008-05-16 02:53:17 UTC
  • mfrom: (65.1.52 codescore)
  • Revision ID: adam.cornett@gmail.com-20080516025317-douek1kxjabvb3wu
Merged changes from my branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
<!--NewPage-->
3
3
<HTML>
4
4
<HEAD>
5
 
<!-- Generated by javadoc (build 1.6.0_03) on Mon Mar 17 11:06:50 EDT 2008 -->
 
5
<!-- Generated by javadoc (build 1.6.0) on Tue May 13 18:47:14 EDT 2008 -->
6
6
<TITLE>
7
7
CompetitionManager (Code Score Documentation)
8
8
</TITLE>
9
9
 
10
 
<META NAME="date" CONTENT="2008-03-17">
 
10
<META NAME="date" CONTENT="2008-05-13">
11
11
 
12
12
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
13
13
 
55
55
 
56
56
<TR>
57
57
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
58
 
&nbsp;<A HREF="../../../net/codescore/managers/ClarificationListener.html" title="class in net.codescore.managers"><B>PREV CLASS</B></A>&nbsp;
59
 
&nbsp;<A HREF="../../../net/codescore/managers/GradingThread.html" title="class in net.codescore.managers"><B>NEXT CLASS</B></A></FONT></TD>
 
58
&nbsp;<A HREF="../../../net/codescore/managers/CommentListener.html" title="class in net.codescore.managers"><B>PREV CLASS</B></A>&nbsp;
 
59
&nbsp;<A HREF="../../../net/codescore/managers/I18NManager.html" title="class in net.codescore.managers"><B>NEXT CLASS</B></A></FONT></TD>
60
60
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
61
61
  <A HREF="../../../index.html?net/codescore/managers/CompetitionManager.html" target="_top"><B>FRAMES</B></A>  &nbsp;
62
62
&nbsp;<A HREF="CompetitionManager.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
92
92
<BR>
93
93
Class CompetitionManager</H2>
94
94
<PRE>
95
 
java.lang.Object
 
95
<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A>
96
96
  <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>net.codescore.managers.CompetitionManager</B>
97
97
</PRE>
98
98
<DL>
100
100
</DL>
101
101
<HR>
102
102
<DL>
103
 
<DT><PRE>public class <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.42"><B>CompetitionManager</B></A><DT>extends java.lang.Object<DT>implements <A HREF="../../../net/codescore/ui/SubUpdateListener.html" title="interface in net.codescore.ui">SubUpdateListener</A></DL>
 
103
<DT><PRE>public class <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.49"><B>CompetitionManager</B></A><DT>extends <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A><DT>implements <A HREF="../../../net/codescore/ui/SubUpdateListener.html" title="interface in net.codescore.ui">SubUpdateListener</A></DL>
104
104
</PRE>
105
105
 
106
106
<P>
 
107
Manages a competition, providing methods to get competitions from the
 
108
 database, and facilities for processing submissions, such as a grading queue
 
109
 and accessor methods to the competition settings.
 
110
<P>
 
111
 
 
112
<P>
 
113
<DL>
 
114
<DT><B>Author:</B></DT>
 
115
  <DD>Adam Cornett</DD>
 
116
</DL>
107
117
<HR>
108
118
 
109
119
<P>
121
131
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#activeCompetition">activeCompetition</A></B></CODE>
122
132
 
123
133
<BR>
124
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
125
 
</TR>
126
 
<TR BGCOLOR="white" CLASS="TableRowColor">
127
 
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
128
 
<CODE>private &nbsp;<A HREF="../../../net/codescore/ui/admin/CompHome.html" title="class in net.codescore.ui.admin">CompHome</A></CODE></FONT></TD>
129
 
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#competitionHome">competitionHome</A></B></CODE>
130
 
 
131
 
<BR>
132
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
 
134
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I></I>&nbsp;</TD>
133
135
</TR>
134
136
<TR BGCOLOR="white" CLASS="TableRowColor">
135
137
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
149
151
</TR>
150
152
<TR BGCOLOR="white" CLASS="TableRowColor">
151
153
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
152
 
<CODE>private &nbsp;java.util.concurrent.ConcurrentHashMap&lt;<A HREF="../../../net/codescore/dbo/Submission.html" title="interface in net.codescore.dbo">Submission</A>,<A HREF="../../../net/codescore/exe/ExecutionResult.html" title="class in net.codescore.exe">ExecutionResult</A>&gt;</CODE></FONT></TD>
 
154
<CODE>private static&nbsp;<A HREF="http://cayenne.apache.org/doc/api/org/apache/cayenne/access/DataContext.html?is-external=true" title="class or interface in org.apache.cayenne.access">DataContext</A></CODE></FONT></TD>
 
155
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#dc">dc</A></B></CODE>
 
156
 
 
157
<BR>
 
158
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
 
159
</TR>
 
160
<TR BGCOLOR="white" CLASS="TableRowColor">
 
161
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
162
<CODE>private &nbsp;<A HREF="http://java.sun.com/javase/6/docs/api/java/util/concurrent/ConcurrentHashMap.html?is-external=true" title="class or interface in java.util.concurrent">ConcurrentHashMap</A>&lt;<A HREF="../../../net/codescore/dbo/Submission.html" title="interface in net.codescore.dbo">Submission</A>,<A HREF="../../../net/codescore/exe/ExecutionResult.html" title="class in net.codescore.exe">ExecutionResult</A>&gt;</CODE></FONT></TD>
153
163
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#gradeResults">gradeResults</A></B></CODE>
154
164
 
155
165
<BR>
157
167
</TR>
158
168
<TR BGCOLOR="white" CLASS="TableRowColor">
159
169
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
160
 
<CODE>private &nbsp;java.util.concurrent.ConcurrentLinkedQueue&lt;<A HREF="../../../net/codescore/dbo/Submission.html" title="interface in net.codescore.dbo">Submission</A>&gt;</CODE></FONT></TD>
 
170
<CODE>private &nbsp;<A HREF="http://java.sun.com/javase/6/docs/api/java/util/concurrent/ConcurrentLinkedQueue.html?is-external=true" title="class or interface in java.util.concurrent">ConcurrentLinkedQueue</A>&lt;<A HREF="../../../net/codescore/dbo/Submission.html" title="interface in net.codescore.dbo">Submission</A>&gt;</CODE></FONT></TD>
161
171
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#gradingQueue">gradingQueue</A></B></CODE>
162
172
 
163
173
<BR>
165
175
</TR>
166
176
<TR BGCOLOR="white" CLASS="TableRowColor">
167
177
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
168
 
<CODE>private &nbsp;java.util.List&lt;<A HREF="../../../net/codescore/managers/GradingThread.html" title="class in net.codescore.managers">GradingThread</A>&gt;</CODE></FONT></TD>
 
178
<CODE>private &nbsp;<A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A>&lt;<A HREF="../../../net/codescore/exe/GradingThread.html" title="class in net.codescore.exe">GradingThread</A>&gt;</CODE></FONT></TD>
169
179
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#gThreads">gThreads</A></B></CODE>
170
180
 
171
181
<BR>
173
183
</TR>
174
184
<TR BGCOLOR="white" CLASS="TableRowColor">
175
185
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
176
 
<CODE>private &nbsp;java.util.concurrent.ConcurrentLinkedQueue&lt;<A HREF="../../../net/codescore/dbo/Submission.html" title="interface in net.codescore.dbo">Submission</A>&gt;</CODE></FONT></TD>
 
186
<CODE>private &nbsp;<A HREF="http://java.sun.com/javase/6/docs/api/java/util/concurrent/ConcurrentLinkedQueue.html?is-external=true" title="class or interface in java.util.concurrent">ConcurrentLinkedQueue</A>&lt;<A HREF="../../../net/codescore/dbo/Submission.html" title="interface in net.codescore.dbo">Submission</A>&gt;</CODE></FONT></TD>
177
187
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#judgingQueue">judgingQueue</A></B></CODE>
178
188
 
179
189
<BR>
181
191
</TR>
182
192
<TR BGCOLOR="white" CLASS="TableRowColor">
183
193
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
184
 
<CODE>private &nbsp;Log</CODE></FONT></TD>
 
194
<CODE>private &nbsp;org.apache.commons.logging.Log</CODE></FONT></TD>
185
195
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#log">log</A></B></CODE>
186
196
 
187
197
<BR>
189
199
</TR>
190
200
<TR BGCOLOR="white" CLASS="TableRowColor">
191
201
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
202
<CODE>private static&nbsp;<A HREF="http://java.sun.com/javase/6/docs/api/java/util/HashMap.html?is-external=true" title="class or interface in java.util">HashMap</A>&lt;<A HREF="../../../net/codescore/dbo/Competition.html" title="class in net.codescore.dbo">Competition</A>,<A HREF="../../../net/codescore/managers/CompetitionManager.html" title="class in net.codescore.managers">CompetitionManager</A>&gt;</CODE></FONT></TD>
 
203
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#managers">managers</A></B></CODE>
 
204
 
 
205
<BR>
 
206
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A map of linking a competition to its associated manager, used to prevent
 
207
 a competition from having more than one associated manager</TD>
 
208
</TR>
 
209
<TR BGCOLOR="white" CLASS="TableRowColor">
 
210
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
192
211
<CODE>private &nbsp;int</CODE></FONT></TD>
193
212
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#numGradingThreads">numGradingThreads</A></B></CODE>
194
213
 
197
216
</TR>
198
217
<TR BGCOLOR="white" CLASS="TableRowColor">
199
218
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
200
 
<CODE>private &nbsp;<A HREF="../../../net/codescore/ui/scoreboard/ScoreBoardHome.html" title="class in net.codescore.ui.scoreboard">ScoreBoardHome</A></CODE></FONT></TD>
201
 
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#scoreBoard">scoreBoard</A></B></CODE>
202
 
 
203
 
<BR>
204
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
205
 
</TR>
206
 
<TR BGCOLOR="white" CLASS="TableRowColor">
207
 
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
208
 
<CODE>private &nbsp;java.util.Map&lt;<A HREF="../../../net/codescore/dbo/Team.html" title="class in net.codescore.dbo">Team</A>,<A HREF="../../../net/codescore/ui/client/TeamHome.html" title="class in net.codescore.ui.client">TeamHome</A>&gt;</CODE></FONT></TD>
 
219
<CODE>private &nbsp;<A HREF="http://java.sun.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A>&lt;<A HREF="../../../net/codescore/dbo/Team.html" title="class in net.codescore.dbo">Team</A>,<A HREF="../../../net/codescore/ui/client/TeamHome.html" title="class in net.codescore.ui.client">TeamHome</A>&gt;</CODE></FONT></TD>
209
220
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#teamHomes">teamHomes</A></B></CODE>
210
221
 
211
222
<BR>
225
236
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#CompetitionManager(net.codescore.dbo.Competition)">CompetitionManager</A></B>(<A HREF="../../../net/codescore/dbo/Competition.html" title="class in net.codescore.dbo">Competition</A>&nbsp;c)</CODE>
226
237
 
227
238
<BR>
228
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
 
239
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create a new manager.</TD>
229
240
</TR>
230
241
</TABLE>
231
242
&nbsp;
239
250
</TR>
240
251
<TR BGCOLOR="white" CLASS="TableRowColor">
241
252
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
242
 
<CODE>protected &nbsp;void</CODE></FONT></TD>
 
253
<CODE>&nbsp;void</CODE></FONT></TD>
243
254
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#addGradeResult(net.codescore.dbo.Submission, net.codescore.exe.ExecutionResult)">addGradeResult</A></B>(<A HREF="../../../net/codescore/dbo/Submission.html" title="interface in net.codescore.dbo">Submission</A>&nbsp;s,
244
255
                             <A HREF="../../../net/codescore/exe/ExecutionResult.html" title="class in net.codescore.exe">ExecutionResult</A>&nbsp;er)</CODE>
245
256
 
267
278
</TR>
268
279
<TR BGCOLOR="white" CLASS="TableRowColor">
269
280
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
281
<CODE>&nbsp;void</CODE></FONT></TD>
 
282
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#debug()">debug</A></B>()</CODE>
 
283
 
 
284
<BR>
 
285
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Dump debugging information to the log</TD>
 
286
</TR>
 
287
<TR BGCOLOR="white" CLASS="TableRowColor">
 
288
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
270
289
<CODE>protected &nbsp;void</CODE></FONT></TD>
271
290
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#finalize()">finalize</A></B>()</CODE>
272
291
 
284
303
</TR>
285
304
<TR BGCOLOR="white" CLASS="TableRowColor">
286
305
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
306
<CODE>static&nbsp;<A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A>&lt;<A HREF="../../../net/codescore/dbo/Competition.html" title="class in net.codescore.dbo">Competition</A>&gt;</CODE></FONT></TD>
 
307
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#getAllComps()">getAllComps</A></B>()</CODE>
 
308
 
 
309
<BR>
 
310
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
 
311
</TR>
 
312
<TR BGCOLOR="white" CLASS="TableRowColor">
 
313
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
314
<CODE>static&nbsp;<A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A>&lt;<A HREF="../../../net/codescore/dbo/Competition.html" title="class in net.codescore.dbo">Competition</A>&gt;</CODE></FONT></TD>
 
315
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#getAllComps(org.apache.cayenne.ObjectContext)">getAllComps</A></B>(<A HREF="http://cayenne.apache.org/doc/api/org/apache/cayenne/ObjectContext.html?is-external=true" title="class or interface in org.apache.cayenne">ObjectContext</A>&nbsp;oc)</CODE>
 
316
 
 
317
<BR>
 
318
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
 
319
</TR>
 
320
<TR BGCOLOR="white" CLASS="TableRowColor">
 
321
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
287
322
<CODE>&nbsp;boolean</CODE></FONT></TD>
288
323
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#getAutoCompileError()">getAutoCompileError</A></B>()</CODE>
289
324
 
318
353
<TR BGCOLOR="white" CLASS="TableRowColor">
319
354
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
320
355
<CODE>static&nbsp;<A HREF="../../../net/codescore/dbo/Competition.html" title="class in net.codescore.dbo">Competition</A></CODE></FONT></TD>
321
 
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#getCompetitionByName(org.apache.cayenne.ObjectContext, java.lang.String)">getCompetitionByName</A></B>(org.apache.cayenne.ObjectContext&nbsp;c,
322
 
                                         java.lang.String&nbsp;name)</CODE>
 
356
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#getCompetitionByName(org.apache.cayenne.ObjectContext, java.lang.String)">getCompetitionByName</A></B>(<A HREF="http://cayenne.apache.org/doc/api/org/apache/cayenne/ObjectContext.html?is-external=true" title="class or interface in org.apache.cayenne">ObjectContext</A>&nbsp;c,
 
357
                                         <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;name)</CODE>
323
358
 
324
359
<BR>
325
360
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
326
361
</TR>
327
362
<TR BGCOLOR="white" CLASS="TableRowColor">
328
363
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
364
<CODE>static&nbsp;<A HREF="../../../net/codescore/dbo/Competition.html" title="class in net.codescore.dbo">Competition</A></CODE></FONT></TD>
 
365
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#getCompetitionByName(java.lang.String)">getCompetitionByName</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;name)</CODE>
 
366
 
 
367
<BR>
 
368
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Uses the internal context to search for a competition</TD>
 
369
</TR>
 
370
<TR BGCOLOR="white" CLASS="TableRowColor">
 
371
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
329
372
<CODE>&nbsp;int</CODE></FONT></TD>
330
373
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#getCompile_error_status()">getCompile_error_status</A></B>()</CODE>
331
374
 
335
378
<TR BGCOLOR="white" CLASS="TableRowColor">
336
379
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
337
380
<CODE>&nbsp;<A HREF="../../../net/codescore/dbo/ProblemStatus.html" title="class in net.codescore.dbo">ProblemStatus</A></CODE></FONT></TD>
338
 
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#getCompileError(org.apache.cayenne.ObjectContext)">getCompileError</A></B>(org.apache.cayenne.ObjectContext&nbsp;oc)</CODE>
 
381
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#getCompileError(org.apache.cayenne.ObjectContext)">getCompileError</A></B>(<A HREF="http://cayenne.apache.org/doc/api/org/apache/cayenne/ObjectContext.html?is-external=true" title="class or interface in org.apache.cayenne">ObjectContext</A>&nbsp;oc)</CODE>
339
382
 
340
383
<BR>
341
384
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
351
394
<TR BGCOLOR="white" CLASS="TableRowColor">
352
395
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
353
396
<CODE>&nbsp;<A HREF="../../../net/codescore/dbo/ProblemStatus.html" title="class in net.codescore.dbo">ProblemStatus</A></CODE></FONT></TD>
354
 
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#getCorrect(org.apache.cayenne.ObjectContext)">getCorrect</A></B>(org.apache.cayenne.ObjectContext&nbsp;oc)</CODE>
 
397
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#getCorrect(org.apache.cayenne.ObjectContext)">getCorrect</A></B>(<A HREF="http://cayenne.apache.org/doc/api/org/apache/cayenne/ObjectContext.html?is-external=true" title="class or interface in org.apache.cayenne">ObjectContext</A>&nbsp;oc)</CODE>
355
398
 
356
399
<BR>
357
400
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
362
405
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#getCurrent()">getCurrent</A></B>()</CODE>
363
406
 
364
407
<BR>
365
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
 
408
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I></I>&nbsp;</TD>
366
409
</TR>
367
410
<TR BGCOLOR="white" CLASS="TableRowColor">
368
411
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
369
412
<CODE>static&nbsp;<A HREF="../../../net/codescore/dbo/Competition.html" title="class in net.codescore.dbo">Competition</A></CODE></FONT></TD>
370
 
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#getCurrent(org.apache.cayenne.ObjectContext)">getCurrent</A></B>(org.apache.cayenne.ObjectContext&nbsp;oc)</CODE>
371
 
 
372
 
<BR>
373
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
 
413
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#getCurrent(org.apache.cayenne.ObjectContext)">getCurrent</A></B>(<A HREF="http://cayenne.apache.org/doc/api/org/apache/cayenne/ObjectContext.html?is-external=true" title="class or interface in org.apache.cayenne">ObjectContext</A>&nbsp;oc)</CODE>
 
414
 
 
415
<BR>
 
416
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I></I>&nbsp;</TD>
 
417
</TR>
 
418
<TR BGCOLOR="white" CLASS="TableRowColor">
 
419
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
420
<CODE>static&nbsp;<A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A>&lt;<A HREF="../../../net/codescore/dbo/Competition.html" title="class in net.codescore.dbo">Competition</A>&gt;</CODE></FONT></TD>
 
421
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#getCurrentComps()">getCurrentComps</A></B>()</CODE>
 
422
 
 
423
<BR>
 
424
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get all currently running competitions using the internal context</TD>
 
425
</TR>
 
426
<TR BGCOLOR="white" CLASS="TableRowColor">
 
427
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
428
<CODE>static&nbsp;<A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A>&lt;<A HREF="../../../net/codescore/dbo/Competition.html" title="class in net.codescore.dbo">Competition</A>&gt;</CODE></FONT></TD>
 
429
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#getCurrentComps(org.apache.cayenne.ObjectContext)">getCurrentComps</A></B>(<A HREF="http://cayenne.apache.org/doc/api/org/apache/cayenne/ObjectContext.html?is-external=true" title="class or interface in org.apache.cayenne">ObjectContext</A>&nbsp;oc)</CODE>
 
430
 
 
431
<BR>
 
432
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A list of all currently running competitions using the supplied context</TD>
374
433
</TR>
375
434
<TR BGCOLOR="white" CLASS="TableRowColor">
376
435
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
382
441
</TR>
383
442
<TR BGCOLOR="white" CLASS="TableRowColor">
384
443
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
444
<CODE>static&nbsp;<A HREF="../../../net/codescore/managers/CompetitionManager.html" title="class in net.codescore.managers">CompetitionManager</A></CODE></FONT></TD>
 
445
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#getManager(net.codescore.dbo.Competition)">getManager</A></B>(<A HREF="../../../net/codescore/dbo/Competition.html" title="class in net.codescore.dbo">Competition</A>&nbsp;c)</CODE>
 
446
 
 
447
<BR>
 
448
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the associated manager for a competition.</TD>
 
449
</TR>
 
450
<TR BGCOLOR="white" CLASS="TableRowColor">
 
451
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
385
452
<CODE>&nbsp;int</CODE></FONT></TD>
386
453
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#getNumGraders()">getNumGraders</A></B>()</CODE>
387
454
 
390
457
</TR>
391
458
<TR BGCOLOR="white" CLASS="TableRowColor">
392
459
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
393
 
<CODE>&nbsp;java.util.List&lt;<A HREF="../../../net/codescore/dbo/Submission.html" title="interface in net.codescore.dbo">Submission</A>&gt;</CODE></FONT></TD>
 
460
<CODE>&nbsp;<A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A>&lt;<A HREF="../../../net/codescore/dbo/Submission.html" title="interface in net.codescore.dbo">Submission</A>&gt;</CODE></FONT></TD>
394
461
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#getPendingSubs()">getPendingSubs</A></B>()</CODE>
395
462
 
396
463
<BR>
407
474
<TR BGCOLOR="white" CLASS="TableRowColor">
408
475
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
409
476
<CODE>&nbsp;<A HREF="../../../net/codescore/dbo/ProblemStatus.html" title="class in net.codescore.dbo">ProblemStatus</A></CODE></FONT></TD>
410
 
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#getPresError(org.apache.cayenne.ObjectContext)">getPresError</A></B>(org.apache.cayenne.ObjectContext&nbsp;oc)</CODE>
 
477
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#getPresError(org.apache.cayenne.ObjectContext)">getPresError</A></B>(<A HREF="http://cayenne.apache.org/doc/api/org/apache/cayenne/ObjectContext.html?is-external=true" title="class or interface in org.apache.cayenne">ObjectContext</A>&nbsp;oc)</CODE>
411
478
 
412
479
<BR>
413
480
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
439
506
<TR BGCOLOR="white" CLASS="TableRowColor">
440
507
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
441
508
<CODE>&nbsp;<A HREF="../../../net/codescore/dbo/ProblemStatus.html" title="class in net.codescore.dbo">ProblemStatus</A></CODE></FONT></TD>
442
 
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#getRuntimeError(org.apache.cayenne.ObjectContext)">getRuntimeError</A></B>(org.apache.cayenne.ObjectContext&nbsp;oc)</CODE>
 
509
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#getRuntimeError(org.apache.cayenne.ObjectContext)">getRuntimeError</A></B>(<A HREF="http://cayenne.apache.org/doc/api/org/apache/cayenne/ObjectContext.html?is-external=true" title="class or interface in org.apache.cayenne">ObjectContext</A>&nbsp;oc)</CODE>
443
510
 
444
511
<BR>
445
512
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
446
513
</TR>
447
514
<TR BGCOLOR="white" CLASS="TableRowColor">
448
515
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
449
 
<CODE>&nbsp;<A HREF="../../../net/codescore/ui/scoreboard/ScoreBoardHome.html" title="class in net.codescore.ui.scoreboard">ScoreBoardHome</A></CODE></FONT></TD>
450
 
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#getScoreBoard()">getScoreBoard</A></B>()</CODE>
 
516
<CODE>&nbsp;<A HREF="../../../net/codescore/exe/ScoringMode.html" title="enum in net.codescore.exe">ScoringMode</A></CODE></FONT></TD>
 
517
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#getScoringMode()">getScoringMode</A></B>()</CODE>
451
518
 
452
519
<BR>
453
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
 
520
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the scoring mode for this competition.<br />
 
521
 Stored in the <code>scoring_mode</code> competition property</TD>
454
522
</TR>
455
523
<TR BGCOLOR="white" CLASS="TableRowColor">
456
524
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
457
525
<CODE>static&nbsp;<A HREF="../../../net/codescore/dbo/TeamSubmission.html" title="class in net.codescore.dbo">TeamSubmission</A></CODE></FONT></TD>
458
 
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#getSubmission(org.apache.cayenne.ObjectContext, int)">getSubmission</A></B>(org.apache.cayenne.ObjectContext&nbsp;c,
 
526
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#getSubmission(org.apache.cayenne.ObjectContext, int)">getSubmission</A></B>(<A HREF="http://cayenne.apache.org/doc/api/org/apache/cayenne/ObjectContext.html?is-external=true" title="class or interface in org.apache.cayenne">ObjectContext</A>&nbsp;c,
459
527
                           int&nbsp;sid)</CODE>
460
528
 
461
529
<BR>
 
530
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Lookup a submission for a given submission id (sid)</TD>
 
531
</TR>
 
532
<TR BGCOLOR="white" CLASS="TableRowColor">
 
533
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
534
<CODE>&nbsp;int</CODE></FONT></TD>
 
535
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#getTest_status()">getTest_status</A></B>()</CODE>
 
536
 
 
537
<BR>
 
538
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
 
539
</TR>
 
540
<TR BGCOLOR="white" CLASS="TableRowColor">
 
541
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
542
<CODE>&nbsp;<A HREF="../../../net/codescore/dbo/ProblemStatus.html" title="class in net.codescore.dbo">ProblemStatus</A></CODE></FONT></TD>
 
543
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#getTestStatus(org.apache.cayenne.ObjectContext)">getTestStatus</A></B>(<A HREF="http://cayenne.apache.org/doc/api/org/apache/cayenne/ObjectContext.html?is-external=true" title="class or interface in org.apache.cayenne">ObjectContext</A>&nbsp;oc)</CODE>
 
544
 
 
545
<BR>
462
546
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
463
547
</TR>
464
548
<TR BGCOLOR="white" CLASS="TableRowColor">
472
556
<TR BGCOLOR="white" CLASS="TableRowColor">
473
557
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
474
558
<CODE>&nbsp;<A HREF="../../../net/codescore/dbo/ProblemStatus.html" title="class in net.codescore.dbo">ProblemStatus</A></CODE></FONT></TD>
475
 
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#getTimelimitError(org.apache.cayenne.ObjectContext)">getTimelimitError</A></B>(org.apache.cayenne.ObjectContext&nbsp;oc)</CODE>
 
559
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#getTimelimitError(org.apache.cayenne.ObjectContext)">getTimelimitError</A></B>(<A HREF="http://cayenne.apache.org/doc/api/org/apache/cayenne/ObjectContext.html?is-external=true" title="class or interface in org.apache.cayenne">ObjectContext</A>&nbsp;oc)</CODE>
476
560
 
477
561
<BR>
478
562
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
479
563
</TR>
480
564
<TR BGCOLOR="white" CLASS="TableRowColor">
481
565
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
566
<CODE>&nbsp;boolean</CODE></FONT></TD>
 
567
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#getUseSecurity()">getUseSecurity</A></B>()</CODE>
 
568
 
 
569
<BR>
 
570
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Tells the grading system if it should use the extra security precautions
 
571
 while executing a submission.<br />
 
572
 <b>This will cause the grader to fail currently as the security system
 
573
 has not been implemented</b></TD>
 
574
</TR>
 
575
<TR BGCOLOR="white" CLASS="TableRowColor">
 
576
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
482
577
<CODE>&nbsp;int</CODE></FONT></TD>
483
578
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#getWrong_output_status()">getWrong_output_status</A></B>()</CODE>
484
579
 
488
583
<TR BGCOLOR="white" CLASS="TableRowColor">
489
584
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
490
585
<CODE>&nbsp;<A HREF="../../../net/codescore/dbo/ProblemStatus.html" title="class in net.codescore.dbo">ProblemStatus</A></CODE></FONT></TD>
491
 
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#getWrongOutput(org.apache.cayenne.ObjectContext)">getWrongOutput</A></B>(org.apache.cayenne.ObjectContext&nbsp;oc)</CODE>
 
586
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#getWrongOutput(org.apache.cayenne.ObjectContext)">getWrongOutput</A></B>(<A HREF="http://cayenne.apache.org/doc/api/org/apache/cayenne/ObjectContext.html?is-external=true" title="class or interface in org.apache.cayenne">ObjectContext</A>&nbsp;oc)</CODE>
492
587
 
493
588
<BR>
494
589
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
503
598
</TR>
504
599
<TR BGCOLOR="white" CLASS="TableRowColor">
505
600
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
506
 
<CODE>private &nbsp;void</CODE></FONT></TD>
507
 
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#initScoreBoard()">initScoreBoard</A></B>()</CODE>
508
 
 
509
 
<BR>
510
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Initialize a score board.</TD>
511
 
</TR>
512
 
<TR BGCOLOR="white" CLASS="TableRowColor">
513
 
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
514
601
<CODE>&nbsp;boolean</CODE></FONT></TD>
515
602
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#isCompIsRunning()">isCompIsRunning</A></B>()</CODE>
516
603
 
536
623
</TR>
537
624
<TR BGCOLOR="white" CLASS="TableRowColor">
538
625
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
539
 
<CODE>protected &nbsp;<A HREF="../../../net/codescore/dbo/Submission.html" title="interface in net.codescore.dbo">Submission</A></CODE></FONT></TD>
 
626
<CODE>&nbsp;<A HREF="../../../net/codescore/dbo/Submission.html" title="interface in net.codescore.dbo">Submission</A></CODE></FONT></TD>
540
627
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#pollGradeQueue()">pollGradeQueue</A></B>()</CODE>
541
628
 
542
629
<BR>
549
636
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#registerTeamHome(net.codescore.ui.client.TeamHome)">registerTeamHome</A></B>(<A HREF="../../../net/codescore/ui/client/TeamHome.html" title="class in net.codescore.ui.client">TeamHome</A>&nbsp;th)</CODE>
550
637
 
551
638
<BR>
552
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
 
639
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I></I>&nbsp;</TD>
553
640
</TR>
554
641
<TR BGCOLOR="white" CLASS="TableRowColor">
555
642
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
557
644
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#reGradeAllSubs()">reGradeAllSubs</A></B>()</CODE>
558
645
 
559
646
<BR>
560
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;All <b>ALL</b> submissions for this competition to the grading queue.<br />
 
647
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Add <b>ALL</b> submissions for this competition to the grading queue.<br />
561
648
 This method is used mainly for testing and has little real world use.</TD>
562
649
</TR>
563
650
<TR BGCOLOR="white" CLASS="TableRowColor">
651
738
<TR BGCOLOR="white" CLASS="TableRowColor">
652
739
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
653
740
<CODE>&nbsp;void</CODE></FONT></TD>
 
741
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#setScoringMode(net.codescore.exe.ScoringMode)">setScoringMode</A></B>(<A HREF="../../../net/codescore/exe/ScoringMode.html" title="enum in net.codescore.exe">ScoringMode</A>&nbsp;mode)</CODE>
 
742
 
 
743
<BR>
 
744
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the scoring mode to be used by the competition</TD>
 
745
</TR>
 
746
<TR BGCOLOR="white" CLASS="TableRowColor">
 
747
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
748
<CODE>&nbsp;void</CODE></FONT></TD>
 
749
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#setTest_status(int)">setTest_status</A></B>(int&nbsp;test_status)</CODE>
 
750
 
 
751
<BR>
 
752
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
 
753
</TR>
 
754
<TR BGCOLOR="white" CLASS="TableRowColor">
 
755
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
756
<CODE>&nbsp;void</CODE></FONT></TD>
654
757
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#setTimelimit_error_status(int)">setTimelimit_error_status</A></B>(int&nbsp;timelimit_error_status)</CODE>
655
758
 
656
759
<BR>
659
762
<TR BGCOLOR="white" CLASS="TableRowColor">
660
763
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
661
764
<CODE>&nbsp;void</CODE></FONT></TD>
 
765
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#setUseSecurity(boolean)">setUseSecurity</A></B>(boolean&nbsp;on)</CODE>
 
766
 
 
767
<BR>
 
768
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the <code>use_security</code> property.</TD>
 
769
</TR>
 
770
<TR BGCOLOR="white" CLASS="TableRowColor">
 
771
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
772
<CODE>&nbsp;void</CODE></FONT></TD>
662
773
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#setWrong_output_status(int)">setWrong_output_status</A></B>(int&nbsp;wrong_output_status)</CODE>
663
774
 
664
775
<BR>
676
787
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
677
788
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
678
789
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
679
 
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
 
790
<TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH>
680
791
</TR>
681
792
<TR BGCOLOR="white" CLASS="TableRowColor">
682
 
<TD><CODE>clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
 
793
<TD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
683
794
</TR>
684
795
</TABLE>
685
796
&nbsp;
698
809
<A NAME="activeCompetition"><!-- --></A><H3>
699
810
activeCompetition</H3>
700
811
<PRE>
701
 
private static <A HREF="../../../net/codescore/managers/CompetitionManager.html" title="class in net.codescore.managers">CompetitionManager</A> <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.43"><B>activeCompetition</B></A></PRE>
702
 
<DL>
703
 
<DL>
704
 
</DL>
705
 
</DL>
706
 
<HR>
707
 
 
708
 
<A NAME="competitionHome"><!-- --></A><H3>
709
 
competitionHome</H3>
710
 
<PRE>
711
 
private <A HREF="../../../net/codescore/ui/admin/CompHome.html" title="class in net.codescore.ui.admin">CompHome</A> <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.90"><B>competitionHome</B></A></PRE>
712
 
<DL>
 
812
private static <A HREF="../../../net/codescore/managers/CompetitionManager.html" title="class in net.codescore.managers">CompetitionManager</A> <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.55"><B>activeCompetition</B></A></PRE>
 
813
<DL>
 
814
<DD><B>Deprecated.</B>&nbsp;<I></I><DD>The last competition to be created
 
815
<P>
 
816
<DL>
 
817
</DL>
 
818
</DL>
 
819
<HR>
 
820
 
 
821
<A NAME="dc"><!-- --></A><H3>
 
822
dc</H3>
 
823
<PRE>
 
824
private static <A HREF="http://cayenne.apache.org/doc/api/org/apache/cayenne/access/DataContext.html?is-external=true" title="class or interface in org.apache.cayenne.access">DataContext</A> <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.56"><B>dc</B></A></PRE>
 
825
<DL>
 
826
<DL>
 
827
</DL>
 
828
</DL>
 
829
<HR>
 
830
 
 
831
<A NAME="managers"><!-- --></A><H3>
 
832
managers</H3>
 
833
<PRE>
 
834
private static <A HREF="http://java.sun.com/javase/6/docs/api/java/util/HashMap.html?is-external=true" title="class or interface in java.util">HashMap</A>&lt;<A HREF="../../../net/codescore/dbo/Competition.html" title="class in net.codescore.dbo">Competition</A>,<A HREF="../../../net/codescore/managers/CompetitionManager.html" title="class in net.codescore.managers">CompetitionManager</A>&gt; <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.61"><B>managers</B></A></PRE>
 
835
<DL>
 
836
<DD>A map of linking a competition to its associated manager, used to prevent
 
837
 a competition from having more than one associated manager
 
838
<P>
713
839
<DL>
714
840
</DL>
715
841
</DL>
718
844
<A NAME="compIsRunning"><!-- --></A><H3>
719
845
compIsRunning</H3>
720
846
<PRE>
721
 
private volatile boolean <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.92"><B>compIsRunning</B></A></PRE>
 
847
private volatile boolean <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.210"><B>compIsRunning</B></A></PRE>
722
848
<DL>
723
849
<DL>
724
850
</DL>
728
854
<A NAME="currentComp"><!-- --></A><H3>
729
855
currentComp</H3>
730
856
<PRE>
731
 
private <A HREF="../../../net/codescore/dbo/Competition.html" title="class in net.codescore.dbo">Competition</A> <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.93"><B>currentComp</B></A></PRE>
 
857
private <A HREF="../../../net/codescore/dbo/Competition.html" title="class in net.codescore.dbo">Competition</A> <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.211"><B>currentComp</B></A></PRE>
732
858
<DL>
733
859
<DL>
734
860
</DL>
738
864
<A NAME="gradeResults"><!-- --></A><H3>
739
865
gradeResults</H3>
740
866
<PRE>
741
 
private java.util.concurrent.ConcurrentHashMap&lt;<A HREF="../../../net/codescore/dbo/Submission.html" title="interface in net.codescore.dbo">Submission</A>,<A HREF="../../../net/codescore/exe/ExecutionResult.html" title="class in net.codescore.exe">ExecutionResult</A>&gt; <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.94"><B>gradeResults</B></A></PRE>
 
867
private <A HREF="http://java.sun.com/javase/6/docs/api/java/util/concurrent/ConcurrentHashMap.html?is-external=true" title="class or interface in java.util.concurrent">ConcurrentHashMap</A>&lt;<A HREF="../../../net/codescore/dbo/Submission.html" title="interface in net.codescore.dbo">Submission</A>,<A HREF="../../../net/codescore/exe/ExecutionResult.html" title="class in net.codescore.exe">ExecutionResult</A>&gt; <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.212"><B>gradeResults</B></A></PRE>
742
868
<DL>
743
869
<DL>
744
870
</DL>
748
874
<A NAME="gradingQueue"><!-- --></A><H3>
749
875
gradingQueue</H3>
750
876
<PRE>
751
 
private java.util.concurrent.ConcurrentLinkedQueue&lt;<A HREF="../../../net/codescore/dbo/Submission.html" title="interface in net.codescore.dbo">Submission</A>&gt; <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.95"><B>gradingQueue</B></A></PRE>
 
877
private <A HREF="http://java.sun.com/javase/6/docs/api/java/util/concurrent/ConcurrentLinkedQueue.html?is-external=true" title="class or interface in java.util.concurrent">ConcurrentLinkedQueue</A>&lt;<A HREF="../../../net/codescore/dbo/Submission.html" title="interface in net.codescore.dbo">Submission</A>&gt; <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.213"><B>gradingQueue</B></A></PRE>
752
878
<DL>
753
879
<DL>
754
880
</DL>
758
884
<A NAME="gThreads"><!-- --></A><H3>
759
885
gThreads</H3>
760
886
<PRE>
761
 
private java.util.List&lt;<A HREF="../../../net/codescore/managers/GradingThread.html" title="class in net.codescore.managers">GradingThread</A>&gt; <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.96"><B>gThreads</B></A></PRE>
 
887
private <A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A>&lt;<A HREF="../../../net/codescore/exe/GradingThread.html" title="class in net.codescore.exe">GradingThread</A>&gt; <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.214"><B>gThreads</B></A></PRE>
762
888
<DL>
763
889
<DL>
764
890
</DL>
768
894
<A NAME="judgingQueue"><!-- --></A><H3>
769
895
judgingQueue</H3>
770
896
<PRE>
771
 
private java.util.concurrent.ConcurrentLinkedQueue&lt;<A HREF="../../../net/codescore/dbo/Submission.html" title="interface in net.codescore.dbo">Submission</A>&gt; <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.97"><B>judgingQueue</B></A></PRE>
 
897
private <A HREF="http://java.sun.com/javase/6/docs/api/java/util/concurrent/ConcurrentLinkedQueue.html?is-external=true" title="class or interface in java.util.concurrent">ConcurrentLinkedQueue</A>&lt;<A HREF="../../../net/codescore/dbo/Submission.html" title="interface in net.codescore.dbo">Submission</A>&gt; <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.215"><B>judgingQueue</B></A></PRE>
772
898
<DL>
773
899
<DL>
774
900
</DL>
778
904
<A NAME="log"><!-- --></A><H3>
779
905
log</H3>
780
906
<PRE>
781
 
private Log <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.98"><B>log</B></A></PRE>
 
907
private org.apache.commons.logging.Log <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.216"><B>log</B></A></PRE>
782
908
<DL>
783
909
<DL>
784
910
</DL>
788
914
<A NAME="numGradingThreads"><!-- --></A><H3>
789
915
numGradingThreads</H3>
790
916
<PRE>
791
 
private int <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.99"><B>numGradingThreads</B></A></PRE>
792
 
<DL>
793
 
<DL>
794
 
</DL>
795
 
</DL>
796
 
<HR>
797
 
 
798
 
<A NAME="scoreBoard"><!-- --></A><H3>
799
 
scoreBoard</H3>
800
 
<PRE>
801
 
private <A HREF="../../../net/codescore/ui/scoreboard/ScoreBoardHome.html" title="class in net.codescore.ui.scoreboard">ScoreBoardHome</A> <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.100"><B>scoreBoard</B></A></PRE>
 
917
private int <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.217"><B>numGradingThreads</B></A></PRE>
802
918
<DL>
803
919
<DL>
804
920
</DL>
808
924
<A NAME="teamHomes"><!-- --></A><H3>
809
925
teamHomes</H3>
810
926
<PRE>
811
 
private java.util.Map&lt;<A HREF="../../../net/codescore/dbo/Team.html" title="class in net.codescore.dbo">Team</A>,<A HREF="../../../net/codescore/ui/client/TeamHome.html" title="class in net.codescore.ui.client">TeamHome</A>&gt; <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.101"><B>teamHomes</B></A></PRE>
 
927
private <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A>&lt;<A HREF="../../../net/codescore/dbo/Team.html" title="class in net.codescore.dbo">Team</A>,<A HREF="../../../net/codescore/ui/client/TeamHome.html" title="class in net.codescore.ui.client">TeamHome</A>&gt; <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.218"><B>teamHomes</B></A></PRE>
812
928
<DL>
813
929
<DL>
814
930
</DL>
827
943
<A NAME="CompetitionManager(net.codescore.dbo.Competition)"><!-- --></A><H3>
828
944
CompetitionManager</H3>
829
945
<PRE>
830
 
public <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.103"><B>CompetitionManager</B></A>(<A HREF="../../../net/codescore/dbo/Competition.html" title="class in net.codescore.dbo">Competition</A>&nbsp;c)</PRE>
831
 
<DL>
 
946
public <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.230"><B>CompetitionManager</B></A>(<A HREF="../../../net/codescore/dbo/Competition.html" title="class in net.codescore.dbo">Competition</A>&nbsp;c)</PRE>
 
947
<DL>
 
948
<DD>Create a new manager.
 
949
<P>
 
950
<DL>
 
951
<DT><B>Parameters:</B><DD><CODE>c</CODE> - The competition the manager is associated with
 
952
<DT><B>Throws:</B>
 
953
<DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - If a manager already exists for the competition. Use
 
954
             <A HREF="../../../net/codescore/managers/CompetitionManager.html#getManager(net.codescore.dbo.Competition)"><CODE>getManager(Competition)</CODE></A> to safely
 
955
             get a manager for a competition</DL>
832
956
</DL>
833
957
 
834
958
<!-- ============ METHOD DETAIL ========== -->
841
965
</TR>
842
966
</TABLE>
843
967
 
 
968
<A NAME="getAllComps()"><!-- --></A><H3>
 
969
getAllComps</H3>
 
970
<PRE>
 
971
public static <A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A>&lt;<A HREF="../../../net/codescore/dbo/Competition.html" title="class in net.codescore.dbo">Competition</A>&gt; <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.68"><B>getAllComps</B></A>()</PRE>
 
972
<DL>
 
973
<DD><DL>
 
974
</DL>
 
975
</DD>
 
976
<DD><DL>
 
977
 
 
978
<DT><B>Returns:</B><DD>A list of all competitions, using the internal
 
979
         <A HREF="http://cayenne.apache.org/doc/api/org/apache/cayenne/access/DataContext.html?is-external=true" title="class or interface in org.apache.cayenne.access"><CODE>DataContext</CODE></A></DL>
 
980
</DD>
 
981
</DL>
 
982
<HR>
 
983
 
 
984
<A NAME="getAllComps(org.apache.cayenne.ObjectContext)"><!-- --></A><H3>
 
985
getAllComps</H3>
 
986
<PRE>
 
987
public static <A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A>&lt;<A HREF="../../../net/codescore/dbo/Competition.html" title="class in net.codescore.dbo">Competition</A>&gt; <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.79"><B>getAllComps</B></A>(<A HREF="http://cayenne.apache.org/doc/api/org/apache/cayenne/ObjectContext.html?is-external=true" title="class or interface in org.apache.cayenne">ObjectContext</A>&nbsp;oc)</PRE>
 
988
<DL>
 
989
<DD><DL>
 
990
</DL>
 
991
</DD>
 
992
<DD><DL>
 
993
<DT><B>Parameters:</B><DD><CODE>oc</CODE> - The context used to execute the query
 
994
<DT><B>Returns:</B><DD>A List of all competitions</DL>
 
995
</DD>
 
996
</DL>
 
997
<HR>
 
998
 
844
999
<A NAME="getCompetitionByName(org.apache.cayenne.ObjectContext, java.lang.String)"><!-- --></A><H3>
845
1000
getCompetitionByName</H3>
846
1001
<PRE>
847
 
public static <A HREF="../../../net/codescore/dbo/Competition.html" title="class in net.codescore.dbo">Competition</A> <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.45"><B>getCompetitionByName</B></A>(org.apache.cayenne.ObjectContext&nbsp;c,
848
 
                                               java.lang.String&nbsp;name)</PRE>
849
 
<DL>
850
 
<DD><DL>
851
 
</DL>
852
 
</DD>
853
 
<DD><DL>
854
 
</DL>
 
1002
public static <A HREF="../../../net/codescore/dbo/Competition.html" title="class in net.codescore.dbo">Competition</A> <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.91"><B>getCompetitionByName</B></A>(<A HREF="http://cayenne.apache.org/doc/api/org/apache/cayenne/ObjectContext.html?is-external=true" title="class or interface in org.apache.cayenne">ObjectContext</A>&nbsp;c,
 
1003
                                               <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;name)</PRE>
 
1004
<DL>
 
1005
<DD><DL>
 
1006
</DL>
 
1007
</DD>
 
1008
<DD><DL>
 
1009
<DT><B>Parameters:</B><DD><CODE>c</CODE> - The context used to search for the competition<DD><CODE>name</CODE> - The name of the competition
 
1010
<DT><B>Returns:</B><DD>The competition with the associated name</DL>
 
1011
</DD>
 
1012
</DL>
 
1013
<HR>
 
1014
 
 
1015
<A NAME="getCompetitionByName(java.lang.String)"><!-- --></A><H3>
 
1016
getCompetitionByName</H3>
 
1017
<PRE>
 
1018
public static <A HREF="../../../net/codescore/dbo/Competition.html" title="class in net.codescore.dbo">Competition</A> <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.111"><B>getCompetitionByName</B></A>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;name)</PRE>
 
1019
<DL>
 
1020
<DD>Uses the internal context to search for a competition
 
1021
<P>
 
1022
<DD><DL>
 
1023
</DL>
 
1024
</DD>
 
1025
<DD><DL>
 
1026
<DT><B>Parameters:</B><DD><CODE>name</CODE> - The name of the competition to lookup
 
1027
<DT><B>Returns:</B><DD>The competition with the given name</DL>
855
1028
</DD>
856
1029
</DL>
857
1030
<HR>
859
1032
<A NAME="getCurrent()"><!-- --></A><H3>
860
1033
getCurrent</H3>
861
1034
<PRE>
862
 
public static <A HREF="../../../net/codescore/managers/CompetitionManager.html" title="class in net.codescore.managers">CompetitionManager</A> <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.58"><B>getCurrent</B></A>()</PRE>
 
1035
public static <A HREF="../../../net/codescore/managers/CompetitionManager.html" title="class in net.codescore.managers">CompetitionManager</A> <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.122"><B>getCurrent</B></A>()</PRE>
863
1036
<DL>
 
1037
<DD><B>Deprecated.</B>&nbsp;<I></I>
 
1038
<P>
864
1039
<DD><DL>
865
1040
</DL>
866
1041
</DD>
867
1042
<DD><DL>
868
 
</DL>
 
1043
 
 
1044
<DT><B>Returns:</B><DD>The last manager associated with the most recently created
 
1045
         competition</DL>
869
1046
</DD>
870
1047
</DL>
871
1048
<HR>
873
1050
<A NAME="getCurrent(org.apache.cayenne.ObjectContext)"><!-- --></A><H3>
874
1051
getCurrent</H3>
875
1052
<PRE>
876
 
public static <A HREF="../../../net/codescore/dbo/Competition.html" title="class in net.codescore.dbo">Competition</A> <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.66"><B>getCurrent</B></A>(org.apache.cayenne.ObjectContext&nbsp;oc)</PRE>
877
 
<DL>
878
 
<DD><DL>
879
 
</DL>
880
 
</DD>
881
 
<DD><DL>
882
 
</DL>
 
1053
public static <A HREF="../../../net/codescore/dbo/Competition.html" title="class in net.codescore.dbo">Competition</A> <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.137"><B>getCurrent</B></A>(<A HREF="http://cayenne.apache.org/doc/api/org/apache/cayenne/ObjectContext.html?is-external=true" title="class or interface in org.apache.cayenne">ObjectContext</A>&nbsp;oc)</PRE>
 
1054
<DL>
 
1055
<DD><B>Deprecated.</B>&nbsp;<I></I>
 
1056
<P>
 
1057
<DD><DL>
 
1058
</DL>
 
1059
</DD>
 
1060
<DD><DL>
 
1061
<DT><B>Parameters:</B><DD><CODE>oc</CODE> - The context used to lookup a competition
 
1062
<DT><B>Returns:</B><DD>The last registered competition</DL>
 
1063
</DD>
 
1064
</DL>
 
1065
<HR>
 
1066
 
 
1067
<A NAME="getCurrentComps()"><!-- --></A><H3>
 
1068
getCurrentComps</H3>
 
1069
<PRE>
 
1070
public static <A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A>&lt;<A HREF="../../../net/codescore/dbo/Competition.html" title="class in net.codescore.dbo">Competition</A>&gt; <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.156"><B>getCurrentComps</B></A>()</PRE>
 
1071
<DL>
 
1072
<DD>Get all currently running competitions using the internal context
 
1073
<P>
 
1074
<DD><DL>
 
1075
</DL>
 
1076
</DD>
 
1077
<DD><DL>
 
1078
 
 
1079
<DT><B>Returns:</B><DD>A list of all competitions that are currently 'running': The
 
1080
         competitions start time is before the current time, and the end
 
1081
         time is after the current time.</DL>
 
1082
</DD>
 
1083
</DL>
 
1084
<HR>
 
1085
 
 
1086
<A NAME="getCurrentComps(org.apache.cayenne.ObjectContext)"><!-- --></A><H3>
 
1087
getCurrentComps</H3>
 
1088
<PRE>
 
1089
public static <A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A>&lt;<A HREF="../../../net/codescore/dbo/Competition.html" title="class in net.codescore.dbo">Competition</A>&gt; <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.169"><B>getCurrentComps</B></A>(<A HREF="http://cayenne.apache.org/doc/api/org/apache/cayenne/ObjectContext.html?is-external=true" title="class or interface in org.apache.cayenne">ObjectContext</A>&nbsp;oc)</PRE>
 
1090
<DL>
 
1091
<DD>A list of all currently running competitions using the supplied context
 
1092
<P>
 
1093
<DD><DL>
 
1094
</DL>
 
1095
</DD>
 
1096
<DD><DL>
 
1097
<DT><B>Parameters:</B><DD><CODE>oc</CODE> - The context to use when executing the query
 
1098
<DT><B>Returns:</B><DD>A list of all competitions where the competition's start time is
 
1099
         before the current time and its end time is after the current
 
1100
         time.</DL>
 
1101
</DD>
 
1102
</DL>
 
1103
<HR>
 
1104
 
 
1105
<A NAME="getManager(net.codescore.dbo.Competition)"><!-- --></A><H3>
 
1106
getManager</H3>
 
1107
<PRE>
 
1108
public static <A HREF="../../../net/codescore/managers/CompetitionManager.html" title="class in net.codescore.managers">CompetitionManager</A> <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.182"><B>getManager</B></A>(<A HREF="../../../net/codescore/dbo/Competition.html" title="class in net.codescore.dbo">Competition</A>&nbsp;c)</PRE>
 
1109
<DL>
 
1110
<DD>Get the associated manager for a competition. A new manager will be
 
1111
 created if one does not already exist for the given competition.
 
1112
<P>
 
1113
<DD><DL>
 
1114
</DL>
 
1115
</DD>
 
1116
<DD><DL>
 
1117
<DT><B>Parameters:</B><DD><CODE>c</CODE> - The competition
 
1118
<DT><B>Returns:</B><DD>The manager associated with the competition.</DL>
883
1119
</DD>
884
1120
</DL>
885
1121
<HR>
887
1123
<A NAME="getSubmission(org.apache.cayenne.ObjectContext, int)"><!-- --></A><H3>
888
1124
getSubmission</H3>
889
1125
<PRE>
890
 
public static <A HREF="../../../net/codescore/dbo/TeamSubmission.html" title="class in net.codescore.dbo">TeamSubmission</A> <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.78"><B>getSubmission</B></A>(org.apache.cayenne.ObjectContext&nbsp;c,
 
1126
public static <A HREF="../../../net/codescore/dbo/TeamSubmission.html" title="class in net.codescore.dbo">TeamSubmission</A> <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.198"><B>getSubmission</B></A>(<A HREF="http://cayenne.apache.org/doc/api/org/apache/cayenne/ObjectContext.html?is-external=true" title="class or interface in org.apache.cayenne">ObjectContext</A>&nbsp;c,
891
1127
                                           int&nbsp;sid)</PRE>
892
1128
<DL>
893
 
<DD><DL>
894
 
</DL>
895
 
</DD>
896
 
<DD><DL>
897
 
</DL>
 
1129
<DD>Lookup a submission for a given submission id (sid)
 
1130
<P>
 
1131
<DD><DL>
 
1132
</DL>
 
1133
</DD>
 
1134
<DD><DL>
 
1135
<DT><B>Parameters:</B><DD><CODE>c</CODE> - The context to use for executing the query<DD><CODE>sid</CODE> - The sid of the submission
 
1136
<DT><B>Returns:</B><DD>The Team Submission with the associated sid</DL>
 
1137
</DD>
 
1138
</DL>
 
1139
<HR>
 
1140
 
 
1141
<A NAME="addGradeResult(net.codescore.dbo.Submission, net.codescore.exe.ExecutionResult)"><!-- --></A><H3>
 
1142
addGradeResult</H3>
 
1143
<PRE>
 
1144
public void <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.268"><B>addGradeResult</B></A>(<A HREF="../../../net/codescore/dbo/Submission.html" title="interface in net.codescore.dbo">Submission</A>&nbsp;s,
 
1145
                           <A HREF="../../../net/codescore/exe/ExecutionResult.html" title="class in net.codescore.exe">ExecutionResult</A>&nbsp;er)</PRE>
 
1146
<DL>
 
1147
<DD>When a submission has been graded, the result of the Grader is returned
 
1148
 here so that it can be reviewed by a judge.
 
1149
<P>
 
1150
<DD><DL>
 
1151
</DL>
 
1152
</DD>
 
1153
<DD><DL>
 
1154
<DT><B>Parameters:</B><DD><CODE>s</CODE> - The submission which was graded<DD><CODE>er</CODE> - The result of the grading</DL>
898
1155
</DD>
899
1156
</DL>
900
1157
<HR>
902
1159
<A NAME="addSubmissionToGradeQueue(net.codescore.dbo.Submission)"><!-- --></A><H3>
903
1160
addSubmissionToGradeQueue</H3>
904
1161
<PRE>
905
 
public void <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.138"><B>addSubmissionToGradeQueue</B></A>(<A HREF="../../../net/codescore/dbo/Submission.html" title="interface in net.codescore.dbo">Submission</A>&nbsp;s)</PRE>
 
1162
public void <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.288"><B>addSubmissionToGradeQueue</B></A>(<A HREF="../../../net/codescore/dbo/Submission.html" title="interface in net.codescore.dbo">Submission</A>&nbsp;s)</PRE>
906
1163
<DL>
907
1164
<DD>Add a submission to the grading queue.<br />
908
1165
 If the queue already contains s, it will not be added again. The queue is
912
1169
</DL>
913
1170
</DD>
914
1171
<DD><DL>
915
 
<DT><B>Parameters:</B><DD><CODE>s</CODE> - The submission to be added.<DT><B>See Also:</B><DD><CODE>ConcurrentLinkedQueue</CODE></DL>
 
1172
<DT><B>Parameters:</B><DD><CODE>s</CODE> - The submission to be added.<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/javase/6/docs/api/java/util/concurrent/ConcurrentLinkedQueue.html?is-external=true" title="class or interface in java.util.concurrent"><CODE>ConcurrentLinkedQueue</CODE></A></DL>
916
1173
</DD>
917
1174
</DL>
918
1175
<HR>
920
1177
<A NAME="checkGThreads()"><!-- --></A><H3>
921
1178
checkGThreads</H3>
922
1179
<PRE>
923
 
public void <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.151"><B>checkGThreads</B></A>()</PRE>
 
1180
public void <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.303"><B>checkGThreads</B></A>()</PRE>
924
1181
<DL>
925
1182
<DD>Removes dead graders from the list and ensures that the actual number of
926
1183
 active grading threads matches the expected number.
934
1191
</DL>
935
1192
<HR>
936
1193
 
 
1194
<A NAME="debug()"><!-- --></A><H3>
 
1195
debug</H3>
 
1196
<PRE>
 
1197
public void <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.316"><B>debug</B></A>()</PRE>
 
1198
<DL>
 
1199
<DD>Dump debugging information to the log
 
1200
<P>
 
1201
<DD><DL>
 
1202
</DL>
 
1203
</DD>
 
1204
<DD><DL>
 
1205
</DL>
 
1206
</DD>
 
1207
</DL>
 
1208
<HR>
 
1209
 
937
1210
<A NAME="getAliveGThreads()"><!-- --></A><H3>
938
1211
getAliveGThreads</H3>
939
1212
<PRE>
940
 
public int <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.166"><B>getAliveGThreads</B></A>()</PRE>
 
1213
public int <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.326"><B>getAliveGThreads</B></A>()</PRE>
941
1214
<DL>
942
1215
<DD>Check for alive graders.
943
1216
<P>
954
1227
<A NAME="getAutoCompileError()"><!-- --></A><H3>
955
1228
getAutoCompileError</H3>
956
1229
<PRE>
957
 
public boolean <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.178"><B>getAutoCompileError</B></A>()</PRE>
 
1230
public boolean <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.338"><B>getAutoCompileError</B></A>()</PRE>
958
1231
<DL>
959
1232
<DD><DL>
960
1233
</DL>
970
1243
<A NAME="getAutoCorrect()"><!-- --></A><H3>
971
1244
getAutoCorrect</H3>
972
1245
<PRE>
973
 
public boolean <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.193"><B>getAutoCorrect</B></A>()</PRE>
 
1246
public boolean <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.353"><B>getAutoCorrect</B></A>()</PRE>
974
1247
<DL>
975
1248
<DD>Check to see if the system will mark submissions correct when they match
976
1249
 the expected output exactly.
989
1262
<A NAME="getAutoRuntimeError()"><!-- --></A><H3>
990
1263
getAutoRuntimeError</H3>
991
1264
<PRE>
992
 
public boolean <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.205"><B>getAutoRuntimeError</B></A>()</PRE>
 
1265
public boolean <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.365"><B>getAutoRuntimeError</B></A>()</PRE>
993
1266
<DL>
994
1267
<DD><DL>
995
1268
</DL>
1005
1278
<A NAME="getCompetition()"><!-- --></A><H3>
1006
1279
getCompetition</H3>
1007
1280
<PRE>
1008
 
public <A HREF="../../../net/codescore/dbo/Competition.html" title="class in net.codescore.dbo">Competition</A> <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.213"><B>getCompetition</B></A>()</PRE>
 
1281
public <A HREF="../../../net/codescore/dbo/Competition.html" title="class in net.codescore.dbo">Competition</A> <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.376"><B>getCompetition</B></A>()</PRE>
1009
1282
<DL>
1010
1283
<DD><DL>
1011
1284
</DL>
1012
1285
</DD>
1013
1286
<DD><DL>
1014
 
</DL>
 
1287
 
 
1288
<DT><B>Returns:</B><DD>The associated competition</DL>
1015
1289
</DD>
1016
1290
</DL>
1017
1291
<HR>
1019
1293
<A NAME="getCompile_error_status()"><!-- --></A><H3>
1020
1294
getCompile_error_status</H3>
1021
1295
<PRE>
1022
 
public int <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.220"><B>getCompile_error_status</B></A>()</PRE>
 
1296
public int <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.385"><B>getCompile_error_status</B></A>()</PRE>
1023
1297
<DL>
1024
1298
<DD><DL>
1025
1299
</DL>
1026
1300
</DD>
1027
1301
<DD><DL>
1028
1302
 
1029
 
<DT><B>Returns:</B><DD>the compile_error_status</DL>
 
1303
<DT><B>Returns:</B><DD>The <code>compile_error_status</code> property of the
 
1304
         competition.<DT><B>See Also:</B><DD><A HREF="../../../net/codescore/managers/CompetitionManager.html#getCompileError(org.apache.cayenne.ObjectContext)"><CODE>getCompileError(ObjectContext)</CODE></A></DL>
1030
1305
</DD>
1031
1306
</DL>
1032
1307
<HR>
1034
1309
<A NAME="getCompileError(org.apache.cayenne.ObjectContext)"><!-- --></A><H3>
1035
1310
getCompileError</H3>
1036
1311
<PRE>
1037
 
public <A HREF="../../../net/codescore/dbo/ProblemStatus.html" title="class in net.codescore.dbo">ProblemStatus</A> <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.226"><B>getCompileError</B></A>(org.apache.cayenne.ObjectContext&nbsp;oc)</PRE>
 
1312
public <A HREF="../../../net/codescore/dbo/ProblemStatus.html" title="class in net.codescore.dbo">ProblemStatus</A> <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.398"><B>getCompileError</B></A>(<A HREF="http://cayenne.apache.org/doc/api/org/apache/cayenne/ObjectContext.html?is-external=true" title="class or interface in org.apache.cayenne">ObjectContext</A>&nbsp;oc)</PRE>
1038
1313
<DL>
1039
1314
<DD><DL>
1040
1315
</DL>
1041
1316
</DD>
1042
1317
<DD><DL>
1043
 
</DL>
 
1318
<DT><B>Parameters:</B><DD><CODE>oc</CODE> - The context used to get the ProblemStatus.
 
1319
<DT><B>Returns:</B><DD>The problem status object signifying a compiler error for a
 
1320
         submission.<DT><B>See Also:</B><DD><A HREF="../../../net/codescore/managers/CompetitionManager.html#getCompile_error_status()"><CODE>getCompile_error_status()</CODE></A></DL>
1044
1321
</DD>
1045
1322
</DL>
1046
1323
<HR>
1048
1325
<A NAME="getCorrect(org.apache.cayenne.ObjectContext)"><!-- --></A><H3>
1049
1326
getCorrect</H3>
1050
1327
<PRE>
1051
 
public <A HREF="../../../net/codescore/dbo/ProblemStatus.html" title="class in net.codescore.dbo">ProblemStatus</A> <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.231"><B>getCorrect</B></A>(org.apache.cayenne.ObjectContext&nbsp;oc)</PRE>
 
1328
public <A HREF="../../../net/codescore/dbo/ProblemStatus.html" title="class in net.codescore.dbo">ProblemStatus</A> <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.409"><B>getCorrect</B></A>(<A HREF="http://cayenne.apache.org/doc/api/org/apache/cayenne/ObjectContext.html?is-external=true" title="class or interface in org.apache.cayenne">ObjectContext</A>&nbsp;oc)</PRE>
1052
1329
<DL>
1053
1330
<DD><DL>
1054
1331
</DL>
1055
1332
</DD>
1056
1333
<DD><DL>
1057
 
</DL>
 
1334
<DT><B>Parameters:</B><DD><CODE>oc</CODE> - The context used to get the ProblemStatus.
 
1335
<DT><B>Returns:</B><DD>The problem status object signifying a correct submission.<DT><B>See Also:</B><DD><A HREF="../../../net/codescore/managers/CompetitionManager.html#getCorrect_status()"><CODE>getCorrect_status()</CODE></A></DL>
1058
1336
</DD>
1059
1337
</DL>
1060
1338
<HR>
1062
1340
<A NAME="getCorrect_status()"><!-- --></A><H3>
1063
1341
getCorrect_status</H3>
1064
1342
<PRE>
1065
 
public int <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.239"><B>getCorrect_status</B></A>()</PRE>
 
1343
public int <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.418"><B>getCorrect_status</B></A>()</PRE>
1066
1344
<DL>
1067
1345
<DD><DL>
1068
1346
</DL>
1069
1347
</DD>
1070
1348
<DD><DL>
1071
1349
 
1072
 
<DT><B>Returns:</B><DD>the correct_status</DL>
 
1350
<DT><B>Returns:</B><DD>The <code>correct_status</code> property of the competition<DT><B>See Also:</B><DD><A HREF="../../../net/codescore/managers/CompetitionManager.html#getCorrect(org.apache.cayenne.ObjectContext)"><CODE>getCorrect(ObjectContext)</CODE></A></DL>
1073
1351
</DD>
1074
1352
</DL>
1075
1353
<HR>
1077
1355
<A NAME="getExeTimeout()"><!-- --></A><H3>
1078
1356
getExeTimeout</H3>
1079
1357
<PRE>
1080
 
public int <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.247"><B>getExeTimeout</B></A>()</PRE>
 
1358
public int <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.426"><B>getExeTimeout</B></A>()</PRE>
1081
1359
<DL>
1082
1360
<DD><DL>
1083
1361
</DL>
1092
1370
<A NAME="getNumGraders()"><!-- --></A><H3>
1093
1371
getNumGraders</H3>
1094
1372
<PRE>
1095
 
public int <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.251"><B>getNumGraders</B></A>()</PRE>
 
1373
public int <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.433"><B>getNumGraders</B></A>()</PRE>
1096
1374
<DL>
1097
1375
<DD><DL>
1098
1376
</DL>
1099
1377
</DD>
1100
1378
<DD><DL>
1101
 
</DL>
 
1379
 
 
1380
<DT><B>Returns:</B><DD>The number of grading threads this competition should maintain</DL>
1102
1381
</DD>
1103
1382
</DL>
1104
1383
<HR>
1106
1385
<A NAME="getPendingSubs()"><!-- --></A><H3>
1107
1386
getPendingSubs</H3>
1108
1387
<PRE>
1109
 
public java.util.List&lt;<A HREF="../../../net/codescore/dbo/Submission.html" title="interface in net.codescore.dbo">Submission</A>&gt; <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.259"><B>getPendingSubs</B></A>()</PRE>
 
1388
public <A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A>&lt;<A HREF="../../../net/codescore/dbo/Submission.html" title="interface in net.codescore.dbo">Submission</A>&gt; <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.443"><B>getPendingSubs</B></A>()</PRE>
1110
1389
<DL>
1111
1390
<DD><DL>
1112
1391
</DL>
1113
1392
</DD>
1114
1393
<DD><DL>
1115
 
</DL>
 
1394
 
 
1395
<DT><B>Returns:</B><DD>A list of submissions waiting to be graded</DL>
1116
1396
</DD>
1117
1397
</DL>
1118
1398
<HR>
1120
1400
<A NAME="getPresentation_error_status()"><!-- --></A><H3>
1121
1401
getPresentation_error_status</H3>
1122
1402
<PRE>
1123
 
public int <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.271"><B>getPresentation_error_status</B></A>()</PRE>
 
1403
public int <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.457"><B>getPresentation_error_status</B></A>()</PRE>
1124
1404
<DL>
1125
1405
<DD><DL>
1126
1406
</DL>
1127
1407
</DD>
1128
1408
<DD><DL>
1129
1409
 
1130
 
<DT><B>Returns:</B><DD>the presentation_error_status</DL>
 
1410
<DT><B>Returns:</B><DD>the <code>presentation_error_status</code> property of the
 
1411
         competition<DT><B>See Also:</B><DD><A HREF="../../../net/codescore/managers/CompetitionManager.html#getPresError(org.apache.cayenne.ObjectContext)"><CODE>getPresError(ObjectContext)</CODE></A></DL>
1131
1412
</DD>
1132
1413
</DL>
1133
1414
<HR>
1135
1416
<A NAME="getPresError(org.apache.cayenne.ObjectContext)"><!-- --></A><H3>
1136
1417
getPresError</H3>
1137
1418
<PRE>
1138
 
public <A HREF="../../../net/codescore/dbo/ProblemStatus.html" title="class in net.codescore.dbo">ProblemStatus</A> <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.277"><B>getPresError</B></A>(org.apache.cayenne.ObjectContext&nbsp;oc)</PRE>
 
1419
public <A HREF="../../../net/codescore/dbo/ProblemStatus.html" title="class in net.codescore.dbo">ProblemStatus</A> <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.470"><B>getPresError</B></A>(<A HREF="http://cayenne.apache.org/doc/api/org/apache/cayenne/ObjectContext.html?is-external=true" title="class or interface in org.apache.cayenne">ObjectContext</A>&nbsp;oc)</PRE>
1139
1420
<DL>
1140
1421
<DD><DL>
1141
1422
</DL>
1142
1423
</DD>
1143
1424
<DD><DL>
1144
 
</DL>
 
1425
<DT><B>Parameters:</B><DD><CODE>oc</CODE> - The context used to get the ProblemStatus.
 
1426
<DT><B>Returns:</B><DD>The problem status object signifying a presentational error in a
 
1427
         submission<DT><B>See Also:</B><DD><A HREF="../../../net/codescore/managers/CompetitionManager.html#getPresentation_error_status()"><CODE>getPresentation_error_status()</CODE></A></DL>
1145
1428
</DD>
1146
1429
</DL>
1147
1430
<HR>
1149
1432
<A NAME="getQueueLength()"><!-- --></A><H3>
1150
1433
getQueueLength</H3>
1151
1434
<PRE>
1152
 
public int <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.286"><B>getQueueLength</B></A>()</PRE>
 
1435
public int <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.479"><B>getQueueLength</B></A>()</PRE>
1153
1436
<DL>
1154
1437
<DD><DL>
1155
1438
</DL>
1156
1439
</DD>
1157
1440
<DD><DL>
1158
1441
 
1159
 
<DT><B>Returns:</B><DD>The length of the grading queue<DT><B>See Also:</B><DD><CODE>ConcurrentLinkedQueue.size()</CODE></DL>
 
1442
<DT><B>Returns:</B><DD>The length of the grading queue<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/javase/6/docs/api/java/util/concurrent/ConcurrentLinkedQueue.html?is-external=true#size()" title="class or interface in java.util.concurrent"><CODE>ConcurrentLinkedQueue.size()</CODE></A></DL>
1160
1443
</DD>
1161
1444
</DL>
1162
1445
<HR>
1164
1447
<A NAME="getResult(net.codescore.dbo.TeamSubmission)"><!-- --></A><H3>
1165
1448
getResult</H3>
1166
1449
<PRE>
1167
 
public <A HREF="../../../net/codescore/exe/ExecutionResult.html" title="class in net.codescore.exe">ExecutionResult</A> <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.297"><B>getResult</B></A>(<A HREF="../../../net/codescore/dbo/TeamSubmission.html" title="class in net.codescore.dbo">TeamSubmission</A>&nbsp;s)</PRE>
 
1450
public <A HREF="../../../net/codescore/exe/ExecutionResult.html" title="class in net.codescore.exe">ExecutionResult</A> <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.490"><B>getResult</B></A>(<A HREF="../../../net/codescore/dbo/TeamSubmission.html" title="class in net.codescore.dbo">TeamSubmission</A>&nbsp;s)</PRE>
1168
1451
<DL>
1169
1452
<DD>Returns the ExecutionResult for a given submission.
1170
1453
<P>
1181
1464
<A NAME="getRuntime_error_status()"><!-- --></A><H3>
1182
1465
getRuntime_error_status</H3>
1183
1466
<PRE>
1184
 
public int <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.304"><B>getRuntime_error_status</B></A>()</PRE>
 
1467
public int <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.499"><B>getRuntime_error_status</B></A>()</PRE>
1185
1468
<DL>
1186
1469
<DD><DL>
1187
1470
</DL>
1188
1471
</DD>
1189
1472
<DD><DL>
1190
1473
 
1191
 
<DT><B>Returns:</B><DD>the runtime_error_status</DL>
 
1474
<DT><B>Returns:</B><DD>The <code>runtime_error_status</code> property of the
 
1475
         competition.<DT><B>See Also:</B><DD><A HREF="../../../net/codescore/managers/CompetitionManager.html#getRuntimeError(org.apache.cayenne.ObjectContext)"><CODE>getRuntimeError(ObjectContext)</CODE></A></DL>
1192
1476
</DD>
1193
1477
</DL>
1194
1478
<HR>
1196
1480
<A NAME="getRuntimeError(org.apache.cayenne.ObjectContext)"><!-- --></A><H3>
1197
1481
getRuntimeError</H3>
1198
1482
<PRE>
1199
 
public <A HREF="../../../net/codescore/dbo/ProblemStatus.html" title="class in net.codescore.dbo">ProblemStatus</A> <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.310"><B>getRuntimeError</B></A>(org.apache.cayenne.ObjectContext&nbsp;oc)</PRE>
1200
 
<DL>
1201
 
<DD><DL>
1202
 
</DL>
1203
 
</DD>
1204
 
<DD><DL>
1205
 
</DL>
1206
 
</DD>
1207
 
</DL>
1208
 
<HR>
1209
 
 
1210
 
<A NAME="getScoreBoard()"><!-- --></A><H3>
1211
 
getScoreBoard</H3>
1212
 
<PRE>
1213
 
public <A HREF="../../../net/codescore/ui/scoreboard/ScoreBoardHome.html" title="class in net.codescore.ui.scoreboard">ScoreBoardHome</A> <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.315"><B>getScoreBoard</B></A>()</PRE>
1214
 
<DL>
1215
 
<DD><DL>
1216
 
</DL>
1217
 
</DD>
1218
 
<DD><DL>
1219
 
</DL>
 
1483
public <A HREF="../../../net/codescore/dbo/ProblemStatus.html" title="class in net.codescore.dbo">ProblemStatus</A> <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.512"><B>getRuntimeError</B></A>(<A HREF="http://cayenne.apache.org/doc/api/org/apache/cayenne/ObjectContext.html?is-external=true" title="class or interface in org.apache.cayenne">ObjectContext</A>&nbsp;oc)</PRE>
 
1484
<DL>
 
1485
<DD><DL>
 
1486
</DL>
 
1487
</DD>
 
1488
<DD><DL>
 
1489
<DT><B>Parameters:</B><DD><CODE>oc</CODE> - The context used to get the ProblemStatus.
 
1490
<DT><B>Returns:</B><DD>The problem status object signifying a runtime error in a
 
1491
         submission.<DT><B>See Also:</B><DD><A HREF="../../../net/codescore/managers/CompetitionManager.html#getRuntime_error_status()"><CODE>getRuntime_error_status()</CODE></A></DL>
 
1492
</DD>
 
1493
</DL>
 
1494
<HR>
 
1495
 
 
1496
<A NAME="getScoringMode()"><!-- --></A><H3>
 
1497
getScoringMode</H3>
 
1498
<PRE>
 
1499
public <A HREF="../../../net/codescore/exe/ScoringMode.html" title="enum in net.codescore.exe">ScoringMode</A> <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.523"><B>getScoringMode</B></A>()</PRE>
 
1500
<DL>
 
1501
<DD>Get the scoring mode for this competition.<br />
 
1502
 Stored in the <code>scoring_mode</code> competition property
 
1503
<P>
 
1504
<DD><DL>
 
1505
</DL>
 
1506
</DD>
 
1507
<DD><DL>
 
1508
 
 
1509
<DT><B>Returns:</B><DD>The scoring mode for the associated competition</DL>
 
1510
</DD>
 
1511
</DL>
 
1512
<HR>
 
1513
 
 
1514
<A NAME="getTest_status()"><!-- --></A><H3>
 
1515
getTest_status</H3>
 
1516
<PRE>
 
1517
public int <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.531"><B>getTest_status</B></A>()</PRE>
 
1518
<DL>
 
1519
<DD><DL>
 
1520
</DL>
 
1521
</DD>
 
1522
<DD><DL>
 
1523
 
 
1524
<DT><B>Returns:</B><DD>The <code>test_status</code> property of the competition.<DT><B>See Also:</B><DD><A HREF="../../../net/codescore/managers/CompetitionManager.html#getTestStatus(org.apache.cayenne.ObjectContext)"><CODE>getTestStatus(ObjectContext)</CODE></A></DL>
 
1525
</DD>
 
1526
</DL>
 
1527
<HR>
 
1528
 
 
1529
<A NAME="getTestStatus(org.apache.cayenne.ObjectContext)"><!-- --></A><H3>
 
1530
getTestStatus</H3>
 
1531
<PRE>
 
1532
public <A HREF="../../../net/codescore/dbo/ProblemStatus.html" title="class in net.codescore.dbo">ProblemStatus</A> <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.543"><B>getTestStatus</B></A>(<A HREF="http://cayenne.apache.org/doc/api/org/apache/cayenne/ObjectContext.html?is-external=true" title="class or interface in org.apache.cayenne">ObjectContext</A>&nbsp;oc)</PRE>
 
1533
<DL>
 
1534
<DD><DL>
 
1535
</DL>
 
1536
</DD>
 
1537
<DD><DL>
 
1538
<DT><B>Parameters:</B><DD><CODE>oc</CODE> - The context used to get the ProblemStatus.
 
1539
<DT><B>Returns:</B><DD>The problem status signifying a problem should not be graded
 
1540
         normally, but instead is a test submission.<DT><B>See Also:</B><DD><A HREF="../../../net/codescore/managers/CompetitionManager.html#getTest_status()"><CODE>getTest_status()</CODE></A></DL>
1220
1541
</DD>
1221
1542
</DL>
1222
1543
<HR>
1224
1545
<A NAME="getTimelimit_error_status()"><!-- --></A><H3>
1225
1546
getTimelimit_error_status</H3>
1226
1547
<PRE>
1227
 
public int <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.319"><B>getTimelimit_error_status</B></A>()</PRE>
 
1548
public int <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.553"><B>getTimelimit_error_status</B></A>()</PRE>
1228
1549
<DL>
1229
1550
<DD><DL>
1230
1551
</DL>
1231
1552
</DD>
1232
1553
<DD><DL>
1233
 
</DL>
 
1554
 
 
1555
<DT><B>Returns:</B><DD>The <code>timelimit_error_status</code> property of the
 
1556
         competition.<DT><B>See Also:</B><DD><A HREF="../../../net/codescore/managers/CompetitionManager.html#getTimelimitError(org.apache.cayenne.ObjectContext)"><CODE>getTimelimitError(ObjectContext)</CODE></A></DL>
1234
1557
</DD>
1235
1558
</DL>
1236
1559
<HR>
1238
1561
<A NAME="getTimelimitError(org.apache.cayenne.ObjectContext)"><!-- --></A><H3>
1239
1562
getTimelimitError</H3>
1240
1563
<PRE>
1241
 
public <A HREF="../../../net/codescore/dbo/ProblemStatus.html" title="class in net.codescore.dbo">ProblemStatus</A> <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.325"><B>getTimelimitError</B></A>(org.apache.cayenne.ObjectContext&nbsp;oc)</PRE>
1242
 
<DL>
1243
 
<DD><DL>
1244
 
</DL>
1245
 
</DD>
1246
 
<DD><DL>
1247
 
</DL>
 
1564
public <A HREF="../../../net/codescore/dbo/ProblemStatus.html" title="class in net.codescore.dbo">ProblemStatus</A> <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.567"><B>getTimelimitError</B></A>(<A HREF="http://cayenne.apache.org/doc/api/org/apache/cayenne/ObjectContext.html?is-external=true" title="class or interface in org.apache.cayenne">ObjectContext</A>&nbsp;oc)</PRE>
 
1565
<DL>
 
1566
<DD><DL>
 
1567
</DL>
 
1568
</DD>
 
1569
<DD><DL>
 
1570
<DT><B>Parameters:</B><DD><CODE>oc</CODE> - The context used to get the ProblemStatus.
 
1571
<DT><B>Returns:</B><DD>The problem status signifying that a submission has exceeded the
 
1572
         maximum time limit.<DT><B>See Also:</B><DD><A HREF="../../../net/codescore/managers/CompetitionManager.html#getTimelimit_error_status()"><CODE>getTimelimit_error_status()</CODE></A>, 
 
1573
<A HREF="../../../net/codescore/managers/CompetitionManager.html#getExeTimeout()"><CODE>getExeTimeout()</CODE></A></DL>
 
1574
</DD>
 
1575
</DL>
 
1576
<HR>
 
1577
 
 
1578
<A NAME="getUseSecurity()"><!-- --></A><H3>
 
1579
getUseSecurity</H3>
 
1580
<PRE>
 
1581
public boolean <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.580"><B>getUseSecurity</B></A>()</PRE>
 
1582
<DL>
 
1583
<DD>Tells the grading system if it should use the extra security precautions
 
1584
 while executing a submission.<br />
 
1585
 <b>This will cause the grader to fail currently as the security system
 
1586
 has not been implemented</b>
 
1587
<P>
 
1588
<DD><DL>
 
1589
</DL>
 
1590
</DD>
 
1591
<DD><DL>
 
1592
 
 
1593
<DT><B>Returns:</B><DD>The <code>use_security</code> property of the competition</DL>
1248
1594
</DD>
1249
1595
</DL>
1250
1596
<HR>
1252
1598
<A NAME="getWrong_output_status()"><!-- --></A><H3>
1253
1599
getWrong_output_status</H3>
1254
1600
<PRE>
1255
 
public int <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.333"><B>getWrong_output_status</B></A>()</PRE>
 
1601
public int <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.589"><B>getWrong_output_status</B></A>()</PRE>
1256
1602
<DL>
1257
1603
<DD><DL>
1258
1604
</DL>
1259
1605
</DD>
1260
1606
<DD><DL>
1261
1607
 
1262
 
<DT><B>Returns:</B><DD>the wrong_output_status</DL>
 
1608
<DT><B>Returns:</B><DD>The <code>wrong_output_status</code> property of the
 
1609
         competition<DT><B>See Also:</B><DD><A HREF="../../../net/codescore/managers/CompetitionManager.html#getWrongOutput(org.apache.cayenne.ObjectContext)"><CODE>getWrongOutput(ObjectContext)</CODE></A></DL>
1263
1610
</DD>
1264
1611
</DL>
1265
1612
<HR>
1267
1614
<A NAME="getWrongOutput(org.apache.cayenne.ObjectContext)"><!-- --></A><H3>
1268
1615
getWrongOutput</H3>
1269
1616
<PRE>
1270
 
public <A HREF="../../../net/codescore/dbo/ProblemStatus.html" title="class in net.codescore.dbo">ProblemStatus</A> <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.338"><B>getWrongOutput</B></A>(org.apache.cayenne.ObjectContext&nbsp;oc)</PRE>
 
1617
public <A HREF="../../../net/codescore/dbo/ProblemStatus.html" title="class in net.codescore.dbo">ProblemStatus</A> <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.601"><B>getWrongOutput</B></A>(<A HREF="http://cayenne.apache.org/doc/api/org/apache/cayenne/ObjectContext.html?is-external=true" title="class or interface in org.apache.cayenne">ObjectContext</A>&nbsp;oc)</PRE>
1271
1618
<DL>
1272
1619
<DD><DL>
1273
1620
</DL>
1274
1621
</DD>
1275
1622
<DD><DL>
1276
 
</DL>
 
1623
<DT><B>Parameters:</B><DD><CODE>oc</CODE> - The context used to get the ProblemStatus.
 
1624
<DT><B>Returns:</B><DD>The problem status object signifying that a submission has the
 
1625
         wrong output.<DT><B>See Also:</B><DD><A HREF="../../../net/codescore/managers/CompetitionManager.html#getWrong_output_status()"><CODE>getWrong_output_status()</CODE></A></DL>
1277
1626
</DD>
1278
1627
</DL>
1279
1628
<HR>
1281
1630
<A NAME="isCompIsRunning()"><!-- --></A><H3>
1282
1631
isCompIsRunning</H3>
1283
1632
<PRE>
1284
 
public boolean <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.349"><B>isCompIsRunning</B></A>()</PRE>
 
1633
public boolean <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.612"><B>isCompIsRunning</B></A>()</PRE>
1285
1634
<DL>
1286
1635
<DD>True if the competition is 'running' which means teams can login and
1287
1636
 submit solutions.
1299
1648
<A NAME="onSubAdd(net.codescore.dbo.TeamSubmission)"><!-- --></A><H3>
1300
1649
onSubAdd</H3>
1301
1650
<PRE>
1302
 
public void <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.354"><B>onSubAdd</B></A>(<A HREF="../../../net/codescore/dbo/TeamSubmission.html" title="class in net.codescore.dbo">TeamSubmission</A>&nbsp;s)</PRE>
 
1651
public void <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.617"><B>onSubAdd</B></A>(<A HREF="../../../net/codescore/dbo/TeamSubmission.html" title="class in net.codescore.dbo">TeamSubmission</A>&nbsp;s)</PRE>
1303
1652
<DL>
1304
1653
<DD><B>Description copied from interface: <CODE><A HREF="../../../net/codescore/ui/SubUpdateListener.html#onSubAdd(net.codescore.dbo.TeamSubmission)">SubUpdateListener</A></CODE></B></DD>
1305
1654
<DD>Callback for a new submission
1316
1665
<A NAME="onSubUpdate(net.codescore.dbo.TeamSubmission)"><!-- --></A><H3>
1317
1666
onSubUpdate</H3>
1318
1667
<PRE>
1319
 
public void <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.359"><B>onSubUpdate</B></A>(<A HREF="../../../net/codescore/dbo/TeamSubmission.html" title="class in net.codescore.dbo">TeamSubmission</A>&nbsp;s)</PRE>
 
1668
public void <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.622"><B>onSubUpdate</B></A>(<A HREF="../../../net/codescore/dbo/TeamSubmission.html" title="class in net.codescore.dbo">TeamSubmission</A>&nbsp;s)</PRE>
1320
1669
<DL>
1321
1670
<DD><B>Description copied from interface: <CODE><A HREF="../../../net/codescore/ui/SubUpdateListener.html#onSubUpdate(net.codescore.dbo.TeamSubmission)">SubUpdateListener</A></CODE></B></DD>
1322
1671
<DD>Callback for an updated submission
1330
1679
</DL>
1331
1680
<HR>
1332
1681
 
 
1682
<A NAME="pollGradeQueue()"><!-- --></A><H3>
 
1683
pollGradeQueue</H3>
 
1684
<PRE>
 
1685
public <A HREF="../../../net/codescore/dbo/Submission.html" title="interface in net.codescore.dbo">Submission</A> <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.632"><B>pollGradeQueue</B></A>()</PRE>
 
1686
<DL>
 
1687
<DD>Called by the grading thread to check if any submissions are waiting to
 
1688
 be graded.
 
1689
<P>
 
1690
<DD><DL>
 
1691
</DL>
 
1692
</DD>
 
1693
<DD><DL>
 
1694
 
 
1695
<DT><B>Returns:</B><DD>A submission, or null if the queue is empty.</DL>
 
1696
</DD>
 
1697
</DL>
 
1698
<HR>
 
1699
 
1333
1700
<A NAME="registerTeamHome(net.codescore.ui.client.TeamHome)"><!-- --></A><H3>
1334
1701
registerTeamHome</H3>
1335
1702
<PRE>
1336
 
public void <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.363"><B>registerTeamHome</B></A>(<A HREF="../../../net/codescore/ui/client/TeamHome.html" title="class in net.codescore.ui.client">TeamHome</A>&nbsp;th)</PRE>
 
1703
public void <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.643"><B>registerTeamHome</B></A>(<A HREF="../../../net/codescore/ui/client/TeamHome.html" title="class in net.codescore.ui.client">TeamHome</A>&nbsp;th)</PRE>
1337
1704
<DL>
 
1705
<DD><B>Deprecated.</B>&nbsp;<I></I>
 
1706
<P>
 
1707
<DD>Registers a team home with the competition manager
 
1708
<P>
1338
1709
<DD><DL>
1339
1710
</DL>
1340
1711
</DD>
1341
1712
<DD><DL>
1342
 
</DL>
 
1713
<DT><B>Parameters:</B><DD><CODE>th</CODE> - The team home to register</DL>
1343
1714
</DD>
1344
1715
</DL>
1345
1716
<HR>
1347
1718
<A NAME="reGradeAllSubs()"><!-- --></A><H3>
1348
1719
reGradeAllSubs</H3>
1349
1720
<PRE>
1350
 
public void <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.377"><B>reGradeAllSubs</B></A>()</PRE>
 
1721
public void <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.657"><B>reGradeAllSubs</B></A>()</PRE>
1351
1722
<DL>
1352
 
<DD>All <b>ALL</b> submissions for this competition to the grading queue.<br />
 
1723
<DD>Add <b>ALL</b> submissions for this competition to the grading queue.<br />
1353
1724
 This method is used mainly for testing and has little real world use.
1354
1725
<P>
1355
1726
<DD><DL>
1364
1735
<A NAME="setAutoCompileError(boolean)"><!-- --></A><H3>
1365
1736
setAutoCompileError</H3>
1366
1737
<PRE>
1367
 
public void <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.399"><B>setAutoCompileError</B></A>(boolean&nbsp;on)</PRE>
 
1738
public void <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.679"><B>setAutoCompileError</B></A>(boolean&nbsp;on)</PRE>
1368
1739
<DL>
1369
1740
<DD>Sets the <code>auto_compile_error</code> flag
1370
1741
<P>
1380
1751
<A NAME="setAutoCorrect(boolean)"><!-- --></A><H3>
1381
1752
setAutoCorrect</H3>
1382
1753
<PRE>
1383
 
public void <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.410"><B>setAutoCorrect</B></A>(boolean&nbsp;autoOn)</PRE>
 
1754
public void <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.690"><B>setAutoCorrect</B></A>(boolean&nbsp;autoOn)</PRE>
1384
1755
<DL>
1385
1756
<DD>Sets <code>auto_correct</code> flag for this competition.
1386
1757
<P>
1397
1768
<A NAME="setAutoRuntimeError(boolean)"><!-- --></A><H3>
1398
1769
setAutoRuntimeError</H3>
1399
1770
<PRE>
1400
 
public void <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.420"><B>setAutoRuntimeError</B></A>(boolean&nbsp;on)</PRE>
 
1771
public void <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.700"><B>setAutoRuntimeError</B></A>(boolean&nbsp;on)</PRE>
1401
1772
<DL>
1402
1773
<DD>Sets the value of the <code>auto_runtime_error</code> flag
1403
1774
<P>
1413
1784
<A NAME="setCompile_error_status(int)"><!-- --></A><H3>
1414
1785
setCompile_error_status</H3>
1415
1786
<PRE>
1416
 
public void <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.428"><B>setCompile_error_status</B></A>(int&nbsp;compile_error_status)</PRE>
 
1787
public void <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.708"><B>setCompile_error_status</B></A>(int&nbsp;compile_error_status)</PRE>
1417
1788
<DL>
1418
1789
<DD><DL>
1419
1790
</DL>
1427
1798
<A NAME="setCompIsRunning(boolean)"><!-- --></A><H3>
1428
1799
setCompIsRunning</H3>
1429
1800
<PRE>
1430
 
public void <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.437"><B>setCompIsRunning</B></A>(boolean&nbsp;compIsRunning)</PRE>
 
1801
public void <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.717"><B>setCompIsRunning</B></A>(boolean&nbsp;compIsRunning)</PRE>
1431
1802
<DL>
1432
1803
<DD><DL>
1433
1804
</DL>
1441
1812
<A NAME="setCorrect_status(int)"><!-- --></A><H3>
1442
1813
setCorrect_status</H3>
1443
1814
<PRE>
1444
 
public void <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.445"><B>setCorrect_status</B></A>(int&nbsp;correct_status)</PRE>
 
1815
public void <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.725"><B>setCorrect_status</B></A>(int&nbsp;correct_status)</PRE>
1445
1816
<DL>
1446
1817
<DD><DL>
1447
1818
</DL>
1455
1826
<A NAME="setCurrentComp(net.codescore.dbo.Competition)"><!-- --></A><H3>
1456
1827
setCurrentComp</H3>
1457
1828
<PRE>
1458
 
public void <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.455"><B>setCurrentComp</B></A>(<A HREF="../../../net/codescore/dbo/Competition.html" title="class in net.codescore.dbo">Competition</A>&nbsp;currentComp)</PRE>
 
1829
public void <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.735"><B>setCurrentComp</B></A>(<A HREF="../../../net/codescore/dbo/Competition.html" title="class in net.codescore.dbo">Competition</A>&nbsp;currentComp)</PRE>
1459
1830
<DL>
1460
1831
<DD>Set this manager's competition
1461
1832
<P>
1471
1842
<A NAME="setExeTimeout(int)"><!-- --></A><H3>
1472
1843
setExeTimeout</H3>
1473
1844
<PRE>
1474
 
public void <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.464"><B>setExeTimeout</B></A>(int&nbsp;tout)</PRE>
 
1845
public void <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.744"><B>setExeTimeout</B></A>(int&nbsp;tout)</PRE>
1475
1846
<DL>
1476
1847
<DD>Set the max time for an execution.
1477
1848
<P>
1487
1858
<A NAME="setNumGraders(int)"><!-- --></A><H3>
1488
1859
setNumGraders</H3>
1489
1860
<PRE>
1490
 
public void <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.476"><B>setNumGraders</B></A>(int&nbsp;num)</PRE>
 
1861
public void <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.756"><B>setNumGraders</B></A>(int&nbsp;num)</PRE>
1491
1862
<DL>
1492
1863
<DD>Sets the number of grading threads for this competition.
1493
1864
<P>
1505
1876
<A NAME="setPresentation_error_status(int)"><!-- --></A><H3>
1506
1877
setPresentation_error_status</H3>
1507
1878
<PRE>
1508
 
public void <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.504"><B>setPresentation_error_status</B></A>(int&nbsp;presentation_error_status)</PRE>
 
1879
public void <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.784"><B>setPresentation_error_status</B></A>(int&nbsp;presentation_error_status)</PRE>
1509
1880
<DL>
1510
1881
<DD><DL>
1511
1882
</DL>
1519
1890
<A NAME="setRuntime_error_status(int)"><!-- --></A><H3>
1520
1891
setRuntime_error_status</H3>
1521
1892
<PRE>
1522
 
public void <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.513"><B>setRuntime_error_status</B></A>(int&nbsp;runtime_error_status)</PRE>
 
1893
public void <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.793"><B>setRuntime_error_status</B></A>(int&nbsp;runtime_error_status)</PRE>
1523
1894
<DL>
1524
1895
<DD><DL>
1525
1896
</DL>
1530
1901
</DL>
1531
1902
<HR>
1532
1903
 
 
1904
<A NAME="setScoringMode(net.codescore.exe.ScoringMode)"><!-- --></A><H3>
 
1905
setScoringMode</H3>
 
1906
<PRE>
 
1907
public void <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.803"><B>setScoringMode</B></A>(<A HREF="../../../net/codescore/exe/ScoringMode.html" title="enum in net.codescore.exe">ScoringMode</A>&nbsp;mode)</PRE>
 
1908
<DL>
 
1909
<DD>Set the scoring mode to be used by the competition
 
1910
<P>
 
1911
<DD><DL>
 
1912
</DL>
 
1913
</DD>
 
1914
<DD><DL>
 
1915
<DT><B>Parameters:</B><DD><CODE>mode</CODE> - The new scoring mode</DL>
 
1916
</DD>
 
1917
</DL>
 
1918
<HR>
 
1919
 
 
1920
<A NAME="setTest_status(int)"><!-- --></A><H3>
 
1921
setTest_status</H3>
 
1922
<PRE>
 
1923
public void <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.811"><B>setTest_status</B></A>(int&nbsp;test_status)</PRE>
 
1924
<DL>
 
1925
<DD><DL>
 
1926
</DL>
 
1927
</DD>
 
1928
<DD><DL>
 
1929
<DT><B>Parameters:</B><DD><CODE>test_status</CODE> - the test_status to set</DL>
 
1930
</DD>
 
1931
</DL>
 
1932
<HR>
 
1933
 
1533
1934
<A NAME="setTimelimit_error_status(int)"><!-- --></A><H3>
1534
1935
setTimelimit_error_status</H3>
1535
1936
<PRE>
1536
 
public void <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.521"><B>setTimelimit_error_status</B></A>(int&nbsp;timelimit_error_status)</PRE>
 
1937
public void <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.819"><B>setTimelimit_error_status</B></A>(int&nbsp;timelimit_error_status)</PRE>
1537
1938
<DL>
1538
1939
<DD><DL>
1539
1940
</DL>
1544
1945
</DL>
1545
1946
<HR>
1546
1947
 
 
1948
<A NAME="setUseSecurity(boolean)"><!-- --></A><H3>
 
1949
setUseSecurity</H3>
 
1950
<PRE>
 
1951
public void <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.830"><B>setUseSecurity</B></A>(boolean&nbsp;on)</PRE>
 
1952
<DL>
 
1953
<DD>Set the <code>use_security</code> property.
 
1954
<P>
 
1955
<DD><DL>
 
1956
</DL>
 
1957
</DD>
 
1958
<DD><DL>
 
1959
<DT><B>Parameters:</B><DD><CODE>on</CODE> - <DT><B>See Also:</B><DD><A HREF="../../../net/codescore/managers/CompetitionManager.html#getUseSecurity()"><CODE>getUseSecurity()</CODE></A></DL>
 
1960
</DD>
 
1961
</DL>
 
1962
<HR>
 
1963
 
1547
1964
<A NAME="setWrong_output_status(int)"><!-- --></A><H3>
1548
1965
setWrong_output_status</H3>
1549
1966
<PRE>
1550
 
public void <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.530"><B>setWrong_output_status</B></A>(int&nbsp;wrong_output_status)</PRE>
 
1967
public void <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.838"><B>setWrong_output_status</B></A>(int&nbsp;wrong_output_status)</PRE>
1551
1968
<DL>
1552
1969
<DD><DL>
1553
1970
</DL>
1561
1978
<A NAME="unRegisterTeamHome(net.codescore.ui.client.TeamHome)"><!-- --></A><H3>
1562
1979
unRegisterTeamHome</H3>
1563
1980
<PRE>
1564
 
public void <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.534"><B>unRegisterTeamHome</B></A>(<A HREF="../../../net/codescore/ui/client/TeamHome.html" title="class in net.codescore.ui.client">TeamHome</A>&nbsp;th)</PRE>
 
1981
public void <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.842"><B>unRegisterTeamHome</B></A>(<A HREF="../../../net/codescore/ui/client/TeamHome.html" title="class in net.codescore.ui.client">TeamHome</A>&nbsp;th)</PRE>
1565
1982
<DL>
1566
1983
<DD><DL>
1567
1984
</DL>
1575
1992
<A NAME="initGThreads()"><!-- --></A><H3>
1576
1993
initGThreads</H3>
1577
1994
<PRE>
1578
 
private void <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.539"><B>initGThreads</B></A>()</PRE>
1579
 
<DL>
1580
 
<DD><DL>
1581
 
</DL>
1582
 
</DD>
1583
 
<DD><DL>
1584
 
</DL>
1585
 
</DD>
1586
 
</DL>
1587
 
<HR>
1588
 
 
1589
 
<A NAME="initScoreBoard()"><!-- --></A><H3>
1590
 
initScoreBoard</H3>
1591
 
<PRE>
1592
 
private void <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.551"><B>initScoreBoard</B></A>()</PRE>
1593
 
<DL>
1594
 
<DD>Initialize a score board.
1595
 
<P>
1596
 
<DD><DL>
1597
 
</DL>
1598
 
</DD>
1599
 
<DD><DL>
1600
 
</DL>
1601
 
</DD>
1602
 
</DL>
1603
 
<HR>
1604
 
 
1605
 
<A NAME="addGradeResult(net.codescore.dbo.Submission, net.codescore.exe.ExecutionResult)"><!-- --></A><H3>
1606
 
addGradeResult</H3>
1607
 
<PRE>
1608
 
protected void <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.564"><B>addGradeResult</B></A>(<A HREF="../../../net/codescore/dbo/Submission.html" title="interface in net.codescore.dbo">Submission</A>&nbsp;s,
1609
 
                              <A HREF="../../../net/codescore/exe/ExecutionResult.html" title="class in net.codescore.exe">ExecutionResult</A>&nbsp;er)</PRE>
1610
 
<DL>
1611
 
<DD>When a submission has been graded, the result of the Grader is returned
1612
 
 here so that it can be reviewed by a judge.
1613
 
<P>
1614
 
<DD><DL>
1615
 
</DL>
1616
 
</DD>
1617
 
<DD><DL>
1618
 
<DT><B>Parameters:</B><DD><CODE>s</CODE> - The submission which was graded<DD><CODE>er</CODE> - The result of the grading</DL>
 
1995
private void <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.847"><B>initGThreads</B></A>()</PRE>
 
1996
<DL>
 
1997
<DD><DL>
 
1998
</DL>
 
1999
</DD>
 
2000
<DD><DL>
 
2001
</DL>
1619
2002
</DD>
1620
2003
</DL>
1621
2004
<HR>
1623
2006
<A NAME="finalize()"><!-- --></A><H3>
1624
2007
finalize</H3>
1625
2008
<PRE>
1626
 
protected void <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.580"><B>finalize</B></A>()
1627
 
                 throws java.lang.Throwable</PRE>
 
2009
protected void <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.861"><B>finalize</B></A>()
 
2010
                 throws <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</A></PRE>
1628
2011
<DL>
1629
2012
<DD>We need to make sure that we stop the grading thread for this competition
1630
2013
 when we clean up this object, also deregisters the listeners.
1631
2014
<P>
1632
2015
<DD><DL>
1633
 
<DT><B>Overrides:</B><DD><CODE>finalize</CODE> in class <CODE>java.lang.Object</CODE></DL>
 
2016
<DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A></CODE> in class <CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></CODE></DL>
1634
2017
</DD>
1635
2018
<DD><DL>
1636
2019
 
1637
2020
<DT><B>Throws:</B>
1638
 
<DD><CODE>java.lang.Throwable</CODE></DL>
1639
 
</DD>
1640
 
</DL>
1641
 
<HR>
1642
 
 
1643
 
<A NAME="pollGradeQueue()"><!-- --></A><H3>
1644
 
pollGradeQueue</H3>
1645
 
<PRE>
1646
 
protected <A HREF="../../../net/codescore/dbo/Submission.html" title="interface in net.codescore.dbo">Submission</A> <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.592"><B>pollGradeQueue</B></A>()</PRE>
1647
 
<DL>
1648
 
<DD>Called by the grading thread to check if any submissions are waiting to
1649
 
 be graded.
1650
 
<P>
1651
 
<DD><DL>
1652
 
</DL>
1653
 
</DD>
1654
 
<DD><DL>
1655
 
 
1656
 
<DT><B>Returns:</B><DD>A submission, or null if the queue is empty.</DL>
 
2021
<DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</A></CODE></DL>
1657
2022
</DD>
1658
2023
</DL>
1659
2024
<!-- ========= END OF CLASS DATA ========= -->
1687
2052
 
1688
2053
<TR>
1689
2054
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
1690
 
&nbsp;<A HREF="../../../net/codescore/managers/ClarificationListener.html" title="class in net.codescore.managers"><B>PREV CLASS</B></A>&nbsp;
1691
 
&nbsp;<A HREF="../../../net/codescore/managers/GradingThread.html" title="class in net.codescore.managers"><B>NEXT CLASS</B></A></FONT></TD>
 
2055
&nbsp;<A HREF="../../../net/codescore/managers/CommentListener.html" title="class in net.codescore.managers"><B>PREV CLASS</B></A>&nbsp;
 
2056
&nbsp;<A HREF="../../../net/codescore/managers/I18NManager.html" title="class in net.codescore.managers"><B>NEXT CLASS</B></A></FONT></TD>
1692
2057
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
1693
2058
  <A HREF="../../../index.html?net/codescore/managers/CompetitionManager.html" target="_top"><B>FRAMES</B></A>  &nbsp;
1694
2059
&nbsp;<A HREF="CompetitionManager.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;