Class PSDBlock
- java.lang.Object
-
- org.processmining.plugins.psd.model.PSDBlock
-
- Direct Known Subclasses:
PSDPatternBlock,PSDSequenceBlock
public class PSDBlock extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description PSDBlock(java.lang.String dataElement)constructor to initialize the block
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddrawBlock(double startX, java.awt.Color thisColor, java.awt.Graphics2D g)Draws the data-element block on top of the the lifelinejava.lang.StringgetDataElement()Returns the name of the data-element of this blockjava.util.Set<PSDArrow>getInArrows()Returns the arrows that end in this blockjava.util.Set<PSDArrow>getOutArrows()Returns the arrows that originate from this blockintgetSimilarIndex()returns the similarIndexbooleanisInBlock(java.awt.Point p, java.util.Map<java.lang.String,PSDLifeLine> lifeLines, double scale)Returns true if point p is in this blockvoidsetEndAt(double endAt)Sets the end position of this blockvoidsetInArrows(java.util.Set<PSDArrow> inArrows)Sets the arrows that end in this blockvoidsetOutArrows(java.util.Set<PSDArrow> outArrows)Sets the arrows that originate from this blockvoidsetSimilarIndex(int similarIndex)sets similarIndexvoidsetStartAt(double startAt)Sets the starting position of this block
-
-
-
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.Set<PSDArrow> getInArrows()
Returns the arrows that end in this block- Returns:
- Set
-
setInArrows
public void setInArrows(java.util.Set<PSDArrow> inArrows)
Sets the arrows that end in this block- Parameters:
inArrows- Set
-
getOutArrows
public java.util.Set<PSDArrow> getOutArrows()
Returns the arrows that originate from this block- Returns:
- Set
-
setOutArrows
public void setOutArrows(java.util.Set<PSDArrow> outArrows)
Sets the arrows that originate from this block- Parameters:
outArrows- Set
-
isInBlock
public boolean isInBlock(java.awt.Point p, java.util.Map<java.lang.String,PSDLifeLine> lifeLines, double scale)Returns true if point p is in this block- Parameters:
p- PointlifeLines- Mapscale- 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- doublethisColor- Colorg- Graphics2D
-
-