Class 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

      Fields 
      Modifier and Type Field Description
      static java.lang.String INVISIBLE_EVENT_TYPE
      This 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.Object importFromStream​(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.
      • 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
        Description copied from class: org.processmining.framework.abstractplugins.AbstractImportPlugin
        This method is called by all plugin variants to do the actual importing.
        Specified by:
        importFromStream in class org.processmining.framework.abstractplugins.AbstractImportPlugin
        Returns:
        Throws:
        java.lang.Exception