public class DTNSim
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
BATCH_MODE_FLAG
If this option ("-b") is given to program, batch mode and
Text UI are used
|
static java.lang.String |
RANGE_DELIMETER
Delimiter for batch mode index range values (colon)
|
static java.lang.String |
RESET_METHOD_NAME
Name of the static method that all resettable classes must have
|
| Constructor and Description |
|---|
DTNSim() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(java.lang.String[] args)
Starts the user interface with given arguments.
|
static void |
registerForReset(java.lang.String className)
Registers a class for resetting.
|
public static final java.lang.String BATCH_MODE_FLAG
public static final java.lang.String RANGE_DELIMETER
public static final java.lang.String RESET_METHOD_NAME
public static void main(java.lang.String[] args)
BATCH_MODE_FLAG, the batch mode and text UI
is started. The batch mode option must be followed by the number of runs,
or a with a combination of starting run and the number of runs,
delimited with a ":". Different settings from run
arrays are used for different runs (see
Settings.setRunIndex(int)). Following arguments are the settings
files for the simulation run (if any). For GUI mode, the number before
settings files (if given) is the run index to use for that run.args - Command line argumentspublic static void registerForReset(java.lang.String className)
className - Full name (i.e., containing the packet path)
of the class to register. For example: core.SimClock