org.processmining.framework.models.pdm
Class PDMDesign

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

public class PDMDesign
extends java.lang.Object

Title: PDMDesign

*

Description: Represents a PDM design, i.e. a grouping over the PDM model.

*

Copyright: Copyright (c) 2006

*

Company:

Version:
1.0
Author:
Irene Vanderfeesten

Field Summary
 java.util.HashMap activities
           
 javax.swing.JTable activitiesTable
           
 java.lang.Object[][] tableContent
           
 java.lang.String[] tableHeader
           
 
Constructor Summary
PDMDesign(java.lang.String id)
          Creates a PDM design with identifier 'id'
 
Method Summary
 void addActivity(PDMActivity activity)
          Adds an activity to the list of activities.
 java.lang.Double calculateProcessCohesion()
          Calculates the process cohesion for this design, by adding the cohesion values for every activity and dividing that number by the total number of activities.
 java.lang.Double calculateProcessCoupling()
          Calculates the value for process coupling of the design.
 java.lang.Double calculateProcessRatio()
          Calculates the value for the coupling/cohesion ration of the design.
 java.util.HashMap getActivities()
           
 java.lang.String getID()
          Returns the identifier 'designID' of this PDM design.
 java.lang.Object[][] getTableContent()
          Returns the content of the table with the values for activity cohesion for every activity.
 java.lang.String[] getTableHeader()
          Returns the header of the table with the values for activity cohesion for every activity.
 java.lang.Double RoundDouble(java.lang.Double d, java.lang.Integer n)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

activities

public java.util.HashMap activities

activitiesTable

public javax.swing.JTable activitiesTable

tableHeader

public java.lang.String[] tableHeader

tableContent

public java.lang.Object[][] tableContent
Constructor Detail

PDMDesign

public PDMDesign(java.lang.String id)
Creates a PDM design with identifier 'id'

Parameters:
id - String
Method Detail

RoundDouble

public java.lang.Double RoundDouble(java.lang.Double d,
                                    java.lang.Integer n)

addActivity

public void addActivity(PDMActivity activity)
Adds an activity to the list of activities.

Parameters:
activity - PDMActivity

getID

public java.lang.String getID()
Returns the identifier 'designID' of this PDM design.

Returns:
String

getActivities

public java.util.HashMap getActivities()

calculateProcessCohesion

public java.lang.Double calculateProcessCohesion()
Calculates the process cohesion for this design, by adding the cohesion values for every activity and dividing that number by the total number of activities.

Returns:
Double

calculateProcessCoupling

public java.lang.Double calculateProcessCoupling()
Calculates the value for process coupling of the design.

Returns:
Double

calculateProcessRatio

public java.lang.Double calculateProcessRatio()
Calculates the value for the coupling/cohesion ration of the design.

Returns:
Double

getTableHeader

public java.lang.String[] getTableHeader()
Returns the header of the table with the values for activity cohesion for every activity.

Returns:
String[]

getTableContent

public java.lang.Object[][] getTableContent()
Returns the content of the table with the values for activity cohesion for every activity.

Returns:
Object[][]