public class StopSemanticsParser extends java.lang.Object implements HeuristicsNetParser
HeuristicsNet
objects using a stop
semantics. This means that the parsing stops whenever activities are not
enabled during the log replay.Modifier and Type | Field and Description |
---|---|
protected java.util.Set<org.deckfour.xes.classification.XEventClass> |
disabledElements |
Constructor and Description |
---|
StopSemanticsParser(HeuristicsNet net,
java.util.Random generator)
Constructs a
StopSemanticsParser object. |
Modifier and Type | Method and Description |
---|---|
boolean |
getCompleted()
Indicates if the last trace to be replayed has completed (i.e., no
problems where encountered during the log replay).
|
java.util.Set<org.deckfour.xes.classification.XEventClass> |
getDisabledElements()
Retrieves the set of event classes that were not enabled during the log
replay
|
int |
getNumParsedElements()
Retrieves the number of activities in a log that could be parsed without
any problems
|
int |
getNumUnparsedElements()
Retrieves the number of activities in a log that could not be parsed
without any problems
|
boolean |
getProperlyCompleted()
Indicates if the last trace to be replayed has properly completed (i.e.,
no tokens are left behind and no problems were encountered during the log
replay).
|
int |
getSizeDisabledElements()
Retrieves the number of event classes that were not enabled during the
log replay
|
boolean |
parse(org.deckfour.xes.model.XTrace trace)
Replays a log trace in a
HeuristicNet object. |
protected java.util.Set<org.deckfour.xes.classification.XEventClass> disabledElements
public StopSemanticsParser(HeuristicsNet net, java.util.Random generator)
StopSemanticsParser
object. This object will
replay log traces in the given HeuristicsNet
object. The
random aspect of this replaying process is based on the provided
Random
generatornet
- heuristics net objectgenerator
- random generator used during the parsing of log tracespublic boolean parse(org.deckfour.xes.model.XTrace trace)
HeuristicsNetParser
HeuristicNet
object.parse
in interface HeuristicsNetParser
trace
- log trace to be replayed (or parsed).true
if the trace could be replayed,
false
otherwise.public java.util.Set<org.deckfour.xes.classification.XEventClass> getDisabledElements()
public int getSizeDisabledElements()
public int getNumUnparsedElements()
public int getNumParsedElements()
public boolean getProperlyCompleted()
true
if the trace replay completes properly,
false
otherwise.public boolean getCompleted()
true
if the trace replay completes,
false
otherwise.