|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.processmining.analysis.performance.ExtendedActivity
public class ExtendedActivity
This class is used to represent activities and to enhance these activities with performance related information, such as the waiting time, execution time, sojourn time and the like.
Constructor Summary | |
---|---|
ExtendedActivity(java.lang.String aName)
Creates and initializes a new ExtendedActivity-object. |
Method Summary | |
---|---|
void |
calculateMetrics(java.util.ArrayList piList,
int fitOption,
java.util.HashSet failedInstances)
Calculates waiting time, execution time and sojourn time of the activity for each measurement, if possible, and places these times in waitStatistics, executionStatistics and sojournStatistics respectively. |
void |
checkWhichMetricsToUse()
Checks whether normal time measurements can be used (sojourn time, waiting time, execution). |
void |
exportToFile(java.util.ArrayList piList,
java.io.File file,
long divider,
java.lang.String sort,
int fitOption)
Exports all time measurements (waiting, execution, sojourn time) taken in process instances in piList and corresponding to this activity to (a comma-seperated text) file. |
double |
getArrivalRate()
Returns the arrival rate |
double[] |
getAvgExecutionTimes(double fastestPercentage,
double slowestPercentage)
Returns the average of fast, slow and normal speed execution times in form of an array of type double. |
double[] |
getAvgSojournTimes(double fastestPercentage,
double slowestPercentage)
Returns the average of fast, slow and normal speed sojourn times in form of an array of type double. |
double[] |
getAvgWaitTimes(double fastestPercentage,
double slowestPercentage)
Returns the average of fast, slow and normal speed waiting times in form of an array of type double. |
boolean |
getBoundExecutionUsed()
|
boolean |
getBoundSojournUsed()
|
boolean |
getBoundWaitingUsed()
|
long |
getFrequencyExecution()
Returns the number of execution time measurements present for this activity |
long |
getFrequencySojourn()
Returns the number of sojourn time measurements present for this activity |
long |
getFrequencyWait()
Returns the number of waiting time measurements present for this activity |
double |
getMaxExecutionTime()
Returns the maximum execution time of this activity. |
double |
getMaxSojournTime()
Returns the maximum sojourn time of this activity. |
double |
getMaxWaitTime()
Returns the maximum waiting time of this activity. |
double |
getMeanExecutionTime()
Returns the mean execution time of this activity. |
double |
getMeanSojournTime()
Returns the mean sojourn time of this activity. |
double |
getMeanWaitTime()
Returns the mean waiting time of this activity. |
double |
getMinExecutionTime()
Returns the minimum execution time of this activity. |
double |
getMinSojournTime()
Returns the minimum sojourn time of this activity. |
double |
getMinWaitTime()
Returns the minimum waiting time of this activity. |
java.lang.String |
getName()
Returns the name of the activity |
int[] |
getSizes(double fastestPercentage,
double slowestPercentage,
int length)
Returns an array containing the number of measurements that are considered to be fast (place 0 in array), the number of measurements that are considered to be slow (place 1 in array) and the number of measurements that are of 'normal' speed (place 2 in array). |
double |
getStdevExecutionTime()
Returns the standard deviation in execution time of this activity. |
double |
getStdevSojournTime()
Returns the standard deviation in sojourn time of this activity. |
double |
getStdevWaitTime()
Returns the standard deviation in waiting time of this activity. |
void |
measure(java.lang.String piName,
java.util.Date timestamp,
java.util.Date transEnabled,
java.lang.String type,
java.lang.String transitionFailed,
boolean failedBefore)
Adds a new measurement or adjusts the last measurement in ArrayList measurements. |
void |
setDiscardBoundFinal()
|
void |
setFinalTimeLast(java.lang.String piName,
java.util.Date timeStamp,
boolean failedBeforeEnd,
boolean failedEnd)
Sets the end date of the last measurement to timeStamp if timeStamp occured before the end date of the last measurement or the end date is currently null. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExtendedActivity(java.lang.String aName)
aName
- String: name of the activityMethod Detail |
---|
public void measure(java.lang.String piName, java.util.Date timestamp, java.util.Date transEnabled, java.lang.String type, java.lang.String transitionFailed, boolean failedBefore)
piName
- String: process instance ID in which the measurement was
takentimestamp
- Date: measured timestamptransEnabled
- Date: timestamp at which the transition that calls this
method was enabledtype
- String: event type that occurredtransitionFailed
- String: contains the event-type of the transition
if it did not fire regularlyfailedBefore
- boolean: true in case a transition in the trace with
name piName failed, before this method was calledpublic void setFinalTimeLast(java.lang.String piName, java.util.Date timeStamp, boolean failedBeforeEnd, boolean failedEnd)
piName
- String: Name of process instancetimeStamp
- Date: Date to which the end date of the last measurement
is compared and possibly set (if before the current end date)failedBeforeEnd
- boolean: true if the trace piName failed before
this method was calledfailedEnd
- boolean: true if the transition after the last transition
corresponding to this activity failed executionpublic void setDiscardBoundFinal()
public void calculateMetrics(java.util.ArrayList piList, int fitOption, java.util.HashSet failedInstances)
piList
- ArrayList: Names of the process instances that are consideredfitOption
- int: selected fitness/conformance option (calculation
of activity metrics is dependent on how we deal with non-conformance)failedInstances
- HashSet: set of traces that executed executed unsuccessfully or
terminated unproperlypublic void exportToFile(java.util.ArrayList piList, java.io.File file, long divider, java.lang.String sort, int fitOption) throws java.io.IOException
piList
- ArrayListfile
- Filedivider
- longsort
- StringfitOption
- int
java.io.IOException
public void checkWhichMetricsToUse()
public java.lang.String getName()
public double getMeanWaitTime()
public double getMinWaitTime()
public double getMaxWaitTime()
public double getStdevWaitTime()
public long getFrequencyWait()
public double[] getAvgWaitTimes(double fastestPercentage, double slowestPercentage)
fastestPercentage
- double: percentage of 'fast' timesslowestPercentage
- double: percentage of 'slow' times
public double getMeanExecutionTime()
public double getMinExecutionTime()
public double getMaxExecutionTime()
public double getStdevExecutionTime()
public long getFrequencyExecution()
public double[] getAvgExecutionTimes(double fastestPercentage, double slowestPercentage)
fastestPercentage
- double: percentage of 'fast' timesslowestPercentage
- double: percentage of 'slow' times
public double getMeanSojournTime()
public double getMinSojournTime()
public double getMaxSojournTime()
public double getStdevSojournTime()
public long getFrequencySojourn()
public double[] getAvgSojournTimes(double fastestPercentage, double slowestPercentage)
fastestPercentage
- double: percentage of 'fast' timesslowestPercentage
- double: percentage of 'slow' times
public double getArrivalRate()
public int[] getSizes(double fastestPercentage, double slowestPercentage, int length)
fastestPercentage
- doubleslowestPercentage
- doublelength
- int
public boolean getBoundSojournUsed()
public boolean getBoundWaitingUsed()
public boolean getBoundExecutionUsed()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |