org.processmining.plugins.petrinet.importing.tpn
Class TpnImport

java.lang.Object
  extended by org.processmining.framework.abstractplugins.AbstractImportPlugin
      extended by org.processmining.plugins.petrinet.importing.tpn.TpnImport
All Implemented Interfaces:
org.processmining.framework.abstractplugins.ImportPlugin

public class TpnImport
extends org.processmining.framework.abstractplugins.AbstractImportPlugin

Parses a TPN file and produces a petri net.

This implementation parses bounds and transition labels, but does not use them. Undeclared places will be created automatically without warning if they occur in the in set or out set of a transition. The parser is case insensitive.

The parser is built with JavaCC, a free Java parser generator (like yacc). See https://javacc.dev.java.net/ for documentation.

The grammar file for the TPN parser is TpnParser.jj. The TpnParser class can be rebuilt with the command javacc TpnParser.jj.

Version:
1.0
Author:
Peter van den Brand

Field Summary
static java.lang.String INVISIBLE_EVENT_TYPE
          This value is used to indicate the event type of an invisible transition.
 
Constructor Summary
TpnImport()
           
 
Method Summary
protected  java.lang.Object importFromStream(org.processmining.framework.plugin.PluginContext context, java.io.InputStream input, java.lang.String filename, long fileSizeInBytes)
           
 
Methods inherited from class org.processmining.framework.abstractplugins.AbstractImportPlugin
getFile, getInputStream, importFile, importFile, importFile, importFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INVISIBLE_EVENT_TYPE

public static final java.lang.String INVISIBLE_EVENT_TYPE
This value is used to indicate the event type of an invisible transition.

See Also:
Constant Field Values
Constructor Detail

TpnImport

public TpnImport()
Method Detail

importFromStream

protected java.lang.Object importFromStream(org.processmining.framework.plugin.PluginContext context,
                                            java.io.InputStream input,
                                            java.lang.String filename,
                                            long fileSizeInBytes)
                                     throws java.lang.Exception
Specified by:
importFromStream in class org.processmining.framework.abstractplugins.AbstractImportPlugin
Throws:
java.lang.Exception