|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.processmining.mining.dmcscanning.logutils.AnchoredEvent
public class AnchoredEvent
AnchoredEvent is a wrapper class for AuditTrailEntry. It transparently provides all functionality of AuditTrailEntry, augmented by a reference to the originating ProcessInstance, plus the sequence number (or, position) within that trace. Notice: If the AuditTrailEntry is extended with a copy constructor this class can be simplified by deriving it directly from AuditTrailEntry.
Field Summary | |
---|---|
protected AuditTrailEntry |
entry
|
protected long |
position
|
protected static java.util.HashMap |
positions
|
protected ProcessInstance |
processInstance
|
Constructor Summary | |
---|---|
AnchoredEvent(AuditTrailEntry anEntry,
ProcessInstance aProcessInstance)
Creates a new AnchoredEvent that is automatically equipped with a sequence/position counter value, unique to the provided process instance. |
|
AnchoredEvent(AuditTrailEntry anEntry,
ProcessInstance aProcessInstance,
long aPosition)
Creates a new AnchoredEvent, wrapping an AuditTrailEntry with augmented Meta-Information |
Method Summary | |
---|---|
int |
compareTo(java.lang.Object arg0)
|
boolean |
equals(AnchoredEvent other)
Tests two events for equality, based on their process instance and position |
AuditTrailEntry |
getAuditTrailEntry()
|
int |
getComparisonIndex()
|
java.util.Map |
getData()
|
java.lang.String |
getElement()
|
java.util.Date |
getLeftBoundaryTimestamp()
Start and end position are expected to represent sub-item boundaries of compound log items. |
java.lang.String |
getOriginator()
|
long |
getPosition()
The return value represents the logical position of this log item within the sequence of events (starting from zero and ascending). |
ProcessInstance |
getProcessInstance()
|
java.util.Date |
getRightBoundaryTimestamp()
Start and end position are expected to represent sub-item boundaries of compound log items. |
java.util.Date |
getTimestamp()
|
java.lang.String |
getType()
|
boolean |
isAtomic()
Determines, whether this log event is atomic or durable; Atomic, in this context, is interpreted as tStart == tEnd, in contrast to durable, where tStart < tEnd. |
boolean |
isInSameProcessInstanceAs(AnchoredEvent other)
Test, whether another event belongs to the same process instance |
protected static long |
nextCounterFor(java.lang.String processInstanceId)
provides a convenience facility for automatically managing a set of key-unique counters. |
boolean |
occurredEarlierThan(AnchoredEvent other)
-- convenience method -- |
boolean |
occurredLaterThan(AnchoredEvent other)
-- convenience method -- |
long |
positionRelativeTo(AnchoredEvent other)
Retrieves the number of steps, that the calling event is away from the other one. |
static void |
resetCounters()
resets all counters |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static java.util.HashMap positions
protected AuditTrailEntry entry
protected ProcessInstance processInstance
protected long position
Constructor Detail |
---|
public AnchoredEvent(AuditTrailEntry anEntry, ProcessInstance aProcessInstance, long aPosition)
anEntry
- the AuditTrailEntry instance to be wrappedaProcessInstance
- process instance the ATE belongs toaPosition
- position of the ATE within the process instance (starting from 0)public AnchoredEvent(AuditTrailEntry anEntry, ProcessInstance aProcessInstance)
anEntry
- the AuditTrailEntry instance to be wrappedaProcessInstance
- process instance the ATE belongs toMethod Detail |
---|
protected static long nextCounterFor(java.lang.String processInstanceId)
processInstanceId
- the process instance id within which the counter value is unique
public static void resetCounters()
public boolean equals(AnchoredEvent other)
other
-
public AuditTrailEntry getAuditTrailEntry()
public long getPosition()
LogItem
getPosition
in interface LogItem
public ProcessInstance getProcessInstance()
public boolean isInSameProcessInstanceAs(AnchoredEvent other)
other
- another AnchoredEvent
public long positionRelativeTo(AnchoredEvent other)
other
-
public boolean occurredLaterThan(AnchoredEvent other)
public boolean occurredEarlierThan(AnchoredEvent other)
public java.lang.String getElement()
public java.lang.String getType()
public java.util.Date getTimestamp()
public java.lang.String getOriginator()
public java.util.Map getData()
public java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(java.lang.Object arg0)
compareTo
in interface java.lang.Comparable
public java.util.Date getLeftBoundaryTimestamp()
LogItem
getLeftBoundaryTimestamp
in interface LogItem
public java.util.Date getRightBoundaryTimestamp()
LogItem
getRightBoundaryTimestamp
in interface LogItem
public boolean isAtomic()
LogItem
isAtomic
in interface LogItem
public int getComparisonIndex()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |