@Test public void shouldCreateCorrectLearner() { Alphabet<String> sigma = new GrowingMapAlphabet<>(); sigma.add("a"); sigma.add("b"); SULOracle<String, String> oracle = mock(SULOracle.class); algorithm.createLearner(sigma, oracle); }
@Override public LearningAlgorithm.MealyLearner<String, String> createLearner(Alphabet<String> sigma, MembershipOracle<String, Word<String>> oracle) { return new TTTLearnerMealyBuilder<String, String>() .withAlphabet(sigma) .withOracle(oracle) .create(); }
TTT extends AbstractLearningAlgorithm<String, String> implements Serializable { @Override public LearningAlgorithm.MealyLearner<String, String> createLearner(Alphabet<String> sigma, MembershipOracle<String, Word<String>> oracle) { return new TTTLearnerMealyBuilder<String, String>() .withAlphabet(sigma) .withOracle(oracle) .create(); } }
TTT extends AbstractLearningAlgorithm<String, String> implements Serializable { @Override public LearningAlgorithm.MealyLearner<String, String> createLearner(Alphabet<String> sigma, MembershipOracle<String, Word<String>> oracle) { return new TTTLearnerMealyBuilder<String, String>() .withAlphabet(sigma) .withOracle(oracle) .create(); }  }
TTT extends AbstractLearningAlgorithm<String, String> implements Serializable { @Override public LearningAlgorithm.MealyLearner<String, String> createLearner(Alphabet<String> sigma, MembershipOracle<String, Word<String>> oracle) { return new TTTLearnerMealyBuilder<String, String>() .withAlphabet(sigma) .withOracle(oracle) .create(); }  @Override LearningAlgorithm.MealyLearner<String, String> createLearner(Alphabet<String> sigma,
            MembershipOracle<String, Word<String>> oracle); @Override String getInternalData(LearningAlgorithm.MealyLearner<String, String> learner); @Override void resume(LearningAlgorithm.MealyLearner<String, String> learner, byte[] data); }
TTT extends AbstractLearningAlgorithm<String, String> implements Serializable { @Override public LearningAlgorithm.MealyLearner<String, String> createLearner(Alphabet<String> sigma, MembershipOracle<String, Word<String>> oracle) { return new TTTLearnerMealyBuilder<String, String>() .withAlphabet(sigma) .withOracle(oracle) .create(); }  @Override LearningAlgorithm.MealyLearner<String, String> createLearner(Alphabet<String> sigma,
            MembershipOracle<String, Word<String>> oracle); @Override String getInternalData(LearningAlgorithm.MealyLearner<String, String> learner); @Override void resume(LearningAlgorithm.MealyLearner<String, String> learner, byte[] data);  }