org.processmining.analysis.performance.sequence
Class DataElementBlock

java.lang.Object
  extended by org.processmining.analysis.performance.sequence.DataElementBlock
Direct Known Subclasses:
PatternBlock, SequenceBlock

public class DataElementBlock
extends java.lang.Object

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

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

Constructor Summary
DataElementBlock(java.lang.String dataElement)
          constructor to initialize the block
 
Method Summary
 void drawBlock(double startX, java.awt.Color thisColor, java.awt.Graphics2D g)
          Draws the data-element block on top of the the lifeline
 java.lang.String getDataElement()
          Returns the name of the data-element of this block
 java.util.HashSet getInArrows()
          Returns the arrows that end in this block
 java.util.HashSet getOutArrows()
          Returns the arrows that originate from this block
 int getSimilarIndex()
          returns the similarIndex
 boolean isInBlock(java.awt.Point p, java.util.HashMap lifeLines, double scale)
          Returns true if point p is in this block
 void setEndAt(double endAt)
          Sets the end position of this block
 void setInArrows(java.util.HashSet inArrows)
          Sets the arrows that end in this block
 void setOutArrows(java.util.HashSet outArrows)
          Sets the arrows that originate from this block
 void setSimilarIndex(int similarIndex)
          sets similarIndex
 void setStartAt(double startAt)
          Sets the starting position of this block
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataElementBlock

public DataElementBlock(java.lang.String dataElement)
constructor to initialize the block

Parameters:
dataElement - String
Method Detail

getDataElement

public java.lang.String getDataElement()
Returns the name of the data-element of this block

Returns:
String

setStartAt

public void setStartAt(double startAt)
Sets the starting position of this block

Parameters:
startAt - double

setEndAt

public void setEndAt(double endAt)
Sets the end position of this block

Parameters:
endAt - double

setSimilarIndex

public void setSimilarIndex(int similarIndex)
sets similarIndex

Parameters:
similarIndex - int

getSimilarIndex

public int getSimilarIndex()
returns the similarIndex

Returns:
int

getInArrows

public java.util.HashSet getInArrows()
Returns the arrows that end in this block

Returns:
HashSet

setInArrows

public void setInArrows(java.util.HashSet inArrows)
Sets the arrows that end in this block

Parameters:
inArrows - HashSet

getOutArrows

public java.util.HashSet getOutArrows()
Returns the arrows that originate from this block

Returns:
HashSet

setOutArrows

public void setOutArrows(java.util.HashSet outArrows)
Sets the arrows that originate from this block

Parameters:
outArrows - HashSet

isInBlock

public boolean isInBlock(java.awt.Point p,
                         java.util.HashMap lifeLines,
                         double scale)
Returns true if point p is in this block

Parameters:
p - Point
lifeLines - HashMap
scale - double
Returns:
boolean

drawBlock

public void drawBlock(double startX,
                      java.awt.Color thisColor,
                      java.awt.Graphics2D g)
Draws the data-element block on top of the the lifeline

Parameters:
startX - double
thisColor - Color
g - Graphics2D