org.processmining.plugins.pnml
Class PnmlAnnotation

java.lang.Object
  extended by org.processmining.plugins.pnml.PnmlElement
      extended by org.processmining.plugins.pnml.PnmlAnnotation
Direct Known Subclasses:
PnmlArcType, PnmlInitialMarking, PnmlInscription, PnmlName

public abstract class PnmlAnnotation
extends PnmlElement

Basic PNML annotation object.

Author:
hverbeek

Field Summary
protected  PnmlAnnotationGraphics graphics
          Graphics element.
 PnmlText text
          Text element.
protected  java.util.List<PnmlToolSpecific> toolSpecificList
          ToolSpecifics element.
 
Fields inherited from class org.processmining.plugins.pnml.PnmlElement
lineNumber, tag
 
Constructor Summary
PnmlAnnotation(java.lang.String tag)
          Creates a fresh annotation object.
PnmlAnnotation(java.lang.String text, java.lang.String tag)
           
 
Method Summary
 PnmlAnnotation convertFromNet(org.processmining.models.graphbased.AbstractGraphElement element)
           
 void convertToNet(PetrinetEdge<? extends PetrinetNode,? extends PetrinetNode> edge)
           
 void convertToNet(PetrinetNode node)
           
protected  java.lang.String exportElements(Pnml pnml)
          Exports all standard elements: None.
protected  boolean importElements(org.xmlpull.v1.XmlPullParser xpp, Pnml pnml)
          Checks whether the current start tag is known.
 
Methods inherited from class org.processmining.plugins.pnml.PnmlElement
checkValidity, exportAttribute, exportAttributes, exportElement, importAttributes, importElement, importText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

text

public PnmlText text
Text element.


graphics

protected PnmlAnnotationGraphics graphics
Graphics element.


toolSpecificList

protected java.util.List<PnmlToolSpecific> toolSpecificList
ToolSpecifics element.

Constructor Detail

PnmlAnnotation

public PnmlAnnotation(java.lang.String tag)
Creates a fresh annotation object.

Parameters:
tag - The tag for the annotation.

PnmlAnnotation

public PnmlAnnotation(java.lang.String text,
                      java.lang.String tag)
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 PnmlElement
Returns:
Whether the start tag was known.

exportElements

protected java.lang.String exportElements(Pnml pnml)
Description copied from class: PnmlElement
Exports all standard elements: None. If some subclass has child elements, this method needs to be overruled by it.

Overrides:
exportElements in class PnmlElement
Returns:

convertToNet

public void convertToNet(PetrinetNode node)

convertToNet

public void convertToNet(PetrinetEdge<? extends PetrinetNode,? extends PetrinetNode> edge)

convertFromNet

public PnmlAnnotation convertFromNet(org.processmining.models.graphbased.AbstractGraphElement element)