Newer
Older
abgabensammlungSS15 / ea / ub8 / EAUe8HohlochMutschler / framework / gp / InterfaceIndividual.java
@MaxXximus92 MaxXximus92 on 23 Jun 2015 789 bytes ea
package gp;

public interface InterfaceIndividual {
	/**
	 * Evaluate the individual and return the fitness.
	 * 
	 * @return the individual fitness
	 */
	public double evaluate();

	/**
	 * A crossover operator.
	 * 
	 * @param y
	 */
	public void crossover(InterfaceIndividual y);

	/**
	 * This method performs a randomized mutation of every gene.
	 * 
	 * @param pMut
	 */
	public void mutate(double pMut);

	/**
	 * The replication operator. WTF!!
	 * 
	 * @return
	 */
	public Object clone();

	/**
	 * Return a String representing the individual.
	 * 
	 * @return a String representing the individual
	 */
	public String getStringRepresentation();

	/**
	 * This method initializes the genotype randomly
	 */
	public void defaultInit();
}