org.processmining.mining.armining
Class AprioriAnalyzer

java.lang.Object
  extended by org.processmining.mining.armining.AssociationAnalyzer
      extended by org.processmining.mining.armining.AprioriAnalyzer

public class AprioriAnalyzer
extends AssociationAnalyzer

Title:AprioriAnalyzer

Description: Tells the plug-in that the type of Association rule algorithm to be used is the Apriori algorithm.

It also prepares the GUI objects accordingly.

Version:
1.0
Author:
Shaifali Gupta (s.gupta@student.tue.nl)

Field Summary
protected  GUIPropertyBoolean eventTypeCare
           
protected  GUIPropertyDouble lowerBoundMinSupport
           
protected  GUIPropertyDouble minMetric
           
protected  GUIPropertyInteger numRules
           
protected  GUIPropertyBoolean outputItemSets
           
protected  GUIPropertyDouble upperBoundMinSupport
           
 
Fields inherited from class org.processmining.mining.armining.AssociationAnalyzer
attributeInfo, data, instance, locationARFFFile, myAssociator, saveAsARFFBrowseButton, saveAsARFFChecked, theLog
 
Constructor Summary
AprioriAnalyzer()
          Constructor
 
Method Summary
 void applyOptionalParameters()
          Communicates the parameter settings selected the user to the algorithm.
 boolean check(ProcessInstance pi, int ruleIndex)
           
 boolean checkFIS(ProcessInstance pi, int ruleIndex)
           
 boolean checkFISWithEC(ProcessInstance pi, int ruleIndex)
           
 boolean checkWithEC(ProcessInstance pi, int ruleIndex)
           
 double getConfValue()
           
 java.lang.String getDescription()
           
 boolean getETypeValue()
           
 boolean getFreqItemSets()
           
 java.lang.String getlocationARFFFile()
           
 double getLowerBoundMinSup()
           
 javax.swing.JPanel getParametersPanel()
          Creates a GUI panel containing the parameters that are available for this type of association rule analyzer (i.e., the used algorithm).
 java.util.ArrayList<java.lang.String> getRules()
           
 java.util.ArrayList<java.lang.String> getRulesWithEType()
           
 boolean getSaveARFFValue()
           
 double getUpperBoundMinSup()
           
protected  void initAssociator()
          Initializes data mining associator to be used for association analysis.
 void myBuildAssociations()
          Executes the actual algorithm
 void resetAssociator()
           
 java.util.ArrayList<java.lang.String> showFreqItemSets()
           
 java.util.ArrayList<java.lang.String> showFreqItemSetsWithEType()
           
 java.lang.String toString()
           
 
Methods inherited from class org.processmining.mining.armining.AssociationAnalyzer
createInputForWeka, createInputForWeka2, createMessagePanel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

numRules

protected GUIPropertyInteger numRules

upperBoundMinSupport

protected GUIPropertyDouble upperBoundMinSupport

lowerBoundMinSupport

protected GUIPropertyDouble lowerBoundMinSupport

outputItemSets

protected GUIPropertyBoolean outputItemSets

minMetric

protected GUIPropertyDouble minMetric

eventTypeCare

protected GUIPropertyBoolean eventTypeCare
Constructor Detail

AprioriAnalyzer

public AprioriAnalyzer()
Constructor

Method Detail

resetAssociator

public void resetAssociator()
Specified by:
resetAssociator in class AssociationAnalyzer

toString

public java.lang.String toString()
Specified by:
toString in class AssociationAnalyzer
Returns:
The name of the algorithm.

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in class AssociationAnalyzer
Returns:
String description of this algorithm

getParametersPanel

public javax.swing.JPanel getParametersPanel()
Description copied from class: AssociationAnalyzer
Creates a GUI panel containing the parameters that are available for this type of association rule analyzer (i.e., the used algorithm).

Specified by:
getParametersPanel in class AssociationAnalyzer
Returns:
the parameters panel to be displayed in the algorithm settings of the association rule miner

initAssociator

protected void initAssociator()
Description copied from class: AssociationAnalyzer
Initializes data mining associator to be used for association analysis.

Specified by:
initAssociator in class AssociationAnalyzer

applyOptionalParameters

public void applyOptionalParameters()
Communicates the parameter settings selected the user to the algorithm.

Specified by:
applyOptionalParameters in class AssociationAnalyzer

myBuildAssociations

public void myBuildAssociations()
Executes the actual algorithm

Specified by:
myBuildAssociations in class AssociationAnalyzer

getRules

public java.util.ArrayList<java.lang.String> getRules()
Specified by:
getRules in class AssociationAnalyzer

getRulesWithEType

public java.util.ArrayList<java.lang.String> getRulesWithEType()
Specified by:
getRulesWithEType in class AssociationAnalyzer

showFreqItemSets

public java.util.ArrayList<java.lang.String> showFreqItemSets()
Specified by:
showFreqItemSets in class AssociationAnalyzer

showFreqItemSetsWithEType

public java.util.ArrayList<java.lang.String> showFreqItemSetsWithEType()
Specified by:
showFreqItemSetsWithEType in class AssociationAnalyzer

getFreqItemSets

public boolean getFreqItemSets()
Specified by:
getFreqItemSets in class AssociationAnalyzer

getETypeValue

public boolean getETypeValue()
Specified by:
getETypeValue in class AssociationAnalyzer

check

public boolean check(ProcessInstance pi,
                     int ruleIndex)
Specified by:
check in class AssociationAnalyzer
Parameters:
-
Returns:

checkWithEC

public boolean checkWithEC(ProcessInstance pi,
                           int ruleIndex)
Specified by:
checkWithEC in class AssociationAnalyzer
Parameters:
-
Returns:

checkFIS

public boolean checkFIS(ProcessInstance pi,
                        int ruleIndex)
Specified by:
checkFIS in class AssociationAnalyzer
Parameters:
-
Returns:

checkFISWithEC

public boolean checkFISWithEC(ProcessInstance pi,
                              int ruleIndex)
Specified by:
checkFISWithEC in class AssociationAnalyzer
Parameters:
-
Returns:

getConfValue

public double getConfValue()
Specified by:
getConfValue in class AssociationAnalyzer

getUpperBoundMinSup

public double getUpperBoundMinSup()
Specified by:
getUpperBoundMinSup in class AssociationAnalyzer

getLowerBoundMinSup

public double getLowerBoundMinSup()
Specified by:
getLowerBoundMinSup in class AssociationAnalyzer

getSaveARFFValue

public boolean getSaveARFFValue()
Specified by:
getSaveARFFValue in class AssociationAnalyzer

getlocationARFFFile

public java.lang.String getlocationARFFFile()
Specified by:
getlocationARFFFile in class AssociationAnalyzer