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, importText
public 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 TsmlElement
protected java.lang.String exportElements(Tsml tsml)
exportElements
in class TsmlElement
protected void importAttributes(org.xmlpull.v1.XmlPullParser xpp, Tsml tsml)
importAttributes
in class TsmlElement
protected java.lang.String exportAttributes(Tsml tsml)
exportAttributes
in class TsmlElement
public 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)