Class OptimalMiner<M>
- java.lang.Object
-
- org.processmining.plugins.stochasticpetrinet.miner.OptimalMiner<M>
-
- Direct Known Subclasses:
LocalSearchMiner
public abstract class OptimalMiner<M> extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected doublebestDistanceprotected org.deckfour.xes.model.XLogbestLogprotected MbestModelprotected org.processmining.framework.plugin.PluginContextcontextprotected DistancecurrentDistanceprotected org.deckfour.xes.model.XLogcurrentLogprotected McurrentModelprotected DistanceFunctionfunctionprotected org.deckfour.xes.model.XLogorigLogprotected MorigModel
-
Constructor Summary
Constructors Constructor Description OptimalMiner(DistanceFunction function, org.processmining.framework.plugin.PluginContext context, org.deckfour.xes.model.XLog log, M model)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract DistancecomputeDistance(org.deckfour.xes.model.XLog log, M model)Computes the distance between a log and a model Subclasses need to implement this according to their model type.org.deckfour.xes.model.XLoggetBestLog()MgetBestModel()protected abstract voidperformSearch()Tries to find a log-model pair that is best in terms of a scorevoidsearchForBetterLogAndModel()
-
-
-
Field Detail
-
origLog
protected final org.deckfour.xes.model.XLog origLog
-
origModel
protected final M origModel
-
function
protected final DistanceFunction function
-
currentDistance
protected Distance currentDistance
-
bestDistance
protected double bestDistance
-
bestLog
protected org.deckfour.xes.model.XLog bestLog
-
bestModel
protected M bestModel
-
currentLog
protected org.deckfour.xes.model.XLog currentLog
-
currentModel
protected M currentModel
-
context
protected org.processmining.framework.plugin.PluginContext context
-
-
Constructor Detail
-
OptimalMiner
public OptimalMiner(DistanceFunction function, org.processmining.framework.plugin.PluginContext context, org.deckfour.xes.model.XLog log, M model)
-
-
Method Detail
-
computeDistance
protected abstract Distance computeDistance(org.deckfour.xes.model.XLog log, M model)
Computes the distance between a log and a model Subclasses need to implement this according to their model type. Ideally, this is a fast step.- Parameters:
log- the log to compare with the modelmodel- the model to compare with the log- Returns:
- Distance
-
getBestLog
public org.deckfour.xes.model.XLog getBestLog()
-
getBestModel
public M getBestModel()
-
searchForBetterLogAndModel
public void searchForBetterLogAndModel()
-
performSearch
protected abstract void performSearch()
Tries to find a log-model pair that is best in terms of a score
-
-