org.processmining.mining.geneticmining.fitness
Class FitnessFactory

java.lang.Object
  extended by org.processmining.mining.geneticmining.fitness.FitnessFactory

public class FitnessFactory
extends java.lang.Object

Title:

Description:

Copyright: Copyright (c) 2004

Company:

Version:
1.0
Author:
not attributable

Field Summary
static int CONTINUOUS_SEMANTICS_INDEX
           
static int EXTRA_BEHAVIOR_PUNISHMENT_INDEX
           
static int IMPROVED_CONTINUOUS_SEMANTICS_INDEX
           
static int PROPER_COMPLETION_INDEX
           
static int STOP_SEMANTICS_INDEX
           
 
Constructor Summary
FitnessFactory()
           
 
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()
           
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

PROPER_COMPLETION_INDEX

public static int PROPER_COMPLETION_INDEX

STOP_SEMANTICS_INDEX

public static int STOP_SEMANTICS_INDEX

CONTINUOUS_SEMANTICS_INDEX

public static int CONTINUOUS_SEMANTICS_INDEX

IMPROVED_CONTINUOUS_SEMANTICS_INDEX

public static int IMPROVED_CONTINUOUS_SEMANTICS_INDEX

EXTRA_BEHAVIOR_PUNISHMENT_INDEX

public static int EXTRA_BEHAVIOR_PUNISHMENT_INDEX
Constructor Detail

FitnessFactory

public FitnessFactory()
Method Detail

getAllFitnessTypes

public static java.lang.String[] getAllFitnessTypes()

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.