-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mutationの選択オプションを追加 #813
Mutationの選択オプションを追加 #813
Conversation
public Mutation.Type convertToField(final String value) { | ||
if (value == null) { | ||
return null; | ||
} | ||
return Mutation.Type.valueOf(value); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this Pull Request, this code fragment in In this Pull Request, above code fragment is added to below clone set,
kGenProg/src/main/java/jp/kusumotolab/kgenprog/Configuration.java
Lines 1062 to 1067 in f485506
public SecondVariantSelectionStrategy.Strategy convertToField(final String value) { | |
if (value == null) { | |
return null; | |
} | |
return SecondVariantSelectionStrategy.Strategy.valueOf(value); | |
} |
kGenProg/src/main/java/jp/kusumotolab/kgenprog/Configuration.java
Lines 1022 to 1027 in f485506
public Crossover.Type convertToField(final String value) { | |
if (value == null) { | |
return null; | |
} | |
return Crossover.Type.valueOf(value); | |
} |
kGenProg/src/main/java/jp/kusumotolab/kgenprog/Configuration.java
Lines 1042 to 1047 in f485506
public FirstVariantSelectionStrategy.Strategy convertToField(final String value) { | |
if (value == null) { | |
return null; | |
} | |
return FirstVariantSelectionStrategy.Strategy.valueOf(value); | |
} |
kGenProg/src/main/java/jp/kusumotolab/kgenprog/Configuration.java
Lines 963 to 968 in f485506
public Scope.Type convertToField(final String value) { | |
if (value == null) { | |
return null; | |
} | |
return Scope.Type.valueOf(value); | |
} |
Why don't you merge it?
public String convertFromField(final Mutation.Type value) { | ||
if (value == null) { | ||
return null; | ||
} | ||
return value.toString(); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this Pull Request, this code fragment in In this Pull Request, above code fragment is added to below clone set,
kGenProg/src/main/java/jp/kusumotolab/kgenprog/Configuration.java
Lines 1070 to 1075 in f485506
public String convertFromField(final SecondVariantSelectionStrategy.Strategy value) { | |
if (value == null) { | |
return null; | |
} | |
return value.toString(); | |
} |
kGenProg/src/main/java/jp/kusumotolab/kgenprog/Configuration.java
Lines 991 to 996 in f485506
public String convertFromField(final Technique value) { | |
if (value == null) { | |
return null; | |
} | |
return value.toString(); | |
} |
kGenProg/src/main/java/jp/kusumotolab/kgenprog/Configuration.java
Lines 1030 to 1035 in f485506
public String convertFromField(final Crossover.Type value) { | |
if (value == null) { | |
return null; | |
} | |
return value.toString(); | |
} |
kGenProg/src/main/java/jp/kusumotolab/kgenprog/Configuration.java
Lines 1050 to 1055 in f485506
public String convertFromField(final FirstVariantSelectionStrategy.Strategy value) { | |
if (value == null) { | |
return null; | |
} | |
return value.toString(); | |
} |
kGenProg/src/main/java/jp/kusumotolab/kgenprog/Configuration.java
Lines 971 to 976 in f485506
public String convertFromField(final Scope.Type value) { | |
if (value == null) { | |
return null; | |
} | |
return value.toString(); | |
} |
kGenProg/src/main/java/jp/kusumotolab/kgenprog/Configuration.java
Lines 883 to 889 in f485506
public String convertFromField(final Path value) { | |
if (value == null) { | |
return null; | |
} | |
return value.toString(); | |
} |
Why don't you merge it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
確認しました,良さそうなのでマージします.
お疲れさんでした!
resolve #643
--mutation-type
オプションを追加して,実行時にMutationの種類を選択できるようにした.現状,#806 により
Heuristic
を使おうとするとkgpが落ちるためデフォルトはSimple
に設定.