VANET Simulator
 All Classes Functions Variables
Public Member Functions | Static Public Member Functions | List of all members
vanetsim.gui.helpers.LogAnalyser Class Reference

Public Member Functions

 LogAnalyser (LogAnalyserDialog logDialog)
 
 LogAnalyser ()
 
void guiControl (String element, boolean value)
 
void updateProgressBar (int value)
 
void addToProgressBar (int value)
 
double getGuiElement (String name)
 
boolean isProbabilitiesOn ()
 
void startNextJob (boolean firstJob)
 
void addJob (String filePath)
 
void addNewJobs ()
 
void readJobs ()
 
void saveJobsToFile ()
 
void documentJobsToFile (String job)
 
void updateInformationArea (int numberOfCarsChecked, int numberOfCorrectVehiclesFound, boolean finished)
 
void updateInformationArea (String text)
 
void updateInformationArea (String text, boolean b)
 
void writeResultsToFile (String fileName)
 
boolean isFilePathChanged ()
 
void setFilePathChanged (boolean filePathChanged)
 
ArrayList< String > getJobs ()
 
void setJobs (ArrayList< String > jobs)
 
String getLogOutput_ ()
 
void setLogOutput_ (String logOutput_)
 
String getLogName ()
 
void setLogName (String logName)
 
String getLogType ()
 
void setLogType (String logType)
 
String getAttackType ()
 
void setAttackType (String attackType)
 
LogOperations getOperation_ ()
 
void setOperation_ (LogOperations operation_)
 
String getActualJob ()
 
void setActualJob (String actualJob)
 
boolean isAdvancedFilePathChanged ()
 
void setAdvancedFilePathChanged (boolean advancedFilePathChanged)
 
String getAdvancedFilePath_ ()
 
void setAdvancedFilePath_ (String advancedFilePath_)
 
String getPlainJob ()
 
void setPlainJob (String plainJob)
 
double getTimeBufferValue ()
 
void setTimeBufferValue (double timeBufferValue)
 
double getTuneTimeValue ()
 
void setTuneTimeValue (double tuneTimeValue)
 
double getBiggerStreetValue ()
 
void setBiggerStreetValue (double biggerStreetValue)
 
double getSmallerStreetValue ()
 
void setSmallerStreetValue (double smallerStreetValue)
 
double getDrivesStraigthValue ()
 
void setDrivesStraigthValue (double drivesStraigthValue)
 
double getTurnsValue ()
 
void setTurnsValue (double turnsValue)
 
double getMakesUTurnValue ()
 
void setMakesUTurnValue (double makesUTurnValue)
 
double getLimitToAngle ()
 
void setLimitToAngle (double limitToAngle)
 
boolean isUseProbability ()
 
void setUseProbability (boolean useProbability)
 

Static Public Member Functions

static void main (String[] args)
 

Constructor & Destructor Documentation

vanetsim.gui.helpers.LogAnalyser.LogAnalyser ( LogAnalyserDialog  logDialog)
inline

Constructor for GUI-Mode

Parameters
logDialog
vanetsim.gui.helpers.LogAnalyser.LogAnalyser ( )
inline

Constructor for Console Mode. The class will look for the file jobs.txt, read it and calculate the jobs

Member Function Documentation

void vanetsim.gui.helpers.LogAnalyser.addJob ( String  filePath)
inline

Adds a job with all parameters

Parameters
filePath
void vanetsim.gui.helpers.LogAnalyser.addNewJobs ( )
inline

Checks if there is a file named addJobs.txt. If yes it adds this jobs to the queue.

void vanetsim.gui.helpers.LogAnalyser.addToProgressBar ( int  value)
inline

Adds a value to the progress bar. Also supports the console mode.

Parameters
value
void vanetsim.gui.helpers.LogAnalyser.documentJobsToFile ( String  job)
inline

saves jobs to jobs_done.txt file for documentation

double vanetsim.gui.helpers.LogAnalyser.getGuiElement ( String  name)
inline

Returns a GUI element. Needed because of MVC

Parameters
name
Returns
void vanetsim.gui.helpers.LogAnalyser.guiControl ( String  element,
boolean  value 
)
inline

Handles the control elements of the GUI

Parameters
element
value
boolean vanetsim.gui.helpers.LogAnalyser.isProbabilitiesOn ( )
inline

check if probabilities are used for the attack

Returns
the probability
void vanetsim.gui.helpers.LogAnalyser.readJobs ( )
inline

reads the jobs in jobs.txt

void vanetsim.gui.helpers.LogAnalyser.saveJobsToFile ( )
inline

saves jobs to file

void vanetsim.gui.helpers.LogAnalyser.startNextJob ( boolean  firstJob)
inline

Starts the next job and handles documentation

void vanetsim.gui.helpers.LogAnalyser.updateInformationArea ( int  numberOfCarsChecked,
int  numberOfCorrectVehiclesFound,
boolean  finished 
)
inline

Updates status text area

void vanetsim.gui.helpers.LogAnalyser.updateInformationArea ( String  text)
inline

Updates status text area in GUI and console mode

void vanetsim.gui.helpers.LogAnalyser.updateInformationArea ( String  text,
boolean  b 
)
inline

Updates status text area. If true the data will be written to a file

void vanetsim.gui.helpers.LogAnalyser.updateProgressBar ( int  value)
inline

Updates the progress bar to the given value

Parameters
value
void vanetsim.gui.helpers.LogAnalyser.writeResultsToFile ( String  fileName)
inline

writes the log to file

Parameters
fileName

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