|
||||||||||
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
public class Measurer
Statelesss strategy object determining which kind of measurements should be taken along the course of log replay. In order to use a Measurer you should derive your own subclass, add a method to this parent class that does nothing (so other subclasses will not inherit your specific measurement strategy), and override it in your subclass in such a way that the desired measurements are taken.
Constructor Summary | |
---|---|
Measurer()
|
Method Summary | |
---|---|
protected LogReplayAnalysisResult |
initLogReplayAnalysisResult(AnalysisConfiguration analysisOptions,
PetriNet petriNet,
LogReader log,
LogReplayAnalysisMethod analysisMethod)
To be overridden in subclasses that want create custom analysis results. |
protected void |
initTraceReplay(ReplayedLogTrace pi,
LogReplayAnalysisResult result)
Will be called at the very beginning of replaying a trace. |
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). |
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. |
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. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Measurer()
Method Detail |
---|
protected LogReplayAnalysisResult initLogReplayAnalysisResult(AnalysisConfiguration analysisOptions, PetriNet petriNet, LogReader log, LogReplayAnalysisMethod analysisMethod)
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)
pi
- the trace currently being replayedresult
- the result object filled by the log replay methodprotected void takePreStepExecutionMeasurement(LogReplayAnalysisResult result, ReplayedLogTrace pi)
result
- the result object filled by the log replay methodpi
- the trace which is currently replayedprotected void takeLogEventRecordingMeasurement(LogReplayAnalysisResult result, ReplayedLogTrace pi, AuditTrailEntry ate)
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)
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)
p
- the place for which the token is createdpi
- the trace which is currently replayedprotected void takePostTraceReplayMeasurement(LogReplayAnalysisResult result, ReplayedLogTrace pi)
result
- the result object filled by the log replay methodpi
- the trace which is currently replayedprotected void takePostReplayMeasurement(LogReplayAnalysisResult result)
result
- the result object filled by the log replay method
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |