/*
 * Java Genetic Algorithm Library (@!identifier!@).
 * Copyright (c) @!year!@ Franz Wilhelmstötter
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 *
 * Author:
 *    Franz Wilhelmstötter (franz.wilhelmstoetter@gmx.at)
 *
 */
package org.jenetics;

import java.io.Serializable;

import javolution.lang.ValueType;

import org.jenetics.util.Factory;
import org.jenetics.util.Verifiable;

/**
 * The <code>Gene</code> is the base of this genetic algorithm implementation.
 * A common interface for Genes.
 *
 * @param <A> the <a href="http://en.wikipedia.org/wiki/Allele">Allele</a> type
 *        of this gene.
 *
 * @author <a href="mailto:franz.wilhelmstoetter@gmx.at">Franz Wilhelmstötter</a>
 * @version $Id$
 */
public interface Gene<A, G extends Gene<A, G>>
	extends
		Factory<G>,
		Serializable,
		ValueType,
		Verifiable
{
	
	/**
	 * Return the allele of this gene.
	 *
	 * @return the allele of this gene.
	 */
	public A getAllele();
	
	/**
	 * Return a new, random gene of the same type than this gene. For all genes
	 * returned by this method holds {@code gene.getClass() ==
	 * gene.newInstance().getClass()}.
	 */
	@Override
	public G newInstance();
	
}

@@ -1084,115 +1084,134 @@
 %0A * 
-The %3Ccode%3EGene%3C/code%3E is the base of this genetic algorithm implementation.%0A * A common interface for Genes
+Genes are the atoms of the %3Cem%3EJenetics%3C/em%3E library. They contain the actual%0A * information (alleles) of the encoded solution
 .%0A *
@@ -1535,18 +1535,17 @@
 iable%0A%7B%0A
-%09
 %0A
+
 %09/**%0A%09 *
@@ -1646,18 +1646,17 @@
 lele();%0A
-%09
 %0A
+
 %09/**%0A%09 *
@@ -1866,12 +1866,11 @@
 ance();%0A
-%09
 %0A%7D%0A

Update javadoc.