public class CommandProcessor extends Object implements Runnable
ScenarioCommand
s during the
activation of a MockSwitchBank
.Constructor and Description |
---|
CommandProcessor(BankDefn defn,
boolean showOutput)
Constructs a processor, ready to execute the scenario commands.
|
Modifier and Type | Method and Description |
---|---|
void |
execute(ScenarioCommand cmd)
Execute the specified command, in the context of the given definition.
|
void |
run() |
public CommandProcessor(BankDefn defn, boolean showOutput)
defn
- our associated bank definitionshowOutput
- if true, output to STDOUT is permissiblepublic void execute(ScenarioCommand cmd)
cmd
- the command to executeCopyright © 2015. All Rights Reserved.