org.processmining.plugins.petrinet.importing.tpn
Class TpnImport
java.lang.Object
org.processmining.framework.abstractplugins.AbstractImportPlugin
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. |
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 |
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
TpnImport
public TpnImport()
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