|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
edu.cmu.sphinx.util.SocketCommandInterpreter
This class is a command interpreter. It reads strings from an input stream, parses them into commands and executes them, results are sent back on the output stream.
CommandInterpreter
Field Summary |
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
SocketCommandInterpreter(int port)
Creates a command interpreter at the given port. |
Method Summary | |
void |
add(java.lang.String name,
CommandInterface command)
Adds the given command to the command list. |
static void |
main(java.lang.String[] args)
manual tester for the command interpreter. |
void |
run()
|
void |
setStopAcceptConnections()
Stops this SocketCommandInterpreter from accepting connections. |
void |
setTrace(boolean trace)
Sets the trace mode of the command interpreter. |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, 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 |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SocketCommandInterpreter(int port)
port
- the port to create the command interpreterMethod Detail |
public void add(java.lang.String name, CommandInterface command)
name
- the name of the command.command
- the command to be executed.public final void run()
public void setStopAcceptConnections()
public void setTrace(boolean trace)
trace
- true if tracing.public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |