|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gov.nist.antd.ospf_te.Options
This class helps OSPF manage run-time options.
| Field Summary | |
static int |
AS_AREA
Indicates option to print the AS(es) and area(s) number in which OSPF router is located. |
static int |
AS_NUM
Indicates option to print the number of the AS in which the OSPF router is located. |
private static java.lang.String[] |
bool_opt_names
The names of several boolean debugging attributes/options. |
static boolean |
debugging_on
Whether or not plain debugging messages are turned on. |
static int |
FWD_TABLE
Indicates option to show info about the local forwarding table. |
static int |
FWDTABLE1
Indicates that the `fwdtable1' validation test is being performed. |
static int |
FWDTABLE2
Indicates that the `fwdtable2' validation test is being performed. |
static int |
HELLO
Indicates option to show when hello packets are sent and received. |
static int |
IFS
Indicates option to print IP and OSPF interfaces on which the router is running. |
static int |
INTERFACES1
Indicates that the `interfaces1' validation test is being performed. |
static int |
INTERFACES2
Indicates that the `interfaces2' validation test is being performed. |
static int |
LSA
Indicates option to show when LSAs have been sent. |
static int |
LSDB
Indicates option to show info about the link state database. |
static int |
LSDB1
Indicates that the `lsdb1' validation test is being performed. |
static int |
LSDB2
Indicates that the `lsdb2' validation test is being performed. |
static int |
NO_TEST
Indicates that no validation tests are being performed. |
private static int |
num_bool_opts
The number of boolean options kept in the opt array. |
private static int |
numdata
Used with certain validation tests. |
static boolean[] |
opt
An array for several boolean debugging attributes/options. |
static int |
ROUTERTYPE1
Indicates that the `routertype1' validation test is being performed. |
static int |
ROUTERTYPE2
Indicates that the `routertype2' validation test is being performed. |
static int |
RTR_TYPE
Indicates option to print router's classification. |
static boolean |
usenhi
Whether or not to use full NHI addressing. |
static int |
validation_test
Indicates whether or not this simulation is a validation test (-1 means it isn't, non-negative means it is) and if so, which test number it is. |
static boolean |
wrapup
Whether or not any wrap-up functions need to be performed at the end of the simulation. |
| Constructor Summary | |
Options()
|
|
| Method Summary | |
static void |
config(com.renesys.raceway.DML.Configuration cfg)
Configures options set with the ospfoptions attribute in DML. |
static void |
debugmsg(sOSPF_TE ospf,
int typ,
int caseno,
int i,
int i2,
java.lang.Object o,
java.lang.Object o2)
Prints a debugging message. |
static void |
validation_msg(sOSPF_TE ospf,
int testnum,
int msgnum,
java.lang.Object o)
Prints a message associated with a validation test. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final boolean debugging_on
debugging_on to
false and then recompiled.
private static final int num_bool_opts
private static final java.lang.String[] bool_opt_names
public static final int IFS
public static final int AS_NUM
public static final int AS_AREA
public static final int RTR_TYPE
public static final int HELLO
public static final int LSA
public static final int LSDB
public static final int FWD_TABLE
public static final int NO_TEST
public static final int ROUTERTYPE1
public static final int INTERFACES1
public static final int LSDB1
public static final int FWDTABLE1
public static final int ROUTERTYPE2
public static final int INTERFACES2
public static final int LSDB2
public static final int FWDTABLE2
public static boolean usenhi
public static boolean[] opt
public static boolean wrapup
public static int validation_test
private static int numdata
| Constructor Detail |
public Options()
| Method Detail |
public static void config(com.renesys.raceway.DML.Configuration cfg)
throws com.renesys.raceway.DML.configException
ospfoptions attribute in DML.
All such options are "global" OSPF options--that is, they apply to all
instances of OSPF in the simulation.
cfg - Contains attribute-value pairs for each configurable
OSPF option attribute
com.renesys.raceway.DML.configException - if any of the calls to find
or findSingle throw such an
exception.
public static void debugmsg(sOSPF_TE ospf,
int typ,
int caseno,
int i,
int i2,
java.lang.Object o,
java.lang.Object o2)
ospf - The OSPF instance associated with the message.typ - Indicates the type of situation that the message is
reporting on.caseno - A case number, applicable to certain message types.i - Numeric data whose meaning varies depending on msg type.i2 - Numeric data whose meaning varies depending on msg type.o - An object whose meaning varies depending on msg type.o2 - An object whose meaning varies depending on msg type.
public static void validation_msg(sOSPF_TE ospf,
int testnum,
int msgnum,
java.lang.Object o)
ospf - The OSPF instance that the message is associated with.testnum - The indicative validation test number.msgnum - Specifies which message should be printed.o - An object whose meaning varies depending on which test
and which message are specified.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||