Class PnmlArc


  • public class PnmlArc
    extends PnmlBasicObject
    Basic PNML arc object.
    Author:
    hverbeek
    • Constructor Detail

      • PnmlArc

        protected PnmlArc()
        Creates a fresh PNML arc.
    • Method Detail

      • importAttributes

        protected void importAttributes​(org.xmlpull.v1.XmlPullParser xpp,
                                        Pnml pnml)
        Imports all known attributes.
        Overrides:
        importAttributes in class PnmlElement
      • exportAttributes

        protected java.lang.String exportAttributes​(Pnml pnml)
        Exports all attributes.
        Overrides:
        exportAttributes in class PnmlElement
        Returns:
      • 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 PnmlBasicObject
        Returns:
        Whether the start tag was known.
      • exportElements

        protected java.lang.String exportElements​(Pnml pnml)
        Exports all child elements.
        Overrides:
        exportElements in class PnmlBasicObject
        Returns:
      • checkValidity

        protected void checkValidity​(Pnml pnml)
        Checks validity. Should have a source and a target.
        Overrides:
        checkValidity in class PnmlElement
      • convertToNet

        public void convertToNet​(PetrinetGraph net,
                                 ExpandableSubNet subNet,
                                 java.util.Map<java.lang.String,​Place> placeMap,
                                 java.util.Map<java.lang.String,​Transition> transitionMap,
                                 java.util.Map<java.lang.String,​PetrinetEdge<? extends PetrinetNode,​? extends PetrinetNode>> edgeMap,
                                 java.awt.geom.Point2D.Double displacement,
                                 org.processmining.models.connections.GraphLayoutConnection layout)
        Converts this PNML arc to a regular Petri net arc.
        Parameters:
        net - The net to add the arc to.
        subNet - The sub net to add the arc to.
        placeMap - The places found so far.
        transitionMap - The transitions found so far.