net.codescore.controllers
Class JudgeController

java.lang.Object
  extended by net.codescore.controllers.UIController
      extended by net.codescore.controllers.CompController
          extended by net.codescore.controllers.JudgeController
All Implemented Interfaces:
Runnable, Controller, ClariUpdateListener, SubUpdateListener

public class JudgeController
extends CompController
implements SubUpdateListener, ClariUpdateListener


Field Summary
private  Judge judge
           
private  Problem watchedProblem
           
 
Fields inherited from class net.codescore.controllers.UIController
log, SLEEP_TIME
 
Constructor Summary
JudgeController(JudgeHome jh, CompetitionManager cm)
           
 
Method Summary
 void answerQuestion(String answer, Clarification c)
           
 Judge getJudge()
           
 Problem getWatchedProblem()
           
 void gradeSub(Submission sub, ProblemStatus ps)
           
 void onClariAdd(Clarification c)
           
 void onClariUpdate(Clarification c)
           
 void onSubAdd(TeamSubmission s)
          Callback for a new submission
 void onSubUpdate(TeamSubmission s)
          Callback for an updated submission
 void processUpdates()
          Called by the UI controller thread when there are updates pending
 void reGradeProblem(Problem p)
           
 void setJudge(Judge judge)
           
 void setWatchedProblem(Problem watchedProblem)
           
 String toString()
           
 
Methods inherited from class net.codescore.controllers.CompController
getCompetition, getCompManager
 
Methods inherited from class net.codescore.controllers.UIController
run, setPendingUpdates, stopRunning, updateDesktop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

judge

private Judge judge

watchedProblem

private Problem watchedProblem
Constructor Detail

JudgeController

public JudgeController(JudgeHome jh,
                       CompetitionManager cm)
Method Detail

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.