Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 46 additions & 11 deletions core/src/main/kotlin/org/evomaster/core/Main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -687,13 +687,21 @@ class Main {
EMConfig.Algorithm.StandardGA ->
Key.get(object : TypeLiteral<StandardGeneticAlgorithm<GraphQLIndividual>>() {})

EMConfig.Algorithm.MonotonicGA ->
Key.get(object : TypeLiteral<MonotonicGeneticAlgorithm<GraphQLIndividual>>() {})

EMConfig.Algorithm.SteadyStateGA ->
Key.get(object : TypeLiteral<SteadyStateGeneticAlgorithm<GraphQLIndividual>>() {})

EMConfig.Algorithm.LIPS ->
Key.get(object : TypeLiteral<org.evomaster.core.search.algorithms.LIPSAlgorithm<GraphQLIndividual>>() {})
Key.get(object : TypeLiteral<LIPSAlgorithm<GraphQLIndividual>>() {})

EMConfig.Algorithm.MuPlusLambdaEA ->
Key.get(object : TypeLiteral<MuPlusLambdaEvolutionaryAlgorithm<GraphQLIndividual>>() {})

EMConfig.Algorithm.MuLambdaEA ->
Key.get(object : TypeLiteral<org.evomaster.core.search.algorithms.MuLambdaEvolutionaryAlgorithm<GraphQLIndividual>>(){})
Key.get(object : TypeLiteral<MuLambdaEvolutionaryAlgorithm<GraphQLIndividual>>(){})

EMConfig.Algorithm.BreederGA ->
Key.get(object : TypeLiteral<BreederGeneticAlgorithm<GraphQLIndividual>>() {})

Expand Down Expand Up @@ -726,15 +734,26 @@ class Main {
EMConfig.Algorithm.MOSA ->
Key.get(object : TypeLiteral<MosaAlgorithm<RPCIndividual>>() {})

EMConfig.Algorithm.StandardGA ->
Key.get(object : TypeLiteral<StandardGeneticAlgorithm<RPCIndividual>>() {})

EMConfig.Algorithm.MonotonicGA ->
Key.get(object : TypeLiteral<MonotonicGeneticAlgorithm<RPCIndividual>>() {})

EMConfig.Algorithm.SteadyStateGA ->
Key.get(object : TypeLiteral<SteadyStateGeneticAlgorithm<RPCIndividual>>() {})

EMConfig.Algorithm.RW ->
Key.get(object : TypeLiteral<RandomWalkAlgorithm<RPCIndividual>>() {})

EMConfig.Algorithm.LIPS ->
Key.get(object : TypeLiteral<org.evomaster.core.search.algorithms.LIPSAlgorithm<RPCIndividual>>() {})
Key.get(object : TypeLiteral<LIPSAlgorithm<RPCIndividual>>() {})

EMConfig.Algorithm.MuPlusLambdaEA ->
Key.get(object : TypeLiteral<MuPlusLambdaEvolutionaryAlgorithm<RPCIndividual>>() {})

EMConfig.Algorithm.MuLambdaEA ->
Key.get(object : TypeLiteral<org.evomaster.core.search.algorithms.MuLambdaEvolutionaryAlgorithm<RPCIndividual>>(){})
Key.get(object : TypeLiteral<MuLambdaEvolutionaryAlgorithm<RPCIndividual>>(){})

EMConfig.Algorithm.BreederGA ->
Key.get(object : TypeLiteral<BreederGeneticAlgorithm<RPCIndividual>>() {})
Expand All @@ -744,6 +763,7 @@ class Main {

EMConfig.Algorithm.OnePlusLambdaLambdaGA ->
Key.get(object : TypeLiteral<OnePlusLambdaLambdaGeneticAlgorithm<RPCIndividual>>() {})

else -> throw IllegalStateException("Unrecognized algorithm ${config.algorithm}")
}
}
Expand All @@ -766,15 +786,26 @@ class Main {
EMConfig.Algorithm.MOSA ->
Key.get(object : TypeLiteral<MosaAlgorithm<WebIndividual>>() {})

EMConfig.Algorithm.StandardGA ->
Key.get(object : TypeLiteral<StandardGeneticAlgorithm<WebIndividual>>() {})

EMConfig.Algorithm.MonotonicGA ->
Key.get(object : TypeLiteral<MonotonicGeneticAlgorithm<WebIndividual>>() {})

EMConfig.Algorithm.SteadyStateGA ->
Key.get(object : TypeLiteral<SteadyStateGeneticAlgorithm<WebIndividual>>() {})

EMConfig.Algorithm.RW ->
Key.get(object : TypeLiteral<RandomWalkAlgorithm<WebIndividual>>() {})

EMConfig.Algorithm.LIPS ->
Key.get(object : TypeLiteral<org.evomaster.core.search.algorithms.LIPSAlgorithm<WebIndividual>>() {})
Key.get(object : TypeLiteral<LIPSAlgorithm<WebIndividual>>() {})

EMConfig.Algorithm.MuPlusLambdaEA ->
Key.get(object : TypeLiteral<MuPlusLambdaEvolutionaryAlgorithm<WebIndividual>>() {})

EMConfig.Algorithm.MuLambdaEA ->
Key.get(object : TypeLiteral<org.evomaster.core.search.algorithms.MuLambdaEvolutionaryAlgorithm<WebIndividual>>(){})
Key.get(object : TypeLiteral<MuLambdaEvolutionaryAlgorithm<WebIndividual>>(){})

EMConfig.Algorithm.BreederGA ->
Key.get(object : TypeLiteral<BreederGeneticAlgorithm<WebIndividual>>() {})
Expand All @@ -784,6 +815,7 @@ class Main {

EMConfig.Algorithm.OnePlusLambdaLambdaGA ->
Key.get(object : TypeLiteral<OnePlusLambdaLambdaGeneticAlgorithm<WebIndividual>>() {})

else -> throw IllegalStateException("Unrecognized algorithm ${config.algorithm}")
}
}
Expand All @@ -807,22 +839,25 @@ class Main {
Key.get(object : TypeLiteral<MosaAlgorithm<RestIndividual>>() {})

EMConfig.Algorithm.StandardGA ->
Key.get(object : TypeLiteral<MosaAlgorithm<RestIndividual>>() {})
Key.get(object : TypeLiteral<StandardGeneticAlgorithm<RestIndividual>>() {})

EMConfig.Algorithm.MonotonicGA ->
Key.get(object : TypeLiteral<MosaAlgorithm<RestIndividual>>() {})
Key.get(object : TypeLiteral<MonotonicGeneticAlgorithm<RestIndividual>>() {})

EMConfig.Algorithm.SteadyStateGA ->
Key.get(object : TypeLiteral<MosaAlgorithm<RestIndividual>>() {})
Key.get(object : TypeLiteral<SteadyStateGeneticAlgorithm<RestIndividual>>() {})

EMConfig.Algorithm.RW ->
Key.get(object : TypeLiteral<RandomWalkAlgorithm<RestIndividual>>() {})

EMConfig.Algorithm.LIPS ->
Key.get(object : TypeLiteral<org.evomaster.core.search.algorithms.LIPSAlgorithm<RestIndividual>>() {})
Key.get(object : TypeLiteral<LIPSAlgorithm<RestIndividual>>() {})

EMConfig.Algorithm.MuPlusLambdaEA ->
Key.get(object : TypeLiteral<MuPlusLambdaEvolutionaryAlgorithm<RestIndividual>>() {})

EMConfig.Algorithm.MuLambdaEA ->
Key.get(object : TypeLiteral<org.evomaster.core.search.algorithms.MuLambdaEvolutionaryAlgorithm<RestIndividual>>(){})
Key.get(object : TypeLiteral<MuLambdaEvolutionaryAlgorithm<RestIndividual>>(){})

EMConfig.Algorithm.BreederGA ->
Key.get(object : TypeLiteral<BreederGeneticAlgorithm<RestIndividual>>() {})
Expand Down
Loading