Class PnmlPlace


  • public class PnmlPlace
    extends PnmlNode
    Basic PNML place object.
    Author:
    hverbeek
    • Constructor Detail

      • PnmlPlace

        protected PnmlPlace()
        Creates a fresh PNML place.
    • Method Detail

      • importElements

        protected boolean importElements​(org.xmlpull.v1.XmlPullParser xpp,
                                         Pnml pnml)
        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)
        Exports all child elements.
        Overrides:
        exportElements in class PnmlNode
        Returns:
      • convertToNet

        public void convertToNet​(PetrinetGraph net,
                                 ExpandableSubNet subNet,
                                 Marking marking,
                                 java.util.Map<java.lang.String,​Place> map,
                                 java.awt.geom.Point2D.Double displacement,
                                 org.processmining.models.connections.GraphLayoutConnection layout)
        Converts this place to a Petri net place.
        Parameters:
        net - Net to add this place to.
        subNet - Sub net to add this place to.
        marking - Marking to add the initial marking of this place to.
        map - Places found so far.
      • convertFromNet

        public PnmlPlace convertFromNet​(Marking marking,
                                        ExpandableSubNet parent,
                                        Place place,
                                        java.util.Map<org.processmining.framework.util.Pair<org.processmining.models.graphbased.AbstractGraphElement,​ExpandableSubNet>,​java.lang.String> idMap,
                                        org.processmining.models.connections.GraphLayoutConnection layout)