|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--SSF.OS.OSPFv2.LinkInfo
A unit of information describing a link and used in the contents of a link state advertisement.
| Field Summary | |
static int |
LINK_INFO_SIZE
The size of this Link Info. |
int |
linkData
This holds additional data about the link. |
int |
linkID
This variable holds the ID of the link. |
int |
linkType
This field holds the type of the link. |
int |
metric
The cost of using this router link. |
int |
numOfTOSMetrics
The number of different TOS metrics given for this link. |
| Constructor Summary | |
LinkInfo(int id,
int data,
int type,
int met)
|
|
LinkInfo(int id,
int data,
int type,
int tos,
int met)
Constructs a new unit of link information given router and link information. |
|
| Method Summary | |
boolean |
compare(LinkInfo test)
Take a LinkInfo an compare it to this LinkInfo. |
LinkInfo |
copy()
Return an exact copy of this LinkInfo |
boolean |
equals(java.lang.Object o)
Determines if a given object describes the same link as this object. |
static int |
size()
returns the size of this LinkInfo. |
java.lang.String |
toString()
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 static final int LINK_INFO_SIZE
public int linkID
public int linkData
public int linkType
public int numOfTOSMetrics
public int metric
| Constructor Detail |
public LinkInfo(int id,
int data,
int type,
int tos,
int met)
public LinkInfo(int id,
int data,
int type,
int met)
| Method Detail |
public java.lang.String toString()
toString in class java.lang.Objectpublic static int size()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic LinkInfo copy()
public boolean compare(LinkInfo test)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||