com.h3c.sdn.tvue

## Interface TopologyPath

-     public interface TopologyPath

  Abstraction of a topology link.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `annotate(TopologyLink link, String label)` Annotates the link with the specified label.
    `String` | `annotation(TopologyLink link)` Retrieves the link annotation.
    `TopologyNode` | `dst()` Get the last node of the path.
    `List<TopologyLink>` | `links()` Returns the set of links that form the path.
    `TopologyNode` | `src()` Get the first node of the path.

- - ### Method Detail

    - #### src

          TopologyNode src()

      Get the first node of the path.
      Returns:
        source node

    - #### dst

          TopologyNode dst()

      Get the last node of the path.
      Returns:
        destination node

    - #### links

          List<TopologyLink> links()

      Returns the set of links that form the path.
      Returns:
        set of links between the same nodes

    - #### annotate

          void annotate(TopologyLink link,
                      String label)

      Annotates the link with the specified label.
      Parameters:
        `link` - link to be annotated
        `label` - annotation label

    - #### annotation

          String annotation(TopologyLink link)

      Retrieves the link annotation.
      Parameters:
        `link` - link to be queried
      Returns:
        link annotation; null if none

Copyright © 2014. All Rights Reserved.