Package org.processmining.plugins.tsml
Class Tsml
- java.lang.Object
-
- org.processmining.plugins.tsml.TsmlElement
-
- org.processmining.plugins.tsml.Tsml
-
public class Tsml extends TsmlElement
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringTAGTSML tag.-
Fields inherited from class org.processmining.plugins.tsml.TsmlElement
lineNumber, tag
-
-
Constructor Summary
Constructors Constructor Description Tsml()Creates a fresh default PNML object, that is, a PNML object of type PNML.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringexportAttributes(Tsml tsml)Exports all attributes.protected java.lang.StringexportElements(Tsml tsml)Exports the child elements to String.java.lang.StringgetLabel()org.deckfour.xes.model.XLoggetLog()booleanhasErrors()protected voidimportAttributes(org.xmlpull.v1.XmlPullParser xpp, Tsml tsml)Imports all known attributes.protected booleanimportElements(org.xmlpull.v1.XmlPullParser xpp, Tsml tsml)Checks whether the current start tag is known.voidlog(java.lang.String context, int lineNumber, java.lang.String message)Adds a log event to the current trace in the log.voidlogNet(java.lang.String name)Adds a new trace with the given name to the log.Tsmlmarshall(TransitionSystem ts, StartStateSet starts, AcceptStateSet accepts, org.processmining.models.graphbased.directed.DirectedGraphElementWeights weights, org.processmining.models.connections.GraphLayoutConnection graphLayout)voidsetName(java.lang.String name)voidunmarshall(TransitionSystem ts, StartStateSet starts, AcceptStateSet accepts, org.processmining.models.graphbased.directed.DirectedGraphElementWeights weights, org.processmining.models.connections.GraphLayoutConnection graphLayout)-
Methods inherited from class org.processmining.plugins.tsml.TsmlElement
checkValidity, exportAttribute, exportElement, importElement, importText
-
-
-
-
Field Detail
-
TAG
public static final java.lang.String TAG
TSML tag.- See Also:
- Constant Field Values
-
-
Method Detail
-
getLabel
public java.lang.String getLabel()
-
getLog
public org.deckfour.xes.model.XLog getLog()
-
log
public void log(java.lang.String context, int lineNumber, java.lang.String message)Adds a log event to the current trace in the log.- Parameters:
context- Context of the message, typically the current PNML tag.lineNumber- Current line number.message- Error message.
-
logNet
public void logNet(java.lang.String name)
Adds a new trace with the given name to the log. This trace is now current.- Parameters:
name- The give name.
-
hasErrors
public boolean hasErrors()
-
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 classTsmlElement- Returns:
- Whether the start tag was known.
-
exportElements
protected java.lang.String exportElements(Tsml tsml)
Exports the child elements to String.- Overrides:
exportElementsin classTsmlElement- Returns:
-
importAttributes
protected void importAttributes(org.xmlpull.v1.XmlPullParser xpp, Tsml tsml)Imports all known attributes.- Overrides:
importAttributesin classTsmlElement
-
exportAttributes
protected java.lang.String exportAttributes(Tsml tsml)
Exports all attributes.- Overrides:
exportAttributesin classTsmlElement- Returns:
-
unmarshall
public void unmarshall(TransitionSystem ts, StartStateSet starts, AcceptStateSet accepts, org.processmining.models.graphbased.directed.DirectedGraphElementWeights weights, org.processmining.models.connections.GraphLayoutConnection graphLayout)
-
marshall
public Tsml marshall(TransitionSystem ts, StartStateSet starts, AcceptStateSet accepts, org.processmining.models.graphbased.directed.DirectedGraphElementWeights weights, org.processmining.models.connections.GraphLayoutConnection graphLayout)
-
setName
public void setName(java.lang.String name)
-
-