public abstract class Clusterer
extends java.lang.Object
| Constructor and Description |
|---|
Clusterer(ImprovedATCParameters parameters,
ProcessModelFactory factory)
Create a new Clusterer to process the given GroupedXLog, while taking the
given parameters in account.
|
Clusterer(ImprovedATCParameters parameters,
ProcessModelFactory factory,
ClustererEventListener l)
Create a new Clusterer to process the given GroupedXLog, while taking the
given parameters in account.
|
Clusterer(org.processmining.contexts.uitopia.UIPluginContext context,
ImprovedATCParameters parameters,
ProcessModelFactory factory,
ClustererEventListener l)
Create a new Clusterer to process the given GroupedXLog, while taking the
given parameters in account.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addClusterEventListener(ClustererEventListener l)
Adds the given ClustererEventListener to this Clusterer.
|
protected void |
cancel()
Calls
ClustererEventListener.cancel() on the event listener and
then throws an OperationCancelledException. |
abstract void |
cluster()
Perform the actual processing on the log.
|
protected void |
fireClusterFinishedEvent(Cluster c)
Calls
ClustererEventListener#clusterFinished(c) on the event
listener. |
protected void |
fireDpiAssignedEvent(int nbTraces,
int nbDpiLeft,
boolean external)
Calls
ClustererEventListener.dpiAssigned(int, int, boolean) on
the event listener. |
protected void |
fireEndEvent()
Calls
ClustererEventListener.end() on the event listener. |
protected void |
fireImportingEvent()
Calls
ClustererEventListener.importing() on the event listener. |
protected boolean |
fireMinimalClusterSizeImpossible()
Calls
ClustererEventListener.minimalClusterSizeImpossible() on
the event listener. |
protected void |
fireStartEvent()
Calls
ClustererEventListener.start() on the event listener. |
ActiTraCClustering |
getClustering()
Return the ActiTraCClustering resulting from the calculations done by
this object.
|
protected org.processmining.contexts.uitopia.UIPluginContext |
getcontext() |
protected ImprovedATCParameters |
getParameters()
Returns the used ImprovedATCParameters.
|
protected ProcessModelFactory |
getPMFactory() |
protected void |
setClustering(ActiTraCClustering clustering)
Set the resulting ActiTraCClustering of this Clusterer to the given
ActiTraCClustering.
|
protected boolean |
shouldCancel()
Checks whether this Clusterer should cancel.
|
public Clusterer(ImprovedATCParameters parameters, ProcessModelFactory factory)
log - The log to be clustered.parameters - The ActiTraC-parameters we are to follow.factory - The used process model factory.public Clusterer(ImprovedATCParameters parameters, ProcessModelFactory factory, ClustererEventListener l)
log - The log to be clustered.parameters - The ActiTraC-parameters we are to follow.factory - The used process model factory.l - The ClustererEventListener that should be assigned to this
Clusterer.public Clusterer(org.processmining.contexts.uitopia.UIPluginContext context,
ImprovedATCParameters parameters,
ProcessModelFactory factory,
ClustererEventListener l)
context - The plugin context to use.log - The log to be clustered.parameters - The ActiTraC-parameters we are to follow.factory - The used process model factory.l - The ClustererEventListener that should be assigned to this
Clusterer.public void addClusterEventListener(ClustererEventListener l)
l - The new listener, or null.protected void cancel()
throws org.processmining.plugins.actitrac.utils.OperationCancelledException
ClustererEventListener.cancel() on the event listener and
then throws an OperationCancelledException.org.processmining.plugins.actitrac.utils.OperationCancelledExceptionpublic abstract void cluster()
throws org.processmining.plugins.actitrac.utils.OperationCancelledException
org.processmining.plugins.actitrac.utils.OperationCancelledException - When the ClusterEventListener that has been assigned to this
Clusterer (if any) suggests to cancel this operation.protected void fireClusterFinishedEvent(Cluster c)
ClustererEventListener#clusterFinished(c) on the event
listener.c - The newly created cluster.protected void fireEndEvent()
ClustererEventListener.end() on the event listener.protected boolean fireMinimalClusterSizeImpossible()
ClustererEventListener.minimalClusterSizeImpossible() on
the event listener.protected void fireStartEvent()
ClustererEventListener.start() on the event listener.public ActiTraCClustering getClustering()
cluster() has been called on this object.protected void setClustering(ActiTraCClustering clustering)
protected boolean shouldCancel()
ClustererEventListener.shouldCancel(). This method should
return true if this clusterer should cancel.protected void fireImportingEvent()
ClustererEventListener.importing() on the event listener.protected void fireDpiAssignedEvent(int nbTraces,
int nbDpiLeft,
boolean external)
ClustererEventListener.dpiAssigned(int, int, boolean) on
the event listener.protected ImprovedATCParameters getParameters()
protected ProcessModelFactory getPMFactory()
protected org.processmining.contexts.uitopia.UIPluginContext getcontext()