| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.cuny.cat.server.ClockController
edu.cuny.cat.server.EventBasedClockController
public class EventBasedClockController
 A clock controller that controls the clock based upon
 RichEvents sent from an external source. It enables a
 human user to control the simulation through a graphical or command line
 interface.
 
GuiConsole, 
TelnetConsole| Field Summary | |
|---|---|
static java.lang.String | 
PAUSE
 | 
static java.lang.String | 
QUIT
 | 
static java.lang.String | 
RESUME
 | 
static java.lang.String | 
START
 | 
| Fields inherited from class edu.cuny.cat.server.ClockController | 
|---|
P_DEF_BASE | 
| Constructor Summary | |
|---|---|
EventBasedClockController()
 | 
|
| Method Summary | |
|---|---|
 void | 
eventOccurred(edu.cuny.event.RichEvent te)
 | 
 void | 
start()
starts the game clock, or asks an external source to decide when to start.  | 
 void | 
stop()
stops the game clock.  | 
| Methods inherited from class edu.cuny.cat.server.ClockController | 
|---|
eventOccurred, pauseClock, quitGame, resumeClock, startClock, toString | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
public static java.lang.String START
public static java.lang.String PAUSE
public static java.lang.String RESUME
public static java.lang.String QUIT
| Constructor Detail | 
|---|
public EventBasedClockController()
| Method Detail | 
|---|
public void start()
ClockController
start in class ClockControllerpublic void stop()
ClockController
stop in class ClockControllerpublic void eventOccurred(edu.cuny.event.RichEvent te)
eventOccurred in interface edu.cuny.event.RichEventListener
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||