org.processmining.models.heuristics.impl
Class StopSemanticsParser

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

public class StopSemanticsParser
extends java.lang.Object
implements HeuristicsNetParser

Replays log traces in HeuristicsNet objects using a stop semantics. This means that the parsing stops whenever activities are not enabled during the log replay.

Author:
Ana Karla Alves de Medeiros

Field Summary
protected  java.util.Set<org.deckfour.xes.classification.XEventClass> disabledElements
           
 
Constructor Summary
StopSemanticsParser(HeuristicsNet net, java.util.Random generator)
          Constructs a StopSemanticsParser object.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

disabledElements

protected java.util.Set<org.deckfour.xes.classification.XEventClass> disabledElements
Constructor Detail

StopSemanticsParser

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

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

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
Parameters:
trace - log trace to be replayed (or parsed).
Returns:
true if the trace could be replayed, false otherwise.

getDisabledElements

public java.util.Set<org.deckfour.xes.classification.XEventClass> getDisabledElements()
Retrieves the set of event classes that were not enabled during the log replay

Returns:
set of events that were disabled during log replay

getSizeDisabledElements

public int getSizeDisabledElements()
Retrieves the number of event classes that were not enabled during the log replay

Returns:
number of disabled activities

getNumUnparsedElements

public int getNumUnparsedElements()
Retrieves the number of activities in a log that could not be parsed without any problems

Returns:
number of activities with parsing problems

getNumParsedElements

public int getNumParsedElements()
Retrieves the number of activities in a log that could be parsed without any problems

Returns:
number of activities without parsing problems

getProperlyCompleted

public 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).

Returns:
true if the trace replay completes properly, false otherwise.

getCompleted

public boolean getCompleted()
Indicates if the last trace to be replayed has completed (i.e., no problems where encountered during the log replay).

Returns:
true if the trace replay completes, false otherwise.