org.openflow.protocol
Class OFVendor

java.lang.Object
  extended by org.openflow.protocol.OFMessage
      extended by org.openflow.protocol.OFVendor
All Implemented Interfaces:
OFVendorDataFactoryAware

public class OFVendor
extends OFMessage
implements OFVendorDataFactoryAware

Represents ofp_vendor_header

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

Field Summary
static int MINIMUM_LENGTH
           
protected  int vendor
           
protected  OFVendorData vendorData
           
protected  OFVendorDataFactory vendorDataFactory
           
protected  int vendorType
           
 
Fields inherited from class org.openflow.protocol.OFMessage
length, OFP_VERSION, type, version, xid
 
Constructor Summary
OFVendor()
           
 
Method Summary
 void computeLength()
          This method is called during the writeTo method for serialization and is expected to set the length of the message.
 boolean equals(java.lang.Object obj)
           
 int getVendor()
           
 OFVendorData getVendorData()
           
 int getVendorType()
           
 int hashCode()
           
 void readFrom(java.nio.ByteBuffer data)
          Read this message off the wire from the specified ByteBuffer
 void setVendor(int vendor)
           
 void setVendorData(OFVendorData vendorData)
           
 void setVendorDataFactory(OFVendorDataFactory vendorDataFactory)
           
 void setVendorType(int vendorType)
           
 void writeTo(java.nio.ByteBuffer data)
          Write this message's binary format to the specified ByteBuffer
 
Methods inherited from class org.openflow.protocol.OFMessage
getLength, getLengthU, getType, getVersion, getXid, setLength, setLengthU, setType, setVersion, setXid, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

MINIMUM_LENGTH

public static int MINIMUM_LENGTH

vendor

protected int vendor

vendorType

protected int vendorType

vendorData

protected OFVendorData vendorData

vendorDataFactory

protected OFVendorDataFactory vendorDataFactory
Constructor Detail

OFVendor

public OFVendor()
Method Detail

getVendor

public int getVendor()
Returns:
the vendor

setVendor

public void setVendor(int vendor)
Parameters:
vendor - the vendor to set

getVendorType

public int getVendorType()
Returns:
the vendor type

setVendorType

public void setVendorType(int vendorType)
Parameters:
vendor - the vendor to set

getVendorData

public OFVendorData getVendorData()
Returns:
the data

setVendorData

public void setVendorData(OFVendorData vendorData)
Parameters:
data - the data to set

setVendorDataFactory

public void setVendorDataFactory(OFVendorDataFactory vendorDataFactory)
Specified by:
setVendorDataFactory in interface OFVendorDataFactoryAware

readFrom

public void readFrom(java.nio.ByteBuffer data)
Description copied from class: OFMessage
Read this message off the wire from the specified ByteBuffer

Overrides:
readFrom in class OFMessage

writeTo

public void writeTo(java.nio.ByteBuffer data)
Description copied from class: OFMessage
Write this message's binary format to the specified ByteBuffer

Overrides:
writeTo in class OFMessage

hashCode

public int hashCode()
Overrides:
hashCode in class OFMessage

equals

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

computeLength

public void computeLength()
Description copied from class: OFMessage
This method is called during the writeTo method for serialization and is expected to set the length of the message. If your class manually sets the length you should override this to do nothing.

Overrides:
computeLength in class OFMessage