net.openai.ai.ga.selection.common
Class SelectAll

java.lang.Object
  |
  +--net.openai.ai.ga.selection.common.SelectAll
All Implemented Interfaces:
SelectionAlgorithm

public class SelectAll
extends java.lang.Object
implements SelectionAlgorithm

SelectAll is a SelectionAlgorithm that will returns a clone of the passed Population.

Since:
JDK1.3
Version:
%I%, %G%
Author:
Jared Grubb

Constructor Summary
SelectAll()
          Creates a new SelectAll object.
 
Method Summary
 Population selectFromPopulation(Population pop)
          Returns a Population that is a clone of the specified Population.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectAll

public SelectAll()
Creates a new SelectAll object.

Method Detail

selectFromPopulation

public Population selectFromPopulation(Population pop)
Returns a Population that is a clone of the specified Population. This represents a "keep-all" method.

Specified by:
selectFromPopulation in interface SelectionAlgorithm
Parameters:
pop - the Population to choose from
Returns:
a cloned Population


Copyright - 2001 OpenAI Labs. All Rights Reserved.