Enum Link.Type

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      DIRECT
      Signifies that this is a direct single-segment link.
      EDGE
      Signifies that this link is an edge, i.e.
      INDIRECT
      Signifies that this link is potentially comprised from multiple underlying segments or hops, and as such should be used to tag links traversing optical paths, tunnels or intervening 'dark' switches.
      OPTICAL
      Signifies that this link is realized by fiber (either single channel or WDM).
      TUNNEL
      Signifies that this link represents a logical link backed by some form of a tunnel, e.g., GRE, MPLS, ODUk, OCH.
      VIRTUAL
      Signifies that this link is a virtual link or a pseudo-wire.
    • Enum Constant Detail

      • DIRECT

        public static final Link.Type DIRECT
        Signifies that this is a direct single-segment link.
      • INDIRECT

        public static final Link.Type INDIRECT
        Signifies that this link is potentially comprised from multiple underlying segments or hops, and as such should be used to tag links traversing optical paths, tunnels or intervening 'dark' switches.
      • EDGE

        public static final Link.Type EDGE
        Signifies that this link is an edge, i.e. host link.
      • TUNNEL

        public static final Link.Type TUNNEL
        Signifies that this link represents a logical link backed by some form of a tunnel, e.g., GRE, MPLS, ODUk, OCH.
      • OPTICAL

        public static final Link.Type OPTICAL
        Signifies that this link is realized by fiber (either single channel or WDM).
      • VIRTUAL

        public static final Link.Type VIRTUAL
        Signifies that this link is a virtual link or a pseudo-wire.
    • Method Detail

      • values

        public static Link.Type[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Link.Type c : Link.Type.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Link.Type valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null