|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.processmining.framework.log.rfb.LightweightLogSummary
public class LightweightLogSummary
This class implements the log summary data structure in a lightweight manner. This means, best effort has been taken to ensure minimal memory footprint and runtime overhead. The implementation is fully compliant to the LogSummary interface, with significantly decreased runtime costs.
Nested Class Summary | |
---|---|
protected class |
LightweightLogSummary.ProcessBoundary
A simple record for storing a process's start and end date. |
Field Summary | |
---|---|
protected java.util.HashMap<LogEvent,java.lang.Integer> |
endingLogEvents
Mapping from log events that end a process instance to the amount of times that these log events actually end a process instance |
protected java.util.TreeSet<java.lang.String> |
eventTypes
Alphabetically ordered set containing as strings the log's event types. |
protected static long |
future
UNIX timestamp for a date, which is significantly far into the future. |
protected LogEvents |
logEvents
Extended array list containing the log's events, i.e. |
protected java.util.HashMap<LogEvent,java.util.Set<ProcessInstance>> |
mapEventToProcessInstances
Mapping from log events to process instances in which the respective event occurs. |
protected java.util.HashMap<java.lang.String,java.util.HashMap<LogEvent,java.lang.Integer>> |
mapOriginatorsToEvents
Mapping from log events to the set of originator strings which have been found to execute this log event. |
protected java.util.TreeSet<java.lang.String> |
modelElements
Alphabetically ordered set containing as strings the log's model elements. |
protected int |
numberOfAuditTrailEntries
The total number of audit trail entries contained in a log. |
protected int |
numberOfProcessInstances
The total number of process instances contained in a log. |
protected int |
numberOfUniqueProcessInstances
The number of unique process instances contained in a log. |
protected java.util.TreeSet<java.lang.String> |
originators
Alphabetically ordered set containing as strings the log's originators. |
protected java.util.HashMap<java.lang.String,LightweightLogSummary.ProcessBoundary> |
processBoundaries
The boundaries, i.e. |
protected java.util.ArrayList<InfoItem> |
processInfoItems
List of info items containing meta information about the set of processes. |
protected java.util.HashMap<java.lang.Integer,java.util.Set<java.lang.String>> |
processInstancesOccurrences
Mapping from process instance occurrences to the actual process instance identifiers. |
protected InfoItem |
source
Meta information about the source system. |
protected java.util.HashMap<LogEvent,java.lang.Integer> |
startingLogEvents
Mapping from log events that start a process instance to the amount of times that these log events actually start a process instance |
protected InfoItem |
wfLog
Meta information about the source log. |
Constructor Summary | |
---|---|
LightweightLogSummary()
Creates a new, empty and initialized lightweight log summary instance. |
|
LightweightLogSummary(java.lang.String logName,
java.lang.String logDescription,
java.util.Map<java.lang.String,java.lang.String> logData,
java.lang.String sourceProgram,
java.util.Map<java.lang.String,java.lang.String> sourceData)
Creates a new lightweight log summary. |
Method Summary | |
---|---|
void |
addAuditTrailEntry(AuditTrailEntry ate,
ProcessInstance instance)
Adds, or registers, a new audit trail entry contained in the summarized log. |
void |
addLogAttribute(java.lang.String key,
java.lang.String value)
Adds an attribute to the summarized log. |
void |
addProcess(java.lang.String name,
java.lang.String description,
java.util.Map<java.lang.String,java.lang.String> data)
Adds, or registers, a new process contained in the summarized log. |
void |
addProcessInstance(ProcessInstance instance)
Adds, or registers, a new process instance contained in the summarized log. |
void |
addSourceAttribute(java.lang.String key,
java.lang.String value)
Adds an attribute to the log's source program. |
java.util.HashMap<LogEvent,java.lang.Integer> |
getEndingLogEvents()
Returns the mapping between the ending log events and the number of times they end a process instance. |
java.util.Date |
getEndTime(java.lang.String process)
Returns the latest timestamp in all audittrailentries of the given process |
java.util.Set<LogEvent> |
getEventsForInstance(ProcessInstance instance)
Returns the set of log events occurring in the specified process instance. |
java.util.HashMap<LogEvent,java.lang.Integer> |
getEventsForOriginator(java.lang.String originator)
Returns a Map, whose keys are the events which have been executed by the specified originator. |
java.lang.String[] |
getEventTypes()
Returns an alphabetically sorted list of all event types in the log. |
java.util.Set<ProcessInstance> |
getInstancesForEvent(LogEvent event)
Returns a set of (references to) process instances, in which the provided log event occurs. |
LogEvents |
getLogEvents()
Returns a list of all log events (unique model element name and event type combinations) in the log. |
java.lang.String[] |
getModelElements()
Returns an alphabetically sorted list of all model element names in the log. |
int |
getNumberOfAuditTrailEntries()
Returns the total number of audit trail entries in the log. |
int |
getNumberOfProcessInstances()
Returns the total number of process instances in the log. |
int |
getNumberOfUniqueProcessInstances()
Returns the number of different process instances in the log. |
java.lang.String[] |
getOriginators()
Returns an alphabetically sorted list of all originators in the log. |
InfoItem[] |
getProcesses()
Returns information about all the processes in the log. |
java.util.HashMap<java.lang.Integer,java.util.Set<java.lang.String>> |
getProcessInstancesOccurrences()
Returns the mapping between process instances occurrences and the names of the process instances that occurred a certain amount of times. |
InfoItem |
getSource()
Returns information about the source. |
java.util.HashMap<LogEvent,java.lang.Integer> |
getStartingLogEvents()
Returns the mapping between the starting log events and the number of times they start a process instance. |
java.util.Date |
getStartTime(java.lang.String process)
Returns the earliest timestamp in all audittrailentries of the given process |
InfoItem |
getWorkflowLog()
Returns information about the workflow log itself. |
int |
hashCode()
|
void |
removeProcess(java.lang.String name)
Removes information about the given process from the summary. |
void |
setLogDescription(java.lang.String logDescription)
Sets the description of the summarized log. |
void |
setLogName(java.lang.String logName)
Sets the name of the summarized log. |
void |
setSourceProgram(java.lang.String sourceProgram)
Sets the name of the log's source program. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static long future
protected int numberOfAuditTrailEntries
protected int numberOfProcessInstances
protected int numberOfUniqueProcessInstances
protected java.util.TreeSet<java.lang.String> eventTypes
protected java.util.HashMap<java.lang.Integer,java.util.Set<java.lang.String>> processInstancesOccurrences
protected java.util.HashMap<LogEvent,java.lang.Integer> startingLogEvents
protected java.util.HashMap<LogEvent,java.lang.Integer> endingLogEvents
protected java.util.TreeSet<java.lang.String> originators
protected java.util.TreeSet<java.lang.String> modelElements
protected LogEvents logEvents
protected java.util.HashMap<java.lang.String,java.util.HashMap<LogEvent,java.lang.Integer>> mapOriginatorsToEvents
protected java.util.HashMap<LogEvent,java.util.Set<ProcessInstance>> mapEventToProcessInstances
protected java.util.HashMap<java.lang.String,LightweightLogSummary.ProcessBoundary> processBoundaries
protected java.util.ArrayList<InfoItem> processInfoItems
protected InfoItem wfLog
protected InfoItem source
Constructor Detail |
---|
public LightweightLogSummary(java.lang.String logName, java.lang.String logDescription, java.util.Map<java.lang.String,java.lang.String> logData, java.lang.String sourceProgram, java.util.Map<java.lang.String,java.lang.String> sourceData)
logName
- Name (e.g. file name) of the summarized log.logDescription
- Description of the summarized log.logData
- Set of attributes, as key-value pairs,
associated with the summarized log.sourceProgram
- Name of the program from which the
summarized log has been acquired.sourceData
- Set of attributes, as key-value pairs,
associated with the program from which the
summarized log has been acquired.public LightweightLogSummary()
Method Detail |
---|
public void addProcess(java.lang.String name, java.lang.String description, java.util.Map<java.lang.String,java.lang.String> data)
name
- Name, or ID, of the process.description
- Description of the process.data
- Set of attributes, as key-value pairs,
associated with the process.public java.util.HashMap<java.lang.Integer,java.util.Set<java.lang.String>> getProcessInstancesOccurrences()
LogSummary
getProcessInstancesOccurrences
in interface LogSummary
public java.util.HashMap<LogEvent,java.lang.Integer> getStartingLogEvents()
LogSummary
getStartingLogEvents
in interface LogSummary
public java.util.HashMap<LogEvent,java.lang.Integer> getEndingLogEvents()
LogSummary
getEndingLogEvents
in interface LogSummary
public void removeProcess(java.lang.String name)
name
- Name of the process to remove.public void addProcessInstance(ProcessInstance instance) throws java.lang.IndexOutOfBoundsException, java.io.IOException
addAuditTrailEntry()
).
instance
- The process instance to be added.
java.lang.IndexOutOfBoundsException
java.io.IOException
public void addAuditTrailEntry(AuditTrailEntry ate, ProcessInstance instance)
ate
- The audit trail entry to be registered.instance
- The process instance in which the audit trail entry occurs.public java.util.Date getStartTime(java.lang.String process)
LogSummary
getStartTime
in interface LogSummary
process
- Name of the process
public java.util.Date getEndTime(java.lang.String process)
LogSummary
getEndTime
in interface LogSummary
process
- Name of the process
public java.lang.String[] getEventTypes()
LogSummary
getEventTypes
in interface LogSummary
public LogEvents getLogEvents()
LogSummary
getLogEvents
in interface LogSummary
public java.lang.String[] getModelElements()
LogSummary
getModelElements
in interface LogSummary
public int getNumberOfAuditTrailEntries()
LogSummary
getNumberOfAuditTrailEntries
in interface LogSummary
public int getNumberOfProcessInstances()
LogSummary
getNumberOfProcessInstances
in interface LogSummary
public int getNumberOfUniqueProcessInstances()
LogSummary
getNumberOfUniqueProcessInstances
in interface LogSummary
public java.lang.String[] getOriginators()
LogSummary
getOriginators
in interface LogSummary
public InfoItem[] getProcesses()
LogSummary
getProcesses
in interface LogSummary
public InfoItem getSource()
LogSummary
getSource
in interface LogSummary
public InfoItem getWorkflowLog()
LogSummary
getWorkflowLog
in interface LogSummary
public void setLogName(java.lang.String logName)
logName
- The name of the summarized log.public void setLogDescription(java.lang.String logDescription)
logDescription
- The description of the summarized log.public void addLogAttribute(java.lang.String key, java.lang.String value)
key
- Key of the attribute to add.value
- Value of the attribute to add.public void setSourceProgram(java.lang.String sourceProgram)
sourceProgram
- The name of the log's source program.public void addSourceAttribute(java.lang.String key, java.lang.String value)
key
- Key of the attribute to add.value
- Value of the attribute to add.public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.util.Set<LogEvent> getEventsForInstance(ProcessInstance instance)
LogSummary
getEventsForInstance
in interface LogSummary
instance
- Process instance to find log events for.
public java.util.HashMap<LogEvent,java.lang.Integer> getEventsForOriginator(java.lang.String originator)
LogSummary
getEventsForOriginator
in interface LogSummary
originator
- Originator as string.
public java.util.Set<ProcessInstance> getInstancesForEvent(LogEvent event)
LogSummary
getInstancesForEvent
in interface LogSummary
event
- Log event to find instances for.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |