org.processmining.analysis.performance.sequence
Class PatternBlock

java.lang.Object
  extended by org.processmining.analysis.performance.sequence.DataElementBlock
      extended by org.processmining.analysis.performance.sequence.PatternBlock

public class PatternBlock
extends DataElementBlock

Represents a period of activity of a data-element instance in a pattern.

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

Constructor Summary
PatternBlock(long beginTime, long endTime, java.lang.String dataInst)
          Constructor
 
Method Summary
 void addBeginTime(double beginTime)
          Adjusts the average begin time, so beginTime is included.
 void addEndTime(double endTime)
          Adjusts the average end time, so endTime is included.
 double getAverageBeginTime()
          Returns the average begin time of the block
 double getAverageEndTime()
          Returns the average end time of the block
 double getTimeIn()
          Returns the average duration of this period of activity
 
Methods inherited from class org.processmining.analysis.performance.sequence.DataElementBlock
drawBlock, getDataElement, getInArrows, getOutArrows, getSimilarIndex, isInBlock, setEndAt, setInArrows, setOutArrows, setSimilarIndex, setStartAt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PatternBlock

public PatternBlock(long beginTime,
                    long endTime,
                    java.lang.String dataInst)
Constructor

Parameters:
beginTime - long
endTime - long
dataInst - String
Method Detail

addBeginTime

public void addBeginTime(double beginTime)
Adjusts the average begin time, so beginTime is included.

Parameters:
beginTime - double

addEndTime

public void addEndTime(double endTime)
Adjusts the average end time, so endTime is included.

Parameters:
endTime - double

getAverageBeginTime

public double getAverageBeginTime()
Returns the average begin time of the block

Returns:
double

getAverageEndTime

public double getAverageEndTime()
Returns the average end time of the block

Returns:
double

getTimeIn

public double getTimeIn()
Returns the average duration of this period of activity

Returns:
double