|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.processmining.analysis.conformance.DiagnosticLogEventRelation
public class DiagnosticLogEventRelation
Data structure for keeping track of the log event relations in a log
trace or an execution trace of a model.
Note that this class can be used both to represent the relations between
log events in a trace or model execution path and to capture the whole
behavioral relation for the log or the process model.
TODO - consider making subclasses implementing these two different behaviors!
addDiagnosticLogEvent
,
updateLogEventRelation
Constructor Summary | |
---|---|
DiagnosticLogEventRelation()
|
Method Summary | |
---|---|
void |
addDiagnosticLogEvent(java.lang.String name,
java.lang.String type)
Registers a new activity for current log trace. |
boolean |
areInABRelation(java.lang.String first,
java.lang.String second)
Determines whether the given elements are in Always Precedes relation. |
boolean |
areInABRelation(java.lang.String first,
java.lang.String second,
int threshold)
Determines whether the given elements are in Always Precedes relation. |
boolean |
areInAFRelation(java.lang.String first,
java.lang.String second)
Determines whether the given elements are in Always Follows relation. |
boolean |
areInAFRelation(java.lang.String first,
java.lang.String second,
int threshold)
Determines whether the given elements are in Always Follows relation. |
boolean |
areInNBRelation(java.lang.String first,
java.lang.String second)
Determines whether the given elements are in Never Precedes relation. |
boolean |
areInNBRelation(java.lang.String first,
java.lang.String second,
int threshold)
Determines whether the given elements are in Never Precedes relation. |
boolean |
areInNFRelation(java.lang.String first,
java.lang.String second)
Determines whether the given elements are in Never Follows relation. |
boolean |
areInNFRelation(java.lang.String first,
java.lang.String second,
int threshold)
Determines whether the given elements are in Never Follows relation. |
boolean |
areInSBRelation(java.lang.String first,
java.lang.String second)
Determines whether the given elements are in Sometimes Precedes relation. |
boolean |
areInSBRelation(java.lang.String first,
java.lang.String second,
int threshold)
Determines whether the given elements are in Sometimes Precedes relation. |
boolean |
areInSFRelation(java.lang.String first,
java.lang.String second)
Determines whether the given elements are in Sometimes Follows relation. |
boolean |
areInSFRelation(java.lang.String first,
java.lang.String second,
int threshold)
Determines whether the given elements are in Sometimes Follows relation. |
void |
completeRelationByExternalZeroEntries(java.util.Collection<DiagnosticLogEvent> referenceEvents)
Walks through all the local log event relations and adds a zero entry for those log events that are not present in the local relation. |
void |
completeRelationByZeroEntries()
Walks through all the local log event relations and adds a zero entry for those log events that are not present in the local relation. |
DiagnosticLogEvent |
getDiagnosticLogEvent(java.lang.String namePlusType)
Gets the specified log event from the internal list of log events. |
java.util.Collection<DiagnosticLogEvent> |
getDiagnosticLogEvents()
Retrieves all diagnostic log events contained in this relation. |
void |
printOccurrenceCountsToMessageConsole()
Prints how often any log event has occurred some time before or after each log event. |
void |
printRelationsToMessageConsole(int threshold)
Writes the log event relations to the Message Console. |
void |
updateLogEventRelation(DiagnosticLogEvent newEvent,
int similarInst)
Updates the global log event relations with respect to the given log event. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DiagnosticLogEventRelation()
Method Detail |
---|
public java.util.Collection<DiagnosticLogEvent> getDiagnosticLogEvents()
public DiagnosticLogEvent getDiagnosticLogEvent(java.lang.String namePlusType)
namePlusType
- the string consisting of name and type specifies the log event to be retrieved
public boolean areInSFRelation(java.lang.String first, java.lang.String second, int threshold)
first
- the first element in the relationsecond
- the second element in the relationthreshold
- the threshold for the sometimes relation
public boolean areInSFRelation(java.lang.String first, java.lang.String second)
first
- the first element in the relationsecond
- the second element in the relation
public boolean areInSBRelation(java.lang.String first, java.lang.String second, int threshold)
first
- the first element in the relationsecond
- the second element in the relationthreshold
- the threshold for the sometimes relation
public boolean areInSBRelation(java.lang.String first, java.lang.String second)
first
- the first element in the relationsecond
- the second element in the relation
public boolean areInAFRelation(java.lang.String first, java.lang.String second, int threshold)
first
- the first element in the relationsecond
- the second element in the relationthreshold
- the threshold for the Always relation
public boolean areInAFRelation(java.lang.String first, java.lang.String second)
first
- the first element in the relationsecond
- the second element in the relation
public boolean areInABRelation(java.lang.String first, java.lang.String second, int threshold)
first
- the first element in the relationsecond
- the second element in the relationthreshold
- the threshold for the Always relation
public boolean areInABRelation(java.lang.String first, java.lang.String second)
first
- the first element in the relationsecond
- the second element in the relation
public boolean areInNFRelation(java.lang.String first, java.lang.String second, int threshold)
first
- the first element in the relationsecond
- the second element in the relationthreshold
- the threshold for the Never relation
public boolean areInNFRelation(java.lang.String first, java.lang.String second)
first
- the first element in the relationsecond
- the second element in the relation
public boolean areInNBRelation(java.lang.String first, java.lang.String second, int threshold)
first
- the first element in the relationsecond
- the second element in the relationthreshold
- the threshold for the Never relation
public boolean areInNBRelation(java.lang.String first, java.lang.String second)
first
- the first element in the relationsecond
- the second element in the relation
public void addDiagnosticLogEvent(java.lang.String name, java.lang.String type)
name
- the name of the log eventtype
- the event type (such as start or complete)public void updateLogEventRelation(DiagnosticLogEvent newEvent, int similarInst)
newEvent
- similarInst
- public void completeRelationByZeroEntries()
public void completeRelationByExternalZeroEntries(java.util.Collection<DiagnosticLogEvent> referenceEvents)
the
- set of log events that should be covered by the relationpublic void printRelationsToMessageConsole(int threshold)
threshold
- the barrier telling when something counts as
happened "always" or "never".public void printOccurrenceCountsToMessageConsole()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |