org.processmining.analysis.summary
Class ExtendedLogSummary

java.lang.Object
  extended by org.processmining.analysis.summary.ExtendedLogSummary
All Implemented Interfaces:
LogSummary

public class ExtendedLogSummary
extends java.lang.Object
implements LogSummary

Title:

Description:

Copyright: Copyright (c) 2004

Company:

Version:
1.0
Author:
not attributable

Constructor Summary
ExtendedLogSummary()
           
 
Method Summary
 void addProcess(InfoItem process)
           
 void addProcessInstance(ProcessInstance pi)
           
 java.util.Map<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 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.util.HashMap getMappingAtesToNumberPIs()
           
 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.util.HashMap getOriginatorMap()
           
 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.Map<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.Map<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.
 void setSource(InfoItem source)
           
 void setWorkflowLog(InfoItem workflow)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExtendedLogSummary

public ExtendedLogSummary()
Method Detail

getLogEvents

public LogEvents getLogEvents()
Description copied from interface: LogSummary
Returns a list of all log events (unique model element name and event type combinations) in the log.

Specified by:
getLogEvents in interface LogSummary
Returns:
a list of all log events in the log

getWorkflowLog

public InfoItem getWorkflowLog()
Description copied from interface: LogSummary
Returns information about the workflow log itself. Provides the 'description' attribute of the 'workflow' tag and the contents of the 'data' section.

Specified by:
getWorkflowLog in interface LogSummary
Returns:
information about the workflow log itself

getSource

public InfoItem getSource()
Description copied from interface: LogSummary
Returns information about the source. Provides 'program' attribute of the 'source' tag and the contents of the 'data' section.

Specified by:
getSource in interface LogSummary
Returns:
information about the source

getProcesses

public InfoItem[] getProcesses()
Description copied from interface: LogSummary
Returns information about all the processes in the log. Provides an array with one entry per process. Each entry contains the 'id' and 'description' attributes of the 'process' tag and the contents of the 'data' section.

Specified by:
getProcesses in interface LogSummary
Returns:
information about the processes

getNumberOfAuditTrailEntries

public int getNumberOfAuditTrailEntries()
Description copied from interface: LogSummary
Returns the total number of audit trail entries in the log.

Specified by:
getNumberOfAuditTrailEntries in interface LogSummary
Returns:
the total number of audit trail entries in the log

getNumberOfProcessInstances

public int getNumberOfProcessInstances()
Description copied from interface: LogSummary
Returns the total number of process instances in the log.

Specified by:
getNumberOfProcessInstances in interface LogSummary
Returns:
the total number of process instances in the log

getNumberOfUniqueProcessInstances

public int getNumberOfUniqueProcessInstances()
Description copied from interface: LogSummary
Returns the number of different process instances in the log.

Specified by:
getNumberOfUniqueProcessInstances in interface LogSummary
Returns:
the number different of process instances in the log

getMappingAtesToNumberPIs

public java.util.HashMap getMappingAtesToNumberPIs()

getEventTypes

public java.lang.String[] getEventTypes()
Description copied from interface: LogSummary
Returns an alphabetically sorted list of all event types in the log.

Specified by:
getEventTypes in interface LogSummary
Returns:
an alphabetically sorted list of all event types in the log

getModelElements

public java.lang.String[] getModelElements()
Description copied from interface: LogSummary
Returns an alphabetically sorted list of all model element names in the log.

Specified by:
getModelElements in interface LogSummary
Returns:
an alphabetically sorted list of all model element names in the log

getOriginators

public java.lang.String[] getOriginators()
Description copied from interface: LogSummary
Returns an alphabetically sorted list of all originators in the log.

Specified by:
getOriginators in interface LogSummary
Returns:
an alphabetically sorted list of all originators in the log

getOriginatorMap

public java.util.HashMap getOriginatorMap()

setWorkflowLog

public void setWorkflowLog(InfoItem workflow)

setSource

public void setSource(InfoItem source)

addProcess

public void addProcess(InfoItem process)

addProcessInstance

public void addProcessInstance(ProcessInstance pi)

toString

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

getStartTime

public java.util.Date getStartTime(java.lang.String process)
Description copied from interface: LogSummary
Returns the earliest timestamp in all audittrailentries of the given process

Specified by:
getStartTime in interface LogSummary
Parameters:
process - Name of the process
Returns:
Date null in case the log does not contain any timestamp for this process

getEndTime

public java.util.Date getEndTime(java.lang.String process)
Description copied from interface: LogSummary
Returns the latest timestamp in all audittrailentries of the given process

Specified by:
getEndTime in interface LogSummary
Parameters:
process - Name of the process
Returns:
Date null in case the log does not contain any timestamp for this process

getEventsForInstance

public java.util.Set<LogEvent> getEventsForInstance(ProcessInstance instance)
Description copied from interface: LogSummary
Returns the set of log events occurring in the specified process instance.

Specified by:
getEventsForInstance in interface LogSummary
Parameters:
instance - Process instance to find log events for.
Returns:
A set of log events.

getInstancesForEvent

public java.util.Set<ProcessInstance> getInstancesForEvent(LogEvent event)
Description copied from interface: LogSummary
Returns a set of (references to) process instances, in which the provided log event occurs.

Specified by:
getInstancesForEvent in interface LogSummary
Parameters:
event - Log event to find instances for.
Returns:
A set of process instances.

getProcessInstancesOccurrences

public java.util.Map<java.lang.Integer,java.util.Set<java.lang.String>> getProcessInstancesOccurrences()
Description copied from interface: LogSummary
Returns the mapping between process instances occurrences and the names of the process instances that occurred a certain amount of times.

Specified by:
getProcessInstancesOccurrences in interface LogSummary
Returns:
A mapping between process intance occurrences.

getStartingLogEvents

public java.util.Map<LogEvent,java.lang.Integer> getStartingLogEvents()
Description copied from interface: LogSummary
Returns the mapping between the starting log events and the number of times they start a process instance.

Specified by:
getStartingLogEvents in interface LogSummary
Returns:
A mapping between starting log events occurrence.

getEndingLogEvents

public java.util.Map<LogEvent,java.lang.Integer> getEndingLogEvents()
Description copied from interface: LogSummary
Returns the mapping between the ending log events and the number of times they end a process instance.

Specified by:
getEndingLogEvents in interface LogSummary
Returns:
A mapping between starting log events occurrence.

getEventsForOriginator

public java.util.HashMap getEventsForOriginator(java.lang.String originator)
Description copied from interface: LogSummary
Returns a Map, whose keys are the events which have been executed by the specified originator. The values for each key indicate how often the originator has performed the task.

Specified by:
getEventsForOriginator in interface LogSummary
Parameters:
originator - Originator as string.
Returns:
A hashmap with log events executed by the specified originator, and the number of times that the originator performed each event.