public enum OFType extends Enum<OFType>
Modifier and Type | Field and Description |
---|---|
protected Class<? extends OFMessage> |
clazz |
protected Constructor<? extends OFMessage> |
constructor |
protected Instantiable<OFMessage> |
instantiable |
protected byte |
type |
Modifier and Type | Method and Description |
---|---|
static void |
addMapping(byte i,
OFType t)
Adds a mapping from type value to OFType enum
|
Constructor<? extends OFMessage> |
getConstructor()
Returns the no-argument Constructor of the implementation class for this
OFType
|
Instantiable<OFMessage> |
getInstantiable() |
byte |
getTypeValue() |
OFMessage |
newInstance()
Returns a new instance of the OFMessage represented by this OFType
|
static void |
removeMapping(byte i)
Remove a mapping from type value to OFType enum
|
void |
setInstantiable(Instantiable<OFMessage> instantiable) |
Class<? extends OFMessage> |
toClass() |
static OFType |
valueOf(Byte i)
Given a wire protocol OpenFlow type number, return the OFType associated
with it
|
static OFType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OFType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OFType HELLO
public static final OFType ERROR
public static final OFType ECHO_REQUEST
public static final OFType ECHO_REPLY
public static final OFType VENDOR
public static final OFType FEATURES_REQUEST
public static final OFType FEATURES_REPLY
public static final OFType GET_CONFIG_REQUEST
public static final OFType GET_CONFIG_REPLY
public static final OFType SET_CONFIG
public static final OFType PACKET_IN
public static final OFType FLOW_REMOVED
public static final OFType PORT_STATUS
public static final OFType PACKET_OUT
public static final OFType FLOW_MOD
public static final OFType PORT_MOD
public static final OFType STATS_REQUEST
public static final OFType STATS_REPLY
public static final OFType BARRIER_REQUEST
public static final OFType BARRIER_REPLY
public static final OFType QUEUE_GET_CONFIG_REQUEST
public static final OFType QUEUE_GET_CONFIG_REPLY
protected Constructor<? extends OFMessage> constructor
protected Instantiable<OFMessage> instantiable
protected byte type
public static OFType[] values()
for (OFType c : OFType.values()) System.out.println(c);
public static OFType 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(byte i, OFType t)
i
- OpenFlow wire protocol typet
- typepublic static void removeMapping(byte i)
i
- OpenFlow wire protocol typepublic static OFType valueOf(Byte i)
i
- wire protocol numberpublic byte getTypeValue()
public Class<? extends OFMessage> toClass()
public Constructor<? extends OFMessage> getConstructor()
public OFMessage newInstance()
public Instantiable<OFMessage> getInstantiable()
public void setInstantiable(Instantiable<OFMessage> instantiable)
instantiable
- the instantiable to setCopyright © 2015. All rights reserved.