public class FlowUtils extends Object
Constructor and Description |
---|
FlowUtils() |
Modifier and Type | Method and Description |
---|---|
static int |
flowKey(MBodyFlowStats f)
Computes and returns a unique key for a flow, based on
the table ID (ignored for 1.0), priority, and match fields.
|
static int |
flowKey(OfmFlowMod f)
Computes and returns a unique key for a flow, based on
the table ID (ignored for 1.0), priority, and match fields.
|
static boolean |
sameFlow(MBodyFlowStats flowA,
MBodyFlowStats flowB)
Returns true if the specified FlowStats structures represent
the same flow.
|
public static boolean sameFlow(MBodyFlowStats flowA, MBodyFlowStats flowB)
flowA
- the first flowflowB
- the second flowNullPointerException
- if either parameter is nullpublic static int flowKey(MBodyFlowStats f)
f
- the flowNullPointerException
- if f is nullpublic static int flowKey(OfmFlowMod f)
f
- the flowNullPointerException
- if f is nullCopyright © 2015. All Rights Reserved.