soc.robot
Class SOCRobotPinger

java.lang.Object
  extended byjava.lang.Thread
      extended bysoc.robot.SOCRobotPinger
All Implemented Interfaces:
java.lang.Runnable

public class SOCRobotPinger
extends java.lang.Thread

Pings the robots so that they can have a sense of time

Author:
Robert S Thomas

Field Summary
(package private)  boolean alive
           
(package private)  CappedQueue messageQueue
           
(package private)  SOCGameTextMsg ping
           
(package private)  java.lang.String robotNickname
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
SOCRobotPinger(CappedQueue q, java.lang.String nickname)
          Create a robot pinger
 
Method Summary
 void run()
          DOCUMENT ME!
 void stopPinger()
          DOCUMENT ME!
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

messageQueue

CappedQueue messageQueue

ping

SOCGameTextMsg ping

alive

boolean alive

robotNickname

java.lang.String robotNickname
Constructor Detail

SOCRobotPinger

public SOCRobotPinger(CappedQueue q,
                      java.lang.String nickname)
Create a robot pinger

Parameters:
q - the robot brain's message queue
nickname - the robot's nickname, for debug thread naming
Method Detail

run

public void run()
DOCUMENT ME!


stopPinger

public void stopPinger()
DOCUMENT ME!