|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IRun
This interface describes the PC2 API view of a contest Run.
A Run is a submission by a Team of a program for judging.
Information about run states is in IRunEventListener
This documentation describes the current draft of the PC2 API, which is subject to change.
Method Summary | |
---|---|
boolean |
equals(Object obj)
Check whether this Run is the same as some other Run. |
String |
getJudgementName()
Get the judgement name assigned to the run by the Judges. |
ILanguage |
getLanguage()
Get the language which was specified for this run when it was submitted by the submitting team. |
int |
getNumber()
Get the run number. |
IProblem |
getProblem()
Get the problem for which this run was submitted. |
IRunJudgement[] |
getRunJudgements()
Return List of judgements assigned by judges. |
int |
getSiteNumber()
Get the site number associated with the run. |
byte[][] |
getSourceCodeFileContents()
Get the source code contained in the files submitted by the Team which created this IRun . |
String[] |
getSourceCodeFileNames()
Get the names of each of the source code files submitted as part of this IRun by the submitting team. |
long |
getSubmissionTime()
Get the number of minutes which had elapsed on the contest clock at the site where the run submission was received when the run was submitted. |
ITeam |
getTeam()
Get the team (client) that submitted this run. |
int |
hashCode()
Get the hashcode associated with this client. |
boolean |
isDeleted()
Return a boolean indicating whether the run been marked as deleted by the Contest Administrator. |
boolean |
isFinalJudged()
Return a boolean indicating whether or not the run been judged. |
boolean |
isPreliminaryJudged()
Return a boolean indicating whether the run has only been preliminarily judged. |
boolean |
isSolved()
Return a boolean indicating whether the run been given a Yes (Correct) judgement. |
Method Detail |
---|
boolean isFinalJudged()
isPreliminaryJudged()
return true.
boolean isPreliminaryJudged()
isFinalJudged()
returns true.
boolean isSolved()
boolean isDeleted()
ITeam getTeam()
ITeam
which submitted this run.String getJudgementName()
IJudgement
).
IRunJudgement[] getRunJudgements()
IProblem getProblem()
IProblem
associated with this run.ILanguage getLanguage()
ILanguage
associated with this run.int getNumber()
int getSiteNumber()
long getSubmissionTime()
String[] getSourceCodeFileNames()
IRun
by the submitting team. The number of elements in the returned array corresponds to
the number of different source code files submitted by the Team; the first element of the array (element [0])
gives the name of the file which the Team submitted as the "main" program file.
IRun
.byte[][] getSourceCodeFileContents()
IRun
.
Returns an array of arrays of bytes containing the contents of the submitted source code files.
The first element of the array contains the
bytes from the first source code file submitted, which is always the "main program" file; subsequent
elements of the array contain the bytes from each additional source code file submitted by the Team.
IRun
.boolean equals(Object obj)
Determination of whether two Runs are equal is based on whether they refer to the
same run as submitted by a Team.
Note in particular that subsequent changes to a Run
made by the Contest Administrator (for example,
changes to the time the run was received, the language or problem specified in the run,
or whether the run solved the problem or not) do not affect the result of the
equals()
method; if this Run refers to the same Run as the one indicated by the
specified parameter, this method will return true regardless of whether the internal contents of the two
Run objects is identical or not.
equals
in class Object
obj
- the Run which is to be compared with this Run for equality.
int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |