org.openflow.protocol.instruction
Class OFInstructionMeter

java.lang.Object
  extended by org.openflow.protocol.instruction.OFInstruction
      extended by org.openflow.protocol.instruction.OFInstructionMeter
All Implemented Interfaces:
java.lang.Cloneable

public class OFInstructionMeter
extends OFInstruction

Represents an ofp_instruction_goto_table

Author:
Srini Seetharaman (srini.seetharaman@gmail.com)

Field Summary
protected  int meterId
           
static int MINIMUM_LENGTH
           
 
Fields inherited from class org.openflow.protocol.instruction.OFInstruction
length, OFFSET_LENGTH, OFFSET_TYPE, type
 
Constructor Summary
OFInstructionMeter()
           
OFInstructionMeter(int meterId)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 int getMeterId()
           
 int hashCode()
           
 void readFrom(java.nio.ByteBuffer data)
           
 OFInstructionMeter setMeterId(int meterId)
           
 java.lang.String toString()
          Returns a summary of the message
 void writeTo(java.nio.ByteBuffer data)
           
 
Methods inherited from class org.openflow.protocol.instruction.OFInstruction
clone, fromString, getLength, getLengthU, getType, setLength, setType
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

MINIMUM_LENGTH

public static int MINIMUM_LENGTH

meterId

protected int meterId
Constructor Detail

OFInstructionMeter

public OFInstructionMeter()

OFInstructionMeter

public OFInstructionMeter(int meterId)
Method Detail

getMeterId

public int getMeterId()
Returns:
the meterId

setMeterId

public OFInstructionMeter setMeterId(int meterId)
Parameters:
meterId - the meterId to set

readFrom

public void readFrom(java.nio.ByteBuffer data)
Overrides:
readFrom in class OFInstruction

writeTo

public void writeTo(java.nio.ByteBuffer data)
Overrides:
writeTo in class OFInstruction

hashCode

public int hashCode()
Overrides:
hashCode in class OFInstruction

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class OFInstruction

toString

public java.lang.String toString()
Description copied from class: OFInstruction
Returns a summary of the message

Overrides:
toString in class OFInstruction
Returns:
"ofmsg=v=$version;t=$type:l=$len:xid=$xid"