vanetsim.gui.controlpanels
Class LogAnalyserDialog

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by java.awt.Window
              extended by java.awt.Dialog
                  extended by javax.swing.JDialog
                      extended by vanetsim.gui.controlpanels.LogAnalyserDialog
All Implemented Interfaces:
java.awt.event.ActionListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible, javax.swing.RootPaneContainer, javax.swing.WindowConstants

public final class LogAnalyserDialog
extends javax.swing.JDialog
implements java.awt.event.ActionListener

A dialog to create,edit and delete vehicle type files.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.awt.Dialog
java.awt.Dialog.ModalExclusionType, java.awt.Dialog.ModalityType
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.BaselineResizeBehavior
 
Field Summary
 
Fields inherited from class java.awt.Dialog
DEFAULT_MODALITY_TYPE
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
LogAnalyserDialog()
          Constructor.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          An implemented ActionListener which performs the needed actions
 void closeDialog()
          Methode is evoked when closing JDialog
 javax.swing.JFormattedTextField getAdvancedDataFilePath_()
          Gets the log file path for advanced attacks set in the gui
 javax.swing.JFormattedTextField getBigStreet_()
          Gets the big street value set in the gui
 javax.swing.JButton getBtnStart_()
          Gets the start button element of the GUI
 javax.swing.JButton getBtnStop_()
          Gets the stop button element of the GUI
 javax.swing.JComboBox getChooseAttackType_()
          Gets the choose attack type combo box element of the GUI
 javax.swing.JButton getCopyResultsBtn()
          Gets the copy button element of the GUI
 javax.swing.JFormattedTextField getFilePath_()
          Gets the log file path set in the gui
 javax.swing.JTextArea getInformationTextArea_()
          Gets the information text area element of the GUI
 javax.swing.JFormattedTextField getLeavesStreet_()
          Gets the leaves street value set in the gui
 javax.swing.JFormattedTextField getLimitToAngle_()
          Gets the limit to angle element of the GUI
 javax.swing.JFormattedTextField getMakesUTurn_()
          Gets the makes u-turn value set in the gui
 javax.swing.JRadioButton getMixZoneLog_()
          Gets the radio button mix-zone element of the GUI
 javax.swing.JProgressBar getProgressBar()
          Gets the progressbar element of the GUI
 javax.swing.JRadioButton getSilentPeriodLog_()
          Gets the radio button silent-period element of the GUI
 javax.swing.JFormattedTextField getSmallStreet_()
          Gets the small street value set in the gui
 javax.swing.JFormattedTextField getStaysOnStreet_()
          Gets the stays on street value set in the gui
 javax.swing.JFormattedTextField getTimeBuffer_()
          Gets the time buffer value set in the gui
 javax.swing.JFormattedTextField getTuneTime_()
          Gets the tune time value set in the gui
 javax.swing.JCheckBox getUseProbability_()
          Gets the the probabilities flag set in the gui
 void setChooseAttackType_(javax.swing.JComboBox chooseAttackType_)
          Sets the choose attack type combo box
 void setMixZoneLog_(javax.swing.JRadioButton mixZoneLog_)
          Sets the mix zone radio button
 void setProgressBar(javax.swing.JProgressBar progressBar)
          Sets the progress bar
 void setSilentPeriodLog_(javax.swing.JRadioButton silentPeriodLog_)
          Sets the silent-period radio button
 void updateGUI()
          Methode to update GUI Elements when changing mode
 
Methods inherited from class javax.swing.JDialog
getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setTransferHandler, update
 
Methods inherited from class java.awt.Dialog
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setModalityType, setResizable, setTitle, setUndecorated, setVisible, show, toBack
 
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOwnedWindows, getOwner, getOwnerlessWindows, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isShowing, pack, paint, postEvent, removeNotify, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImage, setIconImages, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusBackward, transferFocusDownCycle, validate
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, dispatchEvent, enable, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocusInWindow, resize, resize, setBackground, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LogAnalyserDialog

public LogAnalyserDialog()
Constructor. Creating GUI items.

Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
An implemented ActionListener which performs the needed actions

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
e - an ActionEvent

