Class OtuPortHelper
- java.lang.Object
-
- org.onosproject.net.optical.device.OtuPortHelper
-
@Beta public final class OtuPortHelper extends java.lang.ObjectOTU port related helpers.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.Optional<OtuPort>asOtuPort(org.onosproject.net.Port port)static org.onosproject.net.device.PortDescriptionotuPortDescription(org.onosproject.net.device.PortDescription base, org.onosproject.net.OtuSignalType signalType, org.onosproject.net.SparseAnnotations annotations)Creates OTU port description based on the supplied information.static org.onosproject.net.device.PortDescriptionotuPortDescription(org.onosproject.net.PortNumber number, boolean isEnabled, org.onosproject.net.OtuSignalType signalType)Creates OTU port description based on the supplied information.static org.onosproject.net.device.PortDescriptionotuPortDescription(org.onosproject.net.PortNumber number, boolean isEnabled, org.onosproject.net.OtuSignalType signalType, org.onosproject.net.SparseAnnotations annotations)Creates OTU port description based on the supplied information.static org.onosproject.net.AnnotationsstripHandledAnnotations(org.onosproject.net.Annotations input)ReturnsAnnotationsnot used by the port type projection.
-
-
-
Method Detail
-
otuPortDescription
public static org.onosproject.net.device.PortDescription otuPortDescription(org.onosproject.net.PortNumber number, boolean isEnabled, org.onosproject.net.OtuSignalType signalType)Creates OTU port description based on the supplied information.- Parameters:
number- port numberisEnabled- port enabled statesignalType- OTU client signal type- Returns:
- port description
-
otuPortDescription
public static org.onosproject.net.device.PortDescription otuPortDescription(org.onosproject.net.PortNumber number, boolean isEnabled, org.onosproject.net.OtuSignalType signalType, org.onosproject.net.SparseAnnotations annotations)Creates OTU port description based on the supplied information.- Parameters:
number- port numberisEnabled- port enabled statesignalType- OTU client signal typeannotations- key/value annotations map- Returns:
- port description
-
otuPortDescription
public static org.onosproject.net.device.PortDescription otuPortDescription(org.onosproject.net.device.PortDescription base, org.onosproject.net.OtuSignalType signalType, org.onosproject.net.SparseAnnotations annotations)Creates OTU port description based on the supplied information.- Parameters:
base- PortDescription to get basic information fromsignalType- OTU client signal typeannotations- key/value annotations map- Returns:
- port description
-
asOtuPort
public static java.util.Optional<OtuPort> asOtuPort(org.onosproject.net.Port port)
-
stripHandledAnnotations
public static org.onosproject.net.Annotations stripHandledAnnotations(org.onosproject.net.Annotations input)
ReturnsAnnotationsnot used by the port type projection.- Parameters:
input-Annotations- Returns:
- filtered view of given
Annotations
-
-