public class org.apache.commons.math.genetics.OrderedCrossover extends java.lang.Object implements org.apache.commons.math.genetics.CrossoverPolicy
{
public void <init>()
{
org.apache.commons.math.genetics.OrderedCrossover v;
v := @this: org.apache.commons.math.genetics.OrderedCrossover;
specialinvoke v.<java.lang.Object: void <init>()>();
return;
}
public org.apache.commons.math.genetics.ChromosomePair crossover(org.apache.commons.math.genetics.Chromosome, org.apache.commons.math.genetics.Chromosome) throws org.apache.commons.math.exception.DimensionMismatchException, org.apache.commons.math.exception.MathIllegalArgumentException
{
java.lang.Object[] v;
org.apache.commons.math.exception.util.LocalizedFormats v;
org.apache.commons.math.genetics.ChromosomePair v;
org.apache.commons.math.genetics.Chromosome v, v;
org.apache.commons.math.genetics.OrderedCrossover v;
boolean v, v;
org.apache.commons.math.exception.MathIllegalArgumentException v;
v := @this: org.apache.commons.math.genetics.OrderedCrossover;
v := @parameter: org.apache.commons.math.genetics.Chromosome;
v := @parameter: org.apache.commons.math.genetics.Chromosome;
v = v instanceof org.apache.commons.math.genetics.AbstractListChromosome;
if v == 0 goto label;
v = v instanceof org.apache.commons.math.genetics.AbstractListChromosome;
if v != 0 goto label;
label:
v = new org.apache.commons.math.exception.MathIllegalArgumentException;
v = <org.apache.commons.math.exception.util.LocalizedFormats: org.apache.commons.math.exception.util.LocalizedFormats INVALID_FIXED_LENGTH_CHROMOSOME>;
v = newarray (java.lang.Object)[0];
specialinvoke v.<org.apache.commons.math.exception.MathIllegalArgumentException: void <init>(org.apache.commons.math.exception.util.Localizable,java.lang.Object[])>(v, v);
throw v;
label:
v = virtualinvoke v.<org.apache.commons.math.genetics.OrderedCrossover: org.apache.commons.math.genetics.ChromosomePair mate(org.apache.commons.math.genetics.AbstractListChromosome,org.apache.commons.math.genetics.AbstractListChromosome)>(v, v);
return v;
}
protected org.apache.commons.math.genetics.ChromosomePair mate(org.apache.commons.math.genetics.AbstractListChromosome, org.apache.commons.math.genetics.AbstractListChromosome) throws org.apache.commons.math.exception.DimensionMismatchException
{
boolean v, v;
java.util.List v, v, v, v;
org.apache.commons.math.genetics.ChromosomePair v;
java.util.ArrayList v, v;
java.util.HashSet v, v;
int v, v, v, v, v, v, v, v, v, v, v, v;
org.apache.commons.math.genetics.OrderedCrossover v;
org.apache.commons.math.genetics.AbstractListChromosome v, v, v, v;
org.apache.commons.math.exception.DimensionMismatchException v;
org.apache.commons.math.random.RandomGenerator v;
java.lang.Object v, v;
v := @this: org.apache.commons.math.genetics.OrderedCrossover;
v := @parameter: org.apache.commons.math.genetics.AbstractListChromosome;
v := @parameter: org.apache.commons.math.genetics.AbstractListChromosome;
v = virtualinvoke v.<org.apache.commons.math.genetics.AbstractListChromosome: int getLength()>();
v = virtualinvoke v.<org.apache.commons.math.genetics.AbstractListChromosome: int getLength()>();
if v == v goto label;
v = new org.apache.commons.math.exception.DimensionMismatchException;
v = virtualinvoke v.<org.apache.commons.math.genetics.AbstractListChromosome: int getLength()>();
specialinvoke v.<org.apache.commons.math.exception.DimensionMismatchException: void <init>(int,int)>(v, v);
throw v;
label:
v = virtualinvoke v.<org.apache.commons.math.genetics.AbstractListChromosome: java.util.List getRepresentation()>();
v = virtualinvoke v.<org.apache.commons.math.genetics.AbstractListChromosome: java.util.List getRepresentation()>();
v = new java.util.ArrayList;
specialinvoke v.<java.util.ArrayList: void <init>(int)>(v);
v = new java.util.ArrayList;
specialinvoke v.<java.util.ArrayList: void <init>(int)>(v);
v = new java.util.HashSet;
specialinvoke v.<java.util.HashSet: void <init>(int)>(v);
v = new java.util.HashSet;
specialinvoke v.<java.util.HashSet: void <init>(int)>(v);
v = staticinvoke <org.apache.commons.math.genetics.GeneticAlgorithm: org.apache.commons.math.random.RandomGenerator getRandomGenerator()>();
v = interfaceinvoke v.<org.apache.commons.math.random.RandomGenerator: int nextInt(int)>(v);
label:
v = interfaceinvoke v.<org.apache.commons.math.random.RandomGenerator: int nextInt(int)>(v);
if v == v goto label;
v = staticinvoke <org.apache.commons.math.util.FastMath: int min(int,int)>(v, v);
v = staticinvoke <org.apache.commons.math.util.FastMath: int max(int,int)>(v, v);
v = v + 1;
v = interfaceinvoke v.<java.util.List: java.util.List subList(int,int)>(v, v);
interfaceinvoke v.<java.util.List: boolean addAll(java.util.Collection)>(v);
interfaceinvoke v.<java.util.Set: boolean addAll(java.util.Collection)>(v);
v = v + 1;
v = interfaceinvoke v.<java.util.List: java.util.List subList(int,int)>(v, v);
interfaceinvoke v.<java.util.List: boolean addAll(java.util.Collection)>(v);
interfaceinvoke v.<java.util.Set: boolean addAll(java.util.Collection)>(v);
v = 1;
label:
if v > v goto label;
v = v + v;
v = v % v;
v = interfaceinvoke v.<java.util.List: java.lang.Object get(int)>(v);
v = interfaceinvoke v.<java.util.List: java.lang.Object get(int)>(v);
v = interfaceinvoke v.<java.util.Set: boolean contains(java.lang.Object)>(v);
if v != 0 goto label;
interfaceinvoke v.<java.util.List: boolean add(java.lang.Object)>(v);
interfaceinvoke v.<java.util.Set: boolean add(java.lang.Object)>(v);
label:
v = interfaceinvoke v.<java.util.Set: boolean contains(java.lang.Object)>(v);
if v != 0 goto label;
interfaceinvoke v.<java.util.List: boolean add(java.lang.Object)>(v);
interfaceinvoke v.<java.util.Set: boolean add(java.lang.Object)>(v);
label:
v = v + 1;
goto label;
label:
staticinvoke <java.util.Collections: void rotate(java.util.List,int)>(v, v);
staticinvoke <java.util.Collections: void rotate(java.util.List,int)>(v, v);
v = new org.apache.commons.math.genetics.ChromosomePair;
v = virtualinvoke v.<org.apache.commons.math.genetics.AbstractListChromosome: org.apache.commons.math.genetics.AbstractListChromosome newFixedLengthChromosome(java.util.List)>(v);
v = virtualinvoke v.<org.apache.commons.math.genetics.AbstractListChromosome: org.apache.commons.math.genetics.AbstractListChromosome newFixedLengthChromosome(java.util.List)>(v);
specialinvoke v.<org.apache.commons.math.genetics.ChromosomePair: void <init>(org.apache.commons.math.genetics.Chromosome,org.apache.commons.math.genetics.Chromosome)>(v, v);
return v;
}
}