Skip to content

Commit ca17c61

Browse files
committed
Merge commit 'da106058d0c4e58aee39ccb59c23ed1097741cb7'
2 parents fb56129 + da10605 commit ca17c61

73 files changed

Lines changed: 658 additions & 170 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
LearnLib
22
===========
3+
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/de.learnlib/learnlib-parent/badge.svg)](https://maven-badges.herokuapp.com/maven-central/de.learnlib/learnlib-parent)
4+
35
LearnLib is a free, open source ([LGPLv3][1]) Java library for automata learning algorithms.
46

57
About

algorithms/dhc/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ http://www.gnu.de/documents/lgpl.en.html.
2323
<parent>
2424
<artifactId>learnlib-algorithms</artifactId>
2525
<groupId>de.learnlib</groupId>
26-
<version>0.11.1</version>
26+
<version>0.11.2</version>
2727
<relativePath>../pom.xml</relativePath>
2828
</parent>
2929

algorithms/discrimination-tree/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ http://www.gnu.de/documents/lgpl.en.html.
2323
<parent>
2424
<artifactId>learnlib-algorithms</artifactId>
2525
<groupId>de.learnlib</groupId>
26-
<version>0.11.1</version>
26+
<version>0.11.2</version>
2727
<relativePath>../pom.xml</relativePath>
2828
</parent>
2929

algorithms/discrimination-tree/src/main/java/de/learnlib/algorithms/discriminationtree/dfa/DTLearnerDFA.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
import de.learnlib.api.MembershipOracle;
3535
import de.learnlib.api.Query;
3636
import de.learnlib.counterexamples.LocalSuffixFinder;
37+
import de.learnlib.counterexamples.LocalSuffixFinders;
3738
import de.learnlib.discriminationtree.BinaryDTree;
3839
import de.learnlib.oracles.AbstractQuery;
3940

@@ -46,8 +47,14 @@
4647
*/
4748
public class DTLearnerDFA<I> extends AbstractDTLearner<DFA<?,I>, I, Boolean, Boolean, Void> implements DFALearner<I> {
4849

49-
public static class BuilderDefaults extends AbstractDTLearner.BuilderDefaults {
50+
public static class BuilderDefaults {
5051
public static boolean epsilonRoot() { return true; }
52+
public static <I,O> LocalSuffixFinder<? super I,? super O> suffixFinder() {
53+
return LocalSuffixFinders.RIVEST_SCHAPIRE;
54+
}
55+
public static boolean repeatedCounterexampleEvaluation() {
56+
return true;
57+
}
5158
}
5259

5360
private final HypothesisWrapperDFA<I> hypWrapper;

algorithms/discrimination-tree/src/main/java/de/learnlib/algorithms/discriminationtree/mealy/DTLearnerMealy.java

Lines changed: 32 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@
1616
*/
1717
package de.learnlib.algorithms.discriminationtree.mealy;
1818

19+
import java.util.Map;
20+
21+
import net.automatalib.automata.transout.MealyMachine;
22+
import net.automatalib.graphs.dot.EmptyDOTHelper;
23+
import net.automatalib.graphs.dot.GraphDOTHelper;
24+
import net.automatalib.words.Alphabet;
25+
import net.automatalib.words.Word;
26+
1927
import com.github.misberner.buildergen.annotations.GenerateBuilder;
2028

2129
import de.learnlib.algorithms.discriminationtree.AbstractDTLearner;
@@ -28,10 +36,6 @@
2836
import de.learnlib.discriminationtree.MultiDTree;
2937
import de.learnlib.oracles.AbstractQuery;
3038

31-
import net.automatalib.automata.transout.MealyMachine;
32-
import net.automatalib.words.Alphabet;
33-
import net.automatalib.words.Word;
34-
3539
/**
3640
*
3741
* @author Malte Isberner
@@ -82,4 +86,28 @@ public void answer(Word<O> output) {
8286
}
8387
};
8488
}
89+
90+
@Override
91+
public GraphDOTHelper<HState<I, Word<O>, Void, O>, HTransition<I, Word<O>, Void, O>> getHypothesisDOTHelper() {
92+
return new EmptyDOTHelper<HState<I,Word<O>,Void,O>,HTransition<I,Word<O>,Void,O>>() {
93+
@Override
94+
public boolean getEdgeProperties(HState<I, Word<O>, Void, O> src,
95+
HTransition<I, Word<O>, Void, O> edge,
96+
HState<I, Word<O>, Void, O> tgt,
97+
Map<String, String> properties) {
98+
if (!super.getEdgeProperties(src, edge, tgt, properties)) {
99+
return false;
100+
}
101+
String label = String.valueOf(edge.getSymbol());
102+
label += " / ";
103+
if (edge.getProperty() != null) {
104+
label += edge.getProperty();
105+
}
106+
properties.put(EdgeAttrs.LABEL, label);
107+
108+
return true;
109+
}
110+
111+
};
112+
}
85113
}

algorithms/features/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ http://www.gnu.de/documents/lgpl.en.html.
2323
<parent>
2424
<artifactId>learnlib-algorithms</artifactId>
2525
<groupId>de.learnlib</groupId>
26-
<version>0.11.1</version>
26+
<version>0.11.2</version>
2727
<relativePath>../pom.xml</relativePath>
2828
</parent>
2929

algorithms/features/src/main/java/de/learnlib/algorithms/features/observationtable/ObservationTable.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,6 @@ public static interface Row<I,D> extends Iterable<D> {
129129
public D getCellContent(@Nonnegative int index) throws IndexOutOfBoundsException;
130130
}
131131

132-
133132
/**
134133
* Representation of an inconsistency in the observation table.
135134
* <p>

algorithms/kearns-vazirani/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<parent>
44
<groupId>de.learnlib</groupId>
55
<artifactId>learnlib-algorithms</artifactId>
6-
<version>0.11.1</version>
6+
<version>0.11.2</version>
77
<relativePath>../pom.xml</relativePath>
88
</parent>
99
<artifactId>learnlib-kearns-vazirani</artifactId>

algorithms/lstar-baseline/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ http://www.gnu.de/documents/lgpl.en.html.
2323
<parent>
2424
<artifactId>learnlib-algorithms</artifactId>
2525
<groupId>de.learnlib</groupId>
26-
<version>0.11.1</version>
26+
<version>0.11.2</version>
2727
<relativePath>../pom.xml</relativePath>
2828
</parent>
2929

algorithms/lstar-generic/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ http://www.gnu.de/documents/lgpl.en.html.
2323
<parent>
2424
<artifactId>learnlib-algorithms</artifactId>
2525
<groupId>de.learnlib</groupId>
26-
<version>0.11.1</version>
26+
<version>0.11.2</version>
2727
<relativePath>../pom.xml</relativePath>
2828
</parent>
2929

0 commit comments

Comments
 (0)