org.openflow.protocol
Class OFPortMod

java.lang.Object
  extended by org.openflow.protocol.OFMessage
      extended by org.openflow.protocol.OFPortMod

public class OFPortMod
extends OFMessage

Represents an ofp_port_mod message

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

Field Summary
protected  int advertise
           
protected  int config
           
protected  byte[] hardwareAddress
           
protected  int mask
           
static int MINIMUM_LENGTH
           
protected  int portNumber
           
 
Fields inherited from class org.openflow.protocol.OFMessage
length, OFP_VERSION, type, version, xid
 
Constructor Summary
OFPortMod()
           
 
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 getAdvertise()
           
 int getConfig()
           
 byte[] getHardwareAddress()
           
 int getMask()
           
 int getPortNumber()
           
 int hashCode()
           
 void readFrom(java.nio.ByteBuffer data)
          Read this message off the wire from the specified ByteBuffer
 OFPortMod setAdvertise(int advertise)
           
 OFPortMod setConfig(int config)
           
 OFPortMod setHardwareAddress(byte[] hardwareAddress)
           
 OFPortMod setMask(int mask)
           
 OFPortMod setPortNumber(int portNumber)
           
 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

portNumber

protected int portNumber

hardwareAddress

protected byte[] hardwareAddress

config

protected int config

mask

protected int mask

advertise

protected int advertise
Constructor Detail

OFPortMod

public OFPortMod()
Method Detail

getPortNumber

public int getPortNumber()
Returns:
the portNumber

setPortNumber

public OFPortMod setPortNumber(int portNumber)
Parameters:
portNumber - the portNumber to set

getHardwareAddress

public byte[] getHardwareAddress()
Returns:
the hardwareAddress

setHardwareAddress

public OFPortMod setHardwareAddress(byte[] hardwareAddress)
Parameters:
hardwareAddress - the hardwareAddress to set

getConfig

public int getConfig()
Returns:
the config

setConfig

public OFPortMod setConfig(int config)
Parameters:
config - the config to set

getMask

public int getMask()
Returns:
the mask

setMask

public OFPortMod setMask(int mask)
Parameters:
mask - the mask to set

getAdvertise

public int getAdvertise()
Returns:
the advertise

setAdvertise

public OFPortMod setAdvertise(int advertise)
Parameters:
advertise - the advertise to set

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