public abstract class LanguageModelSearch extends Object implements Comparator<org.evosuite.lm.Chromosome>
| Modifier and Type | Field and Description |
|---|---|
protected ConstantValue |
constantValue |
protected static int |
GENERATIONS |
protected LangModel |
languageModel |
protected static int |
MAX_EVALUATIONS |
protected ValueMinimizer.Minimization |
objective |
protected String |
startPoint |
| Constructor and Description |
|---|
LanguageModelSearch(ValueMinimizer.Minimization objective,
ConstantValue constantValue) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongprotected static final int GENERATIONS
protected final LangModel languageModel
protected final String startPoint
protected final ValueMinimizer.Minimization objective
protected final ConstantValue constantValue
protected static final int MAX_EVALUATIONS
public LanguageModelSearch(ValueMinimizer.Minimization objective, ConstantValue constantValue)
public int getEvaluations()
public String generateRandomStringFromModel(int maxStringLength, String previousChar)
public String generateRandomStringFromModelWithExactLength(int targetStringLength, String previousChar)
public String generateRandomStringFromModelWithExactLength(int targetStringLength)
public String generateRandomStringFromModel(int maxStringLength)
public String mutateLangModel(String input)
protected double evaluate(org.evosuite.lm.Chromosome individual) throws EvaluationBudgetExpendedException
individual - EvaluationBudgetExpendedExceptionprotected boolean isBudgetExpended()
protected org.evosuite.lm.Chromosome mutate(org.evosuite.lm.Chromosome individual)
public abstract String optimise()
public int compare(org.evosuite.lm.Chromosome o1, org.evosuite.lm.Chromosome o2)
compare in interface Comparator<org.evosuite.lm.Chromosome>protected void resetEvaluationCounter()
Copyright © 2010–2017 EvoSuite. All rights reserved.