public abstract class org.apache.commons.math3.genetics.Chromosome implements java.lang.Comparable<org.apache.commons.math3.genetics.Chromosome>, org.apache.commons.math3.genetics.Fitness
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: org.apache.commons.math3.genetics.Chromosome
super_class: java.lang.Object
{
private static final double NO_FITNESS;
descriptor: D
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: -Infinity
private double fitness;
descriptor: D
flags: (0x0002) ACC_PRIVATE
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
ldc -Infinity
putfield org.apache.commons.math3.genetics.Chromosome.fitness:D
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/commons/math3/genetics/Chromosome;
public double getFitness();
descriptor: ()D
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.commons.math3.genetics.Chromosome.fitness:D
ldc -Infinity
dcmpl
ifne 2
1: aload 0
aload 0
invokevirtual org.apache.commons.math3.genetics.Chromosome.fitness:()D
putfield org.apache.commons.math3.genetics.Chromosome.fitness:D
2: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.commons.math3.genetics.Chromosome.fitness:D
dreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/commons/math3/genetics/Chromosome;
public int compareTo(org.apache.commons.math3.genetics.Chromosome);
descriptor: (Lorg/apache/commons/math3/genetics/Chromosome;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.apache.commons.math3.genetics.Chromosome.getFitness:()D
aload 1
invokevirtual org.apache.commons.math3.genetics.Chromosome.getFitness:()D
invokestatic java.lang.Double.compare:(DD)I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/commons/math3/genetics/Chromosome;
0 1 1 another Lorg/apache/commons/math3/genetics/Chromosome;
MethodParameters:
Name Flags
another final
protected boolean isSame(org.apache.commons.math3.genetics.Chromosome);
descriptor: (Lorg/apache/commons/math3/genetics/Chromosome;)Z
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/commons/math3/genetics/Chromosome;
0 1 1 another Lorg/apache/commons/math3/genetics/Chromosome;
MethodParameters:
Name Flags
another final
protected org.apache.commons.math3.genetics.Chromosome findSameChromosome(org.apache.commons.math3.genetics.Population);
descriptor: (Lorg/apache/commons/math3/genetics/Population;)Lorg/apache/commons/math3/genetics/Chromosome;
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface org.apache.commons.math3.genetics.Population.iterator:()Ljava/util/Iterator;
astore 3
goto 4
StackMap locals: org.apache.commons.math3.genetics.Chromosome org.apache.commons.math3.genetics.Population top java.util.Iterator
StackMap stack:
1: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.commons.math3.genetics.Chromosome
astore 2
start local 2 2: aload 0
aload 2
invokevirtual org.apache.commons.math3.genetics.Chromosome.isSame:(Lorg/apache/commons/math3/genetics/Chromosome;)Z
ifeq 4
3: aload 2
areturn
end local 2 4: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
5: aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/commons/math3/genetics/Chromosome;
0 6 1 population Lorg/apache/commons/math3/genetics/Population;
2 4 2 anotherChr Lorg/apache/commons/math3/genetics/Chromosome;
MethodParameters:
Name Flags
population final
public void searchForFitnessUpdate(org.apache.commons.math3.genetics.Population);
descriptor: (Lorg/apache/commons/math3/genetics/Population;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual org.apache.commons.math3.genetics.Chromosome.findSameChromosome:(Lorg/apache/commons/math3/genetics/Population;)Lorg/apache/commons/math3/genetics/Chromosome;
astore 2
start local 2 1: aload 2
ifnull 3
2: aload 0
aload 2
invokevirtual org.apache.commons.math3.genetics.Chromosome.getFitness:()D
putfield org.apache.commons.math3.genetics.Chromosome.fitness:D
3: StackMap locals: org.apache.commons.math3.genetics.Chromosome
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/commons/math3/genetics/Chromosome;
0 4 1 population Lorg/apache/commons/math3/genetics/Population;
1 4 2 sameChromosome Lorg/apache/commons/math3/genetics/Chromosome;
MethodParameters:
Name Flags
population final
public int compareTo(java.lang.Object);
descriptor: (Ljava/lang/Object;)I
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
checkcast org.apache.commons.math3.genetics.Chromosome
invokevirtual org.apache.commons.math3.genetics.Chromosome.compareTo:(Lorg/apache/commons/math3/genetics/Chromosome;)I
ireturn
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Ljava/lang/Object;Ljava/lang/Comparable<Lorg/apache/commons/math3/genetics/Chromosome;>;Lorg/apache/commons/math3/genetics/Fitness;
SourceFile: "Chromosome.java"