Class EmulationCommandsParser

java.lang.Object
  extended by CommandsParser
      extended by EmulationCommandsParser

public class EmulationCommandsParser
extends CommandsParser

   
 Parser for the Emulator
 Emulator is interested in all commands except topology commands
 


Constructor Summary
EmulationCommandsParser(Emulator emulator)
          Create a new parser
 
Method Summary
 long parseLine(java.lang.String line, long now)
          Process one line of topology file or keyboard input.
 
Methods inherited from class CommandsParser
parseFile, parseRemainder
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmulationCommandsParser

public EmulationCommandsParser(Emulator emulator)
Create a new parser

Parameters:
emulator - The emulator that should be used to get messages to nodes
Method Detail

parseLine

public long parseLine(java.lang.String line,
                      long now)
Process one line of topology file or keyboard input.

Overrides:
parseLine in class CommandsParser
Parameters:
line - A command line.
now - The current time in microseconds
Returns:
How long to defer further processing. Returns -1 if do not have to defer