org.processmining.framework.models.pdm
Class PDMActivity

java.lang.Object
  extended by org.processmining.framework.models.pdm.PDMActivity

public class PDMActivity
extends java.lang.Object

Title: PDMActivity *

Description: Represents an activity from a PDM Design

*

Copyright: Copyright (c) 2006

*

Company:

*

Version:
1.0
Author:
Irene Vanderfeesten

Constructor Summary
PDMActivity(java.lang.String id)
          Creates the activity with identifier 'id'.
 
Method Summary
 void addOperation(PDMOperation operation)
          Adds an operation to the list of operations of this activity
 java.lang.Double calculateActivityCohesion()
          Calculates the total activity cohesion, based on the activity informaiton cohesion and the activity relation cohesion.
 java.lang.Double calculateActivityInformationCohesion()
          Calculates the activity information cohesion.
 java.lang.Double calculateActivityRelationCohesion()
          Calculates the activity relation cohesion.
 PDMDataElement getConnectingDataElement(PDMActivity act)
          Returns (one of) the data element that makes the overlap between this activity and activity act.
 java.util.HashSet getDataElements()
          Returns a Hash Set containing all the data elements of the activity (i.e.
 java.lang.String getID()
          Returns the ID of this activity (activityID).
 java.util.HashSet getInputDataElements()
           
 java.lang.Integer getNumberOfDataElements()
          Returns the number of data elements in this activity.
 java.util.HashMap getOperations()
          Returns the operations of this activity as a HashMap.
 java.util.HashSet getOutputDataElements()
           
 java.lang.Boolean hasDataElement(PDMDataElement el)
          Returns ture is there is an operation in the list of operations that contains the data element 'el' as input or as output element.
 java.lang.Boolean hasOperation(PDMOperation op)
          Returns true if the list of operations contains the operation 'op'.
 java.lang.Boolean isConnectedWith(PDMActivity act)
          Returns true when this activity is connected with activity act by an overlapping data element.
 java.lang.Integer size()
          Returns the number of operations in the list of operations.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PDMActivity

public PDMActivity(java.lang.String id)
Creates the activity with identifier 'id'.

Parameters:
id - String
Method Detail

addOperation

public void addOperation(PDMOperation operation)
Adds an operation to the list of operations of this activity

Parameters:
operation - PDMOperation

getID

public java.lang.String getID()
Returns the ID of this activity (activityID).

Returns:
String

hasOperation

public java.lang.Boolean hasOperation(PDMOperation op)
Returns true if the list of operations contains the operation 'op'. Returns false otherwise.

Parameters:
op - PDMOperation
Returns:
Boolean

hasDataElement

public java.lang.Boolean hasDataElement(PDMDataElement el)
Returns ture is there is an operation in the list of operations that contains the data element 'el' as input or as output element. Returns false otherwise.

Parameters:
el - PDMDataElement
Returns:
Boolean

size

public java.lang.Integer size()
Returns the number of operations in the list of operations.

Returns:
Integer

isConnectedWith

public java.lang.Boolean isConnectedWith(PDMActivity act)
Returns true when this activity is connected with activity act by an overlapping data element. This is determined by walking through all data elements of this activity and checking whether activity act also has the data element (act.hasDataElement).

Parameters:
act - PDMActivity
Returns:
Boolean

getConnectingDataElement

public PDMDataElement getConnectingDataElement(PDMActivity act)
Returns (one of) the data element that makes the overlap between this activity and activity act.

Parameters:
act - PDMActivity
Returns:
PDMData Element

calculateActivityCohesion

public java.lang.Double calculateActivityCohesion()
Calculates the total activity cohesion, based on the activity informaiton cohesion and the activity relation cohesion.

Returns:
Double

calculateActivityRelationCohesion

public java.lang.Double calculateActivityRelationCohesion()
Calculates the activity relation cohesion.

Returns:
Double

calculateActivityInformationCohesion

public java.lang.Double calculateActivityInformationCohesion()
Calculates the activity information cohesion.

Returns:
Double

getDataElements

public java.util.HashSet getDataElements()
Returns a Hash Set containing all the data elements of the activity (i.e. for every operation it returns all the input and output elements).

Returns:
HashSet

getNumberOfDataElements

public java.lang.Integer getNumberOfDataElements()
Returns the number of data elements in this activity.

Returns:
Integer

getOperations

public java.util.HashMap getOperations()
Returns the operations of this activity as a HashMap.

Returns:
HashMap

getInputDataElements

public java.util.HashSet getInputDataElements()

getOutputDataElements

public java.util.HashSet getOutputDataElements()