org.processmining.models.heuristics.impl
Class ExtraBehaviorParser

java.lang.Object
  extended by org.processmining.models.heuristics.impl.ContinuousSemanticsParser
      extended by org.processmining.models.heuristics.impl.ExtraBehaviorParser
All Implemented Interfaces:
HeuristicsNetParser

public class ExtraBehaviorParser
extends ContinuousSemanticsParser

Replays log traces in HeuristicsNet objects using a continuous semantics (see ContinuousSemanticsParser for more details). Additionally, this parser keeps track of how many activities are enabled during the log replay.

Author:
Ana Karla Alves de Medeiros

Field Summary
 
Fields inherited from class org.processmining.models.heuristics.impl.ContinuousSemanticsParser
disabledElements, marking, numExtraTokensLeftBehind, numMissingTokens, numParsedElements, numUnparsedElements, properlyCompleted, traceSize, xEventClassesInHeuristicsNet
 
Constructor Summary
ExtraBehaviorParser(HeuristicsNet net, java.util.Random generator)
          Constructs a ExtraBehaviorParser object.
 
Method Summary
 int getNumTotalEnabledElements()
          Retrieves that total number of enabled activities during the log replay
 boolean parse(org.deckfour.xes.model.XTrace trace)
          Replays a log trace in a HeuristicNet object.
protected  void reset()
          Resets the current internal structures of this parser to their initial states.
 
Methods inherited from class org.processmining.models.heuristics.impl.ContinuousSemanticsParser
getDisabledElements, getNumExtraTokensLeftBehind, getNumMissingTokens, getNumParsedElements, getNumUnparsedElements, getProperlyCompleted, getSizeDisabledElements, registerProblemWhileParsing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtraBehaviorParser

public ExtraBehaviorParser(HeuristicsNet net,
                           java.util.Random generator)
Constructs a ExtraBehaviorParser 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 generator

Parameters:
net - heuristics net object
generator - random generator used during the parsing of log traces
Method Detail

reset

protected void reset()
Resets the current internal structures of this parser to their initial states.

Overrides:
reset in class ContinuousSemanticsParser

parse

public boolean parse(org.deckfour.xes.model.XTrace trace)
Description copied from interface: HeuristicsNetParser
Replays a log trace in a HeuristicNet object.

Specified by:
parse in interface HeuristicsNetParser
Overrides:
parse in class ContinuousSemanticsParser
Parameters:
trace - log trace to be replayed (or parsed).
Returns:
true if the trace could be replayed, false otherwise.

getNumTotalEnabledElements

public int getNumTotalEnabledElements()
Retrieves that total number of enabled activities during the log replay

Returns:
number of enabled activities during log replay