Package org.onosproject.net.intent
Class OpticalCircuitIntent
- java.lang.Object
- 
- org.onosproject.net.intent.Intent
- 
- org.onosproject.net.intent.OpticalCircuitIntent
 
 
- 
 @Beta public class OpticalCircuitIntent extends Intent An optical layer intent for circuits between two OduClt ports. No traffic selector or traffic treatment are needed.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classOpticalCircuitIntent.BuilderBuilder for optical circuit intents.
 - 
Field Summary- 
Fields inherited from class org.onosproject.net.intent.IntentDEFAULT_INTENT_PRIORITY, MAX_PRIORITY, MIN_PRIORITY
 
- 
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedOpticalCircuitIntent()Constructor for serializer.protectedOpticalCircuitIntent(ApplicationId appId, Key key, ConnectPoint src, ConnectPoint dst, CltSignalType signalType, boolean isBidirectional, Optional<OchSignal> ochSignal, Optional<Path> suggestedPath, int priority, ResourceGroup resourceGroup)Creates an optical circuit intent between the specified connection points.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OpticalCircuitIntent.Builderbuilder()Returns a new optical circuit intent builder.ConnectPointgetDst()Returns the destination transponder port.CltSignalTypegetSignalType()Returns the ODU signal type.ConnectPointgetSrc()Returns the source transponder port.booleanisBidirectional()Returns the directionality of the intent.Optional<OchSignal>ochSignal()Returns the OCh signal of the intent.Optional<Path>suggestedPath()Returns the suggestedPath of the intent.StringtoString()- 
Methods inherited from class org.onosproject.net.intent.IntentappId, bindIdGenerator, equals, hashCode, id, isInstallable, key, priority, resourceGroup, resources, unbindIdGenerator
 
- 
 
- 
- 
- 
Constructor Detail- 
OpticalCircuitIntentprotected OpticalCircuitIntent(ApplicationId appId, Key key, ConnectPoint src, ConnectPoint dst, CltSignalType signalType, boolean isBidirectional, Optional<OchSignal> ochSignal, Optional<Path> suggestedPath, int priority, ResourceGroup resourceGroup) Creates an optical circuit intent between the specified connection points.- Parameters:
- appId- application identification
- key- intent key
- src- the source transponder port
- dst- the destination transponder port
- signalType- ODU signal type
- isBidirectional- indicate if intent is bidirectional
- ochSignal- optional suggested signal
- suggestedPath- optional suggested path
- priority- priority to use for flows from this intent
- resourceGroup- resource group for this intent
 
 - 
OpticalCircuitIntentprotected OpticalCircuitIntent() Constructor for serializer.
 
- 
 - 
Method Detail- 
builderpublic static OpticalCircuitIntent.Builder builder() Returns a new optical circuit intent builder.- Returns:
- host to host intent builder
 
 - 
getSrcpublic ConnectPoint getSrc() Returns the source transponder port.- Returns:
- source transponder port
 
 - 
getDstpublic ConnectPoint getDst() Returns the destination transponder port.- Returns:
- source transponder port
 
 - 
getSignalTypepublic CltSignalType getSignalType() Returns the ODU signal type.- Returns:
- ODU signal type
 
 - 
isBidirectionalpublic boolean isBidirectional() Returns the directionality of the intent.- Returns:
- true if bidirectional, false if unidirectional
 
 - 
ochSignalpublic Optional<OchSignal> ochSignal() Returns the OCh signal of the intent.- Returns:
- the lambda
 
 - 
suggestedPathpublic Optional<Path> suggestedPath() Returns the suggestedPath of the intent.- Returns:
- the suggestedPath
 
 
- 
 
-