org.openflow.protocol.action
Class OFActionSetField

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

public class OFActionSetField
extends OFAction

Represents an ofp_action_set_action

Author:
Srini Seetharaman (srini.seetharaman@gmail.com)

Field Summary
protected  OFOXMField field
           
static int MINIMUM_LENGTH
           
 
Fields inherited from class org.openflow.protocol.action.OFAction
length, OFFSET_LENGTH, OFFSET_TYPE, type
 
Constructor Summary
OFActionSetField()
           
OFActionSetField(OFOXMField field)
           
OFActionSetField(OFOXMFieldType type, java.lang.Object value)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 OFOXMField getField()
           
 int hashCode()
           
 void readFrom(java.nio.ByteBuffer data)
           
 OFActionSetField setField(OFOXMField field)
           
 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

field

protected OFOXMField field
Constructor Detail

OFActionSetField

public OFActionSetField()

OFActionSetField

public OFActionSetField(OFOXMFieldType type,
                        java.lang.Object value)

OFActionSetField

public OFActionSetField(OFOXMField field)
Method Detail

getField

public OFOXMField getField()
Returns:
the field info

setField

public OFActionSetField setField(OFOXMField field)
Parameters:
field - the field 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

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"