updateGUI

public void updateGUI()
Methode to update GUI Elements when changing mode


closeDialog

public void closeDialog()
Methode is evoked when closing JDialog


getTuneTime_

public javax.swing.JFormattedTextField getTuneTime_()
Gets the tune time value set in the gui

Returns:
the tune time value

getTimeBuffer_

public javax.swing.JFormattedTextField getTimeBuffer_()
Gets the time buffer value set in the gui

Returns:
the time buffer value

getBigStreet_

public javax.swing.JFormattedTextField getBigStreet_()
Gets the big street value set in the gui

Returns:
the big street value

getSmallStreet_

public javax.swing.JFormattedTextField getSmallStreet_()
Gets the small street value set in the gui

Returns:
the small street value

getStaysOnStreet_

public javax.swing.JFormattedTextField getStaysOnStreet_()
Gets the stays on street value set in the gui

Returns:
the stays on street value

getLeavesStreet_

public javax.swing.JFormattedTextField getLeavesStreet_()
Gets the leaves street value set in the gui

Returns:
the leaves street value

getMakesUTurn_

public javax.swing.JFormattedTextField getMakesUTurn_()
Gets the makes u-turn value set in the gui

Returns:
the makes u-turn value

getFilePath_

public javax.swing.JFormattedTextField getFilePath_()
Gets the log file path set in the gui

Returns:
the log file path

getAdvancedDataFilePath_

public javax.swing.JFormattedTextField getAdvancedDataFilePath_()
Gets the log file path for advanced attacks set in the gui

Returns:
the log file path for advanced attacks

getUseProbability_

public javax.swing.JCheckBox getUseProbability_()
Gets the the probabilities flag set in the gui

Returns:
true if the probabilities should be used in the attack

getBtnStart_

public javax.swing.JButton getBtnStart_()
Gets the start button element of the GUI

Returns:
the start button element of the GUI

getBtnStop_

public javax.swing.JButton getBtnStop_()
Gets the stop button element of the GUI

Returns:
the stop button element of the GUI

getProgressBar

public javax.swing.JProgressBar getProgressBar()
Gets the progressbar element of the GUI

Returns:
the progressbar element of the GUI

setProgressBar

public void setProgressBar(javax.swing.JProgressBar progressBar)
Sets the progress bar

Parameters:
progressBar - the new JProgressBar

getLimitToAngle_

public javax.swing.JFormattedTextField getLimitToAngle_()
Gets the limit to angle element of the GUI

Returns:
the limit to angle element of the GUI

getInformationTextArea_

public javax.swing.JTextArea getInformationTextArea_()
Gets the information text area element of the GUI

Returns:
the information text area of the GUI

getCopyResultsBtn

public javax.swing.JButton getCopyResultsBtn()
Gets the copy button element of the GUI

Returns:
the copy button element of the GUI

getSilentPeriodLog_

public javax.swing.JRadioButton getSilentPeriodLog_()
Gets the radio button silent-period element of the GUI

Returns:
the radio button silent-period element of the GUI

setSilentPeriodLog_

public void setSilentPeriodLog_(javax.swing.JRadioButton silentPeriodLog_)
Sets the silent-period radio button

Parameters:
silentPeriodLog_ - the new JRadioButton

getMixZoneLog_

public javax.swing.JRadioButton getMixZoneLog_()
Gets the radio button mix-zone element of the GUI

Returns:
the radio button mix-zone element of the GUI

setMixZoneLog_

public void setMixZoneLog_(javax.swing.JRadioButton mixZoneLog_)
Sets the mix zone radio button

Parameters:
mixZoneLog_ - the new JRadioButton

getChooseAttackType_

public javax.swing.JComboBox getChooseAttackType_()
Gets the choose attack type combo box element of the GUI

Returns:
the choose attack type combo box element of the GUI

setChooseAttackType_

public void setChooseAttackType_(javax.swing.JComboBox chooseAttackType_)
Sets the choose attack type combo box

Parameters:
chooseAttackType_ - the new JComboBox