|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectui.DTNSimUI
gui.DTNSimGUI
public class DTNSimGUI
Graphical User Interface for simulator
| Field Summary |
|---|
| Fields inherited from class ui.DTNSimUI |
|---|
lastUpdate, MM_WARMUP_S, NROF_REPORT_S, REPORT_S, reports, scen, simCancelled, simDone, world |
| Constructor Summary | |
|---|---|
DTNSimGUI()
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class ui.DTNSimUI |
|---|
addReport, done, start |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DTNSimGUI()
| Method Detail |
|---|
protected void runSim()
DTNSimUI
runSim in class 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()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||