Package org.onosproject.net.optical.impl
Class DefaultOmsPort
- java.lang.Object
-
- org.onosproject.net.utils.ForwardingPort
-
- org.onosproject.net.optical.impl.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.
-
-
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 booleanequals(java.lang.Object obj)org.onlab.util.Frequencygrid()Returns the grid spacing frequency.inthashCode()org.onlab.util.FrequencymaxFrequency()Returns the maximum frequency.org.onlab.util.FrequencyminFrequency()Returns the minimum frequency.longportSpeed()java.lang.StringtoString()org.onosproject.net.Port.Typetype()org.onosproject.net.AnnotationsunhandledAnnotations()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.optical.OmsPort
totalChannels
-
-
-
-
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- PortminFrequency- minimum frequencymaxFrequency- maximum frequencygrid- grid spacing frequency
-
-
Method Detail
-
type
public org.onosproject.net.Port.Type type()
- Specified by:
typein interfaceorg.onosproject.net.Port- Overrides:
typein classorg.onosproject.net.utils.ForwardingPort
-
portSpeed
public long portSpeed()
- Specified by:
portSpeedin interfaceorg.onosproject.net.Port- Overrides:
portSpeedin classorg.onosproject.net.utils.ForwardingPort
-
unhandledAnnotations
public org.onosproject.net.Annotations unhandledAnnotations()
Description copied from interface:ProjectedPortReturns the key/value annotations, not used by projection.- Specified by:
unhandledAnnotationsin interfaceProjectedPort- Returns:
- key/value annotations
-
minFrequency
public org.onlab.util.Frequency minFrequency()
Description copied from interface:OmsPortReturns the minimum frequency.- Specified by:
minFrequencyin interfaceOmsPort- Returns:
- minimum frequency
-
maxFrequency
public org.onlab.util.Frequency maxFrequency()
Description copied from interface:OmsPortReturns the maximum frequency.- Specified by:
maxFrequencyin interfaceOmsPort- Returns:
- maximum frequency
-
grid
public org.onlab.util.Frequency grid()
Description copied from interface:OmsPortReturns the grid spacing frequency.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classorg.onosproject.net.utils.ForwardingPort
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classorg.onosproject.net.utils.ForwardingPort
-
toString
public java.lang.String toString()
- Overrides:
toStringin classorg.onosproject.net.utils.ForwardingPort
-
-