Class OduCltPortHelper


  • @Beta
    public final class OduCltPortHelper
    extends java.lang.Object
    ODU client port related helpers.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.Optional<OduCltPort> asOduCltPort​(org.onosproject.net.Port port)  
      static org.onosproject.net.device.PortDescription oduCltPortDescription​(org.onosproject.net.device.PortDescription base, org.onosproject.net.CltSignalType signalType, org.onosproject.net.SparseAnnotations annotations)
      Creates ODU client port description based on the supplied information.
      static org.onosproject.net.device.PortDescription oduCltPortDescription​(org.onosproject.net.PortNumber number, boolean isEnabled, org.onosproject.net.CltSignalType signalType)
      Creates ODU client port description based on the supplied information.
      static org.onosproject.net.device.PortDescription oduCltPortDescription​(org.onosproject.net.PortNumber number, boolean isEnabled, org.onosproject.net.CltSignalType signalType, org.onosproject.net.SparseAnnotations annotations)
      Creates ODU client port description based on the supplied information.
      static org.onosproject.net.Annotations stripHandledAnnotations​(org.onosproject.net.Annotations input)
      Returns Annotations not used by the port type projection.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • oduCltPortDescription

        public static org.onosproject.net.device.PortDescription oduCltPortDescription​(org.onosproject.net.PortNumber number,
                                                                                       boolean isEnabled,
                                                                                       org.onosproject.net.CltSignalType signalType)
        Creates ODU client port description based on the supplied information.
        Parameters:
        number - port number
        isEnabled - port enabled state
        signalType - ODU client signal type
        Returns:
        port description
      • oduCltPortDescription

        public static org.onosproject.net.device.PortDescription oduCltPortDescription​(org.onosproject.net.PortNumber number,
                                                                                       boolean isEnabled,
                                                                                       org.onosproject.net.CltSignalType signalType,
                                                                                       org.onosproject.net.SparseAnnotations annotations)
        Creates ODU client port description based on the supplied information.
        Parameters:
        number - port number
        isEnabled - port enabled state
        signalType - ODU client signal type
        annotations - key/value annotations map
        Returns:
        port description
      • oduCltPortDescription

        public static org.onosproject.net.device.PortDescription oduCltPortDescription​(org.onosproject.net.device.PortDescription base,
                                                                                       org.onosproject.net.CltSignalType signalType,
                                                                                       org.onosproject.net.SparseAnnotations annotations)
        Creates ODU client port description based on the supplied information.
        Parameters:
        base - PortDescription to get basic information from
        signalType - ODU client signal type
        annotations - key/value annotations map
        Returns:
        port description
      • asOduCltPort

        public static java.util.Optional<OduCltPort> asOduCltPort​(org.onosproject.net.Port port)
      • stripHandledAnnotations

        public static org.onosproject.net.Annotations stripHandledAnnotations​(org.onosproject.net.Annotations input)
        Returns Annotations not used by the port type projection.
        Parameters:
        input - Annotations
        Returns:
        filtered view of given Annotations