org.processmining.analysis.decisionmining
Class DecisionPointBuilderPetriNet

java.lang.Object
  extended by org.processmining.analysis.decisionmining.DecisionPointBuilderPetriNet
All Implemented Interfaces:
DecisionPointBuilder

public class DecisionPointBuilderPetriNet
extends java.lang.Object
implements DecisionPointBuilder

Implements the specification of decision points for Petri net models.

Author:
Anne Rozinat (a.rozinat@tm.tue.nl)

Constructor Summary
DecisionPointBuilderPetriNet(PetriNet model, DecisionPointAnalysisResult parent)
          Creates a decision point builder for a Petri net model.
 
Method Summary
 java.util.Set getAllPredecessors(DecisionPoint refPoint)
          Retrieves the belonging log events of all preceding tasks with respect to the given decision point.
 DecisionPoint getDecisionPointAt(int index)
          Retrieves the decision point at the given index.
 java.util.ArrayList getDecisionPoints()
          Retrieves the list of decision points for this model.
 java.util.Set getDirectPredecessors(DecisionPoint refPoint)
          Retrieves the belonging log events of all directly preceding tasks with respect to the given decision point.
 int getNumberOfDecisionPoints()
          Determines the number of decision points contained in the model.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DecisionPointBuilderPetriNet

public DecisionPointBuilderPetriNet(PetriNet model,
                                    DecisionPointAnalysisResult parent)
Creates a decision point builder for a Petri net model.

Parameters:
model - the given Petri net model
parent - the enclosing parent analysis result
Method Detail

getNumberOfDecisionPoints

public int getNumberOfDecisionPoints()
Determines the number of decision points contained in the model.

Specified by:
getNumberOfDecisionPoints in interface DecisionPointBuilder
Returns:
the number of decision points in the model

getDecisionPointAt

public DecisionPoint getDecisionPointAt(int index)
Retrieves the decision point at the given index.

Specified by:
getDecisionPointAt in interface DecisionPointBuilder
Parameters:
index - the specified index value
Returns:
the decision point belonging to the given index if it exists, null otherwise

getDecisionPoints

public java.util.ArrayList getDecisionPoints()
Retrieves the list of decision points for this model. If no decision points have been determined yet, the list will be built before.

Specified by:
getDecisionPoints in interface DecisionPointBuilder
Returns:
a list containing all decision points belonging to this model

getDirectPredecessors

public java.util.Set getDirectPredecessors(DecisionPoint refPoint)
Retrieves the belonging log events of all directly preceding tasks with respect to the given decision point. Note that invisible tasks are transparently traced, without being counted as directly adjacent.

Specified by:
getDirectPredecessors in interface DecisionPointBuilder
Parameters:
refPoint - the decision point for which the preceding tasks are to be found
Returns:
a set of nodes belonging to the directly preceding tasks in the model

getAllPredecessors

public java.util.Set getAllPredecessors(DecisionPoint refPoint)
Retrieves the belonging log events of all preceding tasks with respect to the given decision point. Note that invisible tasks do not have a log event associated and are not represented in that list.

Specified by:
getAllPredecessors in interface DecisionPointBuilder
Parameters:
refPoint - the decision point for which the preceding tasks are to be found
Returns:
a set of nodes belonging to the preceding tasks in the model