lio.search.genetic
Class StdGeneticAlgorithm

java.lang.Object
  extended by lio.search.LiOSearch
      extended by lio.search.genetic.StdGeneticAlgorithm
All Implemented Interfaces:
java.lang.Runnable, LiOResource

public class StdGeneticAlgorithm
extends LiOSearch


Field Summary
 
Fields inherited from class lio.search.LiOSearch
listenerList, searchOutput, stopCondition, stopFlag
 
Constructor Summary
StdGeneticAlgorithm()
          Creates a new instance of StdGeneticAlgorithm
 
Method Summary
 Crossover getCrossover()
           
 LiOResourceDefinition getDefinition()
          Return a LiOResDescription object which holds the name and all parameters that describe the resource.
 Generator getGenerator()
           
 Mutation getMutation()
           
 int getPopulationSize()
           
 double getProbCrossover()
           
 double getProbMutation()
           
 Replacement getReplacer()
           
 Selector getSelector()
           
static void main(java.lang.String[] args)
           
 void run()
           
 void setCrossover(Crossover crossover)
           
 void setGenerator(Generator generator)
           
 void setMutation(Mutation mutation)
           
 void setPopulationSize(int populationSize)
           
 void setProbCrossover(double probCrossover)
           
 void setProbMutation(double probMutation)
           
 void setReplacer(Replacement replacer)
           
 void setSelector(Selector selector)
           
 java.lang.String worksWith()
           
 boolean worksWith(LiOTask kindOfTask)
          Allows knowing if the specified algorithm is able to process the task.
 
Methods inherited from class lio.search.LiOSearch
addLiOEventListener, build, cleanExecution, execute, fireFinishEvent, getSearchOutput, getStopCondition, initialize, initialize, loadSearchOutput, loadStatistics, loadStopCondition, removeLiOEventListener, setOptions, setSearchOutput, setStopCondition, setTask, showOptions, stopCondition, stopSearching, updateTaskDependentResources
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StdGeneticAlgorithm

public StdGeneticAlgorithm()
Creates a new instance of StdGeneticAlgorithm

Method Detail

worksWith

public java.lang.String worksWith()
Returns:
The kind of individuals the resource works with.

run

public void run()

worksWith

public boolean worksWith(LiOTask kindOfTask)
Description copied from class: LiOSearch
Allows knowing if the specified algorithm is able to process the task.

Specified by:
worksWith in class LiOSearch
Returns:
true if the search algorithm can deal with this kind of task and the corresponding data-type

getDefinition

public LiOResourceDefinition getDefinition()
Description copied from interface: LiOResource
Return a LiOResDescription object which holds the name and all parameters that describe the resource.

Returns:
A definition of the resource.

main

public static void main(java.lang.String[] args)
Parameters:
args - the command line arguments

getCrossover

public Crossover getCrossover()
Returns:
Returns the crossover.

setCrossover

public void setCrossover(Crossover crossover)
Parameters:
crossover - The crossover to set.

getGenerator

public Generator getGenerator()
Returns:
Returns the generator.

setGenerator

public void setGenerator(Generator generator)
Parameters:
generator - The generator to set.

getMutation

public Mutation getMutation()
Returns:
Returns the mutation.

setMutation

public void setMutation(Mutation mutation)
Parameters:
mutation - The mutation to set.

getPopulationSize

public int getPopulationSize()
Returns:
Returns the populationSize.

setPopulationSize

public void setPopulationSize(int populationSize)
Parameters:
populationSize - The populationSize to set.

getProbCrossover

public double getProbCrossover()
Returns:
Returns the probCrossover.

setProbCrossover

public void setProbCrossover(double probCrossover)
Parameters:
probCrossover - The probCrossover to set.

getProbMutation

public double getProbMutation()
Returns:
Returns the probMutation.

setProbMutation

public void setProbMutation(double probMutation)
Parameters:
probMutation - The probMutation to set.

getReplacer

public Replacement getReplacer()
Returns:
Returns the replacer.

setReplacer

public void setReplacer(Replacement replacer)
Parameters:
replacer - The replacer to set.

getSelector

public Selector getSelector()
Returns:
Returns the selector.

setSelector

public void setSelector(Selector selector)
Parameters:
selector - The selector to set.