@@ -0,0 +1,2096 @@
+/*%0A * Java Genetic Algorithm Library (@!identifier!@).%0A * Copyright (c) @!year!@ Franz Wilhelmst%C3%B6tter%0A *  %0A * This library is free software; you can redistribute it and/or%0A * modify it under the terms of the GNU Lesser General Public%0A * License as published by the Free Software Foundation; either%0A * version 2.1 of the License, or (at your option) any later version.%0A * %0A * This library is distributed in the hope that it will be useful,%0A * but WITHOUT ANY WARRANTY; without even the implied warranty of%0A * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU%0A * Lesser General Public License for more details.%0A * %0A * You should have received a copy of the GNU Lesser General Public%0A * License along with this library; if not, write to the Free Software%0A * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA%0A *%0A * Author:%0A *     Franz Wilhelmst%C3%B6tter (franz.wilhelmstoetter@gmx.at)%0A *     %0A */%0Apackage org.jenetics;%0A%0Aimport java.util.Random;%0A%0Aimport org.jenetics.util.Array;%0Aimport org.jenetics.util.Factory;%0Aimport org.jenetics.util.ISeq;%0Aimport org.jenetics.util.RandomRegistry;%0A%0A/**%0A * @author %3Ca href=%22mailto:franz.wilhelmstoetter@gmx.at%22%3EFranz Wilhelmst%C3%B6tter%3C/a%3E%0A * @version $Id$%0A */%0Apublic class PermutationChromosomeCharacterTest %0A%09extends ChromosomeTester%3CPermutationGene%3CCharacter%3E%3E %0A%09%7B %0A%09%0A%09private final Factory%3CChromosome%3CPermutationGene%3CCharacter%3E%3E%3E %0A%09_factory = new Factory%3CChromosome%3CPermutationGene%3CCharacter%3E%3E%3E() %7B%0A%09%09private final char%5B%5D _characters = %22qwertzuiop%C3%BC+asdfghjkl%C3%B6%C3%A4#yxcvbnm,.-%22.toCharArray();%0A%09%09private final ISeq%3CCharacter%3E _alleles = new Array%3CCharacter%3E(100).fill(new Factory%3CCharacter%3E() %7B%0A%09%09%09private final Random _random = RandomRegistry.getRandom();%0A%09%09%09@Override%0A%09%09%09public Character newInstance() %7B%0A%09%09%09%09return _characters%5B_random.nextInt(_characters.length)%5D;%0A%09%09%09%7D%0A%09%09%09%0A%09%09%7D).toISeq();%0A%09%09%0A%09%09@Override%0A%09%09public PermutationChromosome%3CCharacter%3E newInstance() %7B%0A%09%09%09return new PermutationChromosome%3C%3E(_alleles);%0A%09%09%7D%0A%09%7D;%0A%09%0A%09@Override %0A%09protected Factory%3CChromosome%3CPermutationGene%3CCharacter%3E%3E%3E getFactory() %7B%0A%09%09return _factory;%0A%09%7D%0A%0A%7D

Add PermutationGeneTest.