org.openflow.protocol.hello
Class OFHelloElementVersionBitmap

java.lang.Object
  extended by org.openflow.protocol.hello.OFHelloElement
      extended by org.openflow.protocol.hello.OFHelloElementVersionBitmap

public class OFHelloElementVersionBitmap
extends OFHelloElement

Represents an ofp_hello_element_versionbitmap data

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

Field Summary
protected  java.util.List<java.lang.Integer> bitmaps
           
static int MINIMUM_LENGTH
           
 
Fields inherited from class org.openflow.protocol.hello.OFHelloElement
length, type
 
Constructor Summary
OFHelloElementVersionBitmap()
          Construct a ofp_hello message
 
Method Summary
 java.util.List<java.lang.Integer> getBitmaps()
          Returns read-only copies of the bitmaps contained in this HelloElement
 short getLength()
          Get the length of this message
 int getLengthU()
          Get the length of this message, unsigned
 void readFrom(java.nio.ByteBuffer data)
           
 OFHelloElementVersionBitmap setBitmaps(java.util.List<java.lang.Integer> bitmaps)
          Sets the list of bitmaps this HelloElement contains
 void writeTo(java.nio.ByteBuffer data)
           
 
Methods inherited from class org.openflow.protocol.hello.OFHelloElement
getType, setLength, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MINIMUM_LENGTH

public static int MINIMUM_LENGTH

bitmaps

protected java.util.List<java.lang.Integer> bitmaps
Constructor Detail

OFHelloElementVersionBitmap

public OFHelloElementVersionBitmap()
Construct a ofp_hello message

Method Detail

getLength

public short getLength()
Get the length of this message

Overrides:
getLength in class OFHelloElement
Returns:
length

getLengthU

public int getLengthU()
Get the length of this message, unsigned

Overrides:
getLengthU in class OFHelloElement
Returns:

getBitmaps

public java.util.List<java.lang.Integer> getBitmaps()
Returns read-only copies of the bitmaps contained in this HelloElement

Returns:
a list of ordered bitmaps

setBitmaps

public OFHelloElementVersionBitmap setBitmaps(java.util.List<java.lang.Integer> bitmaps)
Sets the list of bitmaps this HelloElement contains

Parameters:
bitmaps - a list of ordered bitmaps

readFrom

public void readFrom(java.nio.ByteBuffer data)
Overrides:
readFrom in class OFHelloElement

writeTo

public void writeTo(java.nio.ByteBuffer data)
Overrides:
writeTo in class OFHelloElement