public class PSDPattern
extends java.lang.Object
Constructor and Description |
---|
PSDPattern(PSDSequence sq)
Constructor to initialize pattern
|
Modifier and Type | Method and Description |
---|---|
void |
addSequence(PSDSequence sq)
Adds sequence sq to the sequenceList, which contains all sequences that
follow this pattern
|
void |
calculateTimes()
Calculates throughput times
|
boolean |
compareToSequence(PSDSequence sq,
boolean isStrict)
Compares the sequence to the pattern, returns true if they match
|
void |
drawPattern(java.util.Map<java.lang.String,PSDLifeLine> lifeLines,
int startY,
java.awt.Graphics2D g)
Draws the pattern in the pattern diagram
|
void |
drawRectangle(double startX,
double startY,
double length,
boolean logicSteps,
java.awt.Graphics2D g)
Draws a rectangle of width 20, height length and starting point
(startX,startY) in the northwest corner of the rectangle.
|
java.util.List<PSDPatternArrow> |
getArrowList()
Returns the sorted arrows of this pattern
|
double[] |
getArrowPosition(int number)
Returns the average time between the beginning of a sequence of this
pattern and the Timestamp at which arrow number 'number' began and ended
|
double |
getAvgTimeToBegin(int number)
Returns the average time between the beginning of a sequence of this
pattern and the Timestamp at which data-element part with number 'number'
starts
|
java.awt.Color |
getColor()
Returns the color of the pattern
|
int |
getFrequency()
Returns the number of sequences that follow this pattern
|
double |
getMaxThroughputTime()
Returns maximum throughput time
|
double |
getMeanThroughputTime()
Returns mean throughput time
|
double |
getMinThroughputTime()
Returns minimum throughput time
|
int |
getPatternNumber()
Returns the number of the pattern
|
java.util.Set<java.lang.String> |
getPiNames()
Returns the set of (names of) process instances, which follow this
pattern
|
java.util.List<PSDPatternBlock> |
getSortedDataElementBlocks()
Returns the sorted list of data-element blocks
|
double |
getStdevThroughputTime()
Returns standard deviation in throughput time
|
double |
getTimePart(int number)
Returns the average time spend in data-element part with number 'number'
|
void |
initializeDrawPattern(int patternNumber,
int startY,
double timePerPixel) |
void |
setPatternNumber(int patternNumber)
Sets the number of the pattern
|
public PSDPattern(PSDSequence sq)
sq
- PSDSequencepublic boolean compareToSequence(PSDSequence sq, boolean isStrict)
sq
- PSDSequenceisStrict
- booleanpublic void calculateTimes()
public void addSequence(PSDSequence sq)
sq
- PSDSequencepublic int getFrequency()
public double getTimePart(int number)
number
- intpublic double getAvgTimeToBegin(int number)
number
- intpublic double[] getArrowPosition(int number)
number
- intpublic java.util.List<PSDPatternBlock> getSortedDataElementBlocks()
public java.util.List<PSDPatternArrow> getArrowList()
public java.awt.Color getColor()
public int getPatternNumber()
public void setPatternNumber(int patternNumber)
patternNumber
- intpublic java.util.Set<java.lang.String> getPiNames()
public double getMeanThroughputTime()
public double getMinThroughputTime()
public double getMaxThroughputTime()
public double getStdevThroughputTime()
public void initializeDrawPattern(int patternNumber, int startY, double timePerPixel)
patternNumber
- intstartY
- inttimePerPixel
- doublepublic void drawPattern(java.util.Map<java.lang.String,PSDLifeLine> lifeLines, int startY, java.awt.Graphics2D g)
lifeLines
- MapstartY
- intg
- Graphics2Dpublic void drawRectangle(double startX, double startY, double length, boolean logicSteps, java.awt.Graphics2D g)
startX
- doublestartY
- doublelength
- doublelogicSteps
- booleang
- Graphics2D