org.processmining.exporting.log.util
Class FilterPerWorkflowModelElementAndEvent

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

public class FilterPerWorkflowModelElementAndEvent
extends java.lang.Object
implements MyProcessInstance

Title: Filter per Workflow Model Element and Event

Description: This class stores a process instance. Its equals method is based on a projection from the "workflow model element" and "event type" fields.

Copyright: Copyright (c) 2004

Company: TU/e

Version:
1.0
Author:
not attributable

Field Summary
static java.lang.String IDENTIFIERS
           
 
Constructor Summary
FilterPerWorkflowModelElementAndEvent(ProcessInstance pi, int numberSimilarPIs)
          Constructor method.
 
Method Summary
 void addGroupedPiIdentifier(java.lang.String idToAppend)
           
 boolean equals(java.lang.Object obj)
          Checks of a process instance is equal to the process instance that is stored at the current object.
 int getNumberSimilarPIs()
           
 ProcessInstance getPI()
           
 int hashCode()
          The hashcode is the sum of the workflow model elements' hascode and the event types' hashcodes.
 void increaseNumberSimilarPIs(int increase)
          Increases the number of similar process instance.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IDENTIFIERS

public static final java.lang.String IDENTIFIERS
See Also:
Constant Field Values
Constructor Detail

FilterPerWorkflowModelElementAndEvent

public FilterPerWorkflowModelElementAndEvent(ProcessInstance pi,
                                             int numberSimilarPIs)
Constructor method.

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

getNumberSimilarPIs

public int getNumberSimilarPIs()
Specified by:
getNumberSimilarPIs in interface MyProcessInstance
Returns:
The number of similar 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 of a process instance is equal to the process instance that is stored at the current object. Note that a process instance is EQUAL to another one whenever all the workflow model elements, and their correponding event types, appear in the same order at both process instances.

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 hashcode is the sum of the workflow model elements' hascode and the event types' hashcodes.

Overrides:
hashCode in class java.lang.Object
Returns:
the hashcode for the projected process instance.

getPI

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

addGroupedPiIdentifier

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