ProcessInformationAction.java

00001 package edu.stanford.hci.r3.actions.types;
00002 
00003 import edu.stanford.hci.r3.actions.R3Action;
00004 import edu.stanford.hci.r3.util.DebugUtils;
00005 
00018 public class ProcessInformationAction implements R3Action {
00019 
00023         private Object information;
00024 
00025         private String name;
00026 
00030         public ProcessInformationAction(String messageName, Object msgValue) {
00031                 name = messageName;
00032                 information = msgValue;
00033         }
00034 
00035         public Object getInformation() {
00036                 return information;
00037         }
00038 
00039         public String getName() {
00040                 return name;
00041 
00042         }
00043 
00047         public void invoke() {
00048                 DebugUtils.println("Got a message: " + name);
00049         }
00050 
00054         public String toString() {
00055                 return "Message: " + name;
00056         }
00057 }

Generated on Sat Apr 14 18:21:37 2007 for R3 Paper Toolkit by  doxygen 1.4.7