org.openflow.protocol.action
Class OFActionVendor

java.lang.Object
  extended by org.openflow.protocol.action.OFAction
      extended by org.openflow.protocol.action.OFActionVendor
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
OFActionBigSwitchVendor, OFActionNiciraVendor

public class OFActionVendor
extends OFAction

Author:
David Erickson (daviderickson@cs.stanford.edu), James Hongyi Zeng (hyzeng@stanford.edu)

Field Summary
protected  byte[] data
           
static int MINIMUM_LENGTH
           
protected  int vendor
           
 
Fields inherited from class org.openflow.protocol.action.OFAction
length, OFFSET_LENGTH, OFFSET_TYPE, type
 
Constructor Summary
OFActionVendor()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 byte[] getData()
           
 int getVendor()
           
 int hashCode()
           
 void readFrom(java.nio.ByteBuffer data)
           
 void setData(byte[] data)
           
 OFActionVendor setVendor(int vendor)
           
 void writeTo(java.nio.ByteBuffer data)
           
 
Methods inherited from class org.openflow.protocol.action.OFAction
clone, fromString, getLength, getLengthU, getType, setLength, setType, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

MINIMUM_LENGTH

public static int MINIMUM_LENGTH

vendor

protected int vendor

data

protected byte[] data
Constructor Detail

OFActionVendor

public OFActionVendor()
Method Detail

getVendor

public int getVendor()
Returns:
the vendor

setVendor

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

readFrom

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

writeTo

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

hashCode

public int hashCode()
Overrides:
hashCode in class OFAction

equals

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

getData

public byte[] getData()
Returns:
the data

setData

public void setData(byte[] data)
Parameters:
data - the data to set