org.processmining.mining.benchmark
Class LogReaderComparator

java.lang.Object
  extended by org.processmining.mining.benchmark.LogReaderComparator
All Implemented Interfaces:
Plugin, MiningPlugin

public class LogReaderComparator
extends java.lang.Object
implements MiningPlugin

Author:
christian

Field Summary
protected  java.lang.String messages
           
protected  Progress progress
           
 
Constructor Summary
LogReaderComparator()
           
 
Method Summary
protected  boolean arrayContains(java.lang.Object[] arr, java.lang.Object probe)
           
protected  boolean compare(AuditTrailEntry a, AuditTrailEntry b)
           
 void compare(LogReader a, LogReader b)
           
protected  void compare(LogSummary a, LogSummary b)
           
protected  boolean compare(ProcessInstance a, ProcessInstance b)
           
protected  void compareArrays(java.lang.Object[] a, java.lang.Object[] b)
           
protected  void error(java.lang.String err)
           
 java.lang.String getHtmlDescription()
          Gets a description of this plugin in HTML.
 java.lang.String getName()
          Gets the name of this plugin.
 javax.swing.JPanel getOptionsPanel(LogSummary summary)
          Returns the option panel associated with this mining algorithm or null if it has no options panel.
protected  void message(java.lang.String msg)
           
 MiningResult mine(LogReader log)
          Execute this mining algorithm on the given log file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

messages

protected java.lang.String messages

progress

protected Progress progress
Constructor Detail

LogReaderComparator

public LogReaderComparator()
Method Detail

getOptionsPanel

public javax.swing.JPanel getOptionsPanel(LogSummary summary)
Description copied from interface: MiningPlugin
Returns the option panel associated with this mining algorithm or null if it has no options panel. The option panel is the panel that is shown when a log file has just been opened. The user can set the options for the mining algorithm here.

Specified by:
getOptionsPanel in interface MiningPlugin
Parameters:
summary - all known information about the log that's going to be mined with this algorithm
Returns:
the option panel associated with this mining algorithm or null if it has no options panel

mine

public MiningResult mine(LogReader log)
Description copied from interface: MiningPlugin
Execute this mining algorithm on the given log file. The log parameter provides methods to extract the process instances and audit trail entries (cases) from the log file. This method is allowed to return null in case there are no results.

Specified by:
mine in interface MiningPlugin
Parameters:
log - process instances and audit trail entries
Returns:
the result of the mining algorithm, in a MininResult object

getHtmlDescription

public java.lang.String getHtmlDescription()
Description copied from interface: Plugin
Gets a description of this plugin in HTML. The string returned by this method should only contain the contents of the body of the html page, so the html, head and body tags should not be used. This HTML page is displayed in the help system or as context sensitive help. The HTML body can be stored in an external file in the /lib/documentation/ sub folder and in this case it can be obtained by calling PluginDocumentationLoader.load(this)

Specified by:
getHtmlDescription in interface Plugin
Returns:
a description of this plugin in HTML

getName

public java.lang.String getName()
Description copied from interface: Plugin
Gets the name of this plugin. Implementing classes should use this method to return their own name.

Specified by:
getName in interface Plugin
Returns:
the name of this plugin

compare

public void compare(LogReader a,
                    LogReader b)

compare

protected boolean compare(ProcessInstance a,
                          ProcessInstance b)

compare

protected boolean compare(AuditTrailEntry a,
                          AuditTrailEntry b)

compare

protected void compare(LogSummary a,
                       LogSummary b)

compareArrays

protected void compareArrays(java.lang.Object[] a,
                             java.lang.Object[] b)

arrayContains

protected boolean arrayContains(java.lang.Object[] arr,
                                java.lang.Object probe)

message

protected void message(java.lang.String msg)

error

protected void error(java.lang.String err)