org.processmining.analysis.performance.sequence
Class PatternArrow

java.lang.Object
  extended by org.processmining.analysis.performance.sequence.Arrow
      extended by org.processmining.analysis.performance.sequence.PatternArrow

public class PatternArrow
extends Arrow

Represents the transfer of work between two data-element instances in a pattern.

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

Constructor Summary
PatternArrow(long beginTime, long endTime, java.lang.String source, java.lang.String destination)
           
 
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.
 boolean equals(java.lang.Object obj)
          Checks whether an arrow is equal to another one
 double getAverageBeginTime()
          Returns the average begin time of the arrow
 double getAverageEndTime()
          Returns the average end time of the arrow
 double getTimeIn()
          Returns the average time between the begin and the end of the arrow
 int hashCode()
           
 
Methods inherited from class org.processmining.analysis.performance.sequence.Arrow
drawArrow, getDestination, getDestinationBlock, getEndAt, getSource, getSourceBlock, getStartAt, isOnLine, setDestinationBlock, setEndAt, setSourceBlock, setStartAt
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PatternArrow

public PatternArrow(long beginTime,
                    long endTime,
                    java.lang.String source,
                    java.lang.String destination)
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 arrow

Returns:
double

getAverageEndTime

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

Returns:
double

getTimeIn

public double getTimeIn()
Returns the average time between the begin and the end of the arrow

Returns:
double

equals

public boolean equals(java.lang.Object obj)
Checks whether an arrow is equal to another one

Overrides:
equals in class java.lang.Object
Parameters:
obj - Object
Returns:
boolean

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object