Class TsmlBasicObject

    • Constructor Summary

      Constructors 
      Constructor Description
      TsmlBasicObject​(java.lang.String tag)
      Creates a fresh basic PNML object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void checkValidity​(Tsml tsml)
      Checks validity.
      protected java.lang.String exportAttributes​(Tsml tsml)
      Exports all attributes.
      protected java.lang.String exportElements​(Tsml tsml)
      Exports all elements.
      java.lang.String getName​(java.lang.String defaultName)  
      protected void importAttributes​(org.xmlpull.v1.XmlPullParser xpp, Tsml tsml)
      Imports all known attributes.
      protected boolean importElements​(org.xmlpull.v1.XmlPullParser xpp, Tsml tsml)
      Checks whether the current start tag is known.
      TsmlBasicObject marshall​(java.lang.String label, int intWeight)  
      protected void unmarshall​(State state, org.processmining.models.graphbased.directed.DirectedGraphElementWeights weights)  
      protected void unmarshall​(Transition transition, java.lang.Object sourceId, java.lang.Object targetId, org.processmining.models.graphbased.directed.DirectedGraphElementWeights weights)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • name

        protected TsmlName name
        Name element.
      • toolSpecificList

        protected java.util.List<TsmlToolSpecific> toolSpecificList
        ToolSpecifics elements (there may be multiple).
    • Constructor Detail

      • TsmlBasicObject

        public TsmlBasicObject​(java.lang.String tag)
        Creates a fresh basic PNML object.
        Parameters:
        tag -
    • Method Detail

      • getName

        public java.lang.String getName​(java.lang.String defaultName)
      • importElements

        protected boolean importElements​(org.xmlpull.v1.XmlPullParser xpp,
                                         Tsml tsml)
        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 TsmlElement
        Returns:
        Whether the start tag was known.
      • exportElements

        protected java.lang.String exportElements​(Tsml tsml)
        Exports all elements.
        Overrides:
        exportElements in class TsmlElement
        Returns:
      • importAttributes

        protected void importAttributes​(org.xmlpull.v1.XmlPullParser xpp,
                                        Tsml tsml)
        Imports all known attributes.
        Overrides:
        importAttributes in class TsmlElement
      • exportAttributes

        protected java.lang.String exportAttributes​(Tsml tsml)
        Exports all attributes.
        Overrides:
        exportAttributes in class TsmlElement
        Returns:
      • checkValidity

        protected void checkValidity​(Tsml tsml)
        Checks validity. Should have a source and a target.
        Overrides:
        checkValidity in class TsmlElement
      • unmarshall

        protected void unmarshall​(State state,
                                  org.processmining.models.graphbased.directed.DirectedGraphElementWeights weights)
      • unmarshall

        protected void unmarshall​(Transition transition,
                                  java.lang.Object sourceId,
                                  java.lang.Object targetId,
                                  org.processmining.models.graphbased.directed.DirectedGraphElementWeights weights)
      • marshall

        public TsmlBasicObject marshall​(java.lang.String label,
                                        int intWeight)