Class OpticalIntentUtility


  • public final class OpticalIntentUtility
    extends java.lang.Object
    Utility class for optical intents.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.onosproject.net.intent.Intent createExplicitOpticalIntent​(org.onosproject.net.ConnectPoint ingress, org.onosproject.net.ConnectPoint egress, org.onosproject.net.device.DeviceService deviceService, org.onosproject.net.intent.Key key, org.onosproject.core.ApplicationId appId, boolean bidirectional, org.onosproject.net.OchSignal signal, org.onosproject.net.Path path)
      Returns a new optical intent created from the method parameters, strict suggestedPath is specified.
      static org.onosproject.net.intent.Intent createOpticalIntent​(org.onosproject.net.ConnectPoint ingress, org.onosproject.net.ConnectPoint egress, org.onosproject.net.device.DeviceService deviceService, org.onosproject.net.intent.Key key, org.onosproject.core.ApplicationId appId, boolean bidirectional, org.onosproject.net.OchSignal signal)
      Returns a new optical intent created from the method parameters.
      • Methods inherited from class java.lang.Object

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

      • createOpticalIntent

        public static org.onosproject.net.intent.Intent createOpticalIntent​(org.onosproject.net.ConnectPoint ingress,
                                                                            org.onosproject.net.ConnectPoint egress,
                                                                            org.onosproject.net.device.DeviceService deviceService,
                                                                            org.onosproject.net.intent.Key key,
                                                                            org.onosproject.core.ApplicationId appId,
                                                                            boolean bidirectional,
                                                                            org.onosproject.net.OchSignal signal)
        Returns a new optical intent created from the method parameters.
        Parameters:
        ingress - ingress description (device/port)
        egress - egress description (device/port)
        deviceService - device service
        key - intent key
        appId - application id
        bidirectional - if this argument is true, the optical link created will be bidirectional, otherwise the link will be unidirectional.
        signal - optical signal
        Returns:
        created intent
      • createExplicitOpticalIntent

        public static org.onosproject.net.intent.Intent createExplicitOpticalIntent​(org.onosproject.net.ConnectPoint ingress,
                                                                                    org.onosproject.net.ConnectPoint egress,
                                                                                    org.onosproject.net.device.DeviceService deviceService,
                                                                                    org.onosproject.net.intent.Key key,
                                                                                    org.onosproject.core.ApplicationId appId,
                                                                                    boolean bidirectional,
                                                                                    org.onosproject.net.OchSignal signal,
                                                                                    org.onosproject.net.Path path)
        Returns a new optical intent created from the method parameters, strict suggestedPath is specified.
        Parameters:
        ingress - ingress description (device/port)
        egress - egress description (device/port)
        deviceService - device service
        key - intent key
        appId - application id
        bidirectional - if this argument is true, the optical link created will be bidirectional, otherwise the link will be unidirectional.
        signal - optical signal
        path - suggested path for the intent
        Returns:
        created intent