org.openflow.protocol.statistics
Class OFMeterFeatures

java.lang.Object
  extended by org.openflow.protocol.statistics.OFMeterFeatures
All Implemented Interfaces:
OFStatistics

public class OFMeterFeatures
extends java.lang.Object
implements OFStatistics

Represents an ofp_meter_stats structure

Author:
Srini Seetharaman (srini.seetharaman@gmail.com)

Field Summary
protected  int bandTypes
           
protected  int capabilities
           
protected  short length
           
protected  byte maxBands
           
protected  byte maxColor
           
protected  int maxMeter
           
static int MINIMUM_LENGTH
           
 
Constructor Summary
OFMeterFeatures()
           
 
Method Summary
 int computeLength()
          Computes, sets and returns the length of this OFStatistics message.
 boolean equals(java.lang.Object obj)
           
 java.util.Set<OFMeterBandType> getBandTypes()
           
 int getCapabilities()
           
 int getLength()
          Returns the wire length of this message in bytes
 byte getMaxBands()
           
 byte getMaxColor()
           
 int getMaxMeter()
           
 int hashCode()
           
 void readFrom(java.nio.ByteBuffer data)
          Read this message off the wire from the specified ByteBuffer
 void setBandTypes(int bandTypes)
           
 void setBandTypes(java.util.Set<OFMeterBandType> bandTypes)
           
 void setCapabilities(int capabilities)
           
 void setMaxBands(byte maxBands)
           
 void setMaxColor(byte maxColor)
           
 void setMaxMeter(int maxMeter)
           
 java.lang.String toString()
           
 void writeTo(java.nio.ByteBuffer data)
          Write this message's binary format to the specified ByteBuffer
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

MINIMUM_LENGTH

public static int MINIMUM_LENGTH

length

protected short length

maxMeter

protected int maxMeter

bandTypes

protected int bandTypes

capabilities

protected int capabilities

maxBands

protected byte maxBands

maxColor

protected byte maxColor
Constructor Detail

OFMeterFeatures

public OFMeterFeatures()
Method Detail

getMaxMeter

public int getMaxMeter()

setMaxMeter

public void setMaxMeter(int maxMeter)

getBandTypes

public java.util.Set<OFMeterBandType> getBandTypes()

setBandTypes

public void setBandTypes(int bandTypes)

setBandTypes

public void setBandTypes(java.util.Set<OFMeterBandType> bandTypes)

getCapabilities

public int getCapabilities()

setCapabilities

public void setCapabilities(int capabilities)

getMaxBands

public byte getMaxBands()

setMaxBands

public void setMaxBands(byte maxBands)

getMaxColor

public byte getMaxColor()

setMaxColor

public void setMaxColor(byte maxColor)

getLength

public int getLength()
Description copied from interface: OFStatistics
Returns the wire length of this message in bytes

Specified by:
getLength in interface OFStatistics
Returns:
the length

readFrom

public void readFrom(java.nio.ByteBuffer data)
Description copied from interface: OFStatistics
Read this message off the wire from the specified ByteBuffer

Specified by:
readFrom in interface OFStatistics

writeTo

public void writeTo(java.nio.ByteBuffer data)
Description copied from interface: OFStatistics
Write this message's binary format to the specified ByteBuffer

Specified by:
writeTo in interface OFStatistics

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

computeLength

public int computeLength()
Description copied from interface: OFStatistics
Computes, sets and returns the length of this OFStatistics message. The value will be able to be retrieved from OFStatistics.getLength() without recomputing after this method is called.

Specified by:
computeLength in interface OFStatistics
Returns: