public class org.apache.commons.math.genetics.BinaryMutation extends java.lang.Object implements org.apache.commons.math.genetics.MutationPolicy
{
public void <init>()
{
org.apache.commons.math.genetics.BinaryMutation v;
v := @this: org.apache.commons.math.genetics.BinaryMutation;
specialinvoke v.<java.lang.Object: void <init>()>();
return;
}
public org.apache.commons.math.genetics.Chromosome mutate(org.apache.commons.math.genetics.Chromosome) throws org.apache.commons.math.exception.MathIllegalArgumentException
{
java.lang.Object[] v;
java.lang.Integer v;
java.util.ArrayList v;
org.apache.commons.math.genetics.Chromosome v;
byte v;
int v, v, v;
org.apache.commons.math.genetics.BinaryMutation v;
boolean v;
org.apache.commons.math.exception.MathIllegalArgumentException v;
org.apache.commons.math.genetics.AbstractListChromosome v;
org.apache.commons.math.exception.util.LocalizedFormats v;
java.util.List v, v;
org.apache.commons.math.random.RandomGenerator v;
java.lang.Object v;
v := @this: org.apache.commons.math.genetics.BinaryMutation;
v := @parameter: org.apache.commons.math.genetics.Chromosome;
v = v instanceof org.apache.commons.math.genetics.BinaryChromosome;
if v != 0 goto 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_BINARY_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 = new java.util.ArrayList;
v = virtualinvoke v.<org.apache.commons.math.genetics.BinaryChromosome: java.util.List getRepresentation()>();
specialinvoke v.<java.util.ArrayList: void <init>(java.util.Collection)>(v);
v = staticinvoke <org.apache.commons.math.genetics.GeneticAlgorithm: org.apache.commons.math.random.RandomGenerator getRandomGenerator()>();
v = virtualinvoke v.<org.apache.commons.math.genetics.BinaryChromosome: int getLength()>();
v = interfaceinvoke v.<org.apache.commons.math.random.RandomGenerator: int nextInt(int)>(v);
v = virtualinvoke v.<org.apache.commons.math.genetics.BinaryChromosome: java.util.List getRepresentation()>();
v = interfaceinvoke v.<java.util.List: java.lang.Object get(int)>(v);
v = virtualinvoke v.<java.lang.Integer: int intValue()>();
if v != 0 goto label;
v = 1;
goto label;
label:
v = 0;
label:
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(v);
interfaceinvoke v.<java.util.List: java.lang.Object set(int,java.lang.Object)>(v, v);
v = virtualinvoke v.<org.apache.commons.math.genetics.BinaryChromosome: org.apache.commons.math.genetics.AbstractListChromosome newFixedLengthChromosome(java.util.List)>(v);
return v;
}
}