Class PnmlInscription


  • public class PnmlInscription
    extends PnmlAnnotation
    Extension PNML inscription object.
    Author:
    hverbeek
    • Constructor Detail

      • PnmlInscription

        protected PnmlInscription()
        Creates a fresh inscription.
    • 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 PnmlAnnotation
        Returns:
        Whether the start tag was known.
      • checkValidity

        protected void checkValidity​(Pnml pnml)
        Description copied from class: PnmlElement
        Default check for validity: No action. If some subclass needs to check validity, this method needs to be overruled by it.
        Overrides:
        checkValidity in class PnmlElement
      • exportElements

        protected java.lang.String exportElements​(Pnml pnml)
        Exports the inscription.
        Overrides:
        exportElements in class PnmlAnnotation
        Returns:
      • getInscription

        public int getInscription()
        Gets the inscription. Returns 1 if not specified.
        Returns:
      • convertToNet

        public void convertToNet​(Arc arc)
        Sets the weight of the given arc in the given net to this inscription.
        Parameters:
        arc - The given arc.