team
Interface ITeam

All Known Implementing Classes:
TeamMain

public interface ITeam

Interface for team component.

A correct team implementation must implement this interface.


Nested Class Summary
static class ITeam.TeamStatus
          Team is always in one of these states.
 
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.
 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.
 

Method Detail

setStatusObserver

void setStatusObserver(ITeamObserver o)
Set an observer to be notified of changes in status.

Parameters:
o - the observer

getStatus

ITeam.TeamStatus getStatus()
Get the current Team status.

Returns:
status

getTeam

Student getTeam()
Identify the creator of this team.

Returns:
the creator's login name.

setSimulator

void setSimulator(ISimulatorTeam t)
Set the interface to the simulator.

Parameters:
t - the team network layer implementation.

start

void start(Side prefSide)
Start a game.

Precondition: simulator is connected to host.

Parameters:
prefSide - my preferred side

stop

void stop()
Abandon the game.