public class Tsml extends TsmlElement
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TAG
TSML tag.
|
lineNumber, tag| Constructor and Description |
|---|
Tsml()
Creates a fresh default PNML object, that is, a PNML object of type PNML.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
exportAttributes(Tsml tsml)
Exports all attributes.
|
protected java.lang.String |
exportElements(Tsml tsml)
Exports the child elements to String.
|
java.lang.String |
getLabel() |
org.deckfour.xes.model.XLog |
getLog() |
boolean |
hasErrors() |
protected void |
importAttributes(org.xmlpull.v1.XmlPullParser xpp,
Tsml tsml)
Imports all known attributes.
|
protected boolean |
importElements(org.xmlpull.v1.XmlPullParser xpp,
Tsml tsml)
Checks whether the current start tag is known.
|
void |
log(java.lang.String context,
int lineNumber,
java.lang.String message)
Adds a log event to the current trace in the log.
|
void |
logNet(java.lang.String name)
Adds a new trace with the given name to the log.
|
Tsml |
marshall(TransitionSystem ts,
StartStateSet starts,
AcceptStateSet accepts,
org.processmining.models.graphbased.directed.DirectedGraphElementWeights weights,
org.processmining.models.connections.GraphLayoutConnection graphLayout) |
void |
unmarshall(TransitionSystem ts,
StartStateSet starts,
AcceptStateSet accepts,
org.processmining.models.graphbased.directed.DirectedGraphElementWeights weights,
org.processmining.models.connections.GraphLayoutConnection graphLayout) |
checkValidity, exportAttribute, exportElement, importElement, importTextpublic static final java.lang.String TAG
public Tsml()
public java.lang.String getLabel()
public org.deckfour.xes.model.XLog getLog()
public void log(java.lang.String context,
int lineNumber,
java.lang.String message)
context - Context of the message, typically the current PNML tag.lineNumber - Current line number.message - Error message.public void logNet(java.lang.String name)
name - The give name.public boolean hasErrors()
protected boolean importElements(org.xmlpull.v1.XmlPullParser xpp,
Tsml tsml)
importElements in class TsmlElementprotected java.lang.String exportElements(Tsml tsml)
exportElements in class TsmlElementprotected void importAttributes(org.xmlpull.v1.XmlPullParser xpp,
Tsml tsml)
importAttributes in class TsmlElementprotected java.lang.String exportAttributes(Tsml tsml)
exportAttributes in class TsmlElementpublic void unmarshall(TransitionSystem ts, StartStateSet starts, AcceptStateSet accepts, org.processmining.models.graphbased.directed.DirectedGraphElementWeights weights, org.processmining.models.connections.GraphLayoutConnection graphLayout)
public Tsml marshall(TransitionSystem ts, StartStateSet starts, AcceptStateSet accepts, org.processmining.models.graphbased.directed.DirectedGraphElementWeights weights, org.processmining.models.connections.GraphLayoutConnection graphLayout)