public abstract class Clusterer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected ATCParameters |
parameters
The ActiTraC-parameters we have to follow.
|
protected org.processmining.plugins.heuristicsnet.miner.heuristics.miner.settings.HeuristicsMinerSettings |
settings
The HeuristicsMinerSettings we should give to HeuristicsMiner.
|
Constructor and Description |
---|
Clusterer(ATCParameters parameters,
org.processmining.plugins.heuristicsnet.miner.heuristics.miner.settings.HeuristicsMinerSettings settings)
Create a new Clusterer to process the given GroupedXLog, while taking the
given parameters and settings in account.
|
Clusterer(ATCParameters parameters,
org.processmining.plugins.heuristicsnet.miner.heuristics.miner.settings.HeuristicsMinerSettings settings,
ClustererEventListener l)
Create a new Clusterer to process the given GroupedXLog, while taking the
given parameters and settings 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 |
fireClusterCreatedEvent(Cluster c)
Calls
ClustererEventListener#clusterCreated(c) 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 |
fireNonfittingAssigned()
Calls
ClustererEventListener.nonfittingAssigned() on the event
listener. |
protected void |
fireStartEvent()
Calls
ClustererEventListener.start() on the event listener. |
protected void |
fireTargetReachedEvent(int left)
Calls
ClustererEventListener#targetReached(left) on the event
listener. |
ActiTraCClustering |
getClustering()
Return the ActiTraCClustering resulting from the calculations done by
this object.
|
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.
|
protected ATCParameters parameters
protected org.processmining.plugins.heuristicsnet.miner.heuristics.miner.settings.HeuristicsMinerSettings settings
public Clusterer(ATCParameters parameters, org.processmining.plugins.heuristicsnet.miner.heuristics.miner.settings.HeuristicsMinerSettings settings)
log
- The log to be clustered.parameters
- The ActiTraC-parameters we are to follow.settings
- The settings we should give to HeuristicsMiner.public Clusterer(ATCParameters parameters, org.processmining.plugins.heuristicsnet.miner.heuristics.miner.settings.HeuristicsMinerSettings settings, ClustererEventListener l)
log
- The log to be clustered.parameters
- The ActiTraC-parameters we are to follow.settings
- The settings we should give to HeuristicsMiner.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 OperationCancelledException
ClustererEventListener.cancel()
on the event listener and
then throws an OperationCancelledException.OperationCancelledException
public abstract void cluster() throws OperationCancelledException
OperationCancelledException
- When the ClusterEventListener that has been assigned to this
Clusterer (if any) suggests to cancel this operation.protected void fireClusterCreatedEvent(Cluster c)
ClustererEventListener#clusterCreated(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 fireNonfittingAssigned()
ClustererEventListener.nonfittingAssigned()
on the event
listener.protected void fireStartEvent()
ClustererEventListener.start()
on the event listener.protected void fireTargetReachedEvent(int left)
ClustererEventListener#targetReached(left)
on the event
listener.left
- The amount of similar XTrace groups that have not yet been
assigned to a cluster.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.