Class PnmlInscription
- java.lang.Object
-
- org.processmining.plugins.pnml.base.PnmlElement
-
- org.processmining.plugins.pnml.elements.PnmlAnnotation
-
- org.processmining.plugins.pnml.elements.extensions.PnmlInscription
-
public class PnmlInscription extends PnmlAnnotation
Extension PNML inscription object.- Author:
- hverbeek
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringTAGPNML inscription tag.-
Fields inherited from class org.processmining.plugins.pnml.elements.PnmlAnnotation
graphics, text, toolSpecificList
-
Fields inherited from class org.processmining.plugins.pnml.base.PnmlElement
factory, lineNumber, tag
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPnmlInscription()Creates a fresh inscription.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckValidity(Pnml pnml)Default check for validity: No action.PnmlInscriptionconvertFromNet(PetrinetEdge<? extends PetrinetNode,? extends PetrinetNode> arc)voidconvertToNet(Arc arc)Sets the weight of the given arc in the given net to this inscription.protected java.lang.StringexportElements(Pnml pnml)Exports the inscription.intgetInscription()Gets the inscription.protected booleanimportElements(org.xmlpull.v1.XmlPullParser xpp, Pnml pnml)Checks whether the current start tag is known.-
Methods inherited from class org.processmining.plugins.pnml.elements.PnmlAnnotation
convertFromNet, convertToNet, convertToNet
-
Methods inherited from class org.processmining.plugins.pnml.base.PnmlElement
exportAttribute, exportAttributes, exportElement, importAttributes, importElement, importText, setFactory
-
-
-
-
Field Detail
-
TAG
public static final java.lang.String TAG
PNML inscription tag.- See Also:
- Constant Field Values
-
-
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:
importElementsin classPnmlAnnotation- Returns:
- Whether the start tag was known.
-
checkValidity
protected void checkValidity(Pnml pnml)
Description copied from class:PnmlElementDefault check for validity: No action. If some subclass needs to check validity, this method needs to be overruled by it.- Overrides:
checkValidityin classPnmlElement
-
exportElements
protected java.lang.String exportElements(Pnml pnml)
Exports the inscription.- Overrides:
exportElementsin classPnmlAnnotation- 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(PetrinetEdge<? extends PetrinetNode,? extends PetrinetNode> arc)
-
-