net.codescore.controllers
Class JudgeController
java.lang.Object
net.codescore.controllers.UIController
net.codescore.controllers.CompController
net.codescore.controllers.JudgeController
- All Implemented Interfaces:
- Runnable, Controller, ClariUpdateListener, SubUpdateListener
public class JudgeController
- extends CompController
- implements SubUpdateListener, ClariUpdateListener
judge
private Judge judge
watchedProblem
private Problem watchedProblem
JudgeController
public JudgeController(JudgeHome jh,
CompetitionManager cm)
onClariAdd
public void onClariAdd(Clarification c)
- Specified by:
onClariAdd in interface ClariUpdateListener
onClariUpdate
public void onClariUpdate(Clarification c)
- Specified by:
onClariUpdate in interface ClariUpdateListener
onSubAdd
public void onSubAdd(TeamSubmission s)
- Description copied from interface:
SubUpdateListener
- Callback for a new submission
- Specified by:
onSubAdd in interface SubUpdateListener
- Parameters:
s - The new submission
onSubUpdate
public void onSubUpdate(TeamSubmission s)
- Description copied from interface:
SubUpdateListener
- Callback for an updated submission
- Specified by:
onSubUpdate in interface SubUpdateListener
- Parameters:
s - The updated submission
answerQuestion
public void answerQuestion(String answer,
Clarification c)
getJudge
public Judge getJudge()
getWatchedProblem
public Problem getWatchedProblem()
gradeSub
public void gradeSub(Submission sub,
ProblemStatus ps)
processUpdates
public void processUpdates()
- Description copied from interface:
Controller
- Called by the UI controller thread when there are updates pending
- Specified by:
processUpdates in interface Controller- Specified by:
processUpdates in class UIController
reGradeProblem
public void reGradeProblem(Problem p)
setJudge
public void setJudge(Judge judge)
setWatchedProblem
public void setWatchedProblem(Problem watchedProblem)
toString
public String toString()
- Overrides:
toString in class UIController
Copyright 2008 © Adam Cornett, Andrew Conner All Rights Reserved.