public class OVXFlowEntry extends Object implements Comparable<OVXFlowEntry>
Modifier and Type | Field and Description |
---|---|
static int |
DISJOINT |
static int |
EQUAL |
protected OVXFlowMod |
flowmod |
static int |
INTERSECT |
protected long |
newcookie |
static int |
SUBSET |
static int |
SUPERSET |
Constructor and Description |
---|
OVXFlowEntry() |
OVXFlowEntry(OVXFlowMod fm,
long cookie) |
Modifier and Type | Method and Description |
---|---|
int |
compare(OFMatch omatch,
boolean strict)
Compares this entry against another, and tries to determine if it is a
superset, subset, or equal to it.
|
int |
compareTo(OVXFlowEntry other) |
boolean |
equals(Object obj) |
boolean |
equals(OVXFlowMod other)
compare this FlowEntry to another FlowMod.
|
List<OFAction> |
getActionsList() |
long |
getCookie()
Gets the cookie associated with this flow entry.
|
OVXFlowMod |
getFlowMod() |
OFMatch |
getMatch() |
long |
getNewCookie() |
short |
getOutport() |
short |
getPriority() |
int |
hashCode() |
OVXFlowEntry |
setFlowMod(OVXFlowMod fm) |
OVXFlowEntry |
setNewCookie(Long cookie)
Sets the new cookie for this entry.
|
Map<String,Object> |
toMap() |
String |
toString() |
public static final int EQUAL
public static final int SUPERSET
public static final int SUBSET
public static final int INTERSECT
public static final int DISJOINT
protected OVXFlowMod flowmod
protected long newcookie
public OVXFlowEntry()
public OVXFlowEntry(OVXFlowMod fm, long cookie)
public int compare(OFMatch omatch, boolean strict)
For each field, we first check wildcard equality. If both are equal, they are either 1 or 0. If 0, we further check for field equality. If the fields are not equal, the flow entries are considered disjoint and we exit comparison.
If both wildcards are not equal, we check if one subsumes the other.
The result is tracked for each field in three ints - equality, superset, and subset. At the end, either 1) one of the ints are 0x3fffff, or 2) none are.
omatch
- The other FlowEntry to compare this one against.strict
- whether FlowMod from which the match came was strict or not.public OFMatch getMatch()
public short getOutport()
public short getPriority()
public OVXFlowMod getFlowMod()
public OVXFlowEntry setFlowMod(OVXFlowMod fm)
public long getNewCookie()
public OVXFlowEntry setNewCookie(Long cookie)
cookie
- the cookiepublic long getCookie()
public boolean equals(OVXFlowMod other)
other
- public int compareTo(OVXFlowEntry other)
compareTo
in interface Comparable<OVXFlowEntry>
Copyright © 2014. All rights reserved.