Class Filter
- java.lang.Object
-
- org.processmining.filterbook.filters.Filter
-
- All Implemented Interfaces:
java.lang.Comparable<Filter>
- Direct Known Subclasses:
EventClassifierFilter,EventDateFilter,EventGlobalAttributeFilter,EventOccurrencesClassifierFilter,EventOccurrencesGlobalAttributeFilter,LogGlobalsFilter,NewFilter,TraceDateFilter,TraceDirectlyFollowsClassifierFilter,TraceDirectlyFollowsGlobalAttributeFilter,TraceDurationFilter,TraceFirstLastEventFilter,TraceGlobalAttributeFilter,TraceLastAttributeFilter,TraceLengthFilter,TraceLogFilter,TraceOccurrencesClassifierFilter,TraceOccurrencesGlobalAttributeFilter,TraceSampleFilter,TraceUniqueNameFilter,TraceVariantAbstractClassifierFilter,TraceVariantAbstractGlobalAttributeFilter
public abstract class Filter extends java.lang.Object implements java.lang.Comparable<Filter>
-
-
Constructor Summary
Constructors Constructor Description Filter(java.lang.String name, Parameters parameters, ComputationCell cell)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description intcompareTo(Filter o)abstract voidconstructWidget()Abstract method that constructs a JComponent to enable the user to change the parameters.abstract org.deckfour.xes.model.XLogfilter()Abstract method that filters the log using this filter and these parameters.org.deckfour.xes.model.XLogfilter(boolean doTime)Filters the log while timing the filtering.ComputationCellgetCell()org.deckfour.xes.model.XAttributegetDummyAttribute()org.deckfour.xes.classification.XEventClassifiergetDummyClassifier()org.deckfour.xes.factory.XFactorygetFactory()org.deckfour.xes.model.XLoggetLog()Gets the log that is to be filtered.java.lang.StringgetName()Gets the name of the filter.ParametersgetParameters()Gets the parameters of the filter.abstract FilterTemplategetTemplate()javax.swing.JComponentgetWidget()Gets the widget to change the parameters.booleanhasClassifiers()booleanhasConceptExtension(org.deckfour.xes.model.XLog log)booleanhasEvents()booleanhasGlobalConceptName(java.util.Collection<org.deckfour.xes.model.XAttribute> globalAttributes)booleanhasGlobalEventAttributes()booleanhasGlobalTimestamp()booleanhasGlobalTraceAttributes()booleanhasTimeExtension()booleanhasTraceAttributes()booleanhasTraces()org.deckfour.xes.model.XLoginitializeLog(org.deckfour.xes.model.XLog log)Creates a copy of the provided log without any traces and/or events.abstract booleanisSuitable()voidsetLog(org.deckfour.xes.model.XLog log)Sets the log that is to be filtered.voidsetSelected(Filter filter)abstract voidsetTemplate(ParametersTemplate parameters)voidsetWidget(javax.swing.JComponent widget)Sets the widget to change the parameters.java.lang.StringtoString()voidupdate()abstract voidupdated(Parameter parameter)Abstract method that informs the filter that a parameter has been changed.abstract voidupdateParameters()
-
-
-
Constructor Detail
-
Filter
public Filter(java.lang.String name, Parameters parameters, ComputationCell cell)
-
-
Method Detail
-
getName
public java.lang.String getName()
Gets the name of the filter.- Returns:
- The name of the filter.
-
getParameters
public Parameters getParameters()
Gets the parameters of the filter.- Returns:
- The parameters of the filter.
-
filter
public abstract org.deckfour.xes.model.XLog filter()
Abstract method that filters the log using this filter and these parameters.- Returns:
- The filtered log.
-
constructWidget
public abstract void constructWidget()
Abstract method that constructs a JComponent to enable the user to change the parameters.
-
updated
public abstract void updated(Parameter parameter)
Abstract method that informs the filter that a parameter has been changed.- Parameters:
parameter- The parameter that has been changed.
-
isSuitable
public abstract boolean isSuitable()
-
filter
public org.deckfour.xes.model.XLog filter(boolean doTime)
Filters the log while timing the filtering.- Parameters:
doTime- Whether to time the filtering.- Returns:
- The filtered log.
-
initializeLog
public org.deckfour.xes.model.XLog initializeLog(org.deckfour.xes.model.XLog log)
Creates a copy of the provided log without any traces and/or events.- Parameters:
log- The log to copy.- Returns:
- The copied log.
-
getLog
public org.deckfour.xes.model.XLog getLog()
Gets the log that is to be filtered.- Returns:
- The log to be filtered.
-
setLog
public void setLog(org.deckfour.xes.model.XLog log)
Sets the log that is to be filtered.- Parameters:
log- The log to be filtered.
-
getWidget
public javax.swing.JComponent getWidget()
Gets the widget to change the parameters.- Returns:
- The widget to change the parameters.
-
setWidget
public void setWidget(javax.swing.JComponent widget)
Sets the widget to change the parameters.- Parameters:
widget- The widget to change the parameters.
-
compareTo
public int compareTo(Filter o)
- Specified by:
compareToin interfacejava.lang.Comparable<Filter>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getCell
public ComputationCell getCell()
-
getFactory
public org.deckfour.xes.factory.XFactory getFactory()
-
updateParameters
public abstract void updateParameters()
-
update
public void update()
-
setSelected
public void setSelected(Filter filter)
-
getTemplate
public abstract FilterTemplate getTemplate()
-
setTemplate
public abstract void setTemplate(ParametersTemplate parameters)
-
hasGlobalEventAttributes
public boolean hasGlobalEventAttributes()
-
hasGlobalTraceAttributes
public boolean hasGlobalTraceAttributes()
-
hasClassifiers
public boolean hasClassifiers()
-
hasEvents
public boolean hasEvents()
-
hasTraces
public boolean hasTraces()
-
hasTraceAttributes
public boolean hasTraceAttributes()
-
hasTimeExtension
public boolean hasTimeExtension()
-
hasGlobalTimestamp
public boolean hasGlobalTimestamp()
-
hasConceptExtension
public boolean hasConceptExtension(org.deckfour.xes.model.XLog log)
-
hasGlobalConceptName
public boolean hasGlobalConceptName(java.util.Collection<org.deckfour.xes.model.XAttribute> globalAttributes)
-
getDummyAttribute
public org.deckfour.xes.model.XAttribute getDummyAttribute()
-
getDummyClassifier
public org.deckfour.xes.classification.XEventClassifier getDummyClassifier()
-
-