public abstract class DTNSimUI
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected double |
lastUpdate
simtime of last UI update
|
static java.lang.String |
MM_WARMUP_S
Movement model warmup time -setting id ("MovementModel.warmup").
|
static java.lang.String |
NROF_REPORT_S
Number of reports -setting id ("Report.nrofReports").
|
static java.lang.String |
REPORT_S
Report class name -setting id prefix ("Report.report").
|
protected java.util.Vector<Report> |
reports
Reports that are loaded for this simulation
|
protected SimScenario |
scen
Scenario of the current simulation
|
protected boolean |
simCancelled
is simulation termination requested
|
protected boolean |
simDone
has simulation terminated normally
|
protected World |
world
The World where all actors of the simulator are
|
| Constructor and Description |
|---|
DTNSimUI()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addReport(Report r)
Adds a new report for simulator
|
void |
done()
Runs maintenance jobs that are needed before exiting.
|
protected abstract void |
runSim()
Runs simulation after the model has been initialized.
|
void |
start()
Starts the simulation.
|
public static final java.lang.String NROF_REPORT_S
public static final java.lang.String REPORT_S
public static final java.lang.String MM_WARMUP_S
protected World world
protected java.util.Vector<Report> reports
protected boolean simDone
protected boolean simCancelled
protected SimScenario scen
protected double lastUpdate
public void start()
protected abstract void runSim()
public void done()
protected void addReport(Report r)
r - Report to add