All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class geneticAlgorithm.OnePopComputation

geneticAlgorithm.OnePopComputation

public class OnePopComputation
Class OnePopComputation creates new population out from a given old one.


Constructor Index

 o OnePopComputation(Pop, Pop, int, int, int)
Constructor.
 o OnePopComputation(Pop, Pop, int, int, int, CompoundComputation)
Constructor.

Method Index

 o completed()
When finished, report rusults and return.
 o failed()
Reports that a packet failed.
 o reportResult(Pop)
 o start()
Sends computation packet for each missing sub-population.
 o update(Pop)
Adds synchronily new population created by remote machine.

Constructors

 o OnePopComputation
 public OnePopComputation(Pop oldPop,
                          Pop newPop,
                          int popSize,
                          int subPopulations,
                          int generations)
Constructor. Copies in old and new populations, population size, number of subpopulations and number of generations.

 o OnePopComputation
 public OnePopComputation(Pop oldPop,
                          Pop newPop,
                          int popSize,
                          int subPopulations,
                          int generations,
                          CompoundComputation parent)
Constructor. Copies in old and new populations, population size, number of subpopulations, number of generations and compoud computation parent.

Methods

 o start
 public void start()
Sends computation packet for each missing sub-population. Missing sub-populations indicates the remaining needed sub-populations, and each newly chose sub-population is being sent for 'generations' generations to a remote machine.

 o completed
 public void completed()
When finished, report rusults and return.

 o failed
 public void failed()
Reports that a packet failed.

 o update
 public synchronized void update(Pop pop)
Adds synchronily new population created by remote machine.

 o reportResult
 public void reportResult(Pop pop)

All Packages  Class Hierarchy  This Package  Previous  Next  Index