|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object vanetsim.gui.helpers.LogAnalyser
public class LogAnalyser
Constructor Summary | |
---|---|
LogAnalyser()
Constructor for Console Mode. |
|
LogAnalyser(LogAnalyserDialog logDialog)
Constructor for GUI-Mode |
Method Summary | |
---|---|
void |
addJob(java.lang.String filePath)
Adds a job with all parameters |
void |
addNewJobs()
Checks if there is a file named addJobs.txt. |
void |
addToProgressBar(int value)
Adds a value to the progress bar. |
void |
documentJobsToFile(java.lang.String job)
saves jobs to jobs_done.txt file for documentation |
java.lang.String |
getActualJob()
|
java.lang.String |
getAdvancedFilePath_()
|
java.lang.String |
getAttackType()
|
double |
getBiggerStreetValue()
|
double |
getDrivesStraigthValue()
|
double |
getGuiElement(java.lang.String name)
Returns a GUI element. |
java.util.ArrayList<java.lang.String> |
getJobs()
|
double |
getLimitToAngle()
|
java.lang.String |
getLogName()
|
java.lang.String |
getLogOutput_()
|
java.lang.String |
getLogType()
|
double |
getMakesUTurnValue()
|
LogOperations |
getOperation_()
|
java.lang.String |
getPlainJob()
|
double |
getSmallerStreetValue()
|
double |
getTimeBufferValue()
|
double |
getTuneTimeValue()
|
double |
getTurnsValue()
|
void |
guiControl(java.lang.String element,
boolean value)
Handles the control elements of the GUI |
boolean |
isAdvancedFilePathChanged()
|
boolean |
isFilePathChanged()
|
boolean |
isProbabilitiesOn()
check if probabilities are used for the attack |
boolean |
isUseProbability()
|
static void |
main(java.lang.String[] args)
|
void |
readJobs()
reads the jobs in jobs.txt |
void |
saveJobsToFile()
saves jobs to file |
void |
setActualJob(java.lang.String actualJob)
|
void |
setAdvancedFilePath_(java.lang.String advancedFilePath_)
|
void |
setAdvancedFilePathChanged(boolean advancedFilePathChanged)
|
void |
setAttackType(java.lang.String attackType)
|
void |
setBiggerStreetValue(double biggerStreetValue)
|
void |
setDrivesStraigthValue(double drivesStraigthValue)
|
void |
setFilePathChanged(boolean filePathChanged)
|
void |
setJobs(java.util.ArrayList<java.lang.String> jobs)
|
void |
setLimitToAngle(double limitToAngle)
|
void |
setLogName(java.lang.String logName)
|
void |
setLogOutput_(java.lang.String logOutput_)
|
void |
setLogType(java.lang.String logType)
|
void |
setMakesUTurnValue(double makesUTurnValue)
|
void |
setOperation_(LogOperations operation_)
|
void |
setPlainJob(java.lang.String plainJob)
|
void |
setSmallerStreetValue(double smallerStreetValue)
|
void |
setTimeBufferValue(double timeBufferValue)
|
void |
setTuneTimeValue(double tuneTimeValue)
|
void |
setTurnsValue(double turnsValue)
|
void |
setUseProbability(boolean useProbability)
|
void |
startNextJob(boolean firstJob)
Starts the next job and handles documentation |
void |
updateInformationArea(int numberOfCarsChecked,
int numberOfCorrectVehiclesFound,
boolean finished)
Updates status text area |
void |
updateInformationArea(java.lang.String text)
Updates status text area in GUI and console mode |
void |
updateInformationArea(java.lang.String text,
boolean b)
Updates status text area. |
void |
updateProgressBar(int value)
Updates the progress bar to the given value |
void |
writeResultsToFile(java.lang.String fileName)
writes the log to file |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LogAnalyser(LogAnalyserDialog logDialog)
logDialog
- public LogAnalyser()
Method Detail |
---|
public static void main(java.lang.String[] args)
public void guiControl(java.lang.String element, boolean value)
element
- value
- public void updateProgressBar(int value)
value
- public void addToProgressBar(int value)
value
- public double getGuiElement(java.lang.String name)
name
-
public boolean isProbabilitiesOn()
public void startNextJob(boolean firstJob)
public void addJob(java.lang.String filePath)
filePath
- public void addNewJobs()
public void readJobs()
public void saveJobsToFile()
public void documentJobsToFile(java.lang.String job)
public void updateInformationArea(int numberOfCarsChecked, int numberOfCorrectVehiclesFound, boolean finished)
public void updateInformationArea(java.lang.String text)
public void updateInformationArea(java.lang.String text, boolean b)
public void writeResultsToFile(java.lang.String fileName)
fileName
- public boolean isFilePathChanged()
public void setFilePathChanged(boolean filePathChanged)
public java.util.ArrayList<java.lang.String> getJobs()
public void setJobs(java.util.ArrayList<java.lang.String> jobs)
public java.lang.String getLogOutput_()
public void setLogOutput_(java.lang.String logOutput_)
public java.lang.String getLogName()
public void setLogName(java.lang.String logName)
public java.lang.String getLogType()
public void setLogType(java.lang.String logType)
public java.lang.String getAttackType()
public void setAttackType(java.lang.String attackType)
public LogOperations getOperation_()
public void setOperation_(LogOperations operation_)
public java.lang.String getActualJob()
public void setActualJob(java.lang.String actualJob)
public boolean isAdvancedFilePathChanged()
public void setAdvancedFilePathChanged(boolean advancedFilePathChanged)
public java.lang.String getAdvancedFilePath_()
public void setAdvancedFilePath_(java.lang.String advancedFilePath_)
public java.lang.String getPlainJob()
public void setPlainJob(java.lang.String plainJob)
public double getTimeBufferValue()
public void setTimeBufferValue(double timeBufferValue)
public double getTuneTimeValue()
public void setTuneTimeValue(double tuneTimeValue)
public double getBiggerStreetValue()
public void setBiggerStreetValue(double biggerStreetValue)
public double getSmallerStreetValue()
public void setSmallerStreetValue(double smallerStreetValue)
public double getDrivesStraigthValue()
public void setDrivesStraigthValue(double drivesStraigthValue)
public double getTurnsValue()
public void setTurnsValue(double turnsValue)
public double getMakesUTurnValue()
public void setMakesUTurnValue(double makesUTurnValue)
public double getLimitToAngle()
public void setLimitToAngle(double limitToAngle)
public boolean isUseProbability()
public void setUseProbability(boolean useProbability)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |