public class SrEroSubObject extends Object implements PcepValueType
| Modifier and Type | Field and Description |
|---|---|
static byte |
CFLAG_SET |
static byte |
FFLAG_SET |
static short |
LENGTH |
protected static org.slf4j.Logger |
log |
static byte |
MFLAG_SET |
static int |
SET |
static byte |
SFLAG_SET |
static byte |
SHIFT_ST |
static short |
TYPE |
static short |
VALUE_LENGTH |
| Constructor and Description |
|---|
SrEroSubObject(byte st,
boolean bFFlag,
boolean bSFlag,
boolean bCFlag,
boolean bMFlag,
int sid,
PcepNai nai)
Constructor to initialize member variables.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
boolean |
getCFlag()
Returns bCFlag.
|
boolean |
getFFlag()
Returns bFFlag.
|
short |
getLength()
Returns the Length of PCEP Message.
|
boolean |
getMFlag()
Returns bMFlag.
|
PcepNai |
getNai()
Returns nai.
|
boolean |
getSFlag()
Returns bSFlag.
|
int |
getSid()
Returns sID.
|
byte |
getSt()
Returns SID type.
|
short |
getType()
Returns the Type of PCEP Message.
|
PcepVersion |
getVersion()
Returns the Version Of PCEP Message.
|
int |
hashCode() |
static SrEroSubObject |
of(byte st,
boolean bFFlag,
boolean bSFlag,
boolean bCFlag,
boolean bMFlag,
int sid,
PcepNai nai)
Creates object of SrEroSubObject.
|
static PcepValueType |
read(org.jboss.netty.buffer.ChannelBuffer c)
Reads the channel buffer and returns object of SrEroSubObject.
|
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 short VALUE_LENGTH
public static final int SET
public static final byte MFLAG_SET
public static final byte CFLAG_SET
public static final byte SFLAG_SET
public static final byte FFLAG_SET
public static final byte SHIFT_ST
public SrEroSubObject(byte st,
boolean bFFlag,
boolean bSFlag,
boolean bCFlag,
boolean bMFlag,
int sid,
PcepNai nai)
st - SID typebFFlag - F flagbSFlag - S flagbCFlag - C flagbMFlag - M flagsid - segment identifier valuenai - NAI associated with SIDpublic static SrEroSubObject of(byte st, boolean bFFlag, boolean bSFlag, boolean bCFlag, boolean bMFlag, int sid, PcepNai nai)
st - SID typebFFlag - F flagbSFlag - S flagbCFlag - C flagbMFlag - M flagsid - segment identifier valuenai - NAI associated with SIDpublic byte getSt()
public boolean getFFlag()
public boolean getSFlag()
public boolean getCFlag()
public boolean getMFlag()
public int getSid()
public PcepNai getNai()
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 - of type channel buffer