org.openflow.protocol.statistics
Class OFGroupFeatures

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

public class OFGroupFeatures
extends java.lang.Object
implements OFStatistics

Represents an ofp_meter_stats structure

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

Nested Class Summary
static class OFGroupFeatures.OFGroupCapabilities
           
 
Field Summary
protected  int[] actions
           
protected  short length
           
protected  int[] maxGroups
           
static int MINIMUM_LENGTH
           
protected  int types
           
 
Constructor Summary
OFGroupFeatures()
           
 
Method Summary
 int computeLength()
          Computes, sets and returns the length of this OFStatistics message.
 boolean equals(java.lang.Object obj)
           
 int[] getActions()
           
 java.util.Set<OFActionType> getActions(int type)
           
 int getCapabilities()
           
 int getLength()
          Returns the wire length of this message in bytes
 int[] getMaxGroups()
           
 int getMaxGroups(int type)
           
 int getTypes()
           
 int hashCode()
           
 void readFrom(java.nio.ByteBuffer data)
          Read this message off the wire from the specified ByteBuffer
 void setActions(int[] actions)
           
 void setActions(int type, java.util.Set<OFActionType> actions)
           
 void setCapabilities(int capabilities)
           
 void setMaxGroups(int[] maxGroups)
           
 void setMaxGroups(int type, int maxGroup)
           
 void setTypes(int types)
           
 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

types

protected int types

maxGroups

protected int[] maxGroups

actions

protected int[] actions
Constructor Detail

OFGroupFeatures

public OFGroupFeatures()
Method Detail

getTypes

public int getTypes()
Returns:
the types

setTypes

public void setTypes(int types)
Parameters:
types - the types to set

getCapabilities

public int getCapabilities()
Returns:
the capabilities

setCapabilities

public void setCapabilities(int capabilities)
Parameters:
capabilities - the capabilities to set

getActions

public java.util.Set<OFActionType> getActions(int type)
Parameters:
type - the type to retrieve the supported actions
Returns:
actions the set of action types supported

setActions

public void setActions(int type,
                       java.util.Set<OFActionType> actions)
Parameters:
type - the type to retrieve the supported actions
actions - the set of action types supported

getMaxGroups

public int[] getMaxGroups()
Returns:
the four maxGroup values

getMaxGroups

public int getMaxGroups(int type)
Parameters:
type - the type corresponding to this maxGroup
Returns:
the maxGroup value for this type

setMaxGroups

public void setMaxGroups(int[] maxGroups)
Parameters:
maxGroups - the four maxGroups values to set

setMaxGroups

public void setMaxGroups(int type,
                         int maxGroup)
Parameters:
type - the type corresponding to this maxGroup
maxGroup - the maxGroup values to set for this type

getActions

public int[] getActions()
Returns:
the four action bitmaps

setActions

public void setActions(int[] actions)
Parameters:
actions - the four action bitmaps to set

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: