team.debug
Class TeamMain

java.lang.Object
  extended by team.debug.TeamMain
All Implemented Interfaces:
ITeam

public class TeamMain
extends java.lang.Object
implements ITeam

Version:
$Revision: 385 $ $Date: 2008-03-11 10:10:33 -0230 (Tue, 11 Mar 2008) $

Nested Class Summary
 
Nested classes/interfaces inherited from interface team.ITeam
ITeam.TeamStatus
 
Constructor Summary
TeamMain()
           
 
Method Summary
 ITeam.TeamStatus getStatus()
          Get the current Team status.
 Student getTeam()
          Identify the creator of this team.
 void setSimulator(ISimulatorTeam t)
          Set the interface to the simulator.
(package private)  void setStatus(ITeam.TeamStatus s)
           
 void setStatusObserver(ITeamObserver o)
          Set an observer to be notified of changes in status.
 void start(Side prefSide)
          Start a game.
 void stop()
          Abandon the game.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TeamMain

public TeamMain()
Method Detail

setStatusObserver

public void setStatusObserver(ITeamObserver o)
Description copied from interface: ITeam
Set an observer to be notified of changes in status.

Specified by:
setStatusObserver in interface ITeam
Parameters:
o - the observer

getStatus

public ITeam.TeamStatus getStatus()
Description copied from interface: ITeam
Get the current Team status.

Specified by:
getStatus in interface ITeam
Returns:
status

getTeam

public Student getTeam()
Description copied from interface: ITeam
Identify the creator of this team.

Specified by:
getTeam in interface ITeam
Returns:
the creator's login name.

setSimulator

public void setSimulator(ISimulatorTeam t)
Description copied from interface: ITeam
Set the interface to the simulator.

Specified by:
setSimulator in interface ITeam
Parameters:
t - the team network layer implementation.

start

public void start(Side prefSide)
Description copied from interface: ITeam
Start a game.

Precondition: simulator is connected to host.

Specified by:
start in interface ITeam
Parameters:
prefSide - my preferred side

stop

public void stop()
Description copied from interface: ITeam
Abandon the game.

Specified by:
stop in interface ITeam

setStatus

void setStatus(ITeam.TeamStatus s)