org.processmining.analysis.eventmodelmerge
Class MergeActivitySetIntoActivityModel

java.lang.Object
  extended by org.processmining.analysis.eventmodelmerge.MergeActivitySetIntoActivityModel

public class MergeActivitySetIntoActivityModel
extends java.lang.Object

For the provided activityset which is based on events, a new empy activityset will be generated which will be based on activities. That means that the events that refer to the same activity are merged into one activity. Also a mapping will be generated for which highlevelactivities, that refer to an event, are merged into which highlevelactivity that refers to an activity.

Author:
rmans

Nested Class Summary
static class MergeActivitySetIntoActivityModel.EventType
          enumeration type for the different (log) event types that you can have in a log.
 
Constructor Summary
MergeActivitySetIntoActivityModel(HLActivitySet activitySet)
          Basic constructor
 
Method Summary
 java.util.HashMap<HighLevelActivity,java.util.ArrayList<HighLevelActivity>> getMapping()
          Retrieves the mapping of which highlevelactivities that refer to events are merged into a highlevelactivity that refer to an activity.
 HLActivitySet mergeActivitySetIntoActivityModel()
          Merges the provided activity set into an activityset that only refers to activities.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MergeActivitySetIntoActivityModel

public MergeActivitySetIntoActivityModel(HLActivitySet activitySet)
Basic constructor

Parameters:
activitySet - HLActivitySet the activity set that needs to be merged into an activity set with only activities.
Method Detail

mergeActivitySetIntoActivityModel

public HLActivitySet mergeActivitySetIntoActivityModel()
Merges the provided activity set into an activityset that only refers to activities.

Returns:
HLActivitySet the activity set that only refers to activities. The provided activityset is a newly created object which only contains default information. So no information is transferred from the activity set that refers to events to the activity set that refers to activities.

getMapping

public java.util.HashMap<HighLevelActivity,java.util.ArrayList<HighLevelActivity>> getMapping()
Retrieves the mapping of which highlevelactivities that refer to events are merged into a highlevelactivity that refer to an activity.

Returns:
HashMap the mapping from the highlevelactivities of the activityset and that refer to activities, that is merged into an activitymodel, to the highlevel activities in the provided activityset, and that refer to an event, that needed to be merged into an activity model.