|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IClarification
This interface describes the PC2 API view of a contest Clarification. A Clarification is a submitted question by a Team to the Judges.
This documentation describes the current draft of the PC2 API, which is subject to change.
Method Summary | |
---|---|
boolean |
equals(Object obj)
Check whether this Clarification is the same as some other Clarification. |
String |
getAnswer()
Return a string of the judge's answer for the team's question. |
int |
getNumber()
Get the clarification number. |
IProblem |
getProblem()
Get the problem for which this clarification was submitted. |
String |
getQuestion()
Return a string of the team's question for the judges. |
int |
getSiteNumber()
Get the site number associated with the clarification. |
long |
getSubmissionTime()
Get the number of minutes which had elapsed on the contest clock at the site where the clarification submission was received when the clarification was submitted. |
ITeam |
getTeam()
Get the team (client) that submitted this clarification. |
int |
hashCode()
Get the hashcode associated with this client. |
boolean |
isAnswered()
Return a boolean indicating whether or not the clarification been answered. |
boolean |
isDeleted()
Return a boolean indicating whether the clarification been marked as deleted by the Contest Administrator. |
Method Detail |
---|
boolean isAnswered()
String getQuestion()
String getAnswer()
boolean isDeleted()
ITeam getTeam()
ITeam
which submitted this clarification.IProblem getProblem()
IProblem
associated with this clarification.int getNumber()
int getSiteNumber()
long getSubmissionTime()
boolean equals(Object obj)
Determination of whether two Runs are equal is based on whether they refer to the same clarification as submitted by a Team. Note in particular that subsequent changes to a Clarification made
by the Contest Administrator (for example, changes to the time the clarification was received, the problem specified in the clarification, or whether the clarification solved the problem or
not) do not affect the result of the equals()
method; if this Clarification refers to the same Clarification as the one indicated by the specified parameter, this method
will return true regardless of whether the internal contents of the two Clarification objects is identical or not.
equals
in class Object
obj
- the Clarification which is to be compared with this Clarification for equality.
int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |