public class ProperCompletion extends java.lang.Object implements Fitness
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".Constructor and Description |
---|
ProperCompletion(org.deckfour.xes.info.XLogInfo logInfo)
Constructs a new proper completion fitness for the given log.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public ProperCompletion(org.deckfour.xes.info.XLogInfo logInfo)
HeuristicsNet
will be based on this log.logInfo
- information about the logpublic HeuristicsNet[] calculate(HeuristicsNet[] population)
HeuristicsNet
in the population.public static void resetDuplicatesActualFiringAndArcUsage(HeuristicsNet[] population)
HeuristicsNet
in a population.population
- array containing the HeuristicsNet
objects
that will have their arc usage and activity firing counters reset.