Skip to content

Commit fce5471

Browse files
tupaulmtf90
authored andcommitted
Replaced getUntimedAlphabet with getInputAlphabet
1 parent 379502a commit fce5471

4 files changed

Lines changed: 5 additions & 10 deletions

File tree

algorithms/active/lstar/src/main/java/de/learnlib/algorithm/lstar/mmlt/hyp/LocalTimerMealyHypothesis.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,6 @@ public Alphabet<I> getInputAlphabet() {
7878
return automaton.getInputAlphabet();
7979
}
8080

81-
@Override
82-
public Alphabet<I> getUntimedAlphabet() {
83-
return automaton.getUntimedAlphabet();
84-
}
85-
8681
@Override
8782
public S getInitialState() {
8883
return automaton.getInitialState();

algorithms/active/lstar/src/test/java/de/learnlib/algorithm/lstar/mmlt/LStarLocalTimerMealyBenchmarkTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,10 @@ private static <S, I, T, O> void learnModel(String name, MMLT<S, I, T, O> automa
9191
var stats = new MapStatsContainer();
9292
stats.addTextInfo("LocalTimerMealyModel", null, name);
9393
stats.setCounter("original_locs", "Locations in original", automaton.getStates().size());
94-
stats.setCounter("original_inputs", "Untimed alphabet size in original", automaton.getUntimedAlphabet().size());
94+
stats.setCounter("original_inputs", "Untimed alphabet size in original", automaton.getInputAlphabet().size());
9595

9696
// Set up a pipeline:
97-
Alphabet<TimedInput<I>> alphabet = new GrowingMapAlphabet<>(automaton.getUntimedAlphabet().stream().map(TimedInput::input).toList());
97+
Alphabet<TimedInput<I>> alphabet = new GrowingMapAlphabet<>(automaton.getInputAlphabet().stream().map(TimedInput::input).toList());
9898

9999
// Query oracle -> TimeoutReducer -> Cache -> Query stats -> SUL
100100
LocalTimerMealySimulatorSUL<?, I, ?, O> sul = new LocalTimerMealySimulatorSUL<>(automaton.getSemantics());

algorithms/active/lstar/src/test/java/de/learnlib/algorithm/lstar/mmlt/LStarLocalTimerMealyCounterexampleTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public class LStarLocalTimerMealyCounterexampleTests {
3030
private static <S, I, T, O> void learnModel(LocalTimerMealyModel<S, I, T, O> model, List<Word<TimedInput<I>>> counterexamples) {
3131

3232
Alphabet<TimedInput<I>> alphabet =
33-
new GrowingMapAlphabet<>(model.automaton().getUntimedAlphabet().stream().map(TimedInput::input).toList());
33+
new GrowingMapAlphabet<>(model.automaton().getInputAlphabet().stream().map(TimedInput::input).toList());
3434

3535
var sul = new LocalTimerMealySimulatorSUL<>(model.automaton().getSemantics());
3636
TimedQueryOracle<I, O> timeOracle = new TimedQueryOracle<>(sul, model.params());

examples/src/main/java/de/learnlib/example/mmlt/Example1.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@ public static void main(String[] args) {
4949
var stats = new MapStatsContainer();
5050
stats.addTextInfo("LocalTimerMealyModel", null, model.name());
5151
stats.setCounter("original_locs", "Locations in original", model.automaton().getStates().size());
52-
stats.setCounter("original_inputs", "Untimed alphabet size in original", model.automaton().getUntimedAlphabet().size());
52+
stats.setCounter("original_inputs", "Untimed alphabet size in original", model.automaton().getInputAlphabet().size());
5353

5454
// ======================
5555
// Set up the pipeline:
5656
Alphabet<TimedInput<String>> alphabet =
57-
new GrowingMapAlphabet<>(model.automaton().getUntimedAlphabet().stream().map(TimedInput::input).toList());
57+
new GrowingMapAlphabet<>(model.automaton().getInputAlphabet().stream().map(TimedInput::input).toList());
5858

5959
// We use a simulator SUL to simulate our automaton:
6060
var sul = new LocalTimerMealySimulatorSUL<>(model.automaton().getSemantics());

0 commit comments

Comments
 (0)