org.processmining.converting
Class HNetToPetriNetConverter

java.lang.Object
  extended by org.processmining.converting.HNetToPetriNetConverter
All Implemented Interfaces:
ConvertingPlugin, Plugin

public class HNetToPetriNetConverter
extends java.lang.Object
implements ConvertingPlugin

Title: Heuristics Net to Petri Net

Description: This class converts a HeuristicsNet to a PetriNet.

Version:
1.0
Author:
Ana Karla A. de Medeiros

Constructor Summary
HNetToPetriNetConverter()
           
 
Method Summary
 boolean accepts(ProvidedObject original)
          This function tells the interface which results are accepted by this Plugin
 MiningResult convert(ProvidedObject original)
          Execute this conversion algorithm on the given log file.
 java.lang.String getHtmlDescription()
          Gets a description of this plugin in HTML.
 java.lang.String getName()
          Gets the name of this plugin.
 PetriNet toPetriNet(HeuristicsNet hNet)
          This method assumes that all INPUT/OUTPUT set in the heuristics net match.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HNetToPetriNetConverter

public HNetToPetriNetConverter()
Method Detail

convert

public MiningResult convert(ProvidedObject original)
Description copied from interface: ConvertingPlugin
Execute this conversion algorithm on the given log file.

Specified by:
convert in interface ConvertingPlugin
Parameters:
original - The original mining result
Returns:
the result of the conversion, in a MininResult object

toPetriNet

public PetriNet toPetriNet(HeuristicsNet hNet)
This method assumes that all INPUT/OUTPUT set in the heuristics net match. If you are not sure if this is the case, you can use the method removeDanglingElementReferences in class org.processmining.mining.geneticmining.util.MethodsOverIndividuals to remove dangling element references from the INPUT/OUPUT sets of the heuristics net.

Returns:
a Petri net based on the naive mapping from heuristics net to Petri net.

accepts

public boolean accepts(ProvidedObject original)
Description copied from interface: ConvertingPlugin
This function tells the interface which results are accepted by this Plugin

Specified by:
accepts in interface ConvertingPlugin
Parameters:
original - The original mining result
Returns:
Whether or not this result is accepted

getName

public java.lang.String getName()
Description copied from interface: Plugin
Gets the name of this plugin. Implementing classes should use this method to return their own name.

Specified by:
getName in interface Plugin
Returns:
the name of this plugin

getHtmlDescription

public java.lang.String getHtmlDescription()
Description copied from interface: Plugin
Gets a description of this plugin in HTML. The string returned by this method should only contain the contents of the body of the html page, so the html, head and body tags should not be used. This HTML page is displayed in the help system or as context sensitive help. The HTML body can be stored in an external file in the /lib/documentation/ sub folder and in this case it can be obtained by calling PluginDocumentationLoader.load(this)

Specified by:
getHtmlDescription in interface Plugin
Returns:
a description of this plugin in HTML