vanetsim
Class VanetSimStart

java.lang.Object
  extended by vanetsim.VanetSimStart
All Implemented Interfaces:
java.lang.Runnable

public final class VanetSimStart
extends java.lang.Object
implements java.lang.Runnable

This is the main class for the VANet-Simulator which starts the GUI and all other components.


Constructor Summary
VanetSimStart()
           
 
Method Summary
static DrawingArea addComponentsToPane(java.awt.Container container)
          Function to add the control elements to a container.
static MainControlPanel getMainControlPanel()
          Gets the control panel on the right side.
static javax.swing.JFrame getMainFrame()
          Gets the initial JFrame of the application.
static SimulationMaster getSimulationMaster()
          Returns the simulation master (for example in order to stop or start simulation).
 void run()
          Thread which creates the GUI.
static void setProgressBar(boolean state)
          Sets the display state of the progress bar.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VanetSimStart

public VanetSimStart()
Method Detail

run

public void run()
Thread which creates the GUI.

Specified by:
run in interface java.lang.Runnable
See Also:
Runnable.run()

addComponentsToPane

public static DrawingArea addComponentsToPane(java.awt.Container container)
Function to add the control elements to a container.

Parameters:
container - the container on which to add the elements
Returns:
the constructed DrawingArea

setProgressBar

public static void setProgressBar(boolean state)
Sets the display state of the progress bar.

Parameters:
state - true to display the progress bar, false to disable it

getMainControlPanel

public static MainControlPanel getMainControlPanel()
Gets the control panel on the right side.

Returns:
the control panel

getMainFrame

public static javax.swing.JFrame getMainFrame()
Gets the initial JFrame of the application.

Returns:
the JFrame

getSimulationMaster

public static SimulationMaster getSimulationMaster()
Returns the simulation master (for example in order to stop or start simulation).

Returns:
the simulation master