Class TsmlInscription
- java.lang.Object
-
- org.processmining.plugins.tsml.TsmlElement
-
- org.processmining.plugins.tsml.TsmlAnnotation
-
- org.processmining.plugins.tsml.extensions.TsmlInscription
-
public class TsmlInscription extends TsmlAnnotation
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringTAGPNML inscription tag.-
Fields inherited from class org.processmining.plugins.tsml.TsmlAnnotation
graphics, text, toolSpecificList
-
Fields inherited from class org.processmining.plugins.tsml.TsmlElement
lineNumber, tag
-
-
Constructor Summary
Constructors Constructor Description TsmlInscription()Creates a fresh inscription.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckValidity(Tsml tsml)Default check for validity: No action.protected java.lang.StringexportElements(Tsml tsml)Exports the inscription.intgetInscription()Gets the inscription.protected booleanimportElements(org.xmlpull.v1.XmlPullParser xpp, Tsml tsml)Checks whether the current start tag is known.TsmlInscriptionmarshall(org.processmining.models.graphbased.AbstractGraphElement element)voidunmarshall(Transition transition)Sets the weight of the given arc in the given net to this inscription.-
Methods inherited from class org.processmining.plugins.tsml.TsmlAnnotation
unmarshall
-
Methods inherited from class org.processmining.plugins.tsml.TsmlElement
exportAttribute, exportAttributes, exportElement, importAttributes, importElement, importText
-
-
-
-
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, 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:
importElementsin classTsmlAnnotation- Returns:
- Whether the start tag was known.
-
checkValidity
protected void checkValidity(Tsml tsml)
Description copied from class:TsmlElementDefault check for validity: No action. If some subclass needs to check validity, this method needs to be overruled by it.- Overrides:
checkValidityin classTsmlElement
-
exportElements
protected java.lang.String exportElements(Tsml tsml)
Exports the inscription.- Overrides:
exportElementsin classTsmlAnnotation- Returns:
-
getInscription
public int getInscription()
Gets the inscription. Returns 1 if not specified.- Returns:
-
unmarshall
public void unmarshall(Transition transition)
Sets the weight of the given arc in the given net to this inscription.- Overrides:
unmarshallin classTsmlAnnotation- Parameters:
arc- The given arc.
-
marshall
public TsmlInscription marshall(org.processmining.models.graphbased.AbstractGraphElement element)
- Overrides:
marshallin classTsmlAnnotation
-
-