org.openflow.protocol.instruction
Class OFInstructionActions
java.lang.Object
org.openflow.protocol.instruction.OFInstruction
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)
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
MINIMUM_LENGTH
public static int MINIMUM_LENGTH
actionFactory
protected OFActionFactory actionFactory
actions
protected java.util.List<OFAction> actions
OFInstructionActions
public OFInstructionActions()
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