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.AbstractImportPluginParses 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
Fields Modifier and Type Field Description static java.lang.StringINVISIBLE_EVENT_TYPEThis value is used to indicate the event type of an invisible transition.
-
Constructor Summary
Constructors Constructor Description TpnImport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.ObjectimportFromStream(org.processmining.framework.plugin.PluginContext context, java.io.InputStream input, java.lang.String filename, long fileSizeInBytes)This method is called by all plugin variants to do the actual importing.
-
-
-
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
-
-
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.ExceptionDescription copied from class:org.processmining.framework.abstractplugins.AbstractImportPluginThis method is called by all plugin variants to do the actual importing.- Specified by:
importFromStreamin classorg.processmining.framework.abstractplugins.AbstractImportPlugin- Returns:
- Throws:
java.lang.Exception
-
-