Class OpticalIntentUtility


  • public final class OpticalIntentUtility
    extends 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 suggestedPath)
      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, org.onosproject.net.Path suggestedPath)
      Returns a new optical intent created from the method parameters.
    • 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,
                                                                            org.onosproject.net.Path suggestedPath)
        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
        suggestedPath - suggested path
        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 suggestedPath)
        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
        suggestedPath - suggested path for the intent
        Returns:
        created intent