|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openflow.protocol.instruction.OFInstruction
public class OFInstruction
The base class for all OpenFlow Instructions.
Field Summary | |
---|---|
protected short |
length
|
static int |
MINIMUM_LENGTH
|
static int |
OFFSET_LENGTH
|
static int |
OFFSET_TYPE
|
protected OFInstructionType |
type
|
Constructor Summary | |
---|---|
OFInstruction()
|
Method Summary | |
---|---|
OFInstruction |
clone()
|
boolean |
equals(java.lang.Object obj)
|
static OFInstruction |
fromString(java.lang.String val)
Given the output from toString(), create a new OFInstruction |
short |
getLength()
Get the length of this message |
int |
getLengthU()
Get the length of this message, unsigned |
OFInstructionType |
getType()
Get the type of this message |
int |
hashCode()
|
void |
readFrom(java.nio.ByteBuffer data)
|
OFInstruction |
setLength(short length)
Set the length of this message |
OFInstruction |
setType(OFInstructionType type)
Set the type of this message |
java.lang.String |
toString()
Returns a summary of the message |
void |
writeTo(java.nio.ByteBuffer data)
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static int MINIMUM_LENGTH
public static int OFFSET_LENGTH
public static int OFFSET_TYPE
protected OFInstructionType type
protected short length
Constructor Detail |
---|
public OFInstruction()
Method Detail |
---|
public short getLength()
public int getLengthU()
public OFInstruction setLength(short length)
length
- public OFInstructionType getType()
public OFInstruction setType(OFInstructionType type)
type
- public java.lang.String toString()
toString
in class java.lang.Object
public static OFInstruction fromString(java.lang.String val)
val
-
public void readFrom(java.nio.ByteBuffer data)
public void writeTo(java.nio.ByteBuffer data)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public OFInstruction clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |