org.openflow.protocol.queue
Class OFQueueProperty

java.lang.Object
  extended by org.openflow.protocol.queue.OFQueueProperty
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
OFQueuePropertyMaxRate, OFQueuePropertyMinRate

public class OFQueueProperty
extends java.lang.Object
implements java.lang.Cloneable

Corresponds to the struct ofp_queue_prop_header OpenFlow structure

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

Field Summary
protected  short length
           
static int MINIMUM_LENGTH
           
protected  OFQueuePropertyType type
           
 
Constructor Summary
OFQueueProperty()
           
 
Method Summary
protected  OFQueueProperty clone()
           
 boolean equals(java.lang.Object obj)
           
 short getLength()
           
 int getLengthU()
          Returns the unsigned length
 OFQueuePropertyType getType()
           
 int hashCode()
           
 void readFrom(java.nio.ByteBuffer data)
           
 void setLength(short length)
           
 OFQueueProperty setType(OFQueuePropertyType type)
           
 void writeTo(java.nio.ByteBuffer data)
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MINIMUM_LENGTH

public static int MINIMUM_LENGTH

type

protected OFQueuePropertyType type

length

protected short length
Constructor Detail

OFQueueProperty

public OFQueueProperty()
Method Detail

getType

public OFQueuePropertyType getType()
Returns:
the type

setType

public OFQueueProperty setType(OFQueuePropertyType type)
Parameters:
type - the type to set

getLength

public short getLength()
Returns:
the length

getLengthU

public int getLengthU()
Returns the unsigned length

Returns:
the length

setLength

public void setLength(short length)
Parameters:
length - the length to set

readFrom

public void readFrom(java.nio.ByteBuffer data)

writeTo

public void writeTo(java.nio.ByteBuffer data)

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

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

clone

protected OFQueueProperty clone()
Overrides:
clone in class java.lang.Object