public class IntentSelection extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
log |
| Constructor and Description |
|---|
IntentSelection(org.onosproject.net.intent.Intent intent)
Creates an intent selection group, for a single intent.
|
IntentSelection(org.onosproject.ui.topo.NodeSelection nodes,
TopoIntentFilter filter)
Creates an intent selection group, based on selected nodes.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
all()
Returns true if all intents in this select group are currently selected.
|
org.onosproject.net.intent.Intent |
current()
Returns the currently marked intent, or null if "all" intents
are marked.
|
int |
index()
Returns the index of the currently selected intent.
|
List<org.onosproject.net.intent.Intent> |
intents()
The list of intents in this selection group.
|
org.onosproject.net.intent.Intent |
next()
Marks and returns the next intent in this group.
|
boolean |
none()
Returns true if no intents are selected.
|
org.onosproject.net.intent.Intent |
prev()
Marks and returns the previous intent in this group.
|
boolean |
single()
Returns true if there is a single intent in this select group, or if
a specific intent has been marked (index != ALL).
|
int |
size()
Returns the number of intents in this selection group.
|
String |
toString() |
public IntentSelection(org.onosproject.ui.topo.NodeSelection nodes,
TopoIntentFilter filter)
nodes - node selectionfilter - intent filterpublic IntentSelection(org.onosproject.net.intent.Intent intent)
intent - the intentpublic boolean none()
public boolean all()
public boolean single()
public int size()
public int index()
public List<org.onosproject.net.intent.Intent> intents()
public org.onosproject.net.intent.Intent next()
public org.onosproject.net.intent.Intent prev()
public org.onosproject.net.intent.Intent current()