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

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

public class PnmlPorts
extends PnmlElement

Author:
hverbeek Pnml ports. Contains just a collection of Pnml ports.

Field Summary
static java.lang.String TAG
           
 
Fields inherited from class org.processmining.plugins.pnml.PnmlElement
lineNumber, tag
 
Constructor Summary
PnmlPorts()
          Construct a fresh Pnml port.
 
Method Summary
 PnmlPorts convertFromOpenNet(OpenNetInterface openNetPorts, java.util.Map<org.processmining.framework.util.Pair<org.processmining.models.graphbased.AbstractGraphElement,ExpandableSubNet>,java.lang.String> map)
          Converts the given collection of ports to Pnml ports.
 void convertToOpenNet(OpenNet openNet)
          Converts all ports to the given Open net.
protected  java.lang.String exportElements(Pnml pnml)
          Exports all standard elements: None.
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

PnmlPorts

public PnmlPorts()
Construct a fresh Pnml port.

Method Detail

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)
Converts all ports to the given Open net.

Parameters:
openNet - The given Open net.

convertFromOpenNet

public PnmlPorts convertFromOpenNet(OpenNetInterface openNetPorts,
                                    java.util.Map<org.processmining.framework.util.Pair<org.processmining.models.graphbased.AbstractGraphElement,ExpandableSubNet>,java.lang.String> map)
Converts the given collection of ports to Pnml ports.

Parameters:
openNetPorts - The given collection of ports.
map - The id map.
Returns:
The Pnml ports.