public class AutonomousSystemNumberSubObject extends Object implements PcepValueType
| Modifier and Type | Field and Description |
|---|---|
static byte |
LBIT |
static byte |
LENGTH |
protected static org.slf4j.Logger |
log |
static byte |
OBJ_LENGTH |
static int |
SHIFT_LBIT_POSITION |
static byte |
TYPE |
static byte |
VALUE_LENGTH |
| Constructor and Description |
|---|
AutonomousSystemNumberSubObject(short asNumber)
Constructor to initialize AS number.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
short |
getAsNumber()
Returns value of AS number.
|
short |
getLength()
Returns the Length of PCEP Message.
|
short |
getType()
Returns the Type of PCEP Message.
|
PcepVersion |
getVersion()
Returns the Version Of PCEP Message.
|
int |
hashCode() |
static AutonomousSystemNumberSubObject |
of(short asNumber)
Returns a new instance of AutonomousSystemNumberSubObject.
|
static PcepValueType |
read(org.jboss.netty.buffer.ChannelBuffer c)
Reads the channel buffer and returns object of AutonomousSystemNumberSubObject.
|
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 byte TYPE
public static final byte LENGTH
public static final byte VALUE_LENGTH
public static final byte OBJ_LENGTH
public static final byte LBIT
public static final int SHIFT_LBIT_POSITION
public AutonomousSystemNumberSubObject(short asNumber)
asNumber - AS numberpublic static AutonomousSystemNumberSubObject of(short asNumber)
asNumber - AS numberpublic short getAsNumber()
public PcepVersion getVersion()
PcepValueTypegetVersion in interface PcepValueTypepublic short getType()
PcepValueTypegetType in interface PcepValueTypepublic short getLength()
PcepValueTypegetLength in interface PcepValueTypepublic static PcepValueType read(org.jboss.netty.buffer.ChannelBuffer c)
c - type of channel bufferpublic int write(org.jboss.netty.buffer.ChannelBuffer c)
PcepValueTypewrite in interface PcepValueTypec - of type channel buffer