org.processmining.plugins.heuristicsnet.miner.heuristics.miner.fitness
Class ProperCompletion

java.lang.Object
  extended by org.processmining.plugins.heuristicsnet.miner.heuristics.miner.fitness.ProperCompletion
All Implemented Interfaces:
Fitness

public class ProperCompletion
extends java.lang.Object
implements Fitness

For every HeuristicsNet in a population, this class calculates the ratio of the traces in a log that could be completely replayed without problems and without "tokens being left behind".

Author:
Ana Karla Alves de Medeiros

Constructor Summary
ProperCompletion(org.deckfour.xes.info.XLogInfo logInfo)
          Constructs a new proper completion fitness for the given log.
 
Method Summary
 HeuristicsNet[] calculate(HeuristicsNet[] population)
          Calculates the proper completion fitness of every HeuristicsNet in the population.
static void resetDuplicatesActualFiringAndArcUsage(HeuristicsNet[] population)
          Sets all arc usage and activities firing to zero.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProperCompletion

public ProperCompletion(org.deckfour.xes.info.XLogInfo logInfo)
Constructs a new proper completion fitness for the given log. All fitness values calculated by this object for populations of HeuristicsNet will be based on this log.

Parameters:
logInfo - information about the log
Method Detail

calculate

public HeuristicsNet[] calculate(HeuristicsNet[] population)
Calculates the proper completion fitness of every HeuristicsNet in the population.

Specified by:
calculate in interface Fitness
Parameters:
population - array containing the HeuristicsNet for which a fitness value will be calculated.
Returns:
array containing HeuristicsNet with updated fitness values.

resetDuplicatesActualFiringAndArcUsage

public static void resetDuplicatesActualFiringAndArcUsage(HeuristicsNet[] population)
Sets all arc usage and activities firing to zero. Note that these values will be updated again during the fitness calculation based on how well the log can be replayed by every HeuristicsNet in a population.

Parameters:
population - array containing the HeuristicsNet objects that will have their arc usage and activity firing counters reset.