Package org.onosproject.net.intent
Class FlowObjectiveIntent
- java.lang.Object
 - 
- org.onosproject.net.intent.Intent
 - 
- org.onosproject.net.intent.FlowObjectiveIntent
 
 
 
- 
public final class FlowObjectiveIntent extends Intent
Intent expressed as (and backed by) a collection of flow objectives through which the intent is to be accomplished. 
- 
- 
Nested Class Summary
- 
Nested classes/interfaces inherited from class org.onosproject.net.intent.Intent
Intent.Builder 
 - 
 
- 
Field Summary
- 
Fields inherited from class org.onosproject.net.intent.Intent
DEFAULT_INTENT_PRIORITY, MAX_PRIORITY, MIN_PRIORITY 
 - 
 
- 
Constructor Summary
Constructors Modifier Constructor Description protectedFlowObjectiveIntent()Constructor for serialization.FlowObjectiveIntent(ApplicationId appId, Key key, java.util.List<DeviceId> devices, java.util.List<Objective> objectives, java.util.Collection<NetworkResource> resources, ResourceGroup resourceGroup)Creates a flow objective intent with the specified objectives and resources. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<DeviceId>devices()Returns the list of devices for the flow objectives.booleanisInstallable()Indicates whether or not the intent is installable.java.util.List<Objective>objectives()Returns the collection of backing flow objectives.java.lang.StringtoString()- 
Methods inherited from class org.onosproject.net.intent.Intent
appId, bindIdGenerator, equals, hashCode, id, key, priority, resourceGroup, resources, unbindIdGenerator 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
FlowObjectiveIntent
protected FlowObjectiveIntent()
Constructor for serialization. 
- 
FlowObjectiveIntent
public FlowObjectiveIntent(ApplicationId appId, Key key, java.util.List<DeviceId> devices, java.util.List<Objective> objectives, java.util.Collection<NetworkResource> resources, ResourceGroup resourceGroup)
Creates a flow objective intent with the specified objectives and resources.- Parameters:
 appId- application idkey- intent keydevices- list of target devices; in same order as the objectivesobjectives- backing flow objectivesresources- backing network resourcesresourceGroup- resource goup for this intent
 
 - 
 
- 
Method Detail
- 
objectives
public java.util.List<Objective> objectives()
Returns the collection of backing flow objectives.- Returns:
 - flow objectives
 
 
- 
devices
public java.util.List<DeviceId> devices()
Returns the list of devices for the flow objectives.- Returns:
 - devices
 
 
- 
isInstallable
public boolean isInstallable()
Description copied from class:IntentIndicates whether or not the intent is installable.- Overrides:
 isInstallablein classIntent- Returns:
 - true if installable
 
 
- 
toString
public java.lang.String toString()
- Overrides:
 toStringin classjava.lang.Object
 
 - 
 
 -