Class ClockThread

java.lang.Object
java.lang.Thread
edu.uky.cs.nil.tt.ClockThread
All Implemented Interfaces:
Runnable

public class ClockThread extends Thread
The clock thread regularly calls the server's tick method.
Author:
Stephen G. Ware
  • Constructor Details

    • ClockThread

      public ClockThread(Server server)
      Constructs a clock thread for a given server.
      Parameters:
      server - the server for which this thread will call Server.tick()
  • Method Details

    • run

      public void run()
      Specified by:
      run in interface Runnable
      Overrides:
      run in class Thread