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) |
This class contains the control elements for display of statistics and mix zone information
|
inline |
Constructor for this control panel.
|
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...
|
inline |
Accumulates different versions of a scenario for a detailed analysis
files | the different versions of a scenario analysis |
|
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...
|
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
files | the different versions of a scenario analysis |
|
inline |
Accumulates different versions of a scenario for a simple silent-period analysis
files | the different versions of a scenario analysis |
|
inline |
An implemented ActionListener
which performs all needed actions when a JButton
is clicked.
e | an ActionEvent |
|
inline |
Receive a beacon from a vehicle in the monitored zone.
vehicle | the vehicle |
ID | the ID of the vehicle |
x | the x coordinate of the vehicle |
y | the y coordinate of the vehicle |
speed | the speed of the vehicle |
isEncrypted | if the beacon is encrypted |
|
inline |
Receive a beacon from a vehicle in the monitored zone.
vehicle | the vehicle |
ID | the ID of the vehicle |
x | the x coordinate of the vehicle |
y | the y coordinate of the vehicle |
speed | the speed of the vehicle |
isEncrypted | if the beacon is encrypted |
isForwared | if a beacon is forwared by an RSU |
|
inline |
Receive a beacon from a RSU in the monitored zone.
rsu | the RSU |
ID | the ID of the vehicle |
x | the x coordinate of the vehicle |
y | the y coordinate of the vehicle |
isEncrypted | if Beacon was encrypted |
|
inline |
Sums up the length of all the streets on the loaded map
|
inline |
This function should be called after each simulation step to determine if an update of statistics/beacon information is necessary
timePerStep | the time of one simulation step in milliseconds |
|
inline |
Exchanges the coordinates of a mix-zone-log with port numbers. Has to be done before using the log-analyzer!
IOException |
|
inline |
Yes it is a own compareTo method, because java is annoying!!!111einseins ;). Used to sort the files selected in the file chooser.
string1 | the first string |
string2 | the string to compare to the first one |
|
inline |
Reads detailed log files and calculates advanced information for diagrams
|
inline |
Gets the different versions of a szenario log (searches for _version1..., _version2...)
file |
|
inline |
Sets if this panel is currently active.
true
if it is active, else false
|
inline |
Returns if editing of the monitored mix zone is enabled.
true
if it is enabled, else false
|
inline |
Invoked when an item changes. Used for the JCheckBoxes.
e | the change event |
|
inline |
Receives a mouse event for changing the monitored mix zone.
x | the x coordinate |
y | the y coordinate |
|
inline |
Sets if this panel is currently active
active | true if it is active, else false |
|
inline |
Show the attack results on the map
|
inline |
Updates the statistics. You need to make sure that the vehicles are not modified while executing this.