org.processmining.converting
Class WFNetToEPC

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

public class WFNetToEPC
extends java.lang.Object
implements ConvertingPlugin

Title: Labeled WF Net to EPC convertor

Description: Takes a labeled WF-net and converts it into an EPC. This convertor heavily depends on the convertor form labeled WF nets to YAWL models.

Copyright: Copyright (c) 2004 Eric Verbeek

Company: TU/e

Version:
1.0
Author:
not attributable

Constructor Summary
WFNetToEPC()
           
 
Method Summary
 boolean accepts(ProvidedObject object)
          This function tells the interface which results are accepted by this Plugin
 ConfigurableEPC convert(PetriNet net)
          Convert the given Petri net into an EPC.
 MiningResult convert(ProvidedObject object)
          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.
 java.lang.String getName(ModelGraphVertex element)
          Construct a unqiue name for the given object.
 java.lang.String getType(Transition sphereTransition, java.util.HashSet<PNNode> sphere, boolean isJoin)
          Determine the join/split type of the task corresponding to the given transition.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WFNetToEPC

public WFNetToEPC()
Method Detail

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

convert

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

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

accepts

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

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

getName

public java.lang.String getName(ModelGraphVertex element)
Construct a unqiue name for the given object.

Parameters:
element - ModelGraphVertex THe given object.
Returns:
String The constructed name.

convert

public ConfigurableEPC convert(PetriNet net)
Convert the given Petri net into an EPC.

Parameters:
net - PetriNet The given Petri net.
Returns:
EPC The constructed EPC.

getType

public java.lang.String getType(Transition sphereTransition,
                                java.util.HashSet<PNNode> sphere,
                                boolean isJoin)
Determine the join/split type of the task corresponding to the given transition.

Parameters:
sphereTransition - Transition The given transition.
sphere - HashSet Its join/split sphere (depends on isJoin).
isJoin - boolean Whether the join split is requested (true) or the split type (false).
Returns:
String