|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--SSF.OS.BGP4.Util.AS_descriptor
This class manages the assignment of autonomous system identifiers. It is
not intended to have any instantiated objects. An AS can be identified by
its NHI prefix address, which is the NHI prefix address of the
Net construct which defines the AS's encompassing border. A
hash is constructed to map each such NHI prefix address to a unique integer
for times when an integer AS descriptor (in other words, a traditional AS
number) is desired.
| Field Summary | |
static int |
NO_AS
Indicates an undefined AS number. |
| Constructor Summary | |
AS_descriptor()
|
|
| Method Summary | |
static java.lang.String |
as2nh(int asnum)
Returns the AS NHI prefix address associated with a given AS number. |
static java.lang.String |
get_as_nh(Host thehost)
Determines the NHI prefix address of the AS in which a host lies and returns it. |
static int |
nh2as(java.lang.String nh)
Returns the AS number associated with a given AS NHI prefix address. |
static void |
register(java.lang.String nh,
int asn)
Registers a given integer as the AS number for a given NHI prefix address. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int NO_AS
| Constructor Detail |
public AS_descriptor()
| Method Detail |
public static final java.lang.String get_as_nh(Host thehost)
thehost - The host whose AS is to be identified.
public static void register(java.lang.String nh,
int asn)
nh - An NHI prefix address to which to map a given AS number.asn - An AS number to map to the given NHI prefix address.public static int nh2as(java.lang.String nh)
nh - The NHI prefix address to be converted.
public static java.lang.String as2nh(int asnum)
asnum - The AS number to be converted.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||