Class DefaultOmsPort

  • All Implemented Interfaces:
    org.onosproject.net.Annotated, OmsPort, ProjectedPort, org.onosproject.net.Port

    @Beta
    public class DefaultOmsPort
    extends org.onosproject.net.utils.ForwardingPort
    implements OmsPort
    Implementation of OMS port (Optical Multiplexing Section). Also referred to as a WDM port or W-port. See ITU G.709 "Interfaces for the Optical Transport Network (OTN)" Assumes we only support fixed grid for now.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.onosproject.net.Port

        org.onosproject.net.Port.Type
    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultOmsPort​(org.onosproject.net.Port delegate, org.onlab.util.Frequency minFrequency, org.onlab.util.Frequency maxFrequency, org.onlab.util.Frequency grid)
      Creates an OMS port.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      org.onlab.util.Frequency grid()
      Returns the grid spacing frequency.
      int hashCode()  
      org.onlab.util.Frequency maxFrequency()
      Returns the maximum frequency.
      org.onlab.util.Frequency minFrequency()
      Returns the minimum frequency.
      long portSpeed()  
      java.lang.String toString()  
      org.onosproject.net.Port.Type type()  
      org.onosproject.net.Annotations unhandledAnnotations()
      Returns the key/value annotations, not used by projection.
      • Methods inherited from class org.onosproject.net.utils.ForwardingPort

        annotations, element, isEnabled, number, toEqualsBuilder, toStringHelper
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.onosproject.net.Annotated

        annotations
      • Methods inherited from interface org.onosproject.net.Port

        element, isEnabled, number
    • Constructor Detail

      • DefaultOmsPort

        public DefaultOmsPort​(org.onosproject.net.Port delegate,
                              org.onlab.util.Frequency minFrequency,
                              org.onlab.util.Frequency maxFrequency,
                              org.onlab.util.Frequency grid)
        Creates an OMS port.
        Parameters:
        delegate - Port
        minFrequency - minimum frequency
        maxFrequency - maximum frequency
        grid - grid spacing frequency
    • Method Detail

      • type

        public org.onosproject.net.Port.Type type()
        Specified by:
        type in interface org.onosproject.net.Port
        Overrides:
        type in class org.onosproject.net.utils.ForwardingPort
      • portSpeed

        public long portSpeed()
        Specified by:
        portSpeed in interface org.onosproject.net.Port
        Overrides:
        portSpeed in class org.onosproject.net.utils.ForwardingPort
      • unhandledAnnotations

        public org.onosproject.net.Annotations unhandledAnnotations()
        Description copied from interface: ProjectedPort
        Returns the key/value annotations, not used by projection.
        Specified by:
        unhandledAnnotations in interface ProjectedPort
        Returns:
        key/value annotations
      • minFrequency

        public org.onlab.util.Frequency minFrequency()
        Description copied from interface: OmsPort
        Returns the minimum frequency.
        Specified by:
        minFrequency in interface OmsPort
        Returns:
        minimum frequency
      • maxFrequency

        public org.onlab.util.Frequency maxFrequency()
        Description copied from interface: OmsPort
        Returns the maximum frequency.
        Specified by:
        maxFrequency in interface OmsPort
        Returns:
        maximum frequency
      • grid

        public org.onlab.util.Frequency grid()
        Description copied from interface: OmsPort
        Returns the grid spacing frequency.
        Specified by:
        grid in interface OmsPort
        Returns:
        grid spacing frequency
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class org.onosproject.net.utils.ForwardingPort
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class org.onosproject.net.utils.ForwardingPort
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class org.onosproject.net.utils.ForwardingPort