org.processmining.framework.models.petrinet.algorithms.logReplay
Class ReplayedLogTrace

java.lang.Object
  extended by org.processmining.framework.models.petrinet.algorithms.logReplay.ReplayedLogTrace
Direct Known Subclasses:
DiagnosticLogTrace, ExtendedLogTrace

public class ReplayedLogTrace
extends java.lang.Object

A log trace involved in the log replay analysis method. Internally, the original process instance is referenced, but in addition to that diagnostic data may be stored in deriving subclasses.

Author:
arozinat
See Also:
ReplayedLogReader, ReplayedPetriNet, LogReplayAnalysisMethod

Field Summary
protected  ProcessInstance processInstance
          Keeps a link to the corresponding process instance.
 
Constructor Summary
ReplayedLogTrace(ProcessInstance pi)
          Constructor.
 
Method Summary
 java.lang.String getName()
          Retrieves the name of the wrapped process instance.
 int getNumberOfProcessInstances()
          Returns the number of similar process instances represented logically by this diagnostic log trace.
 ProcessInstance getProcessInstance()
          Returns the process instance related to this trace.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

processInstance

protected ProcessInstance processInstance
Keeps a link to the corresponding process instance. Note that this does not necessarily mean that the instance is held in memory as the new log reader manages its instances via random access files.

Constructor Detail

ReplayedLogTrace

public ReplayedLogTrace(ProcessInstance pi)
Constructor.

Parameters:
the - process instance related to this trace
Method Detail

getProcessInstance

public ProcessInstance getProcessInstance()
Returns the process instance related to this trace.

Returns:
the process instance related to this trace

getName

public java.lang.String getName()
Retrieves the name of the wrapped process instance. This is a convenience method as the name of the process instance is used at many places (and otherwise getProcessInstance() must be called before every time).

Returns:
the name of the wrapped instance

getNumberOfProcessInstances

public int getNumberOfProcessInstances()
Returns the number of similar process instances represented logically by this diagnostic log trace. This needs to be taken into account for calculating the conformance analysis measures.

Returns:
the number of represented instances