com.h3c.of.sw

## Class BankDefn.SwitchInfo

- java.lang.Object
- - com.h3c.of.sw.BankDefn.SwitchInfo

- Enclosing class:
    BankDefn

      public static class BankDefn.SwitchInfo
      extends Object

  Encapsulates a binding of switch variable name to definition filename.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `BankDefn.SwitchInfo(String var, String fname)` Constructs the binding.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `getFname()` Returns the switch definition file base name.
    `MockOpenflowSwitch` | `getSwitch()` Returns the mock switch instance.
    `String` | `getVar()` Returns the variable name.
    `String` | `toString()`

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

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

- - ### Constructor Detail

    - #### BankDefn.SwitchInfo

          public BankDefn.SwitchInfo(String var,
                             String fname)

      Constructs the binding.
      Parameters:
        `var` - the variable name
        `fname` - the base filename

  - ### Method Detail

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

    - #### getVar

          public String getVar()

      Returns the variable name.
      Returns:
        the variable name

    - #### getFname

          public String getFname()

      Returns the switch definition file base name.
      Returns:
        the file base name

    - #### getSwitch

          public MockOpenflowSwitch getSwitch()

      Returns the mock switch instance.
      Returns:
        the mock switch

Copyright © 2014. All Rights Reserved.