public class ContinuousSemanticsParser extends java.lang.Object implements HeuristicsNetParser
HeuristicsNet
objects using a continuous
semantics. This means that the parsing process proceeds even when activities
are not enabled during the log replay. Instead, any problems encountered
during the parsing are registered and can be retrieved via the various "get"
methods that are provided in this class.Modifier and Type | Field and Description |
---|---|
protected java.util.Set<org.deckfour.xes.classification.XEventClass> |
disabledElements |
protected MarkingHeuristicsNet |
marking |
protected int |
numExtraTokensLeftBehind |
protected int |
numMissingTokens |
protected int |
numParsedElements |
protected int |
numUnparsedElements |
protected boolean |
properlyCompleted |
protected int |
traceSize |
protected org.deckfour.xes.classification.XEventClasses |
xEventClassesInHeuristicsNet |
Constructor and Description |
---|
ContinuousSemanticsParser(HeuristicsNet net,
java.util.Random generator)
Constructs a
ContinuousSemanticsParser object. |
Modifier and Type | Method and Description |
---|---|
java.util.Set<org.deckfour.xes.classification.XEventClass> |
getDisabledElements()
Retrieves the set of event classes that were not enabled during the log
replay
|
int |
getNumExtraTokensLeftBehind()
Retrieves number of tokens that have been left behind after parsing log
traces
|
int |
getNumMissingTokens()
Retrieves the number of missing tokens during the replay process
|
int |
getNumParsedElements()
Retrieves the number of activities in the log that could be parsed
without 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).
|
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 void |
registerProblemWhileParsing(org.deckfour.xes.classification.XEventClass element)
Registers parsing problems for activities that are part of the
HeuristicsNet object connected to this
ContinuousSemantics parser. |
protected void |
reset()
Resets this parser object back to its initial state.
|
protected MarkingHeuristicsNet marking
protected java.util.Set<org.deckfour.xes.classification.XEventClass> disabledElements
protected int numUnparsedElements
protected org.deckfour.xes.classification.XEventClasses xEventClassesInHeuristicsNet
protected int numParsedElements
protected int numMissingTokens
protected int numExtraTokensLeftBehind
protected int traceSize
protected boolean properlyCompleted
public ContinuousSemanticsParser(HeuristicsNet net, java.util.Random generator)
ContinuousSemanticsParser
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 tracesprotected void reset()
public 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.protected void registerProblemWhileParsing(org.deckfour.xes.classification.XEventClass element)
HeuristicsNet
object connected to this
ContinuousSemantics
parser.element
- log event that could not be parsed.public java.util.Set<org.deckfour.xes.classification.XEventClass> getDisabledElements()
public int getSizeDisabledElements()
public int getNumUnparsedElements()
public int getNumMissingTokens()
public int getNumExtraTokensLeftBehind()
public boolean getProperlyCompleted()
true
if the trace replay completes properly,
false
otherwise.public int getNumParsedElements()