|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectui.DTNSimUI
public abstract class DTNSimUI
Abstract superclass for user interfaces; contains also some simulation settings.
Field Summary | |
---|---|
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 Summary | |
---|---|
DTNSimUI()
Constructor. |
Method Summary | |
---|---|
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. |
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 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
Constructor Detail |
---|
public DTNSimUI()
Method Detail |
---|
public void start()
protected abstract void runSim()
public void done()
protected void addReport(Report r)
r
- Report to add
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |