org.processmining.analysis.performance
Class ExtendedLogTrace

java.lang.Object
  extended by org.processmining.framework.models.petrinet.algorithms.logReplay.ReplayedLogTrace
      extended by org.processmining.analysis.performance.ExtendedLogTrace

public class ExtendedLogTrace
extends ReplayedLogTrace

This class is used to enhance log traces with performance information, such as throughput time.

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

Field Summary
 
Fields inherited from class org.processmining.framework.models.petrinet.algorithms.logReplay.ReplayedLogTrace
processInstance
 
Constructor Summary
ExtendedLogTrace(ProcessInstance pi)
          Create an extended log trace by copying the ordinary process instance.
 
Method Summary
 java.util.Date getBeginDate()
          Returns the begin date and time of the trace
 java.util.Date getEndDate()
          Returns the end date and time of the trace.
 boolean hasProperlyTerminated()
          Get the properlyTeminated value for that trace.
 boolean hasSuccessfullyExecuted()
          Get the successfullyExecuted value for that trace.
 void recordThroughputTimeMeasurement(java.util.Date fireTime)
          Records time-related metrics for this process instance.
 void setProperlyTerminated(boolean value)
          Set the properlyTerminated attribute.
 void setSuccessfullyExecuted(boolean value)
          Set the successfullyExecuted attribute.
 
Methods inherited from class org.processmining.framework.models.petrinet.algorithms.logReplay.ReplayedLogTrace
getName, getNumberOfProcessInstances, getProcessInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtendedLogTrace

public ExtendedLogTrace(ProcessInstance pi)
Create an extended log trace by copying the ordinary process instance.

Parameters:
pi - The template process instance used to create the diagnostic log trace.
Method Detail

setProperlyTerminated

public void setProperlyTerminated(boolean value)
Set the properlyTerminated attribute.

Parameters:
value - The new value to be set.

setSuccessfullyExecuted

public void setSuccessfullyExecuted(boolean value)
Set the successfullyExecuted attribute.

Parameters:
value - The new value to be set.

hasProperlyTerminated

public boolean hasProperlyTerminated()
Get the properlyTeminated value for that trace.

Returns:
The boolean value of having properly terminated.

hasSuccessfullyExecuted

public boolean hasSuccessfullyExecuted()
Get the successfullyExecuted value for that trace.

Returns:
The boolean value of having successfully executed.

getBeginDate

public java.util.Date getBeginDate()
Returns the begin date and time of the trace

Returns:
Date

getEndDate

public java.util.Date getEndDate()
Returns the end date and time of the trace.

Returns:
Date

recordThroughputTimeMeasurement

public void recordThroughputTimeMeasurement(java.util.Date fireTime)
Records time-related metrics for this process instance. Needed to be able to calculate the throughput time of the trace. (Called each time a transition fires in this trace, during log replay)

Parameters:
fireTime - Date: time at which a transition fires