Class PrimeMinerDialog
- java.lang.Object
-
- java.awt.Component
-
- java.awt.Container
-
- javax.swing.JComponent
-
- javax.swing.JPanel
-
- org.processmining.primeminer.dialogs.PrimeMinerDialog
-
- All Implemented Interfaces:
java.awt.image.ImageObserver,java.awt.MenuContainer,java.io.Serializable,javax.accessibility.Accessible
public class PrimeMinerDialog extends javax.swing.JPanelEstablish two dialogs for the prime miner. A first one to select the oracle, a second one to decide between "show hasse diagrams" and "mine petri net".- Author:
- Raphael Meyer
- See Also:
- 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
-
-
Field Summary
-
Fields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
-
-
Constructor Summary
Constructors Constructor Description PrimeMinerDialog()Establish the OPTIONAL THIRD DIALOG for the prime miner.PrimeMinerDialog(int partialLanguageSize, PrimeMinerParameters parameters)Establish the SECOND DIALOG for the prime miner.PrimeMinerDialog(org.deckfour.xes.model.XLog log, PrimeMinerParameters parameters)Establish the FIRST DIALOG for the prime miner.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidclearAlgorithmInformations()clears/resets dialogAlgorithmInformations if necessary with "";static voidextendDialogAlgorithmInformations(java.lang.String dialogAlgortithmInformations)extends dialogAlgorithmInformations with a given information as string and concatenatestatic voidextendDialogAlgorithmInformationsWithNewLine(java.lang.String dialogAlgortithmInformations)like dialogAlgorithmInformations but with New Line at the end of each given informationstatic java.lang.StringgetCasesPerHasseDiagram()static java.lang.StringgetDialogAlgorithmInformations()javax.swing.JList<java.lang.String>getList()static java.lang.StringgetPreviousCasesPerHasseDiagram()static java.lang.StringgetPreviousConcurrencies()static java.lang.StringgetPreviousOracle()static intgetPreviousPartialLanguageSize()intgetSliderValue()booleanisCheckBoxValue()static voidprintChoosenOracle(java.lang.String oracle)Store and save the selected oracle.static voidprintConcurrentActions(java.lang.String concurrencies)Store and save the concurrencies based on the choosen oracle.static voidprintInitializeInformations()Prints initialize Informations which are collected by calculation language from log and setting up the parameter class.static voidprintPartialLanguageSizeAndCasesPerHasseInformations()Extends the method dialogAlgorithmInformations with partial language size and cases per hasse diagram calculated during mining.static voidsetCasesPerHasseDiagram(java.lang.String casesPerHasseDiagram)voidsetCheckBoxValue(boolean checkBoxValue)static voidsetDialogAlgorithmInformations(java.lang.String dialogAlgortithmInformations)voidsetList(javax.swing.JList<java.lang.String> list)static voidsetPreviousCasesPerHasseDiagram(java.lang.String previousCasesPerHasseDiagram)static voidsetPreviousConcurrencies(java.lang.String previousConcurrencies)static voidsetPreviousOracle(java.lang.String previousOracle)static voidsetPreviousPartialLanguageSize(int previousPartialLanguageSize)voidsetSliderValue(int sliderValue)-
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, getBaseline, getBaselineResizeBehavior, 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, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, 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, 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, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, 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, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
-
-
-
Constructor Detail
-
PrimeMinerDialog
public PrimeMinerDialog(org.deckfour.xes.model.XLog log, PrimeMinerParameters parameters)Establish the FIRST DIALOG for the prime miner. The user can choose between the detected oracle detected from log and stored in parameters- Parameters:
log- the log file given from extern via import from the ui of promparameters- all informations extract and calculated from log
-
PrimeMinerDialog
public PrimeMinerDialog(int partialLanguageSize, PrimeMinerParameters parameters)Establish the SECOND DIALOG for the prime miner. After the oracle was choosen, the user can set the number of considered hasse diagrams. The amount of these diagrams is the size of the partial language- Parameters:
partialLanguageSize- the size of the partial languageparameters- the given parameters, established in steps before
-
PrimeMinerDialog
public PrimeMinerDialog()
Establish the OPTIONAL THIRD DIALOG for the prime miner. This only pops up in the end iff showStats in parameters is set true showStats can be set in DIALOG 2 and is false by default, which means no third dialog
-
-
Method Detail
-
printInitializeInformations
public static void printInitializeInformations()
Prints initialize Informations which are collected by calculation language from log and setting up the parameter class. This informations are shown in the first dialog of prime miner. So here are the log size, complete cases, language size and the possible oracles.
-
printConcurrentActions
public static void printConcurrentActions(java.lang.String concurrencies)
Store and save the concurrencies based on the choosen oracle. This stored value is used to replace the old given data when switching to another oracle, which is triggered in second dialog by press "previous" and select an oracle.- Parameters:
concurrencies- all the concurrencies, based on the choosen oracle
-
printChoosenOracle
public static void printChoosenOracle(java.lang.String oracle)
Store and save the selected oracle. This stored value is used to replace the old given oracle when switching to another oracle, which is triggered in second dialog by press "previous" and select an oracle.- Parameters:
oracle- the selected oracle in the dialog by user
-
printPartialLanguageSizeAndCasesPerHasseInformations
public static void printPartialLanguageSizeAndCasesPerHasseInformations()
Extends the method dialogAlgorithmInformations with partial language size and cases per hasse diagram calculated during mining. This informations are for the second dialog.
-
extendDialogAlgorithmInformations
public static void extendDialogAlgorithmInformations(java.lang.String dialogAlgortithmInformations)
extends dialogAlgorithmInformations with a given information as string and concatenate- Parameters:
dialogAlgortithmInformations- the informations which should be attached to the actually dialogAlgorithmInforamtions.
-
extendDialogAlgorithmInformationsWithNewLine
public static void extendDialogAlgorithmInformationsWithNewLine(java.lang.String dialogAlgortithmInformations)
like dialogAlgorithmInformations but with New Line at the end of each given information- Parameters:
dialogAlgortithmInformations- the informations which should be attached to the actually dialogAlgorithmInforamtions.
-
clearAlgorithmInformations
public static void clearAlgorithmInformations()
clears/resets dialogAlgorithmInformations if necessary with "";
-
getDialogAlgorithmInformations
public static java.lang.String getDialogAlgorithmInformations()
- Returns:
- the dialog algortihm informations about, language, size, cases usw.
-
setDialogAlgorithmInformations
public static void setDialogAlgorithmInformations(java.lang.String dialogAlgortithmInformations)
- Parameters:
dialogAlgortithmInformations- sets the algorithm informations for the first dialog
-
getPreviousOracle
public static java.lang.String getPreviousOracle()
- Returns:
- the oracle which was selected before the current one
-
setPreviousOracle
public static void setPreviousOracle(java.lang.String previousOracle)
- Parameters:
previousOracle- set the previous selected oracle by the dialog to identify the change
-
getPreviousConcurrencies
public static java.lang.String getPreviousConcurrencies()
- Returns:
- the concurrent which was established previous
-
setPreviousConcurrencies
public static void setPreviousConcurrencies(java.lang.String previousConcurrencies)
- Parameters:
previousConcurrencies- set the concurrent from a previous calculation in dependency of the oracle
-
getPreviousPartialLanguageSize
public static int getPreviousPartialLanguageSize()
- Returns:
- the previous partial language size which was selected before
-
setPreviousPartialLanguageSize
public static void setPreviousPartialLanguageSize(int previousPartialLanguageSize)
- Parameters:
previousPartialLanguageSize- set the previous partial langauge size
-
getCasesPerHasseDiagram
public static java.lang.String getCasesPerHasseDiagram()
- Returns:
- the cases per hasse diagram which is used by the dialog
-
setCasesPerHasseDiagram
public static void setCasesPerHasseDiagram(java.lang.String casesPerHasseDiagram)
- Parameters:
casesPerHasseDiagram- represents the cases in a hasse diagram
-
getPreviousCasesPerHasseDiagram
public static java.lang.String getPreviousCasesPerHasseDiagram()
- Returns:
- the previous cases per hasse diagram
-
setPreviousCasesPerHasseDiagram
public static void setPreviousCasesPerHasseDiagram(java.lang.String previousCasesPerHasseDiagram)
- Parameters:
previousCasesPerHasseDiagram- set the previous cases per hasse
-
getList
public javax.swing.JList<java.lang.String> getList()
- Returns:
- the list of selectable entries like concurrent oracles
-
setList
public void setList(javax.swing.JList<java.lang.String> list)
- Parameters:
list- contains selectable entries for the user, like oracles
-
getSliderValue
public int getSliderValue()
- Returns:
- the amount of partialLanguageSize to show it f. e. with the slider
-
setSliderValue
public void setSliderValue(int sliderValue)
- Parameters:
sliderValue- is the amount of partialLanguageSize in the first dialog
-
isCheckBoxValue
public boolean isCheckBoxValue()
- Returns:
- the reserverd value for further development
-
setCheckBoxValue
public void setCheckBoxValue(boolean checkBoxValue)
- Parameters:
checkBoxValue- is for further development reserved
-
-