org.processmining.analysis.conformance
Class StructuralAnalysisResult

java.lang.Object
  extended by org.processmining.framework.models.petrinet.algorithms.logReplay.AnalysisResult
      extended by org.processmining.analysis.conformance.StructuralAnalysisResult

public class StructuralAnalysisResult
extends AnalysisResult

Contains all the results obtained during the structural analysis. Can be used to retrieve values for the implemented metrics.

Author:
arozinat
See Also:
StructuralAnalysisMethod

Field Summary
 DiagnosticPetriNet analyzedPetriNet
          The Petri net reduced by redundant invisible tasks
 PetriNet inputPetriNet
           
 PetriNet reducedPetriNet
          The original Petri net passed to the analysis method.
 
Fields inherited from class org.processmining.framework.models.petrinet.algorithms.logReplay.AnalysisResult
myAnalysisOptions
 
Constructor Summary
StructuralAnalysisResult(AnalysisConfiguration analysisOptions, PetriNet net, StructuralAnalysisMethod method)
          Creates the result object for the structural Analysis Method.
 
Method Summary
 void addRedundantInvisibleTask(Transition trans)
          Adds the given invisible transition to the list of redundant invisible tasks for this petri net.
 boolean calculateImprovedStructuralAppropriateness()
          Indicates whether the "Advanced Structural Appropriateness" metric has been selected by the user.
 boolean calculateStructuralAppropriateness()
          Indicates whether the "Structural Appropriateness" metric has been selected by the user.
 java.lang.String getCurrentVisualizationState()
          Get the current display state.
 PetriNet getReducedPetriNet()
          Retrieves the reduced Petri Net in case there were redundant invisible tasks found in the model.
 java.util.ArrayList<Transition> getRedundantInvisibleTasks()
          Retrieves the list of redundant invisible tasks that have detected by the reduction rule analysis in ProM.
 float getStructuralAppropriatenessMeasure()
          Retrieves the structural appropriateness measure based on the graph size.
 att.grappa.GrappaPanel getVisualization(DisplayState currentVisualization)
          Creates a visualization of the conformance check results.
 void setReducedPetriNet(PetriNet reducedNet)
          Provides the Petri net reduced by redundant invisible tasks.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

inputPetriNet

public PetriNet inputPetriNet

reducedPetriNet

public PetriNet reducedPetriNet
The original Petri net passed to the analysis method.


analyzedPetriNet

public DiagnosticPetriNet analyzedPetriNet
The Petri net reduced by redundant invisible tasks

Constructor Detail

StructuralAnalysisResult

public StructuralAnalysisResult(AnalysisConfiguration analysisOptions,
                                PetriNet net,
                                StructuralAnalysisMethod method)
Creates the result object for the structural Analysis Method.

Parameters:
analysisOptions - the option chosen by the user
net - the Petri net to be analyzed
method - the corresponding analysis method
Method Detail

calculateStructuralAppropriateness

public boolean calculateStructuralAppropriateness()
Indicates whether the "Structural Appropriateness" metric has been selected by the user.

Returns:
true if this option has been chosen, false otherwise

calculateImprovedStructuralAppropriateness

public boolean calculateImprovedStructuralAppropriateness()
Indicates whether the "Advanced Structural Appropriateness" metric has been selected by the user.

Returns:
true if this option has been chosen, false otherwise

getStructuralAppropriatenessMeasure

public float getStructuralAppropriatenessMeasure()
Retrieves the structural appropriateness measure based on the graph size.

Returns:
float The value calculated (0 <= value <= 1).

getRedundantInvisibleTasks

public java.util.ArrayList<Transition> getRedundantInvisibleTasks()
Retrieves the list of redundant invisible tasks that have detected by the reduction rule analysis in ProM.

Returns:
the list of redundant invisible tasks

getReducedPetriNet

public PetriNet getReducedPetriNet()
Retrieves the reduced Petri Net in case there were redundant invisible tasks found in the model.

Returns:
the reduced Petri Net if there were redundant invisible tasks found in the model, null otherwise

addRedundantInvisibleTask

public void addRedundantInvisibleTask(Transition trans)
Adds the given invisible transition to the list of redundant invisible tasks for this petri net.

Parameters:
trans - the transition to be added as a redundant invisible one

setReducedPetriNet

public void setReducedPetriNet(PetriNet reducedNet)
Provides the Petri net reduced by redundant invisible tasks.

Parameters:
reducedNet - the reduced Petri net

getCurrentVisualizationState

public java.lang.String getCurrentVisualizationState()
Get the current display state.

Returns:
The current display state.

getVisualization

public att.grappa.GrappaPanel getVisualization(DisplayState currentVisualization)
Creates a visualization of the conformance check results. Note that a change of the display state by the user will have no effect before calling this methods. This is intended to prevent unnecessary cloning of the diagnostic petri net, which actually delivers the custom visualization of the conformance analysis results.

Parameters:
selectedInstances - The process instances that have been selected for updating the visualization.
currentVisualization - The current display state.
Returns:
The visualization wrapped in a GrappaPanel.