public class oadd.org.apache.commons.math.genetics.FixedGenerationCount extends java.lang.Object implements oadd.org.apache.commons.math.genetics.StoppingCondition
{
private int numGenerations;
private final int maxGenerations;
public void <init>(int) throws oadd.org.apache.commons.math.exception.NumberIsTooSmallException
{
oadd.org.apache.commons.math.genetics.FixedGenerationCount v;
int v;
java.lang.Integer v, v;
oadd.org.apache.commons.math.exception.NumberIsTooSmallException v;
v := @this: oadd.org.apache.commons.math.genetics.FixedGenerationCount;
v := @parameter: int;
specialinvoke v.<java.lang.Object: void <init>()>();
v.<oadd.org.apache.commons.math.genetics.FixedGenerationCount: int numGenerations> = 0;
if v > 0 goto label;
v = new oadd.org.apache.commons.math.exception.NumberIsTooSmallException;
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(v);
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(1);
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.FixedGenerationCount: int maxGenerations> = v;
return;
}
public boolean isSatisfied(oadd.org.apache.commons.math.genetics.Population)
{
oadd.org.apache.commons.math.genetics.FixedGenerationCount v;
oadd.org.apache.commons.math.genetics.Population v;
int v, v, v, v;
v := @this: oadd.org.apache.commons.math.genetics.FixedGenerationCount;
v := @parameter: oadd.org.apache.commons.math.genetics.Population;
v = v.<oadd.org.apache.commons.math.genetics.FixedGenerationCount: int numGenerations>;
v = v.<oadd.org.apache.commons.math.genetics.FixedGenerationCount: int maxGenerations>;
if v >= v goto label;
v = v.<oadd.org.apache.commons.math.genetics.FixedGenerationCount: int numGenerations>;
v = v + 1;
v.<oadd.org.apache.commons.math.genetics.FixedGenerationCount: int numGenerations> = v;
return 0;
label:
return 1;
}
public int getNumGenerations()
{
int v;
oadd.org.apache.commons.math.genetics.FixedGenerationCount v;
v := @this: oadd.org.apache.commons.math.genetics.FixedGenerationCount;
v = v.<oadd.org.apache.commons.math.genetics.FixedGenerationCount: int numGenerations>;
return v;
}
}