public class ResultReplay extends java.lang.Object implements AlignmentCollection
Modifier and Type | Class and Description |
---|---|
static interface |
ResultReplay.StatisticsCallback |
Modifier and Type | Field and Description |
---|---|
java.util.Map<java.lang.String,float[]> |
actArray
It associates an activity to a 2-element tuple: - the first element is
the number of times an activity is involved in a move a both with the
same attribute assignments; - the second element is the number of times
an activity is involved in a move a both with the different attribute
assignments.
|
protected ActivityMatchCosts<org.deckfour.xes.classification.XEventClass> |
activityCost |
java.util.Map<java.lang.String,float[]> |
attrArray
It associates an attribute to a 4-element tuple: - the first element is
the number of times the attribute has correctly been written - the second
element is the number of times the attribute hasn't been written - the
third is the average of the misconformance on the data attribute values.
|
java.util.NavigableSet<Alignment> |
labelStepArray
The collection of all existing alignments
|
protected float |
meanBuiltTreeSize |
float |
meanFitness |
protected float |
meanVisitedNode |
protected float |
minCost |
protected java.util.Map<java.lang.String,Alignment> |
nameToAlignmentMap
A map for fast access of alignments by the trace name
|
protected VariableMatchCosts |
variableCost |
Constructor and Description |
---|
ResultReplay(java.util.Collection<? extends ReplayState> list,
ActivityMatchCosts<org.deckfour.xes.classification.XEventClass> activityCost,
VariableMatchCosts variableCost,
java.util.Map<java.lang.String,java.lang.String> variableMapping,
org.deckfour.xes.model.XLog alignedLog,
org.deckfour.xes.classification.XEventClassifier classifier) |
Modifier and Type | Method and Description |
---|---|
protected void |
calcReplayResult(java.util.Collection<? extends ReplayState> list) |
protected float |
computeFitness(ReplayState state) |
static Alignment |
createAlignment(ReplayState state,
float fitness,
ResultReplay.StatisticsCallback callback)
Creates an
Alignment object from a ReplayState , executing
the ResultReplay.StatisticsCallback for each ExecutionStep of the
alignment. |
org.deckfour.xes.model.XLog |
getAlignedLog() |
Alignment |
getAlignmentByTraceName(java.lang.String traceName) |
java.util.Collection<Alignment> |
getAlignments() |
org.deckfour.xes.classification.XEventClassifier |
getClassifier() |
float |
getMeanBuiltTreeSize() |
float |
getMeanVisitedNode() |
java.util.Map<java.lang.String,java.lang.String> |
getVariableMapping() |
java.util.Iterator<Alignment> |
iterator() |
protected void |
updateStatisticsMap(ExecutionStep logStep,
ExecutionStep processStep)
Mean and variance are computed according to the Knuth's algorithm at page
232 of book Donald E.
|
public java.util.NavigableSet<Alignment> labelStepArray
protected java.util.Map<java.lang.String,Alignment> nameToAlignmentMap
public java.util.Map<java.lang.String,float[]> attrArray
public java.util.Map<java.lang.String,float[]> actArray
public float meanFitness
protected VariableMatchCosts variableCost
protected float minCost
protected ActivityMatchCosts<org.deckfour.xes.classification.XEventClass> activityCost
protected float meanVisitedNode
protected float meanBuiltTreeSize
public ResultReplay(java.util.Collection<? extends ReplayState> list, ActivityMatchCosts<org.deckfour.xes.classification.XEventClass> activityCost, VariableMatchCosts variableCost, java.util.Map<java.lang.String,java.lang.String> variableMapping, org.deckfour.xes.model.XLog alignedLog, org.deckfour.xes.classification.XEventClassifier classifier)
protected void calcReplayResult(java.util.Collection<? extends ReplayState> list)
public static Alignment createAlignment(ReplayState state, float fitness, ResultReplay.StatisticsCallback callback)
Alignment
object from a ReplayState
, executing
the ResultReplay.StatisticsCallback
for each ExecutionStep
of the
alignment.state
- the alignment resultfitness
- the fitnesscallback
- may be NULLprotected float computeFitness(ReplayState state)
protected void updateStatisticsMap(ExecutionStep logStep, ExecutionStep processStep)
public float getMeanVisitedNode()
public float getMeanBuiltTreeSize()
public org.deckfour.xes.model.XLog getAlignedLog()
public java.util.Map<java.lang.String,java.lang.String> getVariableMapping()
public Alignment getAlignmentByTraceName(java.lang.String traceName)
public java.util.Collection<Alignment> getAlignments()
getAlignments
in interface AlignmentCollection
Alignment
collectionpublic java.util.Iterator<Alignment> iterator()
iterator
in interface java.lang.Iterable<Alignment>
public org.deckfour.xes.classification.XEventClassifier getClassifier()