org.processmining.mining.geneticmining.fitness.duplicates
Class DTFitnessFactory

java.lang.Object
  extended by org.processmining.mining.geneticmining.fitness.duplicates.DTFitnessFactory

public class DTFitnessFactory
extends java.lang.Object

Title: Duplicate Tasks Fitness Measures

Description: This class provides objects of the interface Fitness.

Version:
1.0
Author:
Ana Karla A. de Medeiros.

Field Summary
static double[] ALL_FITNESS_PARAMETERS
           
static double GAMMA
           
static int INDEX_GAMMA
           
static int INDEX_KAPPA
           
static double KAPPA
           
 
Constructor Summary
DTFitnessFactory()
           
 
Method Summary
static ParameterValue[] getAdvancedFitnessParametersNames(int fitnessIndex)
          This methods returns the names of the parameters used for a certain fitness types.
static java.lang.String[] getAllFitnessTypes()
          Returns an array containing the names of the supported fitness types.
static Fitness getFitness(int indexFitnessType, LogReader log, double[] parameters)
          Creates the specified fitness type object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KAPPA

public static double KAPPA

GAMMA

public static double GAMMA

INDEX_KAPPA

public static int INDEX_KAPPA

INDEX_GAMMA

public static int INDEX_GAMMA

ALL_FITNESS_PARAMETERS

public static double[] ALL_FITNESS_PARAMETERS
Constructor Detail

DTFitnessFactory

public DTFitnessFactory()
Method Detail

getAllFitnessTypes

public static java.lang.String[] getAllFitnessTypes()
Returns an array containing the names of the supported fitness types.


getAdvancedFitnessParametersNames

public static ParameterValue[] getAdvancedFitnessParametersNames(int fitnessIndex)
This methods returns the names of the parameters used for a certain fitness types. When the fitness does not have a special parameter (e.g. kappa ou gama), the returned array is empty.

Parameters:
fitnessIndex - int index of the fitness type.
Returns:
String[] Array containing the names of the parameters. If the fitness does not require any special parameter, an empty array is returned.

getFitness

public static Fitness getFitness(int indexFitnessType,
                                 LogReader log,
                                 double[] parameters)
Creates the specified fitness type object.

Parameters:
indexFitnessType - int Fitness type.
log - LogReader Log to be parsed by the created fitness type object.
parameters - double[] the parameters to be used by the specificied fitness type.
Returns:
Fitness Object of the selected fitness type.