org.openflow.protocol.instruction
Class OFInstructionActions

java.lang.Object
  extended by org.openflow.protocol.instruction.OFInstruction
      extended by org.openflow.protocol.instruction.OFInstructionActions
All Implemented Interfaces:
java.lang.Cloneable, OFActionFactoryAware
Direct Known Subclasses:
OFInstructionApplyActions, OFInstructionClearActions, OFInstructionWriteActions

public abstract class OFInstructionActions
extends OFInstruction
implements OFActionFactoryAware

Represents an ofp_instruction_actions

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

Field Summary
protected  OFActionFactory actionFactory
           
protected  java.util.List<OFAction> actions
           
static int MINIMUM_LENGTH
           
 
Fields inherited from class org.openflow.protocol.instruction.OFInstruction
length, OFFSET_LENGTH, OFFSET_TYPE, type
 
Constructor Summary
OFInstructionActions()
           
 
Method Summary
 OFInstructionActions clone()
           
 boolean equals(java.lang.Object obj)
           
 java.util.List<OFAction> getActions()
          Returns read-only copies of the actions contained in this Flow Mod
 int hashCode()
           
 void readFrom(java.nio.ByteBuffer data)
           
 void setActionFactory(OFActionFactory actionFactory)
          Sets the OFActionFactory
 OFInstructionActions setActions(java.util.List<OFAction> actions)
          Sets the list of actions this Flow Mod contains
 java.lang.String toString()
          Returns a summary of the message
 void writeTo(java.nio.ByteBuffer data)
           
 
Methods inherited from class org.openflow.protocol.instruction.OFInstruction
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

actionFactory

protected OFActionFactory actionFactory

actions

protected java.util.List<OFAction> actions
Constructor Detail

OFInstructionActions

public OFInstructionActions()
Method Detail

getActions

public java.util.List<OFAction> getActions()
Returns read-only copies of the actions contained in this Flow Mod

Returns:
a list of ordered OFAction objects

setActions

public OFInstructionActions setActions(java.util.List<OFAction> actions)
Sets the list of actions this Flow Mod contains

Parameters:
actions - a list of ordered OFAction objects

readFrom

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

writeTo

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

setActionFactory

public void setActionFactory(OFActionFactory actionFactory)
Description copied from interface: OFActionFactoryAware
Sets the OFActionFactory

Specified by:
setActionFactory in interface OFActionFactoryAware

hashCode

public int hashCode()
Overrides:
hashCode in class OFInstruction

equals

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

toString

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

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

clone

public OFInstructionActions clone()
                           throws java.lang.CloneNotSupportedException
Overrides:
clone in class OFInstruction
Throws:
java.lang.CloneNotSupportedException