|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<OFInstructionType>
org.openflow.protocol.instruction.OFInstructionType
public enum OFInstructionType
List of OpenFlow Instruction types and mappings to wire protocol value and derived classes
| Enum Constant Summary | |
|---|---|
APPLY_ACTIONS
|
|
CLEAR_ACTIONS
|
|
GOTO_TABLE
|
|
METER
|
|
WRITE_ACTIONS
|
|
WRITE_METADATA
|
|
| Field Summary | |
|---|---|
protected java.lang.Class<? extends OFInstruction> |
clazz
|
protected java.lang.reflect.Constructor<? extends OFInstruction> |
constructor
|
protected Instantiable<OFInstruction> |
instantiable
|
protected static java.util.Map<java.lang.Short,OFInstructionType> |
mapping
|
protected short |
type
|
| Method Summary | |
|---|---|
static void |
addMapping(short i,
OFInstructionType t)
Adds a mapping from type value to OFInstructionType enum |
java.lang.reflect.Constructor<? extends OFInstruction> |
getConstructor()
Returns the no-argument Constructor of the implementation class for this OFInstructionType |
Instantiable<OFInstruction> |
getInstantiable()
|
short |
getTypeValue()
|
OFInstruction |
newInstance()
Returns a new instance of the OFInstruction represented by this OFInstructionType |
void |
setInstantiable(Instantiable<OFInstruction> instantiable)
|
java.lang.Class<? extends OFInstruction> |
toClass()
|
static OFInstructionType |
valueOf(short i)
Given a wire protocol OpenFlow type number, return the OFInstructionType associated with it |
static OFInstructionType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static OFInstructionType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final OFInstructionType GOTO_TABLE
public static final OFInstructionType WRITE_METADATA
public static final OFInstructionType WRITE_ACTIONS
public static final OFInstructionType APPLY_ACTIONS
public static final OFInstructionType CLEAR_ACTIONS
public static final OFInstructionType METER
| Field Detail |
|---|
protected static java.util.Map<java.lang.Short,OFInstructionType> mapping
protected java.lang.Class<? extends OFInstruction> clazz
protected java.lang.reflect.Constructor<? extends OFInstruction> constructor
protected Instantiable<OFInstruction> instantiable
protected short type
| Method Detail |
|---|
public static OFInstructionType[] values()
for (OFInstructionType c : OFInstructionType.values()) System.out.println(c);
public static OFInstructionType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is null
public static void addMapping(short i,
OFInstructionType t)
i - OpenFlow wire protocol Instruction type valuet - typepublic static OFInstructionType valueOf(short i)
i - wire protocol number
public short getTypeValue()
public java.lang.Class<? extends OFInstruction> toClass()
public java.lang.reflect.Constructor<? extends OFInstruction> getConstructor()
public OFInstruction newInstance()
public Instantiable<OFInstruction> getInstantiable()
public void setInstantiable(Instantiable<OFInstruction> instantiable)
instantiable - the instantiable to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||