equip.city
Class CityProxy.TCPHandlerVee

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--equip.city.CityProxy.TCPHandlerAna
              |
              +--equip.city.CityProxy.TCPHandlerDub
                    |
                    +--equip.city.CityProxy.TCPHandlerVee
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
CityProxy

protected class CityProxy.TCPHandlerVee
extends CityProxy.TCPHandlerDub

handler for TCP connection to physical visitor client (vee)

receives position ($P), orientation ($C), location ($L), GPS ($G) and and user ($U) messages and sends optional visitor ($V) and refresh ($R) messages and EOM message ($S)

See Also:
City protocol

Inner classes inherited from class equip.city.CityProxy.TCPHandlerDub
CityProxy.TCPHandlerDub.VisitorCallback
 
Fields inherited from class equip.city.CityProxy.TCPHandlerDub
compass, degrees, handID, headID, lastX, lastY, lastZ, positionID, roffset, targetID, visitorListener, visitors, xoffset, yoffset
 
Fields inherited from class equip.city.CityProxy.TCPHandlerAna
config, connectTime, device, dirty, ec, equipDS, expnListener, in, lastLocn, name, out, socket
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Method Summary
protected  void handleGPS(java.lang.String s)
          handles GPS message from client, translating lat-long to relative-metres
protected  void handleLocation(java.lang.String s)
          handles location message from client
 void run()
          read and handle $C $U $P $L $G messages and reply to $U with $V $R $S
 
Methods inherited from class equip.city.CityProxy.TCPHandlerDub
handleCompass, handlePosition, sendVisitor, sendVisitors, update3D, updatePos
 
Methods inherited from class equip.city.CityProxy.TCPHandlerAna
elapsedTime, handleDevice, handleEquipDS, handleUser, sendRefresh, sendStop
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, 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
 

Method Detail

run

public void run()
read and handle $C $U $P $L $G messages and reply to $U with $V $R $S
Overrides:
run in class CityProxy.TCPHandlerDub

handleGPS

protected void handleGPS(java.lang.String s)
handles GPS message from client, translating lat-long to relative-metres

details:

Parameters:
s - position GPS ($G55,51.593,N,004,15.353,W; without marker)

handleLocation

protected void handleLocation(java.lang.String s)
handles location message from client
Parameters:
s - location ($Lxxxxxx; without marker, typically pinger ID)