|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectCommandsParser
EmulationCommandsParser
Parser for the Emulator Emulator is interested in all commands except topology commands
| Constructor Summary | |
EmulationCommandsParser(Emulator emulator)
Create a new parser |
|
| Method Summary | |
protected void |
exit(java.lang.String[] cmd)
Call manager.stop() if the command is exit. |
long |
parseLine(java.lang.String line,
long now)
Process one line of topology file or keyboard input. |
protected void |
parseNodeCmd(java.lang.String[] cmd)
|
| Methods inherited from class CommandsParser |
createNewEdge, failEdge, failNode, parseCommonCmds, parseFile, parseRemainder, printStrArray, printStrArray, restartEdge, restartNode, skipLine |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public EmulationCommandsParser(Emulator emulator)
emulator - The emulator that should be used to get messages to nodes| Method Detail |
public long parseLine(java.lang.String line,
long now)
parseLine in class CommandsParserline - A command line.now - The current time in microseconds
protected void parseNodeCmd(java.lang.String[] cmd)
parseNodeCmd in class CommandsParserprotected void exit(java.lang.String[] cmd)
CommandsParser
exit in class CommandsParser
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||