org.processmining.framework.models.petrinet.algorithms
Class PnmlReader

java.lang.Object
  extended by org.processmining.framework.models.petrinet.algorithms.PnmlReader

public class PnmlReader
extends java.lang.Object

Reads a PetriNet from a PNML file.

The PNML file that is read should conform at least to the basicPNML schema (see http://www.informatik.hu-berlin.de/top/pnml/basicPNML.rng), although this is not checked.

In addition to this schema, the following tags are supported:

All values for the type attribute of a net tag are accepted. This type attribute is also NOT used to decide whether to use the logevent or name tags. These tags will ALWAYS be used when they are present in the PNML file.

Any unknown tags are simply ignored without warning.

Version:
1.0
Author:
Peter van den Brand

Method Summary
static PetriNet read(java.io.InputStream input)
           
static PetriNet read(org.w3c.dom.Node node)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

read

public static PetriNet read(java.io.InputStream input)
                     throws java.lang.Exception
Throws:
java.lang.Exception

read

public static PetriNet read(org.w3c.dom.Node node)
                     throws java.lang.Exception
Throws:
java.lang.Exception