|
||||||||||
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 |
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 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 text UI is started.
Next argument is the settings file for the simulation run (if any).
For text UI, also number of runs can be given after the setting file
name. Different settings from run arrays are used for different runs (see
Settings.setRunIndex(int)
). For GUI mode, the number after
settings file (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 |