|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gov.nist.antd.ospf_te.LinkInfo
A unit of information describing a link and used in the contents of a link state advertisement. The following table shows the information that goes into the different fields depending on the LSA packet type:
TYPE LINK ID LINK DATA
----------------------------------------------------------------------------
1 - Router link neighbor's router ID interface number
(Point-to-Point)
1 - Router link address prefix for length (in bits) of prefix
(Connect-to-Stub) subnetwork
3 - Summary link - length (in bits) of prefix
(IP network)
4 - Summary link - -
(AS boundary router)
5 - External link Forwarding address # of bits in destination's
(AS_Ext_Link) address prefix
----------------------------------------------------------------------------
| Field Summary | |
int |
area
The Area to which the link interface belongs. |
int |
id
Router ID of the neighbor, if this ID exists. |
int |
link_data
This holds additional data about the link. |
int |
link_id
This variable holds the ID of the link. |
int |
metric
This is the cost of the link. |
int |
metric_type
This holds the metric type used. |
java.lang.String |
nh
Field nh - XXX |
int |
TypeOneType
This field is used by Router links only to indicate if it is a point-to-point or summary link. |
| Constructor Summary | |
LinkInfo(int ar,
java.lang.String nhipref,
int tot,
int ip,
int data,
int m_type,
int met)
Constructs a new unit of link information. |
|
LinkInfo(java.lang.String nhipref,
int ip,
int data)
Constructs a new unit of link information given router and link information. |
|
LinkInfo(java.lang.String nhipref,
int ip,
int data,
int tot)
Constructor LinkInfo |
|
| Method Summary | |
boolean |
equals(java.lang.Object o)
Determines if a given object describes the same link as this object. |
void |
setID(int ident)
Method setID XXX |
java.lang.String |
toString()
Converts the link information to a string. |
java.lang.String |
toString(boolean usenhi)
Converts the link information to a string. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public int area
public int id
public java.lang.String nh
public int TypeOneType
public int link_id
public int link_data
public int metric_type
public int metric
| Constructor Detail |
public LinkInfo(java.lang.String nhipref,
int ip,
int data)
public LinkInfo(java.lang.String nhipref,
int ip,
int data,
int tot)
nhipref - - XXXip - - XXXdata - - XXXtot - - XXX
public LinkInfo(int ar,
java.lang.String nhipref,
int tot,
int ip,
int data,
int m_type,
int met)
| Method Detail |
public java.lang.String toString(boolean usenhi)
usenhi - Whether to use NHI addressing or IP addressing.
public java.lang.String toString()
toString in class java.lang.Objectpublic void setID(int ident)
ident - - XXXpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - - XXX
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||