public class PetrifyImportDotSG
extends org.processmining.framework.abstractplugins.AbstractImportPlugin
Constructor and Description |
---|
PetrifyImportDotSG() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object[] |
importFile(org.processmining.framework.plugin.PluginContext context,
PetrifyDotSG dotSG)
Imports a Petri net from a Petrify/Genet Petri net file.
|
protected java.lang.Object[] |
importFromStream(org.processmining.framework.plugin.PluginContext context,
java.io.InputStream input,
java.lang.String filename,
long fileSizeInBytes)
Imports a Petri net from a Petrify/Genet Petri net stream, given the
associated file name and size.
|
public java.lang.Object[] importFile(org.processmining.framework.plugin.PluginContext context, PetrifyDotSG dotSG) throws java.lang.Exception
context
- The current plug-in context.dotG
- The handle to the given file.java.lang.Exception
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
importFromStream
in class org.processmining.framework.abstractplugins.AbstractImportPlugin
context
- The current plug-in context.input
- The given stream.filename
- The name of the file associated with the stream.fileSizeInBytes
- The size of the file associated with the stream.java.lang.Exception