Skip to content

Commit 8cd7ec8

Browse files
committed
Add support for MonotonicGA and SteadyStateGA in algorithm type mappings
1 parent 3e22dd6 commit 8cd7ec8

1 file changed

Lines changed: 28 additions & 3 deletions

File tree

  • core/src/main/kotlin/org/evomaster/core

core/src/main/kotlin/org/evomaster/core/Main.kt

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -687,6 +687,12 @@ class Main {
687687
EMConfig.Algorithm.StandardGA ->
688688
Key.get(object : TypeLiteral<StandardGeneticAlgorithm<GraphQLIndividual>>() {})
689689

690+
EMConfig.Algorithm.MonotonicGA ->
691+
Key.get(object : TypeLiteral<MonotonicGeneticAlgorithm<GraphQLIndividual>>() {})
692+
693+
EMConfig.Algorithm.SteadyStateGA ->
694+
Key.get(object : TypeLiteral<SteadyStateGeneticAlgorithm<GraphQLIndividual>>() {})
695+
690696
EMConfig.Algorithm.LIPS ->
691697
Key.get(object : TypeLiteral<LIPSAlgorithm<GraphQLIndividual>>() {})
692698

@@ -728,6 +734,15 @@ class Main {
728734
EMConfig.Algorithm.MOSA ->
729735
Key.get(object : TypeLiteral<MosaAlgorithm<RPCIndividual>>() {})
730736

737+
EMConfig.Algorithm.StandardGA ->
738+
Key.get(object : TypeLiteral<StandardGeneticAlgorithm<RPCIndividual>>() {})
739+
740+
EMConfig.Algorithm.MonotonicGA ->
741+
Key.get(object : TypeLiteral<MonotonicGeneticAlgorithm<RPCIndividual>>() {})
742+
743+
EMConfig.Algorithm.SteadyStateGA ->
744+
Key.get(object : TypeLiteral<SteadyStateGeneticAlgorithm<RPCIndividual>>() {})
745+
731746
EMConfig.Algorithm.RW ->
732747
Key.get(object : TypeLiteral<RandomWalkAlgorithm<RPCIndividual>>() {})
733748

@@ -736,6 +751,7 @@ class Main {
736751

737752
EMConfig.Algorithm.MuPlusLambdaEA ->
738753
Key.get(object : TypeLiteral<MuPlusLambdaEvolutionaryAlgorithm<RPCIndividual>>() {})
754+
739755
EMConfig.Algorithm.MuLambdaEA ->
740756
Key.get(object : TypeLiteral<MuLambdaEvolutionaryAlgorithm<RPCIndividual>>(){})
741757

@@ -770,6 +786,15 @@ class Main {
770786
EMConfig.Algorithm.MOSA ->
771787
Key.get(object : TypeLiteral<MosaAlgorithm<WebIndividual>>() {})
772788

789+
EMConfig.Algorithm.StandardGA ->
790+
Key.get(object : TypeLiteral<StandardGeneticAlgorithm<WebIndividual>>() {})
791+
792+
EMConfig.Algorithm.MonotonicGA ->
793+
Key.get(object : TypeLiteral<MonotonicGeneticAlgorithm<WebIndividual>>() {})
794+
795+
EMConfig.Algorithm.SteadyStateGA ->
796+
Key.get(object : TypeLiteral<SteadyStateGeneticAlgorithm<WebIndividual>>() {})
797+
773798
EMConfig.Algorithm.RW ->
774799
Key.get(object : TypeLiteral<RandomWalkAlgorithm<WebIndividual>>() {})
775800

@@ -814,13 +839,13 @@ class Main {
814839
Key.get(object : TypeLiteral<MosaAlgorithm<RestIndividual>>() {})
815840

816841
EMConfig.Algorithm.StandardGA ->
817-
Key.get(object : TypeLiteral<MosaAlgorithm<RestIndividual>>() {})
842+
Key.get(object : TypeLiteral<StandardGeneticAlgorithm<RestIndividual>>() {})
818843

819844
EMConfig.Algorithm.MonotonicGA ->
820-
Key.get(object : TypeLiteral<MosaAlgorithm<RestIndividual>>() {})
845+
Key.get(object : TypeLiteral<MonotonicGeneticAlgorithm<RestIndividual>>() {})
821846

822847
EMConfig.Algorithm.SteadyStateGA ->
823-
Key.get(object : TypeLiteral<MosaAlgorithm<RestIndividual>>() {})
848+
Key.get(object : TypeLiteral<SteadyStateGeneticAlgorithm<RestIndividual>>() {})
824849

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

0 commit comments

Comments
 (0)