com.h3c.sdn.common

## Interface TopologyTree

- All Known Implementing Classes:
    BroadcastTree, BroadcastTreeSyncObj

      public interface TopologyTree

  Represents the destination rooted tree for a node in cluster.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `getCost(DataPathId dataPathId)` Provides cost associated a node in the tree.
    `HashMap<DataPathId,Integer>` | `getCosts()` Provides All nodes and associated cost in the tree.
    `HashMap<DataPathId,Link>` | `getLinks()` Provides All nodes and associated Links in the tree.
    `Link` | `getTreeLink(DataPathId node)` Adds a node and associated Link to the tree.

- - ### Method Detail

    - #### getCosts

          HashMap<DataPathId,Integer> getCosts()

      Provides All nodes and associated cost in the tree.
      Returns:
        HashMap of nodes and its cost

    - #### getLinks

          HashMap<DataPathId,Link> getLinks()

      Provides All nodes and associated Links in the tree.
      Returns:
        HashMap of nodes and its Link

    - #### getCost

          int getCost(DataPathId dataPathId)

      Provides cost associated a node in the tree.
      Parameters:
        `dataPathId` - Id of the device
      Returns:
        Cost

    - #### getTreeLink

          Link getTreeLink(DataPathId node)

      Adds a node and associated Link to the tree.
      Parameters:
        `node` - Id of the device to be added to tree
      Returns:
        link Link associated to the new node to be added

Copyright © 2014. All Rights Reserved.