edu.stanford.hci.r3.actions.remote
Class ActionHandler

java.lang.Object
  extended by edu.stanford.hci.r3.actions.remote.ActionHandler

public class ActionHandler
extends java.lang.Object

Deals with actions that have been unserialized by ActionReceiver. It provides a useful default, but you can override the functionality if you want to make more interesting things happen (e.g., batch actions until a certain time).

This software is distributed under the BSD License.


Constructor Summary
ActionHandler()
           
 
Method Summary
 void receivedAction(R3Action action)
          Invoke the action object that was received over the wire.
 void receivedActionText(java.lang.String line)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionHandler

public ActionHandler()
Method Detail

receivedAction

public void receivedAction(R3Action action)
Invoke the action object that was received over the wire.

Parameters:
action - sent from a remote machine (or possibly from the localhost)

receivedActionText

public void receivedActionText(java.lang.String line)
Parameters:
line - a line of text sent over the wire. We just print it out. This is useful for debugging the Action Sender/Receiver architecture.

Copyright 2006 Stanford University