org.processmining.exporting.log.util
Class FilterSameSetWmeEventFollowsRelation

java.lang.Object
  extended by org.processmining.exporting.log.util.FilterSameSetWmeEventFollowsRelation
All Implemented Interfaces:
MyProcessInstance

public class FilterSameSetWmeEventFollowsRelation
extends java.lang.Object
implements MyProcessInstance

Title: Filter per Same Set of Workflow Model Elements and Events with Follows Relation

Description: This class stores a process instance. Any other process instance X is equal to the stored process instance Y whenever X and Y have the same set of follows relation with respect to workflow model elements and event types.

Version:
1.0
Author:
Ana Karla A. de Medeiros

Constructor Summary
FilterSameSetWmeEventFollowsRelation(ProcessInstance pi, int numberSimilarPIS)
          Constructor method.
 
Method Summary
 void addGroupedPiIdentifier(java.lang.String idToAppend)
           
static java.util.TreeSet buildFollowsRelations(ProcessInstance pi)
           
 boolean equals(java.lang.Object obj)
          Checks if a process instance Y is equal to the process instance X that is stored at the current object.
 int getNumberSimilarPIs()
           
 ProcessInstance getPI()
           
 java.util.TreeSet getSetFollowsRelations()
           
 int hashCode()
          The stored process instance is also kept in a TreeSet whose elements are "'workflow model element' 'event type'".
 void increaseNumberSimilarPIs(int increase)
          Increases the number of similar process instance.
 boolean setPI(ProcessInstance pi)
          Sets the process instance stored at this object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilterSameSetWmeEventFollowsRelation

public FilterSameSetWmeEventFollowsRelation(ProcessInstance pi,
                                            int numberSimilarPIS)
Constructor method.

Parameters:
pi - process instance to be stored.
Method Detail

buildFollowsRelations

public static java.util.TreeSet buildFollowsRelations(ProcessInstance pi)

getNumberSimilarPIs

public int getNumberSimilarPIs()
Specified by:
getNumberSimilarPIs in interface MyProcessInstance
Returns:
The number of similar process instance.

getSetFollowsRelations

public java.util.TreeSet getSetFollowsRelations()
Returns:
The set of follows relations for this process instance.

increaseNumberSimilarPIs

public void increaseNumberSimilarPIs(int increase)
Increases the number of similar process instance.

Specified by:
increaseNumberSimilarPIs in interface MyProcessInstance

equals

public boolean equals(java.lang.Object obj)
Checks if a process instance Y is equal to the process instance X that is stored at the current object. Note that Y is EQUAL to X whenever the set of follows relations for all the workflow model elements, and their correponding event types, are the same at both process instances X and Y.

Overrides:
equals in class java.lang.Object
Parameters:
obj - object that contains a process instance to be compared to the process instance in the current object.
Returns:
true if the process instances are the same, false otherwise.

hashCode

public int hashCode()
The stored process instance is also kept in a TreeSet whose elements are "'workflow model element' 'event type'".

Overrides:
hashCode in class java.lang.Object
Returns:
the hashcode returned by the hashcode method as defined in TreeSet.

getPI

public ProcessInstance getPI()
Specified by:
getPI in interface MyProcessInstance
Returns:
The process instance stored at this object.

setPI

public boolean setPI(ProcessInstance pi)
Sets the process instance stored at this object.

Returns:
boolean True if the pi was successfully set. False otherwise. A pi is successfully set if it contains the same set of follows relations as the current pi of this object.

addGroupedPiIdentifier

public void addGroupedPiIdentifier(java.lang.String idToAppend)
Specified by:
addGroupedPiIdentifier in interface MyProcessInstance