org.processmining.plugins.pnml.extensions.opennet
Class PnmlModule

java.lang.Object
  extended by org.processmining.plugins.pnml.PnmlElement
      extended by org.processmining.plugins.pnml.extensions.opennet.PnmlModule

public class PnmlModule
extends PnmlElement

Author:
hverbeek

Field Summary
static java.lang.String TAG
           
 
Fields inherited from class org.processmining.plugins.pnml.PnmlElement
lineNumber, tag
 
Constructor Summary
PnmlModule()
          Constructs a Pnml module handler.
 
Method Summary
 PnmlModule convertFromOpenNet(OpenNet openNet, Marking marking, java.util.Map<java.lang.String,org.processmining.models.graphbased.AbstractGraphElement> idMap, org.processmining.models.connections.GraphLayoutConnection layout)
          Converts the given Open net with the given initial marking into a Pnml module.
 void convertToOpenNet(OpenNet openNet, Marking marking, Pnml pnml, org.processmining.models.connections.GraphLayoutConnection layout)
          Converts the PNML module into an Open net.
protected  java.lang.String exportElements(Pnml pnml)
          Exports all standard elements: None.
 java.lang.String getName(java.lang.String defaultName)
           
protected  boolean importElements(org.xmlpull.v1.XmlPullParser xpp, Pnml pnml)
          Imports all standard child elements: None.
 
Methods inherited from class org.processmining.plugins.pnml.PnmlElement
checkValidity, exportAttribute, exportAttributes, exportElement, importAttributes, importElement, importText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TAG

public static final java.lang.String TAG
See Also:
Constant Field Values
Constructor Detail

PnmlModule

public PnmlModule()
Constructs a Pnml module handler.

Method Detail

getName

public java.lang.String getName(java.lang.String defaultName)

importElements

protected boolean importElements(org.xmlpull.v1.XmlPullParser xpp,
                                 Pnml pnml)
Description copied from class: PnmlElement
Imports all standard child elements: None. If some subclass has child elements, this method needs to be overruled by it.

Overrides:
importElements in class PnmlElement
Returns:

exportElements

protected java.lang.String exportElements(Pnml pnml)
Description copied from class: PnmlElement
Exports all standard elements: None. If some subclass has child elements, this method needs to be overruled by it.

Overrides:
exportElements in class PnmlElement
Returns:

convertToOpenNet

public void convertToOpenNet(OpenNet openNet,
                             Marking marking,
                             Pnml pnml,
                             org.processmining.models.connections.GraphLayoutConnection layout)
Converts the PNML module into an Open net.

Parameters:
openNet - The Open net to store the results in.
marking - The marking to store the inital marking in.
pnml - The Pnml handler.

convertFromOpenNet

public PnmlModule convertFromOpenNet(OpenNet openNet,
                                     Marking marking,
                                     java.util.Map<java.lang.String,org.processmining.models.graphbased.AbstractGraphElement> idMap,
                                     org.processmining.models.connections.GraphLayoutConnection layout)
Converts the given Open net with the given initial marking into a Pnml module. Typically, this conversion is done to export the Open net and marking to PNML file lateron.

Parameters:
openNet - The given Open net.
marking - The initial marking of the given Open net.
Returns:
The Pnml module.