com.h3c.sdn.common

## Interface Link

- All Known Implementing Classes:
    LinkDTO

      public interface Link

  Represents the connectivity between two connection points `ConnectionPoint`. It is effectively a Layer 2 Link in the network. Implementors could add an associated info `LinkInfo` which describes the link status and the time of discovery.

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Interface and Description
    --- | ---
    `static class` | `Link.Type` Represents the type of link.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `ConnectionPoint` | `dst()` Returns the destination `connection point` of the referred link.
    `LinkInfo` | `info()` Returns the optional `link information` associated with the link.
    `ConnectionPoint` | `src()` Returns the source `connection point` of the referred link.
    `void` | `updateLinkInfo(LinkInfo info)` Updates the `link information` of the link.

- - ### Method Detail

    - #### src

          ConnectionPoint src()

      Returns the source `connection point` of the referred link.
      Returns:
        source connection point

    - #### dst

          ConnectionPoint dst()

      Returns the destination `connection point` of the referred link.
      Returns:
        destination connection point

    - #### info

          LinkInfo info()

      Returns the optional `link information` associated with the link. It describes the link status and the time of discovery of the link
      Returns:
        link info associated with the referred link

    - #### updateLinkInfo

          void updateLinkInfo(LinkInfo info)

      Updates the `link information` of the link. It describes the link status and the time of discovery of the link
      Parameters:
        `info` - the information to be associated with the referred link

Copyright © 2014. All Rights Reserved.