org.processmining.importing.epml
Class epmlImport

java.lang.Object
  extended by org.processmining.importing.epml.epmlImport
All Implemented Interfaces:
Plugin, ImportPlugin, LogReaderConnectionImportPlugin

public class epmlImport
extends java.lang.Object
implements ImportPlugin, LogReaderConnectionImportPlugin

Version:
1.0
Author:
Jan Mendling

Constructor Summary
epmlImport()
           
 
Method Summary
 javax.swing.filechooser.FileFilter getFileFilter()
           
 java.lang.String getHtmlDescription()
          Gets a description of this plugin in HTML.
static java.lang.String getLinkedEpcId(org.w3c.dom.Node epcnode)
           
 java.lang.String getName()
          Gets the name of this plugin.
 java.util.HashMap getSourceAndNoncfNode(java.util.Vector relation, java.util.HashMap noncfId_Node)
           
 MiningResult importFile(java.io.InputStream input)
          Interface for plugins that import from file.
static boolean isConfigurable(org.w3c.dom.Node inputNode)
           
static ConfigurableEPC read(org.w3c.dom.Node node, java.util.HashMap function_epc, java.util.HashMap Id_noncfNodes)
           
 EPCResult traverseEPML(EPCResult partialResult, org.w3c.dom.Node currentNode, java.lang.Object parent, java.util.HashMap function_epc, java.util.HashMap epcId_net, java.util.HashMap Id_noncfNodes)
           
static void traverseForNonControlFlow(org.w3c.dom.Node currentNode, java.util.HashMap epcIdId_node, java.util.Vector relation, java.lang.String epcId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

epmlImport

public epmlImport()
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

getFileFilter

public javax.swing.filechooser.FileFilter getFileFilter()
Specified by:
getFileFilter in interface ImportPlugin

importFile

public MiningResult importFile(java.io.InputStream input)
                        throws java.io.IOException
Description copied from interface: ImportPlugin
Interface for plugins that import from file.

Specified by:
importFile in interface ImportPlugin
Specified by:
importFile in interface LogReaderConnectionImportPlugin
Parameters:
input - The framework will always provide a ProMInputStream as the input parameter. To retrieve the filename use: ((ProMInputStream) input).getFilename();
Returns:
MiningResult A JComponent that is visualized in a frame. If null is returned then the framework thinks the call to this method was aborted.
Throws:
java.io.IOException - If an IO exception occurs.

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

getSourceAndNoncfNode

public java.util.HashMap getSourceAndNoncfNode(java.util.Vector relation,
                                               java.util.HashMap noncfId_Node)

traverseForNonControlFlow

public static void traverseForNonControlFlow(org.w3c.dom.Node currentNode,
                                             java.util.HashMap epcIdId_node,
                                             java.util.Vector relation,
                                             java.lang.String epcId)

traverseEPML

public EPCResult traverseEPML(EPCResult partialResult,
                              org.w3c.dom.Node currentNode,
                              java.lang.Object parent,
                              java.util.HashMap function_epc,
                              java.util.HashMap epcId_net,
                              java.util.HashMap Id_noncfNodes)

getLinkedEpcId

public static java.lang.String getLinkedEpcId(org.w3c.dom.Node epcnode)

isConfigurable

public static boolean isConfigurable(org.w3c.dom.Node inputNode)

read

public static ConfigurableEPC read(org.w3c.dom.Node node,
                                   java.util.HashMap function_epc,
                                   java.util.HashMap Id_noncfNodes)
                            throws java.lang.Exception
Throws:
java.lang.Exception