|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.processmining.framework.models.petrinet.algorithms.logReplay.Measurer
org.processmining.analysis.conformance.ConformanceMeasurer
public class ConformanceMeasurer
Actually takes those measurements that are needed to calculate the selected conformance metrics.
Constructor Summary | |
---|---|
ConformanceMeasurer()
|
Method Summary | |
---|---|
void |
addMeanNumberEnabledMeasurement(int newNumberEnabled)
This method is intended to add a new measurement to the mean number of enabled transitions. |
java.lang.String |
getFitnessAttributeForCurrentTrace()
Calculates the fitness value for the currently replayed log trace. |
float |
getMeanNumberOfEnabledTransitions()
Get the mean number of enabled transitions during log replay. |
int |
getNumberOfConsumedTokens()
Get the number of consumed tokens while replaying that diagnostic trace. |
int |
getNumberOfProducedTokens()
Get the number of produced tokens while replaying that diagnostic trace. |
boolean |
hasProperlyTerminated()
Get the properlyTeminated value for that diagnostic trace. |
boolean |
hasSuccessfullyExecuted()
Get the successfullyExecuted value for that diagnostic trace. |
void |
incrementConsumedTokens(int value)
Increase the numberOfConsumedTokens attribute by the given value. |
void |
incrementProducedTokens(int value)
Increase the numberOfProducedTokens attribute by the given value. |
protected LogReplayAnalysisResult |
initLogReplayAnalysisResult(AnalysisConfiguration analysisOptions,
PetriNet petriNet,
LogReader log,
LogReplayAnalysisMethod analysisMethod)
To be overridden in subclasses that want create custom analysis results. Creates an analysis result of type ConformanceLogReplayResult . |
protected void |
initTraceReplay(ReplayedLogTrace pi,
LogReplayAnalysisResult result)
Will be called at the very beginning of replaying a trace. Resets the log-based data structures for the replay of this trace. |
void |
setProperlyTerminated(boolean value)
Set the properlyTerminated attribute. |
void |
setSuccessfullyExecuted(boolean value)
Set the properlyTerminated attribute. |
protected void |
takeFailedTaskMeasurement(ReplayedLogTrace pi,
ReplayedTransition t,
AuditTrailEntry ate)
Will be called directly before a failed task becomes artificially enabled in order to progress with the log replay (non-blocking). The replay failure will be recorded for the corresponding trace, transition, and audit trail entry. |
protected void |
takeLogEventRecordingMeasurement(LogReplayAnalysisResult result,
ReplayedLogTrace pi,
AuditTrailEntry ate)
Will be called directly after fetching the new log event from the currently replayed log trace. For the improved behavioral appropriateness metric one needs to keep track of the relations between log events. |
protected void |
takeMissingTokenMeasurement(ReplayedPlace p,
ReplayedLogTrace pi)
Will be called directly after artificially creating a new token for enabling a task that has failed execution during log replay. Records the missing token at the corresponding place in the Petri net. |
protected void |
takePostReplayMeasurement(LogReplayAnalysisResult result)
Will be called after the whole replay of the log has finished. |
protected void |
takePostTraceReplayMeasurement(LogReplayAnalysisResult result,
ReplayedLogTrace pi)
Will be called directly after finishing replay of the current trace. |
protected void |
takePreStepExecutionMeasurement(LogReplayAnalysisResult result,
ReplayedLogTrace pi)
Will be called directly after fetching a new log event from the currently replayed log trace. For behavioral appropriateness metric the number of enabled transitions needs to be checked before each replay step. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConformanceMeasurer()
Method Detail |
---|
protected LogReplayAnalysisResult initLogReplayAnalysisResult(AnalysisConfiguration analysisOptions, PetriNet petriNet, LogReader log, LogReplayAnalysisMethod analysisMethod)
ConformanceLogReplayResult
.
initLogReplayAnalysisResult
in class Measurer
analysisOptions
- the configuration object determining which parts
of the analysis should be carried out (can be null
, then all options are interpreted as enabled)protected void initTraceReplay(ReplayedLogTrace pi, LogReplayAnalysisResult result)
initTraceReplay
in class Measurer
pi
- (not used)result
- the result object filled by the log replay methodprotected void takePreStepExecutionMeasurement(LogReplayAnalysisResult result, ReplayedLogTrace pi)
takePreStepExecutionMeasurement
in class Measurer
result
- the result object filled by the log replay methodpi
- the trace which is currently replayedprotected void takeLogEventRecordingMeasurement(LogReplayAnalysisResult result, ReplayedLogTrace pi, AuditTrailEntry ate)
takeLogEventRecordingMeasurement
in class Measurer
result
- the result object filled by the log replay methodpi
- the trace which is currently replayedate
- the log event occurrence currently replayedprotected void takeFailedTaskMeasurement(ReplayedLogTrace pi, ReplayedTransition t, AuditTrailEntry ate)
takeFailedTaskMeasurement
in class Measurer
pi
- the trace which is currently replayedt
- the transition to be artificially enabledate
- the audit trail entry relating to this failed executionprotected void takeMissingTokenMeasurement(ReplayedPlace p, ReplayedLogTrace pi)
takeMissingTokenMeasurement
in class Measurer
p
- the place for which the token is createdpi
- the trace which is currently replayedprotected void takePostTraceReplayMeasurement(LogReplayAnalysisResult result, ReplayedLogTrace pi)
Measurer
takePostTraceReplayMeasurement
in class Measurer
result
- the result object filled by the log replay methodpi
- the trace which is currently replayedprotected void takePostReplayMeasurement(LogReplayAnalysisResult result)
Measurer
takePostReplayMeasurement
in class Measurer
result
- the result object filled by the log replay methodpublic void setProperlyTerminated(boolean value)
value
- The new value to be set.public void setSuccessfullyExecuted(boolean value)
value
- The new value to be set.public void incrementConsumedTokens(int value)
value
- The amount to be increased by.public void incrementProducedTokens(int value)
value
- The amount to be increased by.public void addMeanNumberEnabledMeasurement(int newNumberEnabled)
newNumberEnabled
- The new measurement for the number of enabled transitions.public float getMeanNumberOfEnabledTransitions()
public boolean hasProperlyTerminated()
public boolean hasSuccessfullyExecuted()
public int getNumberOfConsumedTokens()
public int getNumberOfProducedTokens()
public java.lang.String getFitnessAttributeForCurrentTrace()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |