|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openflow.protocol.meter.OFMeterBandType
public class OFMeterBandType
List of OpenFlow meter band types and mappings to wire protocol value and derived classes
Field Summary | |
---|---|
protected java.lang.Class<? extends OFMeterBand> |
clazz
|
protected java.lang.reflect.Constructor<? extends OFMeterBand> |
constructor
|
static OFMeterBandType |
DROP
|
static OFMeterBandType |
DSCP_REMARK
|
protected Instantiable<OFMeterBand> |
instantiable
|
protected static java.util.Map<java.lang.Short,OFMeterBandType> |
mapping
|
protected java.lang.String |
name
|
protected short |
type
|
Constructor Summary | |
---|---|
OFMeterBandType(int type,
java.lang.String name,
java.lang.Class<? extends OFMeterBand> clazz,
Instantiable<OFMeterBand> instantiable)
Store some information about the OpenFlow meter band type, including wire protocol type number, length, and derived class |
Method Summary | |
---|---|
static void |
addMapping(short i,
OFMeterBandType t)
Adds a mapping from type value to OFMeterBandType enum |
java.lang.reflect.Constructor<? extends OFMeterBand> |
getConstructor()
Returns the no-argument Constructor of the implementation class for this OFMeterBandType |
Instantiable<OFMeterBand> |
getInstantiable()
|
java.lang.String |
getName()
|
short |
getTypeValue()
|
static java.util.Set<java.lang.Short> |
getValues()
|
OFMeterBand |
newInstance()
Returns a new instance of the OFMeterBand represented by this OFMeterBandType |
void |
setInstantiable(Instantiable<OFMeterBand> instantiable)
|
java.lang.Class<? extends OFMeterBand> |
toClass()
|
java.lang.String |
toString()
|
static OFMeterBandType |
valueOf(short i)
Given a wire protocol OpenFlow type number, return the OFMeterBandType associated with it |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static OFMeterBandType DROP
public static OFMeterBandType DSCP_REMARK
protected java.lang.Class<? extends OFMeterBand> clazz
protected java.lang.reflect.Constructor<? extends OFMeterBand> constructor
protected Instantiable<OFMeterBand> instantiable
protected java.lang.String name
protected short type
protected static java.util.Map<java.lang.Short,OFMeterBandType> mapping
Constructor Detail |
---|
public OFMeterBandType(int type, java.lang.String name, java.lang.Class<? extends OFMeterBand> clazz, Instantiable<OFMeterBand> instantiable)
type
- Wire protocol number associated with this OFMeterBandTypename
- The name of this typeclazz
- The Java class corresponding to this type of OpenFlow meter bandinstantiable
- the instantiable for the OFMeterBand this type representsMethod Detail |
---|
public static void addMapping(short i, OFMeterBandType t)
i
- OpenFlow wire protocol Action type valuet
- typepublic static OFMeterBandType valueOf(short i)
i
- wire protocol number
public static java.util.Set<java.lang.Short> getValues()
public short getTypeValue()
public java.lang.Class<? extends OFMeterBand> toClass()
public java.lang.reflect.Constructor<? extends OFMeterBand> getConstructor()
public OFMeterBand newInstance()
public Instantiable<OFMeterBand> getInstantiable()
public void setInstantiable(Instantiable<OFMeterBand> instantiable)
instantiable
- the instantiable to setpublic java.lang.String getName()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |