Package org.onosproject.net.intent
Class OpticalPathIntent.Builder
- java.lang.Object
-
- org.onosproject.net.intent.Intent.Builder
-
- org.onosproject.net.intent.OpticalPathIntent.Builder
-
- Enclosing class:
- OpticalPathIntent
public static class OpticalPathIntent.Builder extends Intent.Builder
Builder for optical path intents.
-
-
Field Summary
-
Fields inherited from class org.onosproject.net.intent.Intent.Builder
appId, priority, resourceGroup, resources
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OpticalPathIntent.BuilderappId(ApplicationId appId)Sets the application id for the intent that will be built.OpticalPathIntent.Builderbidirectional(boolean isBidirectional)Sets the intent's direction.OpticalPathIntentbuild()Builds an optical path intent from the accumulated parameters.OpticalPathIntent.Builderdst(ConnectPoint dst)Sets the destination for the intent that will be built.OpticalPathIntent.Builderkey(Key key)Sets the key for the intent that will be built.OpticalPathIntent.Builderlambda(OchSignal lambda)Sets the optical channel (lambda) for the intent that will be built.OpticalPathIntent.Builderpath(Path path)Sets the path for the intent that will be built.OpticalPathIntent.Builderpriority(int priority)Sets the priority for the intent that will be built.OpticalPathIntent.BuilderresourceGroup(ResourceGroup resourceGroup)Sets the resource group for this intent.OpticalPathIntent.BuildersignalType(OchSignalType signalType)Sets the optical signal type for the intent that will be built.OpticalPathIntent.Buildersrc(ConnectPoint src)Sets the source for the intent that will be built.-
Methods inherited from class org.onosproject.net.intent.Intent.Builder
resources
-
-
-
-
Method Detail
-
appId
public OpticalPathIntent.Builder appId(ApplicationId appId)
Description copied from class:Intent.BuilderSets the application id for the intent that will be built.- Overrides:
appIdin classIntent.Builder- Parameters:
appId- application id to use for built intent- Returns:
- this builder
-
key
public OpticalPathIntent.Builder key(Key key)
Description copied from class:Intent.BuilderSets the key for the intent that will be built.- Overrides:
keyin classIntent.Builder- Parameters:
key- key to use for built intent- Returns:
- this builder
-
priority
public OpticalPathIntent.Builder priority(int priority)
Description copied from class:Intent.BuilderSets the priority for the intent that will be built.- Overrides:
priorityin classIntent.Builder- Parameters:
priority- priority to use for built intent- Returns:
- this builder
-
resourceGroup
public OpticalPathIntent.Builder resourceGroup(ResourceGroup resourceGroup)
Description copied from class:Intent.BuilderSets the resource group for this intent.- Overrides:
resourceGroupin classIntent.Builder- Parameters:
resourceGroup- the resource group- Returns:
- this builder
-
src
public OpticalPathIntent.Builder src(ConnectPoint src)
Sets the source for the intent that will be built.- Parameters:
src- source to use for built intent- Returns:
- this builder
-
dst
public OpticalPathIntent.Builder dst(ConnectPoint dst)
Sets the destination for the intent that will be built.- Parameters:
dst- dest to use for built intent- Returns:
- this builder
-
path
public OpticalPathIntent.Builder path(Path path)
Sets the path for the intent that will be built.- Parameters:
path- path to use for built intent- Returns:
- this builder
-
lambda
public OpticalPathIntent.Builder lambda(OchSignal lambda)
Sets the optical channel (lambda) for the intent that will be built.- Parameters:
lambda- the optical channel- Returns:
- this builder
-
signalType
public OpticalPathIntent.Builder signalType(OchSignalType signalType)
Sets the optical signal type for the intent that will be built.- Parameters:
signalType- the optical signal type- Returns:
- this builder
-
bidirectional
public OpticalPathIntent.Builder bidirectional(boolean isBidirectional)
Sets the intent's direction.- Parameters:
isBidirectional- indicates if intent is bidirectional- Returns:
- this builder
-
build
public OpticalPathIntent build()
Builds an optical path intent from the accumulated parameters.- Returns:
- optical path intent
-
-