org.processmining.plugins.pnml.extensions
Class PnmlInscription

java.lang.Object
  extended by org.processmining.plugins.pnml.PnmlElement
      extended by org.processmining.plugins.pnml.PnmlAnnotation
          extended by org.processmining.plugins.pnml.extensions.PnmlInscription

public class PnmlInscription
extends PnmlAnnotation

Extension PNML inscription object.

Author:
hverbeek

Field Summary
static java.lang.String TAG
          PNML inscription tag.
 
Fields inherited from class org.processmining.plugins.pnml.PnmlAnnotation
graphics, text, toolSpecificList
 
Fields inherited from class org.processmining.plugins.pnml.PnmlElement
lineNumber, tag
 
Constructor Summary
PnmlInscription()
          Creates a fresh inscription.
 
Method Summary
protected  void checkValidity(Pnml pnml)
          Default check for validity: No action.
 PnmlInscription convertFromNet(org.processmining.models.graphbased.AbstractGraphElement element)
           
 void convertToNet(Arc arc)
          Sets the weight of the given arc in the given net to this inscription.
protected  java.lang.String exportElements(Pnml pnml)
          Exports the inscription.
 int getInscription()
          Gets the inscription.
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.PnmlAnnotation
convertToNet, convertToNet
 
Methods inherited from class org.processmining.plugins.pnml.PnmlElement
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

TAG

public static final java.lang.String TAG
PNML inscription tag.

See Also:
Constant Field Values
Constructor Detail

PnmlInscription

public 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.

convertFromNet

public PnmlInscription convertFromNet(org.processmining.models.graphbased.AbstractGraphElement element)
Overrides:
convertFromNet in class PnmlAnnotation