public abstract class org.apache.commons.math3.genetics.RandomKey<T> extends org.apache.commons.math3.genetics.AbstractListChromosome<java.lang.Double> implements org.apache.commons.math3.genetics.PermutationChromosome<T>
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: org.apache.commons.math3.genetics.RandomKey
super_class: org.apache.commons.math3.genetics.AbstractListChromosome
{
private final java.util.List<java.lang.Double> sortedRepresentation;
descriptor: Ljava/util/List;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/List<Ljava/lang/Double;>;
private final java.util.List<java.lang.Integer> baseSeqPermutation;
descriptor: Ljava/util/List;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/List<Ljava/lang/Integer;>;
public void <init>(java.util.List<java.lang.Double>);
descriptor: (Ljava/util/List;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial org.apache.commons.math3.genetics.AbstractListChromosome.<init>:(Ljava/util/List;)V
1: new java.util.ArrayList
dup
aload 0
invokevirtual org.apache.commons.math3.genetics.RandomKey.getRepresentation:()Ljava/util/List;
invokespecial java.util.ArrayList.<init>:(Ljava/util/Collection;)V
astore 2
start local 2 2: aload 2
invokestatic java.util.Collections.sort:(Ljava/util/List;)V
3: aload 0
aload 2
invokestatic java.util.Collections.unmodifiableList:(Ljava/util/List;)Ljava/util/List;
putfield org.apache.commons.math3.genetics.RandomKey.sortedRepresentation:Ljava/util/List;
4: aload 0
5: aload 0
invokevirtual org.apache.commons.math3.genetics.RandomKey.getLength:()I
invokestatic org.apache.commons.math3.genetics.RandomKey.baseSequence:(I)Ljava/util/List;
aload 0
invokevirtual org.apache.commons.math3.genetics.RandomKey.getRepresentation:()Ljava/util/List;
aload 0
getfield org.apache.commons.math3.genetics.RandomKey.sortedRepresentation:Ljava/util/List;
invokestatic org.apache.commons.math3.genetics.RandomKey.decodeGeneric:(Ljava/util/List;Ljava/util/List;Ljava/util/List;)Ljava/util/List;
6: invokestatic java.util.Collections.unmodifiableList:(Ljava/util/List;)Ljava/util/List;
putfield org.apache.commons.math3.genetics.RandomKey.baseSeqPermutation:Ljava/util/List;
7: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/apache/commons/math3/genetics/RandomKey<TT;>;
0 8 1 representation Ljava/util/List<Ljava/lang/Double;>;
2 8 2 sortedRepr Ljava/util/List<Ljava/lang/Double;>;
Exceptions:
throws org.apache.commons.math3.genetics.InvalidRepresentationException
Signature: (Ljava/util/List<Ljava/lang/Double;>;)V
MethodParameters:
Name Flags
representation final
public void <init>(java.lang.Double[]);
descriptor: ([Ljava/lang/Double;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
invokespecial org.apache.commons.math3.genetics.RandomKey.<init>:(Ljava/util/List;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/commons/math3/genetics/RandomKey<TT;>;
0 2 1 representation [Ljava/lang/Double;
Exceptions:
throws org.apache.commons.math3.genetics.InvalidRepresentationException
MethodParameters:
Name Flags
representation final
public java.util.List<T> decode(java.util.List<T>);
descriptor: (Ljava/util/List;)Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
aload 0
invokevirtual org.apache.commons.math3.genetics.RandomKey.getRepresentation:()Ljava/util/List;
aload 0
getfield org.apache.commons.math3.genetics.RandomKey.sortedRepresentation:Ljava/util/List;
invokestatic org.apache.commons.math3.genetics.RandomKey.decodeGeneric:(Ljava/util/List;Ljava/util/List;Ljava/util/List;)Ljava/util/List;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/commons/math3/genetics/RandomKey<TT;>;
0 1 1 sequence Ljava/util/List<TT;>;
Signature: (Ljava/util/List<TT;>;)Ljava/util/List<TT;>;
MethodParameters:
Name Flags
sequence final
private static <S> java.util.List<S> decodeGeneric(java.util.List<S>, java.util.List<java.lang.Double>, java.util.List<java.lang.Double>);
descriptor: (Ljava/util/List;Ljava/util/List;Ljava/util/List;)Ljava/util/List;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokeinterface java.util.List.size:()I
istore 3
start local 3 1: aload 1
invokeinterface java.util.List.size:()I
iload 3
if_icmpeq 3
2: new org.apache.commons.math3.exception.DimensionMismatchException
dup
aload 1
invokeinterface java.util.List.size:()I
iload 3
invokespecial org.apache.commons.math3.exception.DimensionMismatchException.<init>:(II)V
athrow
3: StackMap locals: int
StackMap stack:
aload 2
invokeinterface java.util.List.size:()I
iload 3
if_icmpeq 5
4: new org.apache.commons.math3.exception.DimensionMismatchException
dup
aload 2
invokeinterface java.util.List.size:()I
iload 3
invokespecial org.apache.commons.math3.exception.DimensionMismatchException.<init>:(II)V
athrow
5: StackMap locals:
StackMap stack:
new java.util.ArrayList
dup
aload 1
invokespecial java.util.ArrayList.<init>:(Ljava/util/Collection;)V
astore 4
start local 4 6: new java.util.ArrayList
dup
iload 3
invokespecial java.util.ArrayList.<init>:(I)V
astore 5
start local 5 7: iconst_0
istore 6
start local 6 8: goto 13
9: StackMap locals: java.util.List java.util.List int
StackMap stack:
aload 4
aload 2
iload 6
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
invokeinterface java.util.List.indexOf:(Ljava/lang/Object;)I
istore 7
start local 7 10: aload 5
aload 0
iload 7
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
11: aload 4
iload 7
aconst_null
invokeinterface java.util.List.set:(ILjava/lang/Object;)Ljava/lang/Object;
pop
end local 7 12: iinc 6 1
StackMap locals:
StackMap stack:
13: iload 6
iload 3
if_icmplt 9
end local 6 14: aload 5
areturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 sequence Ljava/util/List<TS;>;
0 15 1 representation Ljava/util/List<Ljava/lang/Double;>;
0 15 2 sortedRepr Ljava/util/List<Ljava/lang/Double;>;
1 15 3 l I
6 15 4 reprCopy Ljava/util/List<Ljava/lang/Double;>;
7 15 5 res Ljava/util/List<TS;>;
8 14 6 i I
10 12 7 index I
Exceptions:
throws org.apache.commons.math3.exception.DimensionMismatchException
Signature: <S:Ljava/lang/Object;>(Ljava/util/List<TS;>;Ljava/util/List<Ljava/lang/Double;>;Ljava/util/List<Ljava/lang/Double;>;)Ljava/util/List<TS;>;
MethodParameters:
Name Flags
sequence final
representation
sortedRepr final
protected boolean isSame(org.apache.commons.math3.genetics.Chromosome);
descriptor: (Lorg/apache/commons/math3/genetics/Chromosome;)Z
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=6, args_size=2
start local 0 start local 1 0: aload 1
instanceof org.apache.commons.math3.genetics.RandomKey
ifne 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 1
checkcast org.apache.commons.math3.genetics.RandomKey
astore 2
start local 2 3: aload 0
invokevirtual org.apache.commons.math3.genetics.RandomKey.getLength:()I
aload 2
invokevirtual org.apache.commons.math3.genetics.RandomKey.getLength:()I
if_icmpeq 5
4: iconst_0
ireturn
5: StackMap locals: org.apache.commons.math3.genetics.RandomKey
StackMap stack:
aload 0
getfield org.apache.commons.math3.genetics.RandomKey.baseSeqPermutation:Ljava/util/List;
astore 3
start local 3 6: aload 2
getfield org.apache.commons.math3.genetics.RandomKey.baseSeqPermutation:Ljava/util/List;
astore 4
start local 4 7: iconst_0
istore 5
start local 5 8: goto 12
9: StackMap locals: java.util.List java.util.List int
StackMap stack:
aload 3
iload 5
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
aload 4
iload 5
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
if_acmpeq 11
10: iconst_0
ireturn
11: StackMap locals:
StackMap stack:
iinc 5 1
StackMap locals:
StackMap stack:
12: iload 5
aload 0
invokevirtual org.apache.commons.math3.genetics.RandomKey.getLength:()I
if_icmplt 9
end local 5 13: iconst_1
ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lorg/apache/commons/math3/genetics/RandomKey<TT;>;
0 14 1 another Lorg/apache/commons/math3/genetics/Chromosome;
3 14 2 anotherRk Lorg/apache/commons/math3/genetics/RandomKey<*>;
6 14 3 thisPerm Ljava/util/List<Ljava/lang/Integer;>;
7 14 4 anotherPerm Ljava/util/List<Ljava/lang/Integer;>;
8 13 5 i I
MethodParameters:
Name Flags
another final
protected void checkValidity(java.util.List<java.lang.Double>);
descriptor: (Ljava/util/List;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=8, locals=5, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 4
goto 6
StackMap locals: org.apache.commons.math3.genetics.RandomKey java.util.List top top java.util.Iterator
StackMap stack:
1: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.Double
invokevirtual java.lang.Double.doubleValue:()D
dstore 2
start local 2 2: dload 2
dconst_0
dcmpg
iflt 3
dload 2
dconst_1
dcmpl
ifle 6
3: StackMap locals: org.apache.commons.math3.genetics.RandomKey java.util.List double java.util.Iterator
StackMap stack:
new org.apache.commons.math3.genetics.InvalidRepresentationException
dup
getstatic org.apache.commons.math3.exception.util.LocalizedFormats.OUT_OF_RANGE_SIMPLE:Lorg/apache/commons/math3/exception/util/LocalizedFormats;
iconst_3
anewarray java.lang.Object
dup
iconst_0
4: dload 2
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
aastore
dup
iconst_1
iconst_0
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_2
iconst_1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
5: aastore
invokespecial org.apache.commons.math3.genetics.InvalidRepresentationException.<init>:(Lorg/apache/commons/math3/exception/util/Localizable;[Ljava/lang/Object;)V
athrow
end local 2 6: StackMap locals: org.apache.commons.math3.genetics.RandomKey java.util.List top top java.util.Iterator
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
7: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/apache/commons/math3/genetics/RandomKey<TT;>;
0 8 1 chromosomeRepresentation Ljava/util/List<Ljava/lang/Double;>;
2 6 2 val D
Exceptions:
throws org.apache.commons.math3.genetics.InvalidRepresentationException
Signature: (Ljava/util/List<Ljava/lang/Double;>;)V
MethodParameters:
Name Flags
chromosomeRepresentation final
public static final java.util.List<java.lang.Double> randomPermutation(int);
descriptor: (I)Ljava/util/List;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
Code:
stack=3, locals=3, args_size=1
start local 0 0: new java.util.ArrayList
dup
iload 0
invokespecial java.util.ArrayList.<init>:(I)V
astore 1
start local 1 1: iconst_0
istore 2
start local 2 2: goto 5
3: StackMap locals: java.util.List int
StackMap stack:
aload 1
invokestatic org.apache.commons.math3.genetics.GeneticAlgorithm.getRandomGenerator:()Lorg/apache/commons/math3/random/RandomGenerator;
invokeinterface org.apache.commons.math3.random.RandomGenerator.nextDouble:()D
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
4: iinc 2 1
StackMap locals:
StackMap stack:
5: iload 2
iload 0
if_icmplt 3
end local 2 6: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 l I
1 7 1 repr Ljava/util/List<Ljava/lang/Double;>;
2 6 2 i I
Signature: (I)Ljava/util/List<Ljava/lang/Double;>;
MethodParameters:
Name Flags
l final
public static final java.util.List<java.lang.Double> identityPermutation(int);
descriptor: (I)Ljava/util/List;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
Code:
stack=5, locals=3, args_size=1
start local 0 0: new java.util.ArrayList
dup
iload 0
invokespecial java.util.ArrayList.<init>:(I)V
astore 1
start local 1 1: iconst_0
istore 2
start local 2 2: goto 5
3: StackMap locals: java.util.List int
StackMap stack:
aload 1
iload 2
i2d
iload 0
i2d
ddiv
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
4: iinc 2 1
StackMap locals:
StackMap stack:
5: iload 2
iload 0
if_icmplt 3
end local 2 6: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 l I
1 7 1 repr Ljava/util/List<Ljava/lang/Double;>;
2 6 2 i I
Signature: (I)Ljava/util/List<Ljava/lang/Double;>;
MethodParameters:
Name Flags
l final
public static <S> java.util.List<java.lang.Double> comparatorPermutation(java.util.List<S>, java.util.Comparator<S>);
descriptor: (Ljava/util/List;Ljava/util/Comparator;)Ljava/util/List;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: new java.util.ArrayList
dup
aload 0
invokespecial java.util.ArrayList.<init>:(Ljava/util/Collection;)V
astore 2
start local 2 1: aload 2
aload 1
invokestatic java.util.Collections.sort:(Ljava/util/List;Ljava/util/Comparator;)V
2: aload 0
aload 2
invokestatic org.apache.commons.math3.genetics.RandomKey.inducedPermutation:(Ljava/util/List;Ljava/util/List;)Ljava/util/List;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 data Ljava/util/List<TS;>;
0 3 1 comparator Ljava/util/Comparator<TS;>;
1 3 2 sortedData Ljava/util/List<TS;>;
Signature: <S:Ljava/lang/Object;>(Ljava/util/List<TS;>;Ljava/util/Comparator<TS;>;)Ljava/util/List<Ljava/lang/Double;>;
MethodParameters:
Name Flags
data final
comparator final
public static <S> java.util.List<java.lang.Double> inducedPermutation(java.util.List<S>, java.util.List<S>);
descriptor: (Ljava/util/List;Ljava/util/List;)Ljava/util/List;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=7, args_size=2
start local 0 start local 1 0: aload 0
invokeinterface java.util.List.size:()I
aload 1
invokeinterface java.util.List.size:()I
if_icmpeq 2
1: new org.apache.commons.math3.exception.DimensionMismatchException
dup
aload 1
invokeinterface java.util.List.size:()I
aload 0
invokeinterface java.util.List.size:()I
invokespecial org.apache.commons.math3.exception.DimensionMismatchException.<init>:(II)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
invokeinterface java.util.List.size:()I
istore 2
start local 2 3: new java.util.ArrayList
dup
aload 0
invokespecial java.util.ArrayList.<init>:(Ljava/util/Collection;)V
astore 3
start local 3 4: iload 2
anewarray java.lang.Double
astore 4
start local 4 5: iconst_0
istore 5
start local 5 6: goto 13
7: StackMap locals: java.util.List java.util.List int java.util.List java.lang.Double[] int
StackMap stack:
aload 3
aload 1
iload 5
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
invokeinterface java.util.List.indexOf:(Ljava/lang/Object;)I
istore 6
start local 6 8: iload 6
iconst_m1
if_icmpne 10
9: new org.apache.commons.math3.exception.MathIllegalArgumentException
dup
getstatic org.apache.commons.math3.exception.util.LocalizedFormats.DIFFERENT_ORIG_AND_PERMUTED_DATA:Lorg/apache/commons/math3/exception/util/LocalizedFormats;
iconst_0
anewarray java.lang.Object
invokespecial org.apache.commons.math3.exception.MathIllegalArgumentException.<init>:(Lorg/apache/commons/math3/exception/util/Localizable;[Ljava/lang/Object;)V
athrow
10: StackMap locals: int
StackMap stack:
aload 4
iload 6
iload 5
i2d
iload 2
i2d
ddiv
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
aastore
11: aload 3
iload 6
aconst_null
invokeinterface java.util.List.set:(ILjava/lang/Object;)Ljava/lang/Object;
pop
end local 6 12: iinc 5 1
StackMap locals:
StackMap stack:
13: iload 5
iload 2
if_icmplt 7
end local 5 14: aload 4
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 originalData Ljava/util/List<TS;>;
0 15 1 permutedData Ljava/util/List<TS;>;
3 15 2 l I
4 15 3 origDataCopy Ljava/util/List<TS;>;
5 15 4 res [Ljava/lang/Double;
6 14 5 i I
8 12 6 index I
Exceptions:
throws org.apache.commons.math3.exception.DimensionMismatchException, org.apache.commons.math3.exception.MathIllegalArgumentException
Signature: <S:Ljava/lang/Object;>(Ljava/util/List<TS;>;Ljava/util/List<TS;>;)Ljava/util/List<Ljava/lang/Double;>;
MethodParameters:
Name Flags
originalData final
permutedData final
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=1, args_size=1
start local 0 0: ldc "(f=%s pi=(%s))"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 0
invokevirtual org.apache.commons.math3.genetics.RandomKey.getFitness:()D
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
aastore
dup
iconst_1
aload 0
getfield org.apache.commons.math3.genetics.RandomKey.baseSeqPermutation:Ljava/util/List;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/commons/math3/genetics/RandomKey<TT;>;
private static java.util.List<java.lang.Integer> baseSequence(int);
descriptor: (I)Ljava/util/List;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: new java.util.ArrayList
dup
iload 0
invokespecial java.util.ArrayList.<init>:(I)V
astore 1
start local 1 1: iconst_0
istore 2
start local 2 2: goto 5
3: StackMap locals: java.util.List int
StackMap stack:
aload 1
iload 2
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
4: iinc 2 1
StackMap locals:
StackMap stack:
5: iload 2
iload 0
if_icmplt 3
end local 2 6: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 l I
1 7 1 baseSequence Ljava/util/List<Ljava/lang/Integer;>;
2 6 2 i I
Signature: (I)Ljava/util/List<Ljava/lang/Integer;>;
MethodParameters:
Name Flags
l final
}
Signature: <T:Ljava/lang/Object;>Lorg/apache/commons/math3/genetics/AbstractListChromosome<Ljava/lang/Double;>;Lorg/apache/commons/math3/genetics/PermutationChromosome<TT;>;
SourceFile: "RandomKey.java"