org.processmining.analysis.performance
Class PerformanceMeasurer

java.lang.Object
  extended by org.processmining.framework.models.petrinet.algorithms.logReplay.Measurer
      extended by org.processmining.analysis.performance.PerformanceMeasurer

public class PerformanceMeasurer
extends Measurer

Actually takes those measurements that are needed to calculate some performance metrics. This is a subclass of the Measurer class.

Author:
Peter T.G. Hornix (p.t.g.hornix@student.tue.nl)

Constructor Summary
PerformanceMeasurer()
           
 
Method Summary
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 PerformanceLogReplayResult.
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). Records that the corresponding log trace has not completed succesfully
protected  void takePostTraceReplayMeasurement(LogReplayAnalysisResult result, ReplayedLogTrace pi)
          Will be called directly after finishing replay of the current trace. Checks whether places have tokens remaining and records that the corresponding log trace has not properly terminated if this is the case.
 
Methods inherited from class org.processmining.framework.models.petrinet.algorithms.logReplay.Measurer
initTraceReplay, takeLogEventRecordingMeasurement, takeMissingTokenMeasurement, takePostReplayMeasurement, takePreStepExecutionMeasurement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PerformanceMeasurer

public PerformanceMeasurer()
Method Detail

initLogReplayAnalysisResult

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 PerformanceLogReplayResult.

Overrides:
initLogReplayAnalysisResult in class Measurer
Parameters:
analysisOptions - the configuration object determining which parts of the analysis should be carried out (can be null, then all options are interpreted as enabled)

takeFailedTaskMeasurement

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). Does nothing per default (to be overridden in subclasses if necessary). Records that the corresponding log trace has not completed succesfully

Overrides:
takeFailedTaskMeasurement in class Measurer
Parameters:
pi - ReplayedLogTrace
t - ReplayedTransition
ate - AuditTrailEntry

takePostTraceReplayMeasurement

protected void takePostTraceReplayMeasurement(LogReplayAnalysisResult result,
                                              ReplayedLogTrace pi)
Will be called directly after finishing replay of the current trace. Does nothing per default (to be overridden in subclasses if necessary). Checks whether places have tokens remaining and records that the corresponding log trace has not properly terminated if this is the case.

Overrides:
takePostTraceReplayMeasurement in class Measurer
Parameters:
result - the result object filled by the log replay method
pi - the trace which is currently replayed