?? selectnone.java
字號(hào):
/*--- formatted by Jindent 2.1, (www.c-lab.de/~jindent) ---*//** * SelectNone Class * * location: net.openai.ai.ga.selection.common.SelectNone * */package net.openai.ai.ga.selection.common;import net.openai.ai.ga.selection.*;import net.openai.ai.ga.population.*;import net.openai.ai.ga.cell.*;import java.util.Collection;/** * <code>SelectNone</code> is a <code>SelectionAlgorithm</code> * that will returns a clone of the passed <code>Population</code>, but * with no members. * * @author Jared Grubb * @version %I%, %G% * @since JDK1.3 */public class SelectNone implements SelectionAlgorithm { /** * Creates a new <code>SelectNone</code> object. */ public SelectNone() { } /** * Returns a <code>Population</code> that is a clone of the specified * <code>Population<code> but has no members. * * @param pop the <code>Population</code> to choose from * @return an empty cloned <code>Population</code> */ public Population selectFromPopulation(Population pop) { Population toReturn = new Population(pop,true); return toReturn; }}/*--- formatting done in "Sun Java Convention" style on 12-28-2000 ---*/
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -