Skip to content

Commit fb5df44

Browse files
committed
Added local file settings sources, refined MealyEQOracleChain interface
1 parent 0b01aba commit fb5df44

5 files changed

Lines changed: 63 additions & 1 deletion

File tree

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
/* Copyright (C) 2015 TU Dortmund
2+
* This file is part of LearnLib, http://www.learnlib.de/.
3+
*
4+
* LearnLib is free software; you can redistribute it and/or
5+
* modify it under the terms of the GNU Lesser General Public
6+
* License version 3.0 as published by the Free Software Foundation.
7+
*
8+
* LearnLib is distributed in the hope that it will be useful,
9+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11+
* Lesser General Public License for more details.
12+
*
13+
* You should have received a copy of the GNU Lesser General Public
14+
* License along with LearnLib; if not, see
15+
* http://www.gnu.de/documents/lgpl.en.html.
16+
*/
17+
package de.learnlib.settings.sources;
18+
19+
import net.automatalib.AutomataLibSettingsSource;
20+
import net.automatalib.commons.util.settings.LocalFileSource;
21+
22+
public class LearnLibLocalPropertiesAutomataLibSettingsSource extends LocalFileSource
23+
implements AutomataLibSettingsSource {
24+
25+
public LearnLibLocalPropertiesAutomataLibSettingsSource() {
26+
super("learnlib.properties");
27+
}
28+
29+
@Override
30+
public int getPriority() {
31+
return super.getPriority() - 10; // bump prio down a bit
32+
}
33+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/* Copyright (C) 2015 TU Dortmund
2+
* This file is part of LearnLib, http://www.learnlib.de/.
3+
*
4+
* LearnLib is free software; you can redistribute it and/or
5+
* modify it under the terms of the GNU Lesser General Public
6+
* License version 3.0 as published by the Free Software Foundation.
7+
*
8+
* LearnLib is distributed in the hope that it will be useful,
9+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11+
* Lesser General Public License for more details.
12+
*
13+
* You should have received a copy of the GNU Lesser General Public
14+
* License along with LearnLib; if not, see
15+
* http://www.gnu.de/documents/lgpl.en.html.
16+
*/
17+
package de.learnlib.settings.sources;
18+
19+
import net.automatalib.commons.util.settings.LocalFileSource;
20+
import de.learnlib.settings.LearnLibSettingsSource;
21+
22+
public class LearnLibLocalPropertiesSource extends LocalFileSource implements LearnLibSettingsSource {
23+
public LearnLibLocalPropertiesSource() {
24+
super("learnlib.properties");
25+
}
26+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
de.learnlib.settings.sources.LearnLibPropertiesSource
22
de.learnlib.settings.sources.LearnLibSystemPropertiesSource
3+
de.learnlib.settings.sources.LearnLibLocalPropertiesSource
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
de.learnlib.settings.sources.LearnLibPropertiesAutomataLibSettingsSource
2+
de.learnlib.settings.sources.LearnLibLocalPropertiesAutomataLibSettingsSource

eqtests/basic-eqtests/src/main/java/de/learnlib/eqtests/basic/EQOracleChain.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ public DFAEQOracleChain(
4242
}
4343
}
4444

45-
public static class MealyEQOracleChain<I,O> extends EQOracleChain<MealyMachine<?,I,?,O>,I,Word<O>> {
45+
public static class MealyEQOracleChain<I,O> extends EQOracleChain<MealyMachine<?,I,?,O>,I,Word<O>>
46+
implements MealyEquivalenceOracle<I, O> {
4647
@SafeVarargs
4748
public MealyEQOracleChain(
4849
EquivalenceOracle<? super MealyMachine<?, I, ?, O>, I, Word<O>>... oracles) {

0 commit comments

Comments
 (0)