Package org.onosproject.net.optical.util
Class OpticalIntentUtility
- java.lang.Object
-
- org.onosproject.net.optical.util.OpticalIntentUtility
-
public final class OpticalIntentUtility extends java.lang.ObjectUtility class for optical intents.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.onosproject.net.intent.IntentcreateExplicitOpticalIntent(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.IntentcreateOpticalIntent(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.
-
-
-
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 servicekey- intent keyappId- application idbidirectional- 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 servicekey- intent keyappId- application idbidirectional- if this argument is true, the optical link created will be bidirectional, otherwise the link will be unidirectional.signal- optical signalpath- suggested path for the intent- Returns:
- created intent
-
-