public class PSDSequence
extends java.lang.Object
Constructor and Description |
---|
PSDSequence(java.util.Date beginDate,
java.util.Date endDate,
java.lang.String piName)
Constructor to initialize the sequence
|
Modifier and Type | Method and Description |
---|---|
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.
|
void |
drawSequence(java.util.Map<java.lang.String,PSDLifeLine> lifeLines,
java.awt.Graphics2D g) |
java.util.List<PSDSequenceArrow> |
getArrowList()
Returns the list of arrows of this sequence
|
double[] |
getArrowPosition(int number)
Returns the beginposition of arrow number 'number'
|
java.util.Date |
getBeginDate()
Returns the begin date of the sequence
|
double |
getBeginPositionBlock(int num)
Returns the begin position of data-element block number 'num' of the
sequence
|
java.awt.Color |
getColor()
Returns the color of the sequence
|
java.util.Date |
getEndDate()
Returns the end date of the sequence
|
double |
getEndY()
returns the end position of the sequence
|
java.lang.String |
getPiName()
Returns the name of the process instance to which this sequence
corresponds
|
java.util.List<PSDSequenceBlock> |
getSortedDataEltBlocks()
Returns the sorted list of data-element blocks
|
java.util.List<PSDSequenceBlock> |
getSortedOnEndDataEltBlocks()
Returns the list of data-element blocks, sorted on end time, begin time
and finally on data-element name.
|
double |
getStartY()
Returns the starting position of the sequence
|
double |
getThroughputTime()
Returns the throughput time of the sequence
|
long |
getTimePart(int num)
Returns the time spend in data-element block number num of the sequence
|
void |
initializeDrawSequence(double timePerPixel,
java.util.Date firstDate)
Initializes the data-element blocks of the sequence so they can easily be
drawn
|
void |
initializeSequence(java.util.List<org.deckfour.xes.model.XEvent[]> relationList,
java.lang.String dataEltType,
boolean strict)
This method initializes the sequence, and sorts the arrows and
data-element blocks in such a manner that it can be easily compared with
other sequences
|
void |
setColor(java.awt.Color thisColor)
Sets color of the sequence
|
void |
setStartY(double startY)
Sets the start position of the sequence
|
void |
sortArrowList()
Sorts arrowList on source data-element name, destination data-element
name begin time and end time (in that order)
|
void |
sortArrowListStrict()
Sorts arrowList on begin time, end time source data-element name,
destination data-element name(in that order)
|
public PSDSequence(java.util.Date beginDate, java.util.Date endDate, java.lang.String piName)
beginDate
- DateendDate
- DatepiName
- Stringpublic void initializeSequence(java.util.List<org.deckfour.xes.model.XEvent[]> relationList, java.lang.String dataEltType, boolean strict)
relationList
- ArrayList: contains relations (arraylist of 2 audit trail
entries (ates) ) between ates where the first ate corresponds
to an event that is a direct precessor of the event that
corresponds to the second ate.dataEltType
- String : the data-element type that is usedstrict
- boolean : true if 'strict' patterns used, false if 'flexible'.public void sortArrowList()
public void sortArrowListStrict()
public void setColor(java.awt.Color thisColor)
thisColor
- Colorpublic java.awt.Color getColor()
public java.util.List<PSDSequenceArrow> getArrowList()
public java.util.List<PSDSequenceBlock> getSortedDataEltBlocks()
public java.util.List<PSDSequenceBlock> getSortedOnEndDataEltBlocks()
public long getTimePart(int num)
num
- intpublic double getBeginPositionBlock(int num)
num
- intpublic double[] getArrowPosition(int number)
number
- intpublic java.util.Date getBeginDate()
public java.util.Date getEndDate()
public java.lang.String getPiName()
public double getThroughputTime()
public double getStartY()
public double getEndY()
public void setStartY(double startY)
startY
- doublepublic void initializeDrawSequence(double timePerPixel, java.util.Date firstDate)
timePerPixel
- double : time per pixelfirstDate
- Date : the starting date of the first sequence in the sequence
diagrampublic void drawSequence(java.util.Map<java.lang.String,PSDLifeLine> lifeLines, java.awt.Graphics2D g)
lifeLines
- HashMapg
- Graphics2Dpublic void drawRectangle(double startX, double startY, double length, boolean logicSteps, java.awt.Graphics2D g)
startX
- doublestartY
- doublelength
- doublelogicSteps
- booleang
- Graphics2D