org.openflow.protocol.action
Class OFActionOutput

java.lang.Object
  extended by org.openflow.protocol.action.OFAction
      extended by org.openflow.protocol.action.OFActionOutput
All Implemented Interfaces:
java.lang.Cloneable

public class OFActionOutput
extends OFAction
implements java.lang.Cloneable

Author:
David Erickson (daviderickson@cs.stanford.edu), Rob Sherwood (rob.sherwood@stanford.edu), Srini Seetharaman (srini.seetharaman@gmail.com)

Field Summary
protected  short maxLength
           
static int MINIMUM_LENGTH
           
protected static short OFPCML_MAX
           
protected static short OFPCML_NO_BUFFER
           
protected static short OFPCML_ZERO
           
protected  int portNumber
           
 
Fields inherited from class org.openflow.protocol.action.OFAction
length, OFFSET_LENGTH, OFFSET_TYPE, type
 
Constructor Summary
OFActionOutput()
           
OFActionOutput(int portNumber)
           
OFActionOutput(int portNumber, short maxLength)
           
OFActionOutput(OFPhysicalPort port)
           
OFActionOutput(OFPhysicalPort port, short maxLength)
           
OFActionOutput(OFPort port)
           
OFActionOutput(OFPort port, short maxLength)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 short getMaxLength()
          Get the max length to send to the controller
 int getPort()
          Get the output portNumber
 int hashCode()
           
 void readFrom(java.nio.ByteBuffer data)
           
 OFActionOutput setMaxLength(short maxLength)
          Set the max length to send to the controller
 OFActionOutput setPort(int portNumber)
          Set the output portNumber
 OFActionOutput setPort(OFPort ofPort)
          Set the output portNumber
 java.lang.String toString()
          Returns a summary of the message
 void writeTo(java.nio.ByteBuffer data)
           
 
Methods inherited from class org.openflow.protocol.action.OFAction
clone, fromString, getLength, getLengthU, getType, setLength, setType
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

MINIMUM_LENGTH

public static int MINIMUM_LENGTH

OFPCML_ZERO

protected static short OFPCML_ZERO

OFPCML_MAX

protected static short OFPCML_MAX

OFPCML_NO_BUFFER

protected static short OFPCML_NO_BUFFER

portNumber

protected int portNumber

maxLength

protected short maxLength
Constructor Detail

OFActionOutput

public OFActionOutput()

OFActionOutput

public OFActionOutput(int portNumber)

OFActionOutput

public OFActionOutput(int portNumber,
                      short maxLength)

OFActionOutput

public OFActionOutput(OFPort port)

OFActionOutput

public OFActionOutput(OFPort port,
                      short maxLength)

OFActionOutput

public OFActionOutput(OFPhysicalPort port)

OFActionOutput

public OFActionOutput(OFPhysicalPort port,
                      short maxLength)
Method Detail

getPort

public int getPort()
Get the output portNumber

Returns:

setPort

public OFActionOutput setPort(int portNumber)
Set the output portNumber

Parameters:
portNumber -

setPort

public OFActionOutput setPort(OFPort ofPort)
Set the output portNumber

Parameters:
OFPort - type

getMaxLength

public short getMaxLength()
Get the max length to send to the controller

Returns:

setMaxLength

public OFActionOutput setMaxLength(short maxLength)
Set the max length to send to the controller

Parameters:
maxLength -

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

toString

public java.lang.String toString()
Description copied from class: OFAction
Returns a summary of the message

Overrides:
toString in class OFAction
Returns:
"ofmsg=v=$version;t=$type:l=$len:xid=$xid"