Package org.onosproject.net.intent
Class OpticalOduIntent
- java.lang.Object
-
- org.onosproject.net.intent.Intent
-
- org.onosproject.net.intent.OpticalOduIntent
-
@Beta public final class OpticalOduIntent extends Intent
An optical layer intent between two OduClt ports - in an OTN Topology. No traffic selector or traffic treatment are needed.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOpticalOduIntent.BuilderBuilder for optical ODU intents.
-
Field Summary
-
Fields inherited from class org.onosproject.net.intent.Intent
DEFAULT_INTENT_PRIORITY, MAX_PRIORITY, MIN_PRIORITY
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedOpticalOduIntent()Constructor for serializer.protectedOpticalOduIntent(ApplicationId appId, Key key, ConnectPoint src, ConnectPoint dst, CltSignalType signalType, boolean isBidirectional, int priority, ResourceGroup resourceGroup)Creates an optical ODU intent between the specified connection points.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OpticalOduIntent.Builderbuilder()Returns a new optical ODU intent builder.ConnectPointgetDst()Returns the destination transponder port.CltSignalTypegetSignalType()Returns the CltSignalType signal type.ConnectPointgetSrc()Returns the source transponder port.booleanisBidirectional()Returns the directionality of the intent.StringtoString()-
Methods inherited from class org.onosproject.net.intent.Intent
appId, bindIdGenerator, equals, hashCode, id, isInstallable, key, priority, resourceGroup, resources, unbindIdGenerator
-
-
-
-
Constructor Detail
-
OpticalOduIntent
protected OpticalOduIntent(ApplicationId appId, Key key, ConnectPoint src, ConnectPoint dst, CltSignalType signalType, boolean isBidirectional, int priority, ResourceGroup resourceGroup)
Creates an optical ODU intent between the specified connection points.- Parameters:
appId- application identificationkey- intent keysrc- the source transponder portdst- the destination transponder portsignalType- CltSignalType signal typeisBidirectional- indicate if intent is bidirectionalpriority- priority to use for flows from this intentresourceGroup- resource group for this intent
-
OpticalOduIntent
protected OpticalOduIntent()
Constructor for serializer.
-
-
Method Detail
-
builder
public static OpticalOduIntent.Builder builder()
Returns a new optical ODU intent builder.- Returns:
- intent builder
-
getSrc
public ConnectPoint getSrc()
Returns the source transponder port.- Returns:
- source transponder port
-
getDst
public ConnectPoint getDst()
Returns the destination transponder port.- Returns:
- source transponder port
-
getSignalType
public CltSignalType getSignalType()
Returns the CltSignalType signal type.- Returns:
- CltSignalType signal type
-
isBidirectional
public boolean isBidirectional()
Returns the directionality of the intent.- Returns:
- true if bidirectional, false if unidirectional
-
-