net.codescore.controllers
Class TeamController
java.lang.Object
net.codescore.controllers.UIController
net.codescore.controllers.CompController
net.codescore.controllers.TeamController
- All Implemented Interfaces:
- Runnable, Controller, ProblemUpdateListener, SubUpdateListener
public class TeamController
- extends CompController
- implements ProblemUpdateListener, SubUpdateListener
Controller for the team home.
- Author:
- Adam Cornett
team
private Team team
tHome
private TeamHome tHome
TeamController
public TeamController(TeamHome th,
Team t,
CompetitionManager cm)
addClarification
public void addClarification(String question)
addPracticeSubmission
public void addPracticeSubmission(ObjectContext oc,
String source,
Language l,
Problem p)
addSubmission
public void addSubmission(ObjectContext oc,
String source,
Language l,
Problem p)
getTeam
public Team getTeam()
onProblemAdd
public void onProblemAdd(Problem p)
- Description copied from interface:
ProblemUpdateListener
- Callback used when a problem has been added.
- Specified by:
onProblemAdd in interface ProblemUpdateListener
- Parameters:
p - The problem that has been added.
onProblemUpdate
public void onProblemUpdate(Problem p)
- Description copied from interface:
ProblemUpdateListener
- Callback used when a problem has been updated.
- Specified by:
onProblemUpdate in interface ProblemUpdateListener
- Parameters:
p - The problem that was updated.
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
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
subAllowed
public boolean subAllowed()
toString
public String toString()
- Overrides:
toString in class UIController
Copyright 2008 © Adam Cornett, Andrew Conner All Rights Reserved.