org.processmining.framework.log.filter
Class ActivityInversionFilter

java.lang.Object
  extended by org.processmining.framework.log.LogFilter
      extended by org.processmining.framework.log.filter.ActivityInversionFilter

public class ActivityInversionFilter
extends LogFilter

Filter removes all directly succeding log events that are repetitions (i.e., occurrences of the same log event) but the first and the last event. The first occurrence is made a Start event, the last occurrence is made an End event.

Author:
arozinat

Field Summary
 
Fields inherited from class org.processmining.framework.log.LogFilter
FAST, filter, load, MODERATE, SLOW
 
Constructor Summary
ActivityInversionFilter()
          Instantiates a LogFilter with a pointer to the lower level filter.
 
Method Summary
protected  boolean doFiltering(ProcessInstance instance)
          Filters a single process instance.
protected  java.lang.String getHelpForThisLogFilter()
          Returns the help for this LogFilter as HTML text, but without the and tags!
 LogFilterParameterDialog getParameterDialog(LogSummary summary)
          Returns a Panel for the setting of parameters.
protected  void readSpecificXML(org.w3c.dom.Node logFilterSpecifcNode)
          Read the inside of the tag in the XML export file from the InputStream input.
 boolean thisFilterChangesLog()
          Method to tell whether this LogFilter changes the log or not.
protected  void writeSpecificXML(java.io.BufferedWriter output)
          Write the inside of the tag in the XML export file to the OutputStream output.
 
Methods inherited from class org.processmining.framework.log.LogFilter
changesLog, filter, getComplexity, getComplexityAsString, getFilter, getHelp, getName, getThisLogFilterComplexity, readXML, setLowLevelFilter, setName, toString, writeXML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ActivityInversionFilter

public ActivityInversionFilter()
Instantiates a LogFilter with a pointer to the lower level filter. When filtering, the filter(ProcessInstance pi) method should first call filter.filter(pi). If that returns false, no further filtering is necessary.

Parameters:
lowLevelFilter - the filter that should be checked first, to see if the instance can be discared anyway. Note that this filter can be null.
Method Detail

getHelpForThisLogFilter

protected java.lang.String getHelpForThisLogFilter()
Description copied from class: LogFilter
Returns the help for this LogFilter as HTML text, but without the and tags!

Specified by:
getHelpForThisLogFilter in class LogFilter
Returns:
the help as string

thisFilterChangesLog

public boolean thisFilterChangesLog()
Method to tell whether this LogFilter changes the log or not.

Specified by:
thisFilterChangesLog in class LogFilter
Returns:
boolean True if this LogFilter changes the process instance in the filter() method. False otherwise.

doFiltering

protected boolean doFiltering(ProcessInstance instance)
Filters a single process instance.

Specified by:
doFiltering in class LogFilter
Parameters:
instance - the process instance to filter
Returns:
true if the whole process instance passes the filter, false if the process instance should be discarded.

getParameterDialog

public LogFilterParameterDialog getParameterDialog(LogSummary summary)
Returns a Panel for the setting of parameters.

Specified by:
getParameterDialog in class LogFilter
Parameters:
summary - A LogSummary to be used for setting parameters.
Returns:
JPanel

writeSpecificXML

protected void writeSpecificXML(java.io.BufferedWriter output)
                         throws java.io.IOException
Write the inside of the tag in the XML export file to the OutputStream output.

Specified by:
writeSpecificXML in class LogFilter
Parameters:
output - OutputStream
Throws:
java.io.IOException

readSpecificXML

protected void readSpecificXML(org.w3c.dom.Node logFilterSpecifcNode)
                        throws java.io.IOException
Read the inside of the tag in the XML export file from the InputStream input.

Specified by:
readSpecificXML in class LogFilter
Parameters:
input - InputStream
Throws:
java.io.IOException