public class NodeFlagBitsSubTlv extends Object implements PcepValueType
| Modifier and Type | Field and Description |
|---|---|
static byte |
BFLAG_SET |
static byte |
EFLAG_SET |
static short |
LENGTH |
protected static org.slf4j.Logger |
log |
static byte |
OFLAG_SET |
static int |
SET |
static byte |
TFLAG_SET |
static short |
TYPE |
| Constructor and Description |
|---|
NodeFlagBitsSubTlv(boolean bOFlag,
boolean bTFlag,
boolean bEFlag,
boolean bBFlag)
constructor to initialize different Flags.
|
NodeFlagBitsSubTlv(byte rawValue)
constructor to initialize rawValue.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
boolean |
getBFlag()
Returns B-flag.
|
byte |
getbyte()
Returns raw value of NodeFlagBitsTlv.
|
boolean |
getEFlag()
Returns E-flag.
|
short |
getLength()
Returns the Length of PCEP Message.
|
boolean |
getOFlag()
Returns O-flag.
|
boolean |
getTFlag()
Returns T-flag.
|
short |
getType()
Returns the Type of PCEP Message.
|
PcepVersion |
getVersion()
Returns the Version Of PCEP Message.
|
int |
hashCode() |
static NodeFlagBitsSubTlv |
of(byte raw)
Returns newly created NodeFlagBitsTlv object.
|
static PcepValueType |
read(org.jboss.netty.buffer.ChannelBuffer c)
Reads the channel buffer and returns object of NodeFlagBitsTlv.
|
String |
toString() |
int |
write(org.jboss.netty.buffer.ChannelBuffer c)
Writes the byte Stream of PCEP Message to channel buffer.
|
protected static final org.slf4j.Logger log
public static final short TYPE
public static final short LENGTH
public static final int SET
public static final byte OFLAG_SET
public static final byte TFLAG_SET
public static final byte EFLAG_SET
public static final byte BFLAG_SET
public NodeFlagBitsSubTlv(byte rawValue)
rawValue - of Node Flag Bits TLVpublic NodeFlagBitsSubTlv(boolean bOFlag,
boolean bTFlag,
boolean bEFlag,
boolean bBFlag)
bOFlag - O-flagbTFlag - T-flagbEFlag - E-flagbBFlag - B-flagpublic static NodeFlagBitsSubTlv of(byte raw)
raw - of Node Flag Bits TLVpublic byte getbyte()
public boolean getOFlag()
public boolean getTFlag()
public boolean getEFlag()
public boolean getBFlag()
public PcepVersion getVersion()
PcepValueTypegetVersion in interface PcepValueTypepublic short getType()
PcepValueTypegetType in interface PcepValueTypepublic short getLength()
PcepValueTypegetLength in interface PcepValueTypepublic int write(org.jboss.netty.buffer.ChannelBuffer c)
PcepValueTypewrite in interface PcepValueTypec - of type channel bufferpublic static PcepValueType read(org.jboss.netty.buffer.ChannelBuffer c)
c - input channel buffer