|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcore.DTNSim
public class DTNSim
Simulator's main class
Field Summary | |
---|---|
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 Summary | |
---|---|
DTNSim()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
registerForReset(String)
,
Constant Field ValuesConstructor Detail |
---|
public DTNSim()
Method Detail |
---|
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |