public abstract class Action extends OpenflowStructure implements Comparable<Action>
parseErrorCause, version
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Action o)
Comparable implemented to sort actions according to their
decoded action type.
|
ActionType |
getActionType()
Returns the action type.
|
int |
getTotalLength()
Returns the total length of this action, in bytes.
|
String |
toDebugString()
Returns a string representation useful for debugging.
|
String |
toDebugString(int indent)
Returns a string representation useful for debugging.
|
String |
toString() |
getVersion, hex, hex, incomplete, parseErrorCause, validate
public String toString()
toString
in class OpenflowStructure
public String toDebugString(int indent)
toString()
, but
subclasses are free to override this behavior.indent
- the number of spaces with which to prefix each linepublic String toDebugString()
toString()
, but
subclasses are free to override this behavior.toDebugString
in interface Structure
toDebugString
in class OpenflowStructure
public ActionType getActionType()
public int compareTo(Action o)
compareTo
in interface Comparable<Action>
o
- the other actionpublic int getTotalLength()
Copyright © 2015. All Rights Reserved.