Class PrimeMinerParameters
- java.lang.Object
-
- org.processmining.primeminer.parameters.PrimeMinerParameters
-
public class PrimeMinerParameters extends java.lang.ObjectParameters for mining of a AcceptingPetriNet models (hold in an array) from an event log. This data holds all informations, extracted from the given log. It also stores informations for and from decisions in the dialogs- Author:
- Raphael Meyer
-
-
Constructor Summary
Constructors Constructor Description PrimeMinerParameters(org.deckfour.xes.model.XLog log)Class constructor which generates an object with the given informations from the log by calling the extended Constructor with boolean falsePrimeMinerParameters(org.deckfour.xes.model.XLog log, java.lang.Boolean oneSolution)Class constructor which generates an object with the given informations from the log and a boolean for showing only one solution in the end
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object object)Returns whether these parameter object is equal to the given parameter object.intgetConsideredHasses()java.util.ArrayList<java.lang.String>getDetectedOracles()java.util.ArrayList<java.util.ArrayList<java.lang.String>>getLanguage()java.lang.StringgetSelectedOracle()java.lang.StringgetShowHasseOrMinePetriNet()static intgetTimeOutInSeconds()inthashCode()Returns the hash code for these parameters based on detectedOraclesstatic booleanisDebugMode()static booleanisOneSolution()booleanisShowHasse()booleanisShowStats()voidsetConsideredHasses(int consideredHasses)static voidsetDebugMode(boolean debugMode)voidsetDetectedOracles(java.util.ArrayList<java.lang.String> detectedOracles)voidsetLanguage(java.util.ArrayList<java.util.ArrayList<java.lang.String>> language)static voidsetOneSolution(boolean oneSolution)voidsetSelectedOracle(java.lang.String selectedOracle)voidsetShowHasseOrMinePetriNet(java.lang.String showHasseOrMinePetriNet)voidsetShowStats(boolean showStats)static voidsetTimeOutInSeconds(int timeOutInSeconds)
-
-
-
Constructor Detail
-
PrimeMinerParameters
public PrimeMinerParameters(org.deckfour.xes.model.XLog log)
Class constructor which generates an object with the given informations from the log by calling the extended Constructor with boolean false- Parameters:
log- the given logfile
-
PrimeMinerParameters
public PrimeMinerParameters(org.deckfour.xes.model.XLog log, java.lang.Boolean oneSolution)Class constructor which generates an object with the given informations from the log and a boolean for showing only one solution in the end- Parameters:
log- the given logfileoneSolution- whether one solution in the end is to be preferred
-
-
Method Detail
-
isDebugMode
public static boolean isDebugMode()
- Returns:
- whether is debug active (true) or not (false)
-
setDebugMode
public static void setDebugMode(boolean debugMode)
- Parameters:
debugMode- set debugMode with true or not with false
-
getDetectedOracles
public java.util.ArrayList<java.lang.String> getDetectedOracles()
- Returns:
- the detected oracles which where found in the log
-
setDetectedOracles
public void setDetectedOracles(java.util.ArrayList<java.lang.String> detectedOracles)
- Parameters:
detectedOracles- set the detected oracles
-
getLanguage
public java.util.ArrayList<java.util.ArrayList<java.lang.String>> getLanguage()
- Returns:
- the language calculated from the log
-
setLanguage
public void setLanguage(java.util.ArrayList<java.util.ArrayList<java.lang.String>> language)
- Parameters:
language- set the language, normally calculated by constructor
-
getSelectedOracle
public java.lang.String getSelectedOracle()
- Returns:
- the oracle, which was selected by algortihm or user
-
setSelectedOracle
public void setSelectedOracle(java.lang.String selectedOracle)
- Parameters:
selectedOracle- is the oracle which the user or algorithm wants
-
isShowHasse
public boolean isShowHasse()
- Returns:
- if the hasse diagram should show (true) if not, mine petri net is selected
-
isShowStats
public boolean isShowStats()
- Returns:
- whether stats should be shown in the end
-
setShowStats
public void setShowStats(boolean showStats)
- Parameters:
showStats- whether stats should be shown in the end
-
isOneSolution
public static boolean isOneSolution()
- Returns:
- whether one solution is preferred
-
setOneSolution
public static void setOneSolution(boolean oneSolution)
- Parameters:
oneSolution- oneSolution set whether one solution is preferred
-
getConsideredHasses
public int getConsideredHasses()
- Returns:
- the amount of hasses which should be considered in dialog 2; needed for the slider
-
setConsideredHasses
public void setConsideredHasses(int consideredHasses)
- Parameters:
consideredHasses- the amount of hasses which should be considered; used by the slider in dialog 2
-
getTimeOutInSeconds
public static int getTimeOutInSeconds()
- Returns:
- the time out in seconds if the algorithm takes too long
-
setTimeOutInSeconds
public static void setTimeOutInSeconds(int timeOutInSeconds)
- Parameters:
timeOutInSeconds- set the time out in seconds, when the algorithm should stop if it takes too long
-
getShowHasseOrMinePetriNet
public java.lang.String getShowHasseOrMinePetriNet()
- Returns:
- the String value of the selection in dialog 2
-
setShowHasseOrMinePetriNet
public void setShowHasseOrMinePetriNet(java.lang.String showHasseOrMinePetriNet)
- Parameters:
showHasseOrMinePetriNet- set the selection from dialog 2
-
equals
public boolean equals(java.lang.Object object)
Returns whether these parameter object is equal to the given parameter object. At this point- Overrides:
equalsin classjava.lang.Object- Parameters:
object- The given parameter object.- Returns:
- Whether these parameter values are equal to the given parameter values.
-
hashCode
public int hashCode()
Returns the hash code for these parameters based on detectedOracles- Overrides:
hashCodein classjava.lang.Object- Returns:
- the generated hash code based on detectedOracles
-
-