org.processmining.analysis.performance
Class PerformanceConfiguration

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JPanel
                  extended by org.processmining.analysis.performance.PerformanceConfiguration
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible

public class PerformanceConfiguration
extends javax.swing.JPanel

This class is needed to allow the user to set options, such as the boundaries of bottleneck levels, i.e. the waiting time-levels, and colors corresponding to these levels that can be high, medium or low can be set and given a color. As well as the timesort and the number of decimals to use.

Author:
Peter T.G. Hornix (p.t.g.hornix@student.tue.nl)
See Also:
PerformanceAnalysisSettings, PerformanceAnalysisGUI, Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
PerformanceConfiguration()
          Constructor to build the GUI
PerformanceConfiguration(java.util.ArrayList levelColors, java.util.ArrayList bounds, java.lang.String sort, int decimals, int[] settings)
          Just as the normal constructor, but also initializes the options, with the parameter-values
 
Method Summary
 void addAnalysisResult(AnalysisResult result)
          Adds another result object to the list of analysis results held by this category.
 void changeDisplay(ExtendedPlace selected)
          Hides the radioPanel and displays the settingsPanel.
 void closeAdvancedFrames()
          Closes all advanced settings frames that were opened from this performance configuration
 void disableAll()
          Disables all buttons, comboboxes and input fields
 void enableAll()
          Enables all buttons, comboboxes and input fields
 int[] getAdvancedSettings()
          Returns an array containing the advanced settings
 boolean getAllSelected()
          Returns true if the radioButton allPlacesButton has been selected, false if thisPlaceButton has been selected instead.
 java.util.ArrayList getBoundaries()
          Retrieves the list of bounds between waiting time levels, starting with the lowest bound
 java.util.ArrayList getColors()
          Retrieves the list of colors used (starting with lowest waiting time level)
 int getDecimalPlaces()
          Returns the number of
 boolean getManualSelected()
          Returns true if manual settings have been selected, else (use auto-settings) false.
 java.util.HashSet getResultObjects()
          Gets the results needed to initialize the GUI for this top level category.
 javax.swing.JPanel getResultPanel()
          Sets the actual result contents of the panel representing the belonging kind of analysis perspective (only used for man categories, that is, top-level objects in the tree).
 ExtendedPlace getSelectedPlace()
          returns the selected place
 long getTimeDivider()
          Returns the timeDivider corresponding to the timeSort, that is, the number through which milliseconds have to be divided to get the right timesort
 java.lang.String getTimesort()
          Returns the timesort in which time metrics should be displayed
 void setAdvancedSettings(int[] settings)
          adjusts the advanced settings and closes all advanced settings frames
 void setResultPanel(AnalysisGUI panel)
          Assigns the GUI containing the results for that main analysis category.
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PerformanceConfiguration

public PerformanceConfiguration()
Constructor to build the GUI


PerformanceConfiguration

public PerformanceConfiguration(java.util.ArrayList levelColors,
                                java.util.ArrayList bounds,
                                java.lang.String sort,
                                int decimals,
                                int[] settings)
Just as the normal constructor, but also initializes the options, with the parameter-values

Parameters:
levelColors - ArrayList: contains the colors corresponding to the different time levels
bounds - ArrayList: contains the bounds
sort - String: contains the timeSort in which is measured
decimals - int: number of decimal places
settings - int[]: the advanced options used
Method Detail

disableAll

public void disableAll()
Disables all buttons, comboboxes and input fields


enableAll

public void enableAll()
Enables all buttons, comboboxes and input fields


changeDisplay

public void changeDisplay(ExtendedPlace selected)
Hides the radioPanel and displays the settingsPanel. Furthermore, this method checks whether a place was selected and displays the placePanel if this is the case. If the place has its 'own'-settings, i.e. the user filled in settings specific to this place before, then the settings that were filled in by the user are displayed.

Parameters:
selected - ExtendedPlace: the selected place

closeAdvancedFrames

public void closeAdvancedFrames()
Closes all advanced settings frames that were opened from this performance configuration


addAnalysisResult

public void addAnalysisResult(AnalysisResult result)
Adds another result object to the list of analysis results held by this category. This only used for top level categories as they get a seperate tab in the results frame, and need to initialize their GUI classes with the analysis results obtained.

Parameters:
result - the new result object

setResultPanel

public void setResultPanel(AnalysisGUI panel)
Assigns the GUI containing the results for that main analysis category. It serves as an intermediate storage to be packed genericly in the AnalysisResults class.

Parameters:
panel - the results panel

getResultObjects

public java.util.HashSet getResultObjects()
Gets the results needed to initialize the GUI for this top level category.

Returns:
a list of AnalysisResult objects

getResultPanel

public javax.swing.JPanel getResultPanel()
Sets the actual result contents of the panel representing the belonging kind of analysis perspective (only used for man categories, that is, top-level objects in the tree). It serves as an intermediate storage to be packed genericly in the AnalysisResults class.

Returns:
the result panel if assigned before, an empty JPanel otherwise
See Also:
setResultPanel(org.processmining.framework.models.petrinet.algorithms.logReplay.AnalysisGUI)

getDecimalPlaces

public int getDecimalPlaces()
Returns the number of

Returns:
long

getTimesort

public java.lang.String getTimesort()
Returns the timesort in which time metrics should be displayed

Returns:
String

getTimeDivider

public long getTimeDivider()
Returns the timeDivider corresponding to the timeSort, that is, the number through which milliseconds have to be divided to get the right timesort

Returns:
long

getBoundaries

public java.util.ArrayList getBoundaries()
Retrieves the list of bounds between waiting time levels, starting with the lowest bound

Returns:
ArrayList

getColors

public java.util.ArrayList getColors()
Retrieves the list of colors used (starting with lowest waiting time level)

Returns:
ArrayList

getAdvancedSettings

public int[] getAdvancedSettings()
Returns an array containing the advanced settings

Returns:
int[]

getManualSelected

public boolean getManualSelected()
Returns true if manual settings have been selected, else (use auto-settings) false.

Returns:
boolean

getAllSelected

public boolean getAllSelected()
Returns true if the radioButton allPlacesButton has been selected, false if thisPlaceButton has been selected instead.

Returns:
boolean

getSelectedPlace

public ExtendedPlace getSelectedPlace()
returns the selected place

Returns:
ExtendedPlace

setAdvancedSettings

public void setAdvancedSettings(int[] settings)
adjusts the advanced settings and closes all advanced settings frames

Parameters:
settings - int[]: the settings to which the advanced settings are to be set