Class TrawlerCommandsParser
java.lang.Object
CommandsParser
TrawlerCommandsParser
- public class TrawlerCommandsParser
- extends CommandsParser
Parser for the Trawler
Trawler is only interested in topology commands
Method Summary |
protected void |
createNewEdge(int nodeA,
int nodeB,
EdgeOptions options)
|
protected void |
exit(java.lang.String[] cmd)
Call manager.stop() if the command is exit. |
protected boolean |
failEdge(int nodeA,
int nodeB)
|
protected void |
failNode(int node)
|
protected void |
parseNodeCmd(java.lang.String[] cmd)
|
protected boolean |
restartEdge(int nodeA,
int nodeB)
|
protected void |
restartNode(int node)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TrawlerCommandsParser
public TrawlerCommandsParser()
- Create a new parser
createNewEdge
protected void createNewEdge(int nodeA,
int nodeB,
EdgeOptions options)
- Overrides:
createNewEdge
in class CommandsParser
failEdge
protected boolean failEdge(int nodeA,
int nodeB)
- Overrides:
failEdge
in class CommandsParser
failNode
protected void failNode(int node)
- Overrides:
failNode
in class CommandsParser
restartEdge
protected boolean restartEdge(int nodeA,
int nodeB)
- Overrides:
restartEdge
in class CommandsParser
restartNode
protected void restartNode(int node)
- Overrides:
restartNode
in class CommandsParser
parseNodeCmd
protected void parseNodeCmd(java.lang.String[] cmd)
- Specified by:
parseNodeCmd
in class CommandsParser
exit
protected void exit(java.lang.String[] cmd)
- Description copied from class:
CommandsParser
- Call manager.stop() if the command is exit. Actually will accept exit followed by anything
Thus "exit" and "exit blahblah" will both cause fishnet to exit.
However "exitblahblah" will not.
- Specified by:
exit
in class CommandsParser