Class PnmlNode

    • Field Detail

      • id

        protected java.lang.String id
        Id attribute.
    • Constructor Detail

      • PnmlNode

        protected PnmlNode​(java.lang.String tag)
        Creates a fresh PNML node.
        Parameters:
        tag -
    • 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 the validity of this node. Should have an id attribute.
        Overrides:
        checkValidity in class PnmlElement
      • getBoundingBox

        public org.processmining.framework.util.Pair<java.awt.geom.Point2D.Double,​java.awt.geom.Point2D.Double> getBoundingBox()
        Gets the bounding box for this node.
        Returns:
        The bounding box for this node.
      • convertToNet

        public void convertToNet​(ExpandableSubNet subNet,
                                 PetrinetNode node,
                                 java.awt.geom.Point2D.Double displacement,
                                 org.processmining.models.connections.GraphLayoutConnection layout)
      • convertFromNet

        public PnmlNode convertFromNet​(ExpandableSubNet parent,
                                       org.processmining.models.graphbased.AbstractGraphElement 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)