VANET Simulator
 All Classes Functions Variables
Public Member Functions | List of all members
vanetsim.gui.controlpanels.ReportingControlPanel Class Reference
Inheritance diagram for vanetsim.gui.controlpanels.ReportingControlPanel:

Public Member Functions

 ReportingControlPanel ()
 
void checkUpdates (int timePerStep)
 
void updateBeaconInfo ()
 
synchronized void addBeacon (Vehicle vehicle, long ID, long x, long y, double speed, boolean isEncrypted)
 
synchronized void addBeacon (Vehicle vehicle, long ID, long x, long y, double speed, boolean isEncrypted, boolean isForwared)
 
synchronized void addBeacon (RSU rsu, long ID, long x, long y, boolean isEncrypted)
 
void receiveMouseEvent (int x, int y)
 
void actionPerformed (ActionEvent e)
 
void itemStateChanged (ItemEvent e)
 
boolean isActive ()
 
boolean isInMonitoredMixZoneEditMode ()
 
void setActive (boolean active)
 
void cleanLogFile () throws IOException
 
void calculateStreetLength ()
 
void showAdvancedLocationInformation ()
 
float[] accumulateSimpleMixFiles (ArrayList< File > files)
 
float[] accumulateSimpleSilentPeriodFiles (ArrayList< File > files)
 
float[] accumulateDetailFiles (ArrayList< File > files)
 
ArrayList< File > getFileList (File file)
 
void editDetailLogFiles ()
 
void accumulateDetailedLogFiles ()
 
void accumulateSimpleLogFiles (String mode)
 
int compare (String[] string1, String[] string2)
 

Detailed Description

This class contains the control elements for display of statistics and mix zone information

Constructor & Destructor Documentation

vanetsim.gui.controlpanels.ReportingControlPanel.ReportingControlPanel ( )
inline

Constructor for this control panel.

Member Function Documentation

void vanetsim.gui.controlpanels.ReportingControlPanel.accumulateDetailedLogFiles ( )
inline

Opens log files and calculates data for diagram. More than one file can be opened. If there is more than one version (same scenario with new random vehicles) of the file opening one version is enough. The script will look for version1, version2, version3...

float [] vanetsim.gui.controlpanels.ReportingControlPanel.accumulateDetailFiles ( ArrayList< File >  files)
inline

Accumulates different versions of a scenario for a detailed analysis

Parameters
filesthe different versions of a scenario analysis
Returns
values for a detailed analysis
void vanetsim.gui.controlpanels.ReportingControlPanel.accumulateSimpleLogFiles ( String  mode)
inline

Opens log files and calculates data for diagram. More than one file can be opened. If there is more than one version (same scenario with new random vehicles) of the file opening one version is enough. The script will look for version1, version2, version3...

float [] vanetsim.gui.controlpanels.ReportingControlPanel.accumulateSimpleMixFiles ( ArrayList< File >  files)
inline

the following methods are scripts and where used in the master thesis of andreas tomandl 2011. They are not part of the Simulator, but can be used to edit the data for gnuplot graphs Accumulates different versions of a scenario for a simple mix-zone analysis

Parameters
filesthe different versions of a scenario analysis
Returns
values for simple analysis
float [] vanetsim.gui.controlpanels.ReportingControlPanel.accumulateSimpleSilentPeriodFiles ( ArrayList< File >  files)
inline

Accumulates different versions of a scenario for a simple silent-period analysis

Parameters
filesthe different versions of a scenario analysis
Returns
values for simple analysis
void vanetsim.gui.controlpanels.ReportingControlPanel.actionPerformed ( ActionEvent  e)
inline

An implemented ActionListener which performs all needed actions when a JButton is clicked.

Parameters
ean ActionEvent
synchronized void vanetsim.gui.controlpanels.ReportingControlPanel.addBeacon ( Vehicle  vehicle,
long  ID,
long  x,
long  y,
double  speed,
boolean  isEncrypted 
)
inline

Receive a beacon from a vehicle in the monitored zone.

