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

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

public class ContinuousSemantics
extends java.lang.Object
implements Fitness

Calculates the fitness of HeuristicsNet objects in a population based on a weighed sum of (i) the ratio of parsed activities without problems and (ii) the ratio of properly completed traces.

Additional methods are provided to set and retrieve the values of the two different weights used for every part of the sum above. Furthermore, the parsing semantics is a continuous one (i.e., the log replay does not stop when problems are encountered).

Author:
Ana Karla Alves de Medeiros

Constructor Summary
ContinuousSemantics(org.deckfour.xes.info.XLogInfo logInfo)
          Constructs a new continuous semantics fitness for the given log.
 
Method Summary
 HeuristicsNet[] calculate(HeuristicsNet[] population)
          Calculates the continuous semantics fitness of every HeuristicsNet in the population
 double getNumEnabledConstant()
          Returns the value used to weigh the impact of the ratio of parsed activities without problems during the log replay
 double getNumProperlyCompletedConstant()
          Returns the value used to weigh the impact of the ratio of properly completed traces during the log replay
 void setNumEnabledConstant(double newValue)
          Sets the value used to weigh the impact of the ratio of parsed activities without problems during the log replay
 void setNumProperlyCompletedConstant(double newValue)
          Sets the value used to weigh the impact of the ratio of properly completed traces during the log replay
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContinuousSemantics

public ContinuousSemantics(org.deckfour.xes.info.XLogInfo logInfo)
Constructs a new continuous semantics 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 continuous semantics 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.

getNumProperlyCompletedConstant

public double getNumProperlyCompletedConstant()
Returns the value used to weigh the impact of the ratio of properly completed traces during the log replay

Returns:
double value of this weight

getNumEnabledConstant

public double getNumEnabledConstant()
Returns the value used to weigh the impact of the ratio of parsed activities without problems during the log replay

Returns:
double value of this weight

setNumProperlyCompletedConstant

public void setNumProperlyCompletedConstant(double newValue)
Sets the value used to weigh the impact of the ratio of properly completed traces during the log replay

Parameters:
newValue - new double value of this weight

setNumEnabledConstant

public void setNumEnabledConstant(double newValue)
Sets the value used to weigh the impact of the ratio of parsed activities without problems during the log replay

Parameters:
newValue - new double value of this weight