public enum OFActionType extends Enum<OFActionType>
Enum Constant and Description |
---|
OPAQUE_ENQUEUE |
OUTPUT |
SET_DL_DST |
SET_DL_SRC |
SET_NW_DST |
SET_NW_SRC |
SET_NW_TOS |
SET_TP_DST |
SET_TP_SRC |
SET_VLAN_ID |
SET_VLAN_PCP |
STRIP_VLAN |
VENDOR |
Modifier and Type | Field and Description |
---|---|
protected Class<? extends OFAction> |
clazz |
protected Constructor<? extends OFAction> |
constructor |
protected Instantiable<OFAction> |
instantiable |
protected static OFActionType[] |
mapping |
protected int |
minLen |
protected short |
type |
Modifier and Type | Method and Description |
---|---|
static void |
addMapping(short i,
OFActionType t)
Adds a mapping from type value to OFActionType enum
|
Constructor<? extends OFAction> |
getConstructor()
Returns the no-argument Constructor of the implementation class for this
OFActionType
|
Instantiable<OFAction> |
getInstantiable() |
short |
getTypeValue() |
OFAction |
newInstance()
Returns a new instance of the OFAction represented by this OFActionType
|
void |
setInstantiable(Instantiable<OFAction> instantiable) |
Class<? extends OFAction> |
toClass() |
static OFActionType |
valueOf(short i)
Given a wire protocol OpenFlow type number, return the OFType associated
with it
|
static OFActionType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OFActionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OFActionType OUTPUT
public static final OFActionType SET_VLAN_ID
public static final OFActionType SET_VLAN_PCP
public static final OFActionType STRIP_VLAN
public static final OFActionType SET_DL_SRC
public static final OFActionType SET_DL_DST
public static final OFActionType SET_NW_SRC
public static final OFActionType SET_NW_DST
public static final OFActionType SET_NW_TOS
public static final OFActionType SET_TP_SRC
public static final OFActionType SET_TP_DST
public static final OFActionType OPAQUE_ENQUEUE
public static final OFActionType VENDOR
protected static OFActionType[] mapping
protected Constructor<? extends OFAction> constructor
protected Instantiable<OFAction> instantiable
protected int minLen
protected short type
public static OFActionType[] values()
for (OFActionType c : OFActionType.values()) System.out.println(c);
public static OFActionType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic static void addMapping(short i, OFActionType t)
i
- OpenFlow wire protocol Action type valuet
- typepublic static OFActionType valueOf(short i)
i
- wire protocol numberpublic short getTypeValue()
public Class<? extends OFAction> toClass()
public Constructor<? extends OFAction> getConstructor()
public OFAction newInstance()
public Instantiable<OFAction> getInstantiable()
public void setInstantiable(Instantiable<OFAction> instantiable)
instantiable
- the instantiable to setCopyright © 2014. All rights reserved.