org.openflow.protocol.queue
Class OFQueuePropertyMaxRate

java.lang.Object
  extended by org.openflow.protocol.queue.OFQueueProperty
      extended by org.openflow.protocol.queue.OFQueuePropertyMaxRate
All Implemented Interfaces:
java.lang.Cloneable

public class OFQueuePropertyMaxRate
extends OFQueueProperty

Corresponds to the struct struct ofp_queue_prop_min_rate OpenFlow structure

Author:
David Erickson (daviderickson@cs.stanford.edu)

Field Summary
static int MINIMUM_LENGTH
           
protected  short rate
           
 
Fields inherited from class org.openflow.protocol.queue.OFQueueProperty
length, type
 
Constructor Summary
OFQueuePropertyMaxRate()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 short getRate()
           
 int hashCode()
           
 void readFrom(java.nio.ByteBuffer data)
           
 OFQueuePropertyMaxRate setRate(short rate)
           
 java.lang.String toString()
           
 void writeTo(java.nio.ByteBuffer data)
           
 
Methods inherited from class org.openflow.protocol.queue.OFQueueProperty
clone, 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

rate

protected short rate
Constructor Detail

OFQueuePropertyMaxRate

public OFQueuePropertyMaxRate()
Method Detail

getRate

public short getRate()
Returns:
the rate

setRate

public OFQueuePropertyMaxRate setRate(short rate)
Parameters:
rate - the rate to set

readFrom

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

writeTo

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

hashCode

public int hashCode()
Overrides:
hashCode in class OFQueueProperty

equals

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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object