ix.ileed
Class MessageInterpreter
java.lang.Object
|
+--ix.ileed.MessageInterpreter
- public class MessageInterpreter
- extends java.lang.Object
Interprets messages sent during the operation of the CoAX process.
Method Summary |
(package private) void |
()
|
void |
addCase(java.lang.String message,
java.lang.String action,
Symbol status)
|
protected void |
handleMessageCase(java.lang.String message,
MessageInterpreter.Case c)
|
void |
interpret(java.lang.String message)
Determines what, if anything, a message means in terms understood
by a WatcherListener (typically a process model / stepper), by
calling the appropriate WatcherListener method(s). |
void |
reset()
|
void |
setListener(WatcherListener listener)
Change the WatcherListener that the interpreter tells of status changes. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
listener
public WatcherListener listener
creationDate
protected java.util.Date creationDate
statusTable
protected java.util.Hashtable statusTable
interpretations
public MultiHashtable interpretations
K_COMPLETE
public static final Symbol K_COMPLETE
K_EXECUTING
public static final Symbol K_EXECUTING
MessageInterpreter
public MessageInterpreter(WatcherListener listener)
- Create a MessageInterpreter connected to a WatcherListener.
setListener
public void setListener(WatcherListener listener)
- Change the WatcherListener that the interpreter tells of status changes.
reset
public void reset()
interpret
public void interpret(java.lang.String message)
- Determines what, if anything, a message means in terms understood
by a WatcherListener (typically a process model / stepper), by
calling the appropriate WatcherListener method(s).
handleMessageCase
protected void handleMessageCase(java.lang.String message,
MessageInterpreter.Case c)
addCase
public void addCase(java.lang.String message,
java.lang.String action,
Symbol status)
void ()
- Overrides:
in class java.lang.Object