org.processmining.analysis.performance.sequence
Class SequenceBlock

java.lang.Object
  extended by org.processmining.analysis.performance.sequence.DataElementBlock
      extended by org.processmining.analysis.performance.sequence.SequenceBlock

public class SequenceBlock
extends DataElementBlock

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

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

Constructor Summary
SequenceBlock(java.util.Date beginTimestamp, java.util.Date endTimestamp, java.lang.String dataElement)
          Constructor that initializes the block
 
Method Summary
 java.util.Date getBeginTimestamp()
          Returns the begin timestamp of this block
 java.util.Date getEndTimestamp()
          Returns the end timestamp.
 long getTimeIn()
          Returns the duration of the period of activity
 void setBeginTimestamp(java.util.Date beginTimestamp)
          Sets the begin timestamp.
 void setEndTimestamp(java.util.Date endTimestamp)
          Sets the end timestamp
 
Methods inherited from class org.processmining.analysis.performance.sequence.DataElementBlock
drawBlock, getDataElement, getInArrows, getOutArrows, getSimilarIndex, isInBlock, setEndAt, setInArrows, setOutArrows, setSimilarIndex, setStartAt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SequenceBlock

public SequenceBlock(java.util.Date beginTimestamp,
                     java.util.Date endTimestamp,
                     java.lang.String dataElement)
Constructor that initializes the block

Parameters:
beginTimestamp - Date
endTimestamp - Date
dataElement - String
Method Detail

getTimeIn

public long getTimeIn()
Returns the duration of the period of activity

Returns:
long

getBeginTimestamp

public java.util.Date getBeginTimestamp()
Returns the begin timestamp of this block

Returns:
Date

setBeginTimestamp

public void setBeginTimestamp(java.util.Date beginTimestamp)
Sets the begin timestamp. Needed to be able to combine blocks/periods that overlap

Parameters:
beginTimestamp - Date

getEndTimestamp

public java.util.Date getEndTimestamp()
Returns the end timestamp. Needed to be able to combine blocks/periods that overlap

Returns:
Date

setEndTimestamp

public void setEndTimestamp(java.util.Date endTimestamp)
Sets the end timestamp

Parameters:
endTimestamp - Date