public class DTNSimGUI extends DTNSimUI
lastUpdate, MM_WARMUP_S, NROF_REPORT_S, REPORT_S, reports, scen, simCancelled, simDone, world| Constructor and Description |
|---|
DTNSimGUI() |
| Modifier and Type | Method and Description |
|---|---|
void |
centerViewAt(Coord loc)
Sets certain location to be in the center of the playfield view
|
void |
closeSim()
Closes the program if simulation is done or cancels it.
|
Coord |
getCenterViewCoord()
Returns the world coordinates that are currently in the center
of the viewport
|
InfoPanel |
getInfoPanel()
Returns the info panel of the GUI
|
MainWindow |
getParentFrame()
Returns the parent frame (window) of the gui.
|
protected void |
runSim()
Runs simulation after the model has been initialized.
|
void |
setFocus(DTNHost host)
Sets a node's graphical presentation in the center of the playfield view
|
void |
setPaused(boolean paused)
Sets the pause of the simulation on/off
|
void |
showPath(Path path)
Shows a path on the playfield
|
void |
update(boolean forcedUpdate)
Updates the GUI
|
protected void runSim()
DTNSimUIpublic void closeSim()
public void update(boolean forcedUpdate)
public void setPaused(boolean paused)
paused - True if pause should be set onpublic void setFocus(DTNHost host)
host - The node to centerpublic void showPath(Path path)
path - The path to showpublic Coord getCenterViewCoord()
public void centerViewAt(Coord loc)
loc - The location to centerpublic InfoPanel getInfoPanel()
public MainWindow getParentFrame()