org.processmining.analysis.performance.dottedchart.logutil
Class AbstractLogUnit

java.lang.Object
  extended by org.processmining.analysis.performance.dottedchart.logutil.AbstractLogUnit
All Implemented Interfaces:
java.lang.Comparable

public class AbstractLogUnit
extends java.lang.Object
implements java.lang.Comparable

Author:
Minseok Song

Field Summary
protected  java.util.Date currentDate
           
protected  AuditTrailEntry logEvent
           
protected  long position
           
protected  ProcessInstance processInstance
           
 
Constructor Summary
protected AbstractLogUnit(ProcessInstance aProcessInstance, AuditTrailEntry aLogEvent)
          constructor protected - use factory methods for instantiation;
 
Method Summary
 int compareTo(java.lang.Object arg0)
           
static AbstractLogUnit create(ProcessInstance aProcessInstance, AuditTrailEntry aLogEvent)
          Creates a new durating abstract event
 java.util.Map<java.lang.String,java.lang.String> getAttributes()
          Convenience method for AuditTrailEntry compatibility; mapped to attributes.
 int getComparisonIndex()
           
 java.util.Date getCurrentTimeStamp()
           
 java.lang.String getElement()
           
 long getOrder()
           
 java.lang.String getOriginator()
          Convenience method for AuditTrailEntry compatibility; mapped to start event.
 long getPosition()
           
 ProcessInstance getProcessInstance()
           
 java.util.Date getRelativeRatio()
           
 java.util.Date getRelativeRatio(java.util.Date startDate, java.util.Date endDate)
           
 java.util.Date getRelativeTimestamp()
           
 java.util.Date getRelativeTimestamp(java.util.Date aDate)
           
 java.util.Date getTimestamp()
          Convenience method for AuditTrailEntry compatibility; mapped to start event.
 java.lang.String getType()
          Convenience method for AuditTrailEntry compatibility; mapped to start event.
 void resetPosition()
           
 void setCurrentTimeStamp()
           
 void setCurrentTimeStampLogical()
           
 void setCurrentTimeStampRelative_Instance()
           
 void setCurrentTimeStampRelative_Others(java.util.Date aDate)
           
 void setCurrentTimeStampRelativeRatio_Instance()
           
 void setCurrentTimeStampRelativeRatio_Others(java.util.Date startDate, java.util.Date endDate)
           
 void setPosition(long pos)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

processInstance

protected ProcessInstance processInstance

logEvent

protected AuditTrailEntry logEvent

position

protected long position

currentDate

protected java.util.Date currentDate
Constructor Detail

AbstractLogUnit

protected AbstractLogUnit(ProcessInstance aProcessInstance,
                          AuditTrailEntry aLogEvent)
constructor protected - use factory methods for instantiation;

Parameters:
aProcessInstance - the process instance where this abstract event is contained
aStartEvent - left boundary atomic event
anEndEvent - right boundary atomic event
aPosition - logical log position (first=0, ascending)
Method Detail

create

public static AbstractLogUnit create(ProcessInstance aProcessInstance,
                                     AuditTrailEntry aLogEvent)
Creates a new durating abstract event

Parameters:
aProcessInstance -
aStartEvent -
anEndEvent -
Returns:

getProcessInstance

public ProcessInstance getProcessInstance()
Returns:
the process instance this event stems from

getElement

public java.lang.String getElement()
Returns:
the start event of a composite event; single event if atomic

getOriginator

public java.lang.String getOriginator()
Convenience method for AuditTrailEntry compatibility; mapped to start event.

Returns:

getType

public java.lang.String getType()
Convenience method for AuditTrailEntry compatibility; mapped to start event.

Returns:

getTimestamp

public java.util.Date getTimestamp()
Convenience method for AuditTrailEntry compatibility; mapped to start event.

Returns:

getAttributes

public java.util.Map<java.lang.String,java.lang.String> getAttributes()
Convenience method for AuditTrailEntry compatibility; mapped to attributes.

Returns:

getRelativeTimestamp

public java.util.Date getRelativeTimestamp()

getRelativeTimestamp

public java.util.Date getRelativeTimestamp(java.util.Date aDate)

getRelativeRatio

public java.util.Date getRelativeRatio()

getRelativeRatio

public java.util.Date getRelativeRatio(java.util.Date startDate,
                                       java.util.Date endDate)

getCurrentTimeStamp

public java.util.Date getCurrentTimeStamp()

setCurrentTimeStamp

public void setCurrentTimeStamp()

setCurrentTimeStampLogical

public void setCurrentTimeStampLogical()

setCurrentTimeStampRelative_Instance

public void setCurrentTimeStampRelative_Instance()

setCurrentTimeStampRelative_Others

public void setCurrentTimeStampRelative_Others(java.util.Date aDate)

setCurrentTimeStampRelativeRatio_Instance

public void setCurrentTimeStampRelativeRatio_Instance()

setCurrentTimeStampRelativeRatio_Others

public void setCurrentTimeStampRelativeRatio_Others(java.util.Date startDate,
                                                    java.util.Date endDate)

getPosition

public long getPosition()

setPosition

public void setPosition(long pos)

resetPosition

public void resetPosition()

getOrder

public long getOrder()

compareTo

public int compareTo(java.lang.Object arg0)
Specified by:
compareTo in interface java.lang.Comparable

getComparisonIndex

public int getComparisonIndex()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object