org.openflow.protocol.queue
Class OFQueueProperty
java.lang.Object
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)
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
MINIMUM_LENGTH
public static int MINIMUM_LENGTH
type
protected OFQueuePropertyType type
length
protected short length
OFQueueProperty
public OFQueueProperty()
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