adams.optimise
Class GeneticAlgorithm.GAJob

java.lang.Object
  extended by adams.core.ConsoleObject
      extended by adams.multiprocess.Job
          extended by adams.optimise.GeneticAlgorithm.GAJob
All Implemented Interfaces:
CleanUpHandler, SizeOfHandler, Serializable
Enclosing class:
GeneticAlgorithm

public static class GeneticAlgorithm.GAJob
extends Job

Class for multithreading the ga.

Author:
dale
See Also:
Serialized Form

Field Summary
protected  FitnessFunction m_ff
          fitness function.
 double m_fitness
           
protected  GeneticAlgorithm m_ga
          ga.
protected  int[] m_weights
          weights.
 
Fields inherited from class adams.multiprocess.Job
m_complete, m_completed, m_depends, m_ExecutionError, m_jobInfo, m_jobParams
 
Constructor Summary
GeneticAlgorithm.GAJob(GeneticAlgorithm ga, FitnessFunction ff, int[] weights)
          Constructor.
 
Method Summary
protected  String postProcessCheck()
           
protected  String preProcessCheck()
           
protected  void process()
           
 String toString()
           
 
Methods inherited from class adams.multiprocess.Job
addDependency, addParam, cleanUp, execute, getAdditionalErrorInformation, getAsVector, getDependencies, getExecutionError, getJobCompleteListener, getJobInfo, getParam, hasExecutionError, isComplete, jobCompleted, setJobCompleteListener
 
Methods inherited from class adams.core.ConsoleObject
getDebugging, getSystemErr, getSystemOut, sizeOf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_ga

protected GeneticAlgorithm m_ga
ga.


m_ff

protected FitnessFunction m_ff
fitness function.


m_weights

protected int[] m_weights
weights.


m_fitness

public double m_fitness
Constructor Detail

GeneticAlgorithm.GAJob

public GeneticAlgorithm.GAJob(GeneticAlgorithm ga,
                              FitnessFunction ff,
                              int[] weights)
Constructor. Set GA params.

Parameters:
ff - fitness function
weights - weights
Method Detail

postProcessCheck

protected String postProcessCheck()
Specified by:
postProcessCheck in class Job

preProcessCheck

protected String preProcessCheck()
Specified by:
preProcessCheck in class Job

process

protected void process()
Specified by:
process in class Job

toString

public String toString()
Specified by:
toString in class Job


Copyright © 2012 University of Waikato, Hamilton, NZ. All Rights Reserved.