R
- Result type of the ETM algorithm implementation (e.g. Tree
or ParetoFront
).public abstract class ETMAbstract<R>
extends java.lang.Object
implements org.processmining.framework.plugin.events.ProvidedObjectLifeCycleListener, java.lang.Runnable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected ETMLiveListener.RunningState |
currentState
Indicates the current state of the algorithm.
|
protected org.processmining.framework.providedobjects.ProvidedObjectManager |
manager
The provided object manager to which we will ask our ProMObjectID once we
are so far
|
protected org.processmining.framework.providedobjects.ProvidedObjectID |
ourProMObjectID
Our ProM object ID to check if we are deleted when we get a deletion
message
|
protected R |
result
The result
|
protected java.util.List<TerminationCondition> |
satisfiedTerminationConditions
Termination conditions that caused the alg.
|
Constructor and Description |
---|
ETMAbstract() |
Modifier and Type | Method and Description |
---|---|
ETMLiveListener.RunningState |
getCurrentState() |
abstract ETMLiveListener.ListernerList<R> |
getListenerList() |
abstract ETMParamAbstract<R> |
getParams() |
R |
getResult()
Returns the final result (or NULL if there is no result yet).
|
java.util.List<TerminationCondition> |
getSatisfiedTerminationConditions()
Returns the termination conditions that caused the genetic algorithm to
stop.
|
java.lang.String |
getTerminationDescription()
Returns a string of the satisfied termination conditions
|
boolean |
isRunning() |
void |
providedObjectCreated(org.processmining.framework.providedobjects.ProvidedObjectID objectID,
org.processmining.framework.plugin.PluginContext context)
(non-Javadoc)
|
void |
providedObjectDeleted(org.processmining.framework.providedobjects.ProvidedObjectID objectID) |
void |
providedObjectFutureReady(org.processmining.framework.providedobjects.ProvidedObjectID objectID) |
void |
providedObjectNameChanged(org.processmining.framework.providedobjects.ProvidedObjectID objectID) |
void |
providedObjectObjectChanged(org.processmining.framework.providedobjects.ProvidedObjectID objectID) |
static void |
reEvaluateSeed(java.util.List<NAryTree> seed,
TreeFitnessAbstract evaluator)
Re-evaluate the list of trees using the provided evaluator to make sure
that we use the same dimensions, metrics, weights, etc.
|
protected transient ETMLiveListener.RunningState currentState
protected transient java.util.List<TerminationCondition> satisfiedTerminationConditions
protected transient R result
protected transient org.processmining.framework.providedobjects.ProvidedObjectID ourProMObjectID
protected transient org.processmining.framework.providedobjects.ProvidedObjectManager manager
public static void reEvaluateSeed(java.util.List<NAryTree> seed, TreeFitnessAbstract evaluator)
seed
- List of trees to re-evaluateeval
- Evaluator to usepublic R getResult()
public java.util.List<TerminationCondition> getSatisfiedTerminationConditions()
public java.lang.String getTerminationDescription()
public boolean isRunning()
public ETMLiveListener.RunningState getCurrentState()
public void providedObjectCreated(org.processmining.framework.providedobjects.ProvidedObjectID objectID, org.processmining.framework.plugin.PluginContext context)
providedObjectCreated
in interface org.processmining.framework.plugin.events.ProvidedObjectLifeCycleListener
ProvidedObjectLifeCycleListener.providedObjectCreated(org.processmining.framework.providedobjects.ProvidedObjectID,
org.processmining.framework.plugin.PluginContext)
public void providedObjectFutureReady(org.processmining.framework.providedobjects.ProvidedObjectID objectID)
providedObjectFutureReady
in interface org.processmining.framework.plugin.events.ProvidedObjectLifeCycleListener
public void providedObjectDeleted(org.processmining.framework.providedobjects.ProvidedObjectID objectID)
providedObjectDeleted
in interface org.processmining.framework.plugin.events.ProvidedObjectLifeCycleListener
public abstract ETMParamAbstract<R> getParams()
public void providedObjectNameChanged(org.processmining.framework.providedobjects.ProvidedObjectID objectID)
providedObjectNameChanged
in interface org.processmining.framework.plugin.events.ProvidedObjectLifeCycleListener
public void providedObjectObjectChanged(org.processmining.framework.providedobjects.ProvidedObjectID objectID)
providedObjectObjectChanged
in interface org.processmining.framework.plugin.events.ProvidedObjectLifeCycleListener
public abstract ETMLiveListener.ListernerList<R> getListenerList()