public class OspfPseudonode extends Object implements IgpRouterId, BgpValueType
| Constructor and Description |
|---|
OspfPseudonode(int routerID,
org.onlab.packet.Ip4Address drInterface)
Constructor to initialize parameters.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Object o)
Compares two objects.
|
boolean |
equals(Object obj) |
int |
getrouterID()
Returns RouterID.
|
short |
getType()
Returns the Type of BGP Message.
|
int |
hashCode() |
static OspfPseudonode |
of(int routerID,
org.onlab.packet.Ip4Address drInterface)
Returns object of this class with specified values.
|
static OspfPseudonode |
read(org.jboss.netty.buffer.ChannelBuffer cb)
Reads the channel buffer and returns object of OSPFPseudonode.
|
String |
toString() |
int |
write(org.jboss.netty.buffer.ChannelBuffer c)
Writes the byte Stream of BGP Message to channel buffer.
|
public static final short TYPE
public static final short LENGTH
public OspfPseudonode(int routerID,
org.onlab.packet.Ip4Address drInterface)
routerID - routerIDdrInterface - IPv4 address of the DR's interfacepublic static OspfPseudonode of(int routerID, org.onlab.packet.Ip4Address drInterface)
routerID - routerIDdrInterface - IPv4 address of the DR's interfacepublic int getrouterID()
public int write(org.jboss.netty.buffer.ChannelBuffer c)
BgpValueTypewrite in interface BgpValueTypec - channel bufferpublic static OspfPseudonode read(org.jboss.netty.buffer.ChannelBuffer cb)
cb - ChannelBufferpublic short getType()
BgpValueTypegetType in interface BgpValueTypepublic int compareTo(Object o)
BgpValueTypecompareTo in interface BgpValueTypeo - object