|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object team.debug.TeamMain
public class TeamMain
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 |
---|
public TeamMain()
Method Detail |
---|
public void setStatusObserver(ITeamObserver o)
ITeam
setStatusObserver
in interface ITeam
o
- the observerpublic ITeam.TeamStatus getStatus()
ITeam
getStatus
in interface ITeam
public Student getTeam()
ITeam
getTeam
in interface ITeam
public void setSimulator(ISimulatorTeam t)
ITeam
setSimulator
in interface ITeam
t
- the team network layer implementation.public void start(Side prefSide)
ITeam
Precondition: simulator is connected to host.
start
in interface ITeam
prefSide
- my preferred sidepublic void stop()
ITeam
stop
in interface ITeam
void setStatus(ITeam.TeamStatus s)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |