edu.stanford.hci.r3.pen.batch
Class BatchServer

java.lang.Object
  extended by edu.stanford.hci.r3.pen.batch.BatchServer

public class BatchServer
extends java.lang.Object

Wait at a socket (say: 9999) and receive the location of xml files that contain data from a pen synch action (the user drops the pen into the dock). Then, process them and call any event handlers you have registered at runtime. Additionally, translate the batched data into streaming coordinates, and pass these events as if they happened in real time over to the event engine.

This software is distributed under the BSD License.


Field Summary
static int DEFAULT_PLAINTEXT_PORT
          Will listen on this port for text commands.
static java.lang.String EXIT_COMMAND
          Tells the server that a client wishes to exit.
 
Constructor Summary
BatchServer(EventEngine theEventEngine)
           
 
Method Summary
 void registerBatchEventHandlers(java.util.List<BatchedEventHandler> batchEventHandlers)
           
 void stopDaemon()
          Tell the server to stop sending actions.
 void unregisterBatchEventHandlers(java.util.List<BatchedEventHandler> batchEventHandlers)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_PLAINTEXT_PORT

public static final int DEFAULT_PLAINTEXT_PORT
Will listen on this port for text commands.

See Also:
Constant Field Values

EXIT_COMMAND

public static final java.lang.String EXIT_COMMAND
Tells the server that a client wishes to exit. Closes the client's handler.

See Also:
Constant Field Values
Constructor Detail

BatchServer

public BatchServer(EventEngine theEventEngine)
Parameters:
eventEngine -
Method Detail

registerBatchEventHandlers

public void registerBatchEventHandlers(java.util.List<BatchedEventHandler> batchEventHandlers)
Parameters:
batchEventHandlers -

stopDaemon

public void stopDaemon()
Tell the server to stop sending actions.


unregisterBatchEventHandlers

public void unregisterBatchEventHandlers(java.util.List<BatchedEventHandler> batchEventHandlers)
Parameters:
batchEventHandlers -

Copyright 2006 Stanford University