edu.cuny.cat.server
Class SynchronousClockController

java.lang.Object
  extended by edu.cuny.cat.server.ClockController
      extended by edu.cuny.cat.server.SynchronousClockController
All Implemented Interfaces:
AuctionEventListener
Direct Known Subclasses:
NoQuittingClockController

public class SynchronousClockController
extends ClockController

A clock controller that starts the game clock immediately when the game controller hands over the control and quits the simulation immediately after the game completes.

This is useful when experiments need to run without human intervention and with the server and all clients within a single local process.

Version:
$Revision: 1.4 $
Author:
Jinzhong Niu
See Also:
SilentConsole

Field Summary
 
Fields inherited from class edu.cuny.cat.server.ClockController
P_DEF_BASE
 
Constructor Summary
SynchronousClockController()
           
 
Method Summary
 void eventOccurred(AuctionEvent event)
           
protected  void startClock()
           
 
Methods inherited from class edu.cuny.cat.server.ClockController
pauseClock, quitGame, resumeClock, start, stop, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SynchronousClockController

public SynchronousClockController()
Method Detail

startClock

protected void startClock()
Overrides:
startClock in class ClockController

eventOccurred

public void eventOccurred(AuctionEvent event)
Specified by:
eventOccurred in interface AuctionEventListener
Overrides:
eventOccurred in class ClockController