org.processmining.plugins.pnml
Class PnmlReferenceTransition

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.PnmlReferenceTransition

public class PnmlReferenceTransition
extends PnmlNode

Basic PNML referenceTransition object.

Author:
hverbeek

Field Summary
static java.lang.String TAG
          PNML referenceTransition 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
PnmlReferenceTransition()
          Creates a fresh reference transition object.
 
Method Summary
protected  void checkValidity(Pnml pnml)
          Check validity.
 PnmlReferenceTransition convertFromNet(ExpandableSubNet parent, Transition transition, 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)
          Converts this reference transition object to a regular Petri net transition.
protected  java.lang.String exportAttributes(Pnml pnml)
          Exports all known attributes.
protected  void importAttributes(org.xmlpull.v1.XmlPullParser xpp, Pnml pnml)
          Imports all known attributes.
 
Methods inherited from class org.processmining.plugins.pnml.PnmlNode
convertFromNet, convertToNet, exportElements, getBoundingBox, getGraphics, importElements
 
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 referenceTransition tag.

See Also:
Constant Field Values
Constructor Detail

PnmlReferenceTransition

public PnmlReferenceTransition()
Creates a fresh reference transition object.

Method Detail

importAttributes

protected void importAttributes(org.xmlpull.v1.XmlPullParser xpp,
                                Pnml pnml)
Imports all known attributes.

Overrides:
importAttributes in class PnmlNode

exportAttributes

protected java.lang.String exportAttributes(Pnml pnml)
Exports all known attributes.

Overrides:
exportAttributes in class PnmlNode
Returns:

checkValidity

protected void checkValidity(Pnml pnml)
Check validity. Should have a ref attribute.

Overrides:
checkValidity in class PnmlNode

convertToNet

public void convertToNet(PetrinetGraph net,
                         ExpandableSubNet subNet,
                         java.util.Map<java.lang.String,Transition> map)
Converts this reference transition object to a regular Petri net transition.

Parameters:
net - Net to add transition to.
subNet - Sub net to add transition to.
map - Transitions found so far.

convertFromNet

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