public abstract class oadd.org.apache.commons.math.genetics.ListPopulation extends java.lang.Object implements oadd.org.apache.commons.math.genetics.Population
{
private java.util.List chromosomes;
private int populationLimit;
public void <init>(int) throws oadd.org.apache.commons.math.exception.NotPositiveException
{
int v;
java.util.List v;
oadd.org.apache.commons.math.genetics.ListPopulation v;
v := @this: oadd.org.apache.commons.math.genetics.ListPopulation;
v := @parameter: int;
v = staticinvoke <java.util.Collections: java.util.List emptyList()>();
specialinvoke v.<oadd.org.apache.commons.math.genetics.ListPopulation: void <init>(java.util.List,int)>(v, v);
return;
}
public void <init>(java.util.List, int) throws oadd.org.apache.commons.math.exception.NullArgumentException, oadd.org.apache.commons.math.exception.NotPositiveException, oadd.org.apache.commons.math.exception.NumberIsTooLargeException
{
oadd.org.apache.commons.math.exception.NumberIsTooLargeException v;
oadd.org.apache.commons.math.genetics.ListPopulation v;
java.lang.Integer v, v, v;
java.util.ArrayList v;
oadd.org.apache.commons.math.exception.NullArgumentException v;
java.util.List v, v;
oadd.org.apache.commons.math.exception.NotPositiveException v;
int v, v, v;
oadd.org.apache.commons.math.exception.util.LocalizedFormats v, v;
v := @this: oadd.org.apache.commons.math.genetics.ListPopulation;
v := @parameter: java.util.List;
v := @parameter: int;
specialinvoke v.<java.lang.Object: void <init>()>();
if v != null goto label;
v = new oadd.org.apache.commons.math.exception.NullArgumentException;
specialinvoke v.<oadd.org.apache.commons.math.exception.NullArgumentException: void <init>()>();
throw v;
label:
if v > 0 goto label;
v = new oadd.org.apache.commons.math.exception.NotPositiveException;
v = <oadd.org.apache.commons.math.exception.util.LocalizedFormats: oadd.org.apache.commons.math.exception.util.LocalizedFormats POPULATION_LIMIT_NOT_POSITIVE>;
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(v);
specialinvoke v.<oadd.org.apache.commons.math.exception.NotPositiveException: void <init>(oadd.org.apache.commons.math.exception.util.Localizable,java.lang.Number)>(v, v);
throw v;
label:
v = interfaceinvoke v.<java.util.List: int size()>();
if v <= v goto label;
v = new oadd.org.apache.commons.math.exception.NumberIsTooLargeException;
v = <oadd.org.apache.commons.math.exception.util.LocalizedFormats: oadd.org.apache.commons.math.exception.util.LocalizedFormats LIST_OF_CHROMOSOMES_BIGGER_THAN_POPULATION_SIZE>;
v = interfaceinvoke v.<java.util.List: int size()>();
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(v);
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(v);
specialinvoke v.<oadd.org.apache.commons.math.exception.NumberIsTooLargeException: void <init>(oadd.org.apache.commons.math.exception.util.Localizable,java.lang.Number,java.lang.Number,boolean)>(v, v, v, 0);
throw v;
label:
v.<oadd.org.apache.commons.math.genetics.ListPopulation: int populationLimit> = v;
v = new java.util.ArrayList;
specialinvoke v.<java.util.ArrayList: void <init>(int)>(v);
v.<oadd.org.apache.commons.math.genetics.ListPopulation: java.util.List chromosomes> = v;
v = v.<oadd.org.apache.commons.math.genetics.ListPopulation: java.util.List chromosomes>;
interfaceinvoke v.<java.util.List: boolean addAll(java.util.Collection)>(v);
return;
}
public void setChromosomes(java.util.List) throws oadd.org.apache.commons.math.exception.NullArgumentException, oadd.org.apache.commons.math.exception.NumberIsTooLargeException
{
oadd.org.apache.commons.math.exception.NumberIsTooLargeException v;
oadd.org.apache.commons.math.genetics.ListPopulation v;
java.lang.Integer v, v;
oadd.org.apache.commons.math.exception.NullArgumentException v;
java.util.List v, v, v;
int v, v, v, v;
oadd.org.apache.commons.math.exception.util.LocalizedFormats v;
v := @this: oadd.org.apache.commons.math.genetics.ListPopulation;
v := @parameter: java.util.List;
if v != null goto label;
v = new oadd.org.apache.commons.math.exception.NullArgumentException;
specialinvoke v.<oadd.org.apache.commons.math.exception.NullArgumentException: void <init>()>();
throw v;
label:
v = interfaceinvoke v.<java.util.List: int size()>();
v = v.<oadd.org.apache.commons.math.genetics.ListPopulation: int populationLimit>;
if v <= v goto label;
v = new oadd.org.apache.commons.math.exception.NumberIsTooLargeException;
v = <oadd.org.apache.commons.math.exception.util.LocalizedFormats: oadd.org.apache.commons.math.exception.util.LocalizedFormats LIST_OF_CHROMOSOMES_BIGGER_THAN_POPULATION_SIZE>;
v = interfaceinvoke v.<java.util.List: int size()>();
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(v);
v = v.<oadd.org.apache.commons.math.genetics.ListPopulation: int populationLimit>;
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(v);
specialinvoke v.<oadd.org.apache.commons.math.exception.NumberIsTooLargeException: void <init>(oadd.org.apache.commons.math.exception.util.Localizable,java.lang.Number,java.lang.Number,boolean)>(v, v, v, 0);
throw v;
label:
v = v.<oadd.org.apache.commons.math.genetics.ListPopulation: java.util.List chromosomes>;
interfaceinvoke v.<java.util.List: void clear()>();
v = v.<oadd.org.apache.commons.math.genetics.ListPopulation: java.util.List chromosomes>;
interfaceinvoke v.<java.util.List: boolean addAll(java.util.Collection)>(v);
return;
}
public void addChromosomes(java.util.Collection) throws oadd.org.apache.commons.math.exception.NumberIsTooLargeException
{
oadd.org.apache.commons.math.exception.NumberIsTooLargeException v;
java.util.Collection v;
oadd.org.apache.commons.math.genetics.ListPopulation v;
java.lang.Integer v, v;
java.util.List v, v, v;
int v, v, v, v, v, v;
oadd.org.apache.commons.math.exception.util.LocalizedFormats v;
v := @this: oadd.org.apache.commons.math.genetics.ListPopulation;
v := @parameter: java.util.Collection;
v = v.<oadd.org.apache.commons.math.genetics.ListPopulation: java.util.List chromosomes>;
v = interfaceinvoke v.<java.util.List: int size()>();
v = interfaceinvoke v.<java.util.Collection: int size()>();
v = v + v;
v = v.<oadd.org.apache.commons.math.genetics.ListPopulation: int populationLimit>;
if v <= v goto label;
v = new oadd.org.apache.commons.math.exception.NumberIsTooLargeException;
v = <oadd.org.apache.commons.math.exception.util.LocalizedFormats: oadd.org.apache.commons.math.exception.util.LocalizedFormats LIST_OF_CHROMOSOMES_BIGGER_THAN_POPULATION_SIZE>;
v = v.<oadd.org.apache.commons.math.genetics.ListPopulation: java.util.List chromosomes>;
v = interfaceinvoke v.<java.util.List: int size()>();
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(v);
v = v.<oadd.org.apache.commons.math.genetics.ListPopulation: int populationLimit>;
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(v);
specialinvoke v.<oadd.org.apache.commons.math.exception.NumberIsTooLargeException: void <init>(oadd.org.apache.commons.math.exception.util.Localizable,java.lang.Number,java.lang.Number,boolean)>(v, v, v, 0);
throw v;
label:
v = v.<oadd.org.apache.commons.math.genetics.ListPopulation: java.util.List chromosomes>;
interfaceinvoke v.<java.util.List: boolean addAll(java.util.Collection)>(v);
return;
}
public java.util.List getChromosomes()
{
java.util.List v, v;
oadd.org.apache.commons.math.genetics.ListPopulation v;
v := @this: oadd.org.apache.commons.math.genetics.ListPopulation;
v = v.<oadd.org.apache.commons.math.genetics.ListPopulation: java.util.List chromosomes>;
v = staticinvoke <java.util.Collections: java.util.List unmodifiableList(java.util.List)>(v);
return v;
}
protected java.util.List getChromosomeList()
{
java.util.List v;
oadd.org.apache.commons.math.genetics.ListPopulation v;
v := @this: oadd.org.apache.commons.math.genetics.ListPopulation;
v = v.<oadd.org.apache.commons.math.genetics.ListPopulation: java.util.List chromosomes>;
return v;
}
public void addChromosome(oadd.org.apache.commons.math.genetics.Chromosome) throws oadd.org.apache.commons.math.exception.NumberIsTooLargeException
{
oadd.org.apache.commons.math.exception.NumberIsTooLargeException v;
oadd.org.apache.commons.math.genetics.ListPopulation v;
java.lang.Integer v, v;
java.util.List v, v, v;
oadd.org.apache.commons.math.genetics.Chromosome v;
int v, v, v, v;
oadd.org.apache.commons.math.exception.util.LocalizedFormats v;
v := @this: oadd.org.apache.commons.math.genetics.ListPopulation;
v := @parameter: oadd.org.apache.commons.math.genetics.Chromosome;
v = v.<oadd.org.apache.commons.math.genetics.ListPopulation: java.util.List chromosomes>;
v = interfaceinvoke v.<java.util.List: int size()>();
v = v.<oadd.org.apache.commons.math.genetics.ListPopulation: int populationLimit>;
if v < v goto label;
v = new oadd.org.apache.commons.math.exception.NumberIsTooLargeException;
v = <oadd.org.apache.commons.math.exception.util.LocalizedFormats: oadd.org.apache.commons.math.exception.util.LocalizedFormats LIST_OF_CHROMOSOMES_BIGGER_THAN_POPULATION_SIZE>;
v = v.<oadd.org.apache.commons.math.genetics.ListPopulation: java.util.List chromosomes>;
v = interfaceinvoke v.<java.util.List: int size()>();
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(v);
v = v.<oadd.org.apache.commons.math.genetics.ListPopulation: int populationLimit>;
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(v);
specialinvoke v.<oadd.org.apache.commons.math.exception.NumberIsTooLargeException: void <init>(oadd.org.apache.commons.math.exception.util.Localizable,java.lang.Number,java.lang.Number,boolean)>(v, v, v, 0);
throw v;
label:
v = v.<oadd.org.apache.commons.math.genetics.ListPopulation: java.util.List chromosomes>;
interfaceinvoke v.<java.util.List: boolean add(java.lang.Object)>(v);
return;
}
public oadd.org.apache.commons.math.genetics.Chromosome getFittestChromosome()
{
java.util.Iterator v;
oadd.org.apache.commons.math.genetics.ListPopulation v;
java.util.List v, v;
int v;
java.lang.Object v, v;
boolean v;
v := @this: oadd.org.apache.commons.math.genetics.ListPopulation;
v = v.<oadd.org.apache.commons.math.genetics.ListPopulation: java.util.List chromosomes>;
v = interfaceinvoke v.<java.util.List: java.lang.Object get(int)>(0);
v = v.<oadd.org.apache.commons.math.genetics.ListPopulation: java.util.List chromosomes>;
v = interfaceinvoke v.<java.util.List: java.util.Iterator iterator()>();
label:
v = interfaceinvoke v.<java.util.Iterator: boolean hasNext()>();
if v == 0 goto label;
v = interfaceinvoke v.<java.util.Iterator: java.lang.Object next()>();
v = virtualinvoke v.<oadd.org.apache.commons.math.genetics.Chromosome: int compareTo(oadd.org.apache.commons.math.genetics.Chromosome)>(v);
if v <= 0 goto label;
v = v;
goto label;
label:
return v;
}
public int getPopulationLimit()
{
int v;
oadd.org.apache.commons.math.genetics.ListPopulation v;
v := @this: oadd.org.apache.commons.math.genetics.ListPopulation;
v = v.<oadd.org.apache.commons.math.genetics.ListPopulation: int populationLimit>;
return v;
}
public void setPopulationLimit(int) throws oadd.org.apache.commons.math.exception.NotPositiveException, oadd.org.apache.commons.math.exception.NumberIsTooSmallException
{
oadd.org.apache.commons.math.genetics.ListPopulation v;
java.lang.Integer v, v, v;
java.util.List v, v;
oadd.org.apache.commons.math.exception.NotPositiveException v;
int v, v, v;
oadd.org.apache.commons.math.exception.util.LocalizedFormats v;
oadd.org.apache.commons.math.exception.NumberIsTooSmallException v;
v := @this: oadd.org.apache.commons.math.genetics.ListPopulation;
v := @parameter: int;
if v > 0 goto label;
v = new oadd.org.apache.commons.math.exception.NotPositiveException;
v = <oadd.org.apache.commons.math.exception.util.LocalizedFormats: oadd.org.apache.commons.math.exception.util.LocalizedFormats POPULATION_LIMIT_NOT_POSITIVE>;
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(v);
specialinvoke v.<oadd.org.apache.commons.math.exception.NotPositiveException: void <init>(oadd.org.apache.commons.math.exception.util.Localizable,java.lang.Number)>(v, v);
throw v;
label:
v = v.<oadd.org.apache.commons.math.genetics.ListPopulation: java.util.List chromosomes>;
v = interfaceinvoke v.<java.util.List: int size()>();
if v >= v goto label;
v = new oadd.org.apache.commons.math.exception.NumberIsTooSmallException;
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(v);
v = v.<oadd.org.apache.commons.math.genetics.ListPopulation: java.util.List chromosomes>;
v = interfaceinvoke v.<java.util.List: int size()>();
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(v);
specialinvoke v.<oadd.org.apache.commons.math.exception.NumberIsTooSmallException: void <init>(java.lang.Number,java.lang.Number,boolean)>(v, v, 1);
throw v;
label:
v.<oadd.org.apache.commons.math.genetics.ListPopulation: int populationLimit> = v;
return;
}
public int getPopulationSize()
{
int v;
java.util.List v;
oadd.org.apache.commons.math.genetics.ListPopulation v;
v := @this: oadd.org.apache.commons.math.genetics.ListPopulation;
v = v.<oadd.org.apache.commons.math.genetics.ListPopulation: java.util.List chromosomes>;
v = interfaceinvoke v.<java.util.List: int size()>();
return v;
}
public java.lang.String toString()
{
java.util.List v;
java.lang.String v;
oadd.org.apache.commons.math.genetics.ListPopulation v;
v := @this: oadd.org.apache.commons.math.genetics.ListPopulation;
v = v.<oadd.org.apache.commons.math.genetics.ListPopulation: java.util.List chromosomes>;
v = virtualinvoke v.<java.lang.Object: java.lang.String toString()>();
return v;
}
public java.util.Iterator iterator()
{
java.util.List v;
java.util.Iterator v;
oadd.org.apache.commons.math.genetics.ListPopulation v;
v := @this: oadd.org.apache.commons.math.genetics.ListPopulation;
v = virtualinvoke v.<oadd.org.apache.commons.math.genetics.ListPopulation: java.util.List getChromosomes()>();
v = interfaceinvoke v.<java.util.List: java.util.Iterator iterator()>();
return v;
}
}