com.h3c.of.sw

## Class CommandProcessor

- java.lang.Object
- - com.h3c.of.sw.CommandProcessor

- All Implemented Interfaces:
    Runnable

      public class CommandProcessor
      extends Object
      implements Runnable

  Implements the execution of `ScenarioCommand`s during the activation of a `MockSwitchBank`.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `CommandProcessor(BankDefn defn, boolean showOutput)` Constructs a processor, ready to execute the scenario commands.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `execute(ScenarioCommand cmd)` Execute the specified command, in the context of the given definition.
    `void` | `run()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### CommandProcessor

          public CommandProcessor(BankDefn defn,
                          boolean showOutput)

      Constructs a processor, ready to execute the scenario commands.
      Parameters:
        `defn` - our associated bank definition
        `showOutput` - if true, output to STDOUT is permissible

  - ### Method Detail

    - #### run

          public void run()

      Specified by:
        `run` in interface `Runnable`

    - #### execute

          public void execute(ScenarioCommand cmd)

      Execute the specified command, in the context of the given definition.
      Parameters:
        `cmd` - the command to execute

Copyright © 2014. All Rights Reserved.