Class PSDPattern
- java.lang.Object
-
- org.processmining.plugins.psd.model.pattern.PSDPattern
-
public class PSDPattern extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description PSDPattern(PSDSequence sq)Constructor to initialize pattern
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddSequence(PSDSequence sq)Adds sequence sq to the sequenceList, which contains all sequences that follow this patternvoidcalculateTimes()Calculates throughput timesbooleancompareToSequence(PSDSequence sq, boolean isStrict)Compares the sequence to the pattern, returns true if they matchvoiddrawPattern(java.util.Map<java.lang.String,PSDLifeLine> lifeLines, int startY, java.awt.Graphics2D g)Draws the pattern in the pattern diagramvoiddrawRectangle(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 patterndouble[]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 endeddoublegetAvgTimeToBegin(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' startsjava.awt.ColorgetColor()Returns the color of the patternintgetFrequency()Returns the number of sequences that follow this patterndoublegetMaxThroughputTime()Returns maximum throughput timedoublegetMeanThroughputTime()Returns mean throughput timedoublegetMinThroughputTime()Returns minimum throughput timeintgetPatternNumber()Returns the number of the patternjava.util.Set<java.lang.String>getPiNames()Returns the set of (names of) process instances, which follow this patternjava.util.List<PSDPatternBlock>getSortedDataElementBlocks()Returns the sorted list of data-element blocksdoublegetStdevThroughputTime()Returns standard deviation in throughput timedoublegetTimePart(int number)Returns the average time spend in data-element part with number 'number'voidinitializeDrawPattern(int patternNumber, int startY, double timePerPixel)voidsetPatternNumber(int patternNumber)Sets the number of the pattern
-
-
-
Constructor Detail
-
PSDPattern
public PSDPattern(PSDSequence sq)
Constructor to initialize pattern- Parameters:
sq- PSDSequence
-
-
Method Detail
-
compareToSequence
public boolean compareToSequence(PSDSequence sq, boolean isStrict)
Compares the sequence to the pattern, returns true if they match- Parameters:
sq- PSDSequenceisStrict- boolean- Returns:
- boolean
-
calculateTimes
public void calculateTimes()
Calculates throughput times
-
addSequence
public void addSequence(PSDSequence sq)
Adds sequence sq to the sequenceList, which contains all sequences that follow this pattern- Parameters:
sq- PSDSequence
-
getFrequency
public int getFrequency()
Returns the number of sequences that follow this pattern- Returns:
- int
-
getTimePart
public double getTimePart(int number)
Returns the average time spend in data-element part with number 'number'- Parameters:
number- int- Returns:
- double
-
getAvgTimeToBegin
public 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- Parameters:
number- int- Returns:
- double
-
getArrowPosition
public 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- Parameters:
number- int- Returns:
- double
-
getSortedDataElementBlocks
public java.util.List<PSDPatternBlock> getSortedDataElementBlocks()
Returns the sorted list of data-element blocks- Returns:
- List
-
getArrowList
public java.util.List<PSDPatternArrow> getArrowList()
Returns the sorted arrows of this pattern- Returns:
- List
-
getColor
public java.awt.Color getColor()
Returns the color of the pattern- Returns:
- Color
-
getPatternNumber
public int getPatternNumber()
Returns the number of the pattern- Returns:
- int
-
setPatternNumber
public void setPatternNumber(int patternNumber)
Sets the number of the pattern- Parameters:
patternNumber- int
-
getPiNames
public java.util.Set<java.lang.String> getPiNames()
Returns the set of (names of) process instances, which follow this pattern- Returns:
- Set
-
getMeanThroughputTime
public double getMeanThroughputTime()
Returns mean throughput time- Returns:
- double
-
getMinThroughputTime
public double getMinThroughputTime()
Returns minimum throughput time- Returns:
- double
-
getMaxThroughputTime
public double getMaxThroughputTime()
Returns maximum throughput time- Returns:
- double
-
getStdevThroughputTime
public double getStdevThroughputTime()
Returns standard deviation in throughput time- Returns:
- double
-
initializeDrawPattern
public void initializeDrawPattern(int patternNumber, int startY, double timePerPixel)- Parameters:
patternNumber- intstartY- inttimePerPixel- double
-
drawPattern
public void drawPattern(java.util.Map<java.lang.String,PSDLifeLine> lifeLines, int startY, java.awt.Graphics2D g)
Draws the pattern in the pattern diagram- Parameters:
lifeLines- MapstartY- intg- Graphics2D
-
drawRectangle
public 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. In case logicSteps is true, the height is 10.- Parameters:
startX- doublestartY- doublelength- doublelogicSteps- booleang- Graphics2D
-
-