public class MBodyMutableMeterFeatures extends MBodyMeterFeatures implements MutableStructure
MBodyMeterFeatures
.parseErrorCause, version
Constructor and Description |
---|
MBodyMutableMeterFeatures(ProtocolVersion pv)
Constructs a mutable multipart body MeterFeaturestype.
|
Modifier and Type | Method and Description |
---|---|
MBodyMutableMeterFeatures |
bandTypes(Set<MeterBandType> types)
Sets the supported meter band types; Since 1.3.
|
MBodyMutableMeterFeatures |
capabilities(Set<MeterFlag> caps)
Sets the supported meter capabilities; Since 1.3.
|
MBodyMutableMeterFeatures |
maxBands(int max)
Sets the maximum number of supported bands per meter; Since 1.3.
|
MBodyMutableMeterFeatures |
maxColor(int max)
Set the maximum supported color value; Since 1.3.
|
MBodyMutableMeterFeatures |
maxMeters(long max)
Set the maximum number of meters supported; Since 1.3.
|
OpenflowStructure |
toImmutable()
Returns an immutable instance of this structure.
|
String |
toString() |
boolean |
writable()
Returns true if this mutable object is still writable.
|
getBandTypes, getCapabilities, getMaxBands, getMaxColor, getMaxMeters, getTotalLength, toDebugString, toDebugString
getVersion, hex, hex, incomplete, parseErrorCause, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getVersion, toDebugString
validate
public MBodyMutableMeterFeatures(ProtocolVersion pv)
pv
- the protocol versionpublic OpenflowStructure toImmutable()
MutableStructure
It is expected that the reference to this mutable structure will be
dropped. Note that all method calls invoked on a
MutableStructure
after toImmutable()
has been invoked
will result in an InvalidMutableException
being thrown.
toImmutable
in interface MutableStructure
public boolean writable()
MutableObject
#toImmutable()
method (defined on a sub-interface)
has not yet been invoked.writable
in interface MutableObject
public String toString()
toString
in class MBodyMeterFeatures
public MBodyMutableMeterFeatures maxMeters(long max)
max
- the maximum number of metersInvalidMutableException
- if this instance is no longer writableIllegalArgumentException
- if max is not u32public MBodyMutableMeterFeatures bandTypes(Set<MeterBandType> types)
types
- the supported meter band typesInvalidMutableException
- if this instance is no longer writableNullPointerException
- if types is nullpublic MBodyMutableMeterFeatures capabilities(Set<MeterFlag> caps)
caps
- the capabilitiesInvalidMutableException
- if this instance is no longer writableNullPointerException
- if caps is nullpublic MBodyMutableMeterFeatures maxBands(int max)
max
- the maximum bands per meterInvalidMutableException
- if this instance is no longer writableIllegalArgumentException
- if max is not u8public MBodyMutableMeterFeatures maxColor(int max)
max
- the maximum color valueInvalidMutableException
- if this instance is no longer writableIllegalArgumentException
- if max is not u8Copyright © 2015. All Rights Reserved.