Parameters
vehiclethe vehicle
IDthe ID of the vehicle
xthe x coordinate of the vehicle
ythe y coordinate of the vehicle
speedthe speed of the vehicle
isEncryptedif the beacon is encrypted
synchronized void vanetsim.gui.controlpanels.ReportingControlPanel.addBeacon ( Vehicle  vehicle,
long  ID,
long  x,
long  y,
double  speed,
boolean  isEncrypted,
boolean  isForwared 
)
inline

Receive a beacon from a vehicle in the monitored zone.

Parameters
vehiclethe vehicle
IDthe ID of the vehicle
xthe x coordinate of the vehicle
ythe y coordinate of the vehicle
speedthe speed of the vehicle
isEncryptedif the beacon is encrypted
isForwaredif a beacon is forwared by an RSU
synchronized void vanetsim.gui.controlpanels.ReportingControlPanel.addBeacon ( RSU  rsu,
long  ID,
long  x,
long  y,
boolean  isEncrypted 
)
inline

Receive a beacon from a RSU in the monitored zone.

Parameters
rsuthe RSU
IDthe ID of the vehicle
xthe x coordinate of the vehicle
ythe y coordinate of the vehicle
isEncryptedif Beacon was encrypted
void vanetsim.gui.controlpanels.ReportingControlPanel.calculateStreetLength ( )
inline

Sums up the length of all the streets on the loaded map

void vanetsim.gui.controlpanels.ReportingControlPanel.checkUpdates ( int  timePerStep)
inline

This function should be called after each simulation step to determine if an update of statistics/beacon information is necessary

Parameters
timePerStepthe time of one simulation step in milliseconds
void vanetsim.gui.controlpanels.ReportingControlPanel.cleanLogFile ( ) throws IOException
inline

Exchanges the coordinates of a mix-zone-log with port numbers. Has to be done before using the log-analyzer!

Exceptions
IOException
int vanetsim.gui.controlpanels.ReportingControlPanel.compare ( String[]  string1,
String[]  string2 
)
inline

Yes it is a own compareTo method, because java is annoying!!!111einseins ;). Used to sort the files selected in the file chooser.

Parameters
string1the first string
string2the string to compare to the first one
Returns
void vanetsim.gui.controlpanels.ReportingControlPanel.editDetailLogFiles ( )
inline

Reads detailed log files and calculates advanced information for diagrams

ArrayList<File> vanetsim.gui.controlpanels.ReportingControlPanel.getFileList ( File  file)
inline

Gets the different versions of a szenario log (searches for _version1..., _version2...)

Parameters
file
Returns
boolean vanetsim.gui.controlpanels.ReportingControlPanel.isActive ( )
inline

Sets if this panel is currently active.

Returns
true if it is active, else false
boolean vanetsim.gui.controlpanels.ReportingControlPanel.isInMonitoredMixZoneEditMode ( )
inline

Returns if editing of the monitored mix zone is enabled.

Returns
true if it is enabled, else false
void vanetsim.gui.controlpanels.ReportingControlPanel.itemStateChanged ( ItemEvent  e)
inline

Invoked when an item changes. Used for the JCheckBoxes.

Parameters
ethe change event
See Also
java.awt.event.ItemListener::itemStateChanged(java.awt.event.ItemEvent)
void vanetsim.gui.controlpanels.ReportingControlPanel.receiveMouseEvent ( int  x,
int  y 
)
inline

Receives a mouse event for changing the monitored mix zone.

Parameters
xthe x coordinate
ythe y coordinate
void vanetsim.gui.controlpanels.ReportingControlPanel.setActive ( boolean  active)
inline

Sets if this panel is currently active

Parameters
activetrue if it is active, else false
void vanetsim.gui.controlpanels.ReportingControlPanel.showAdvancedLocationInformation ( )
inline

Show the attack results on the map

void vanetsim.gui.controlpanels.ReportingControlPanel.updateBeaconInfo ( )
inline

Updates the statistics. You need to make sure that the vehicles are not modified while executing this.


The documentation for this class was generated from the following file: