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 -->
7
7
CompetitionManager (Code Score Documentation)
10
<META NAME="date" CONTENT="2008-03-17">
10
<META NAME="date" CONTENT="2008-05-13">
12
12
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
57
57
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
58
<A HREF="../../../net/codescore/managers/ClarificationListener.html" title="class in net.codescore.managers"><B>PREV CLASS</B></A>
59
<A HREF="../../../net/codescore/managers/GradingThread.html" title="class in net.codescore.managers"><B>NEXT CLASS</B></A></FONT></TD>
58
<A HREF="../../../net/codescore/managers/CommentListener.html" title="class in net.codescore.managers"><B>PREV CLASS</B></A>
59
<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>
62
62
<A HREF="CompetitionManager.html" target="_top"><B>NO FRAMES</B></A>
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>
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.
114
<DT><B>Author:</B></DT>
115
<DD>Adam Cornett</DD>
121
131
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#activeCompetition">activeCompetition</A></B></CODE>
124
</TD>
126
<TR BGCOLOR="white" CLASS="TableRowColor">
127
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
128
<CODE>private <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>
132
</TD>
134
<B>Deprecated.</B> <I></I> </TD>
134
136
<TR BGCOLOR="white" CLASS="TableRowColor">
135
137
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
150
152
<TR BGCOLOR="white" CLASS="TableRowColor">
151
153
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
152
<CODE>private java.util.concurrent.ConcurrentHashMap<<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>></CODE></FONT></TD>
154
<CODE>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></CODE></FONT></TD>
155
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#dc">dc</A></B></CODE>
158
</TD>
160
<TR BGCOLOR="white" CLASS="TableRowColor">
161
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
162
<CODE>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><<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>></CODE></FONT></TD>
153
163
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#gradeResults">gradeResults</A></B></CODE>
158
168
<TR BGCOLOR="white" CLASS="TableRowColor">
159
169
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
160
<CODE>private java.util.concurrent.ConcurrentLinkedQueue<<A HREF="../../../net/codescore/dbo/Submission.html" title="interface in net.codescore.dbo">Submission</A>></CODE></FONT></TD>
170
<CODE>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><<A HREF="../../../net/codescore/dbo/Submission.html" title="interface in net.codescore.dbo">Submission</A>></CODE></FONT></TD>
161
171
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#gradingQueue">gradingQueue</A></B></CODE>
166
176
<TR BGCOLOR="white" CLASS="TableRowColor">
167
177
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
168
<CODE>private java.util.List<<A HREF="../../../net/codescore/managers/GradingThread.html" title="class in net.codescore.managers">GradingThread</A>></CODE></FONT></TD>
178
<CODE>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><<A HREF="../../../net/codescore/exe/GradingThread.html" title="class in net.codescore.exe">GradingThread</A>></CODE></FONT></TD>
169
179
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#gThreads">gThreads</A></B></CODE>
174
184
<TR BGCOLOR="white" CLASS="TableRowColor">
175
185
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
176
<CODE>private java.util.concurrent.ConcurrentLinkedQueue<<A HREF="../../../net/codescore/dbo/Submission.html" title="interface in net.codescore.dbo">Submission</A>></CODE></FONT></TD>
186
<CODE>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><<A HREF="../../../net/codescore/dbo/Submission.html" title="interface in net.codescore.dbo">Submission</A>></CODE></FONT></TD>
177
187
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#judgingQueue">judgingQueue</A></B></CODE>
182
192
<TR BGCOLOR="white" CLASS="TableRowColor">
183
193
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
184
<CODE>private Log</CODE></FONT></TD>
194
<CODE>private 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>
190
200
<TR BGCOLOR="white" CLASS="TableRowColor">
191
201
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
202
<CODE>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><<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>></CODE></FONT></TD>
203
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#managers">managers</A></B></CODE>
206
A map of linking a competition to its associated manager, used to prevent
207
a competition from having more than one associated manager</TD>
209
<TR BGCOLOR="white" CLASS="TableRowColor">
210
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
192
211
<CODE>private int</CODE></FONT></TD>
193
212
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#numGradingThreads">numGradingThreads</A></B></CODE>
198
217
<TR BGCOLOR="white" CLASS="TableRowColor">
199
218
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
200
<CODE>private <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>
204
</TD>
206
<TR BGCOLOR="white" CLASS="TableRowColor">
207
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
208
<CODE>private java.util.Map<<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>></CODE></FONT></TD>
219
<CODE>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><<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>></CODE></FONT></TD>
209
220
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#teamHomes">teamHomes</A></B></CODE>
240
251
<TR BGCOLOR="white" CLASS="TableRowColor">
241
252
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
242
<CODE>protected void</CODE></FONT></TD>
253
<CODE> 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> s,
244
255
<A HREF="../../../net/codescore/exe/ExecutionResult.html" title="class in net.codescore.exe">ExecutionResult</A> er)</CODE>
268
279
<TR BGCOLOR="white" CLASS="TableRowColor">
269
280
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
281
<CODE> void</CODE></FONT></TD>
282
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#debug()">debug</A></B>()</CODE>
285
Dump debugging information to the log</TD>
287
<TR BGCOLOR="white" CLASS="TableRowColor">
288
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
270
289
<CODE>protected void</CODE></FONT></TD>
271
290
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#finalize()">finalize</A></B>()</CODE>
285
304
<TR BGCOLOR="white" CLASS="TableRowColor">
286
305
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
306
<CODE>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><<A HREF="../../../net/codescore/dbo/Competition.html" title="class in net.codescore.dbo">Competition</A>></CODE></FONT></TD>
307
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#getAllComps()">getAllComps</A></B>()</CODE>
310
</TD>
312
<TR BGCOLOR="white" CLASS="TableRowColor">
313
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
314
<CODE>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><<A HREF="../../../net/codescore/dbo/Competition.html" title="class in net.codescore.dbo">Competition</A>></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> oc)</CODE>
318
</TD>
320
<TR BGCOLOR="white" CLASS="TableRowColor">
321
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
287
322
<CODE> boolean</CODE></FONT></TD>
288
323
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#getAutoCompileError()">getAutoCompileError</A></B>()</CODE>
318
353
<TR BGCOLOR="white" CLASS="TableRowColor">
319
354
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
320
355
<CODE>static <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 c,
322
java.lang.String 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> 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> name)</CODE>
325
360
</TD>
327
362
<TR BGCOLOR="white" CLASS="TableRowColor">
328
363
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
364
<CODE>static <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> name)</CODE>
368
Uses the internal context to search for a competition</TD>
370
<TR BGCOLOR="white" CLASS="TableRowColor">
371
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
329
372
<CODE> 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>
335
378
<TR BGCOLOR="white" CLASS="TableRowColor">
336
379
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
337
380
<CODE> <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 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> oc)</CODE>
341
384
</TD>
351
394
<TR BGCOLOR="white" CLASS="TableRowColor">
352
395
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
353
396
<CODE> <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 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> oc)</CODE>
357
400
</TD>
362
405
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#getCurrent()">getCurrent</A></B>()</CODE>
365
</TD>
408
<B>Deprecated.</B> <I></I> </TD>
367
410
<TR BGCOLOR="white" CLASS="TableRowColor">
368
411
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
369
412
<CODE>static <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 oc)</CODE>
373
</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> oc)</CODE>
416
<B>Deprecated.</B> <I></I> </TD>
418
<TR BGCOLOR="white" CLASS="TableRowColor">
419
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
420
<CODE>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><<A HREF="../../../net/codescore/dbo/Competition.html" title="class in net.codescore.dbo">Competition</A>></CODE></FONT></TD>
421
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#getCurrentComps()">getCurrentComps</A></B>()</CODE>
424
Get all currently running competitions using the internal context</TD>
426
<TR BGCOLOR="white" CLASS="TableRowColor">
427
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
428
<CODE>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><<A HREF="../../../net/codescore/dbo/Competition.html" title="class in net.codescore.dbo">Competition</A>></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> oc)</CODE>
432
A list of all currently running competitions using the supplied context</TD>
375
434
<TR BGCOLOR="white" CLASS="TableRowColor">
376
435
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
383
442
<TR BGCOLOR="white" CLASS="TableRowColor">
384
443
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
444
<CODE>static <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> c)</CODE>
448
Get the associated manager for a competition.</TD>
450
<TR BGCOLOR="white" CLASS="TableRowColor">
451
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
385
452
<CODE> int</CODE></FONT></TD>
386
453
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#getNumGraders()">getNumGraders</A></B>()</CODE>
391
458
<TR BGCOLOR="white" CLASS="TableRowColor">
392
459
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
393
<CODE> java.util.List<<A HREF="../../../net/codescore/dbo/Submission.html" title="interface in net.codescore.dbo">Submission</A>></CODE></FONT></TD>
460
<CODE> <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><<A HREF="../../../net/codescore/dbo/Submission.html" title="interface in net.codescore.dbo">Submission</A>></CODE></FONT></TD>
394
461
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#getPendingSubs()">getPendingSubs</A></B>()</CODE>
407
474
<TR BGCOLOR="white" CLASS="TableRowColor">
408
475
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
409
476
<CODE> <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 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> oc)</CODE>
413
480
</TD>
439
506
<TR BGCOLOR="white" CLASS="TableRowColor">
440
507
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
441
508
<CODE> <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 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> oc)</CODE>
445
512
</TD>
447
514
<TR BGCOLOR="white" CLASS="TableRowColor">
448
515
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
449
<CODE> <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> <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>
453
</TD>
520
Get the scoring mode for this competition.<br />
521
Stored in the <code>scoring_mode</code> competition property</TD>
455
523
<TR BGCOLOR="white" CLASS="TableRowColor">
456
524
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
457
525
<CODE>static <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 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> c,
459
527
int sid)</CODE>
530
Lookup a submission for a given submission id (sid)</TD>
532
<TR BGCOLOR="white" CLASS="TableRowColor">
533
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
534
<CODE> int</CODE></FONT></TD>
535
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#getTest_status()">getTest_status</A></B>()</CODE>
538
</TD>
540
<TR BGCOLOR="white" CLASS="TableRowColor">
541
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
542
<CODE> <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> oc)</CODE>
462
546
</TD>
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> <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 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> oc)</CODE>
478
562
</TD>
480
564
<TR BGCOLOR="white" CLASS="TableRowColor">
481
565
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
566
<CODE> boolean</CODE></FONT></TD>
567
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#getUseSecurity()">getUseSecurity</A></B>()</CODE>
570
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>
575
<TR BGCOLOR="white" CLASS="TableRowColor">
576
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
482
577
<CODE> 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>
488
583
<TR BGCOLOR="white" CLASS="TableRowColor">
489
584
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
490
585
<CODE> <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 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> oc)</CODE>
494
589
</TD>
504
599
<TR BGCOLOR="white" CLASS="TableRowColor">
505
600
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
506
<CODE>private void</CODE></FONT></TD>
507
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#initScoreBoard()">initScoreBoard</A></B>()</CODE>
510
Initialize a score board.</TD>
512
<TR BGCOLOR="white" CLASS="TableRowColor">
513
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
514
601
<CODE> boolean</CODE></FONT></TD>
515
602
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#isCompIsRunning()">isCompIsRunning</A></B>()</CODE>
537
624
<TR BGCOLOR="white" CLASS="TableRowColor">
538
625
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
539
<CODE>protected <A HREF="../../../net/codescore/dbo/Submission.html" title="interface in net.codescore.dbo">Submission</A></CODE></FONT></TD>
626
<CODE> <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>
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> th)</CODE>
552
</TD>
639
<B>Deprecated.</B> <I></I> </TD>
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>
560
All <b>ALL</b> submissions for this competition to the grading queue.<br />
647
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>
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> 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> mode)</CODE>
744
Set the scoring mode to be used by the competition</TD>
746
<TR BGCOLOR="white" CLASS="TableRowColor">
747
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
748
<CODE> void</CODE></FONT></TD>
749
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#setTest_status(int)">setTest_status</A></B>(int test_status)</CODE>
752
</TD>
754
<TR BGCOLOR="white" CLASS="TableRowColor">
755
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
756
<CODE> 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 timelimit_error_status)</CODE>
659
762
<TR BGCOLOR="white" CLASS="TableRowColor">
660
763
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
661
764
<CODE> void</CODE></FONT></TD>
765
<TD><CODE><B><A HREF="../../../net/codescore/managers/CompetitionManager.html#setUseSecurity(boolean)">setUseSecurity</A></B>(boolean on)</CODE>
768
Set the <code>use_security</code> property.</TD>
770
<TR BGCOLOR="white" CLASS="TableRowColor">
771
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
772
<CODE> 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 wrong_output_status)</CODE>
676
787
<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>
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>
698
809
<A NAME="activeCompetition"><!-- --></A><H3>
699
810
activeCompetition</H3>
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>
708
<A NAME="competitionHome"><!-- --></A><H3>
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>
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>
814
<DD><B>Deprecated.</B> <I></I><DD>The last competition to be created
821
<A NAME="dc"><!-- --></A><H3>
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>
831
<A NAME="managers"><!-- --></A><H3>
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><<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>> <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.61"><B>managers</B></A></PRE>
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
738
864
<A NAME="gradeResults"><!-- --></A><H3>
739
865
gradeResults</H3>
741
private java.util.concurrent.ConcurrentHashMap<<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>> <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><<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>> <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.212"><B>gradeResults</B></A></PRE>
788
914
<A NAME="numGradingThreads"><!-- --></A><H3>
789
915
numGradingThreads</H3>
791
private int <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.99"><B>numGradingThreads</B></A></PRE>
798
<A NAME="scoreBoard"><!-- --></A><H3>
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>
808
924
<A NAME="teamHomes"><!-- --></A><H3>
811
private java.util.Map<<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>> <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><<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>> <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.218"><B>teamHomes</B></A></PRE>
827
943
<A NAME="CompetitionManager(net.codescore.dbo.Competition)"><!-- --></A><H3>
828
944
CompetitionManager</H3>
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> c)</PRE>
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> c)</PRE>
948
<DD>Create a new manager.
951
<DT><B>Parameters:</B><DD><CODE>c</CODE> - The competition the manager is associated with
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>
834
958
<!-- ============ METHOD DETAIL ========== -->
968
<A NAME="getAllComps()"><!-- --></A><H3>
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><<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.68"><B>getAllComps</B></A>()</PRE>
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>
984
<A NAME="getAllComps(org.apache.cayenne.ObjectContext)"><!-- --></A><H3>
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><<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.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> oc)</PRE>
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>
844
999
<A NAME="getCompetitionByName(org.apache.cayenne.ObjectContext, java.lang.String)"><!-- --></A><H3>
845
1000
getCompetitionByName</H3>
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 c,
848
java.lang.String name)</PRE>
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> 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> name)</PRE>
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>
1015
<A NAME="getCompetitionByName(java.lang.String)"><!-- --></A><H3>
1016
getCompetitionByName</H3>
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> name)</PRE>
1020
<DD>Uses the internal context to search for a competition
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>
859
1032
<A NAME="getCurrent()"><!-- --></A><H3>
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>
1037
<DD><B>Deprecated.</B> <I></I>
1044
<DT><B>Returns:</B><DD>The last manager associated with the most recently created
873
1050
<A NAME="getCurrent(org.apache.cayenne.ObjectContext)"><!-- --></A><H3>
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 oc)</PRE>
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> oc)</PRE>
1055
<DD><B>Deprecated.</B> <I></I>
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>
1067
<A NAME="getCurrentComps()"><!-- --></A><H3>
1068
getCurrentComps</H3>
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><<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.156"><B>getCurrentComps</B></A>()</PRE>
1072
<DD>Get all currently running competitions using the internal context
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>
1086
<A NAME="getCurrentComps(org.apache.cayenne.ObjectContext)"><!-- --></A><H3>
1087
getCurrentComps</H3>
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><<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.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> oc)</PRE>
1091
<DD>A list of all currently running competitions using the supplied context
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
1105
<A NAME="getManager(net.codescore.dbo.Competition)"><!-- --></A><H3>
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> c)</PRE>
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.
1117
<DT><B>Parameters:</B><DD><CODE>c</CODE> - The competition
1118
<DT><B>Returns:</B><DD>The manager associated with the competition.</DL>
887
1123
<A NAME="getSubmission(org.apache.cayenne.ObjectContext, int)"><!-- --></A><H3>
888
1124
getSubmission</H3>
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 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> c,
891
1127
int sid)</PRE>
1129
<DD>Lookup a submission for a given submission id (sid)
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>
1141
<A NAME="addGradeResult(net.codescore.dbo.Submission, net.codescore.exe.ExecutionResult)"><!-- --></A><H3>
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> s,
1145
<A HREF="../../../net/codescore/exe/ExecutionResult.html" title="class in net.codescore.exe">ExecutionResult</A> er)</PRE>
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.
1154
<DT><B>Parameters:</B><DD><CODE>s</CODE> - The submission which was graded<DD><CODE>er</CODE> - The result of the grading</DL>
902
1159
<A NAME="addSubmissionToGradeQueue(net.codescore.dbo.Submission)"><!-- --></A><H3>
903
1160
addSubmissionToGradeQueue</H3>
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> 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> s)</PRE>
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
920
1177
<A NAME="checkGThreads()"><!-- --></A><H3>
921
1178
checkGThreads</H3>
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>
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.
1194
<A NAME="debug()"><!-- --></A><H3>
1197
public void <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.316"><B>debug</B></A>()</PRE>
1199
<DD>Dump debugging information to the log
937
1210
<A NAME="getAliveGThreads()"><!-- --></A><H3>
938
1211
getAliveGThreads</H3>
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>
942
1215
<DD>Check for alive graders.
970
1243
<A NAME="getAutoCorrect()"><!-- --></A><H3>
971
1244
getAutoCorrect</H3>
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>
975
1248
<DD>Check to see if the system will mark submissions correct when they match
976
1249
the expected output exactly.
1005
1278
<A NAME="getCompetition()"><!-- --></A><H3>
1006
1279
getCompetition</H3>
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>
1288
<DT><B>Returns:</B><DD>The associated competition</DL>
1019
1293
<A NAME="getCompile_error_status()"><!-- --></A><H3>
1020
1294
getCompile_error_status</H3>
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>
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>
1034
1309
<A NAME="getCompileError(org.apache.cayenne.ObjectContext)"><!-- --></A><H3>
1035
1310
getCompileError</H3>
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 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> oc)</PRE>
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>
1048
1325
<A NAME="getCorrect(org.apache.cayenne.ObjectContext)"><!-- --></A><H3>
1049
1326
getCorrect</H3>
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 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> oc)</PRE>
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>
1062
1340
<A NAME="getCorrect_status()"><!-- --></A><H3>
1063
1341
getCorrect_status</H3>
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>
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>
1106
1385
<A NAME="getPendingSubs()"><!-- --></A><H3>
1107
1386
getPendingSubs</H3>
1109
public java.util.List<<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.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><<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.443"><B>getPendingSubs</B></A>()</PRE>
1395
<DT><B>Returns:</B><DD>A list of submissions waiting to be graded</DL>
1120
1400
<A NAME="getPresentation_error_status()"><!-- --></A><H3>
1121
1401
getPresentation_error_status</H3>
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>
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>
1135
1416
<A NAME="getPresError(org.apache.cayenne.ObjectContext)"><!-- --></A><H3>
1136
1417
getPresError</H3>
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 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> oc)</PRE>
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>
1149
1432
<A NAME="getQueueLength()"><!-- --></A><H3>
1150
1433
getQueueLength</H3>
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>
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>
1164
1447
<A NAME="getResult(net.codescore.dbo.TeamSubmission)"><!-- --></A><H3>
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> 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> s)</PRE>
1169
1452
<DD>Returns the ExecutionResult for a given submission.
1181
1464
<A NAME="getRuntime_error_status()"><!-- --></A><H3>
1182
1465
getRuntime_error_status</H3>
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>
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>
1196
1480
<A NAME="getRuntimeError(org.apache.cayenne.ObjectContext)"><!-- --></A><H3>
1197
1481
getRuntimeError</H3>
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 oc)</PRE>
1210
<A NAME="getScoreBoard()"><!-- --></A><H3>
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>
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> oc)</PRE>
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>
1496
<A NAME="getScoringMode()"><!-- --></A><H3>
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>
1501
<DD>Get the scoring mode for this competition.<br />
1502
Stored in the <code>scoring_mode</code> competition property
1509
<DT><B>Returns:</B><DD>The scoring mode for the associated competition</DL>
1514
<A NAME="getTest_status()"><!-- --></A><H3>
1517
public int <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.531"><B>getTest_status</B></A>()</PRE>
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>
1529
<A NAME="getTestStatus(org.apache.cayenne.ObjectContext)"><!-- --></A><H3>
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> oc)</PRE>
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>
1224
1545
<A NAME="getTimelimit_error_status()"><!-- --></A><H3>
1225
1546
getTimelimit_error_status</H3>
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>
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>
1238
1561
<A NAME="getTimelimitError(org.apache.cayenne.ObjectContext)"><!-- --></A><H3>
1239
1562
getTimelimitError</H3>
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 oc)</PRE>
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> oc)</PRE>
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>
1578
<A NAME="getUseSecurity()"><!-- --></A><H3>
1581
public boolean <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.580"><B>getUseSecurity</B></A>()</PRE>
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>
1593
<DT><B>Returns:</B><DD>The <code>use_security</code> property of the competition</DL>
1252
1598
<A NAME="getWrong_output_status()"><!-- --></A><H3>
1253
1599
getWrong_output_status</H3>
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>
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>
1267
1614
<A NAME="getWrongOutput(org.apache.cayenne.ObjectContext)"><!-- --></A><H3>
1268
1615
getWrongOutput</H3>
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 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> oc)</PRE>
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>
1299
1648
<A NAME="onSubAdd(net.codescore.dbo.TeamSubmission)"><!-- --></A><H3>
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> 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> s)</PRE>
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>
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> 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> s)</PRE>
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
1682
<A NAME="pollGradeQueue()"><!-- --></A><H3>
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>
1687
<DD>Called by the grading thread to check if any submissions are waiting to
1695
<DT><B>Returns:</B><DD>A submission, or null if the queue is empty.</DL>
1333
1700
<A NAME="registerTeamHome(net.codescore.ui.client.TeamHome)"><!-- --></A><H3>
1334
1701
registerTeamHome</H3>
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> 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> th)</PRE>
1705
<DD><B>Deprecated.</B> <I></I>
1707
<DD>Registers a team home with the competition manager
1713
<DT><B>Parameters:</B><DD><CODE>th</CODE> - The team home to register</DL>
1347
1718
<A NAME="reGradeAllSubs()"><!-- --></A><H3>
1348
1719
reGradeAllSubs</H3>
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>
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.
1455
1826
<A NAME="setCurrentComp(net.codescore.dbo.Competition)"><!-- --></A><H3>
1456
1827
setCurrentComp</H3>
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> 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> currentComp)</PRE>
1460
1831
<DD>Set this manager's competition
1904
<A NAME="setScoringMode(net.codescore.exe.ScoringMode)"><!-- --></A><H3>
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> mode)</PRE>
1909
<DD>Set the scoring mode to be used by the competition
1915
<DT><B>Parameters:</B><DD><CODE>mode</CODE> - The new scoring mode</DL>
1920
<A NAME="setTest_status(int)"><!-- --></A><H3>
1923
public void <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.811"><B>setTest_status</B></A>(int test_status)</PRE>
1929
<DT><B>Parameters:</B><DD><CODE>test_status</CODE> - the test_status to set</DL>
1533
1934
<A NAME="setTimelimit_error_status(int)"><!-- --></A><H3>
1534
1935
setTimelimit_error_status</H3>
1536
public void <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.521"><B>setTimelimit_error_status</B></A>(int 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 timelimit_error_status)</PRE>
1948
<A NAME="setUseSecurity(boolean)"><!-- --></A><H3>
1951
public void <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.830"><B>setUseSecurity</B></A>(boolean on)</PRE>
1953
<DD>Set the <code>use_security</code> property.
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>
1547
1964
<A NAME="setWrong_output_status(int)"><!-- --></A><H3>
1548
1965
setWrong_output_status</H3>
1550
public void <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.530"><B>setWrong_output_status</B></A>(int 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 wrong_output_status)</PRE>
1575
1992
<A NAME="initGThreads()"><!-- --></A><H3>
1576
1993
initGThreads</H3>
1578
private void <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.539"><B>initGThreads</B></A>()</PRE>
1589
<A NAME="initScoreBoard()"><!-- --></A><H3>
1592
private void <A HREF="../../../src-html/net/codescore/managers/CompetitionManager.html#line.551"><B>initScoreBoard</B></A>()</PRE>
1594
<DD>Initialize a score board.
1605
<A NAME="addGradeResult(net.codescore.dbo.Submission, net.codescore.exe.ExecutionResult)"><!-- --></A><H3>
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> s,
1609
<A HREF="../../../net/codescore/exe/ExecutionResult.html" title="class in net.codescore.exe">ExecutionResult</A> er)</PRE>
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.
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>
1623
2006
<A NAME="finalize()"><!-- --></A><H3>
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>
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.
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>
1637
2020
<DT><B>Throws:</B>
1638
<DD><CODE>java.lang.Throwable</CODE></DL>
1643
<A NAME="pollGradeQueue()"><!-- --></A><H3>
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>
1648
<DD>Called by the grading thread to check if any submissions are waiting to
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>
1659
2024
<!-- ========= END OF CLASS DATA ========= -->
1689
2054
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
1690
<A HREF="../../../net/codescore/managers/ClarificationListener.html" title="class in net.codescore.managers"><B>PREV CLASS</B></A>
1691
<A HREF="../../../net/codescore/managers/GradingThread.html" title="class in net.codescore.managers"><B>NEXT CLASS</B></A></FONT></TD>
2055
<A HREF="../../../net/codescore/managers/CommentListener.html" title="class in net.codescore.managers"><B>PREV CLASS</B></A>
2056
<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>
1694
2059
<A HREF="CompetitionManager.html" target="_top"><B>NO FRAMES</B></A>