/** * This class contains information about the recombination of two * individuals. * * coding: h.sarg * modified: 01/98 */ public class VisRecomb { /* * cointains information about the gen (which parent, crossoverarea ...) */ private int[] info; /* * cointains in which step the gen was set in the crossover */ private int[] step; /* * start of the crossoverarea */ private int startco; /* * end of the crossoverarea */ private int endco; /* * number of towns */ private int towns; /* * how much steps was used in the crossover */ private int maxstep; /* * used when ERX and ERX with Heuristic to store the edge list */ private int[][] edges; /** * This constructor creates an object and initializes its fields * @param towns number of towns */ public VisRecomb(int towns) { int i; startco = -1; this.towns=towns; endco = -1; info = new int[towns]; step = new int[towns]; maxstep = -1; edges = null; for(i=0;i