org.processmining.plugins.pnml
Class PnmlTransition

java.lang.Object
  extended by org.processmining.plugins.pnml.PnmlElement
      extended by org.processmining.plugins.pnml.PnmlBasicObject
          extended by org.processmining.plugins.pnml.PnmlNode
              extended by org.processmining.plugins.pnml.PnmlTransition

public class PnmlTransition
extends PnmlNode

Basic PNML transition object.

Author:
hverbeek

Field Summary
static java.lang.String TAG
          PNML transition tag.
 
Fields inherited from class org.processmining.plugins.pnml.PnmlNode
graphics, id
 
Fields inherited from class org.processmining.plugins.pnml.PnmlBasicObject
name, toolSpecificList
 
Fields inherited from class org.processmining.plugins.pnml.PnmlElement
lineNumber, tag
 
Constructor Summary
PnmlTransition()
          Creates a fresh PNML transition.
 
Method Summary
 PnmlTransition convertFromNet(PetrinetGraph net, ExpandableSubNet parent, Transition element, java.util.Map<org.processmining.framework.util.Pair<org.processmining.models.graphbased.AbstractGraphElement,ExpandableSubNet>,java.lang.String> idMap, org.processmining.models.connections.GraphLayoutConnection layout)
           
 void convertToNet(PetrinetGraph net, ExpandableSubNet subNet, java.util.Map<java.lang.String,Transition> map, java.awt.geom.Point2D.Double displacement, org.processmining.models.connections.GraphLayoutConnection layout)
          Converts this transition to a Petri net transition.
protected  java.lang.String exportElements(Pnml pnml)
          Exports all child elements.
protected  boolean importElements(org.xmlpull.v1.XmlPullParser xpp, Pnml pnml)
          Checks whether the current start tag is known.
 
Methods inherited from class org.processmining.plugins.pnml.PnmlNode
checkValidity, convertFromNet, convertToNet, exportAttributes, getBoundingBox, getGraphics, importAttributes
 
Methods inherited from class org.processmining.plugins.pnml.PnmlBasicObject
convertFromNet, convertToNet, convertToNet, getName
 
Methods inherited from class org.processmining.plugins.pnml.PnmlElement
exportAttribute, exportElement, 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
PNML transition tag.

See Also:
Constant Field Values
Constructor Detail

PnmlTransition

public PnmlTransition()
Creates a fresh PNML transition.

Method Detail

importElements

protected boolean importElements(org.xmlpull.v1.XmlPullParser xpp,
                                 Pnml pnml)
Description copied from class: PnmlNode
Checks whether the current start tag is known. If known, it imports the corresponding child element and returns true. Otherwise, it returns false.

Overrides:
importElements in class PnmlNode
Returns:
Whether the start tag was known.

exportElements

protected java.lang.String exportElements(Pnml pnml)
Description copied from class: PnmlNode
Exports all child elements.

Overrides:
exportElements in class PnmlNode
Returns:

convertToNet

public void convertToNet(PetrinetGraph net,
                         ExpandableSubNet subNet,
                         java.util.Map<java.lang.String,Transition> map,
                         java.awt.geom.Point2D.Double displacement,
                         org.processmining.models.connections.GraphLayoutConnection layout)
Converts this transition to a Petri net transition.

Parameters:
net - The net to add the transition to.
subNet - The sub net to add the transition to.
map - The transitions found so far.

convertFromNet

public PnmlTransition convertFromNet(PetrinetGraph net,
                                     ExpandableSubNet parent,
                                     Transition element,
                                     java.util.Map<org.processmining.framework.util.Pair<org.processmining.models.graphbased.AbstractGraphElement,ExpandableSubNet>,java.lang.String> idMap,
                                     org.processmining.models.connections.GraphLayoutConnection layout)