LearnLib is a free, open source (Apache License, v2.0) Java library for automata learning algorithms.
LearnLib is mainly developed at the Dortmund University of Technology, Germany. Its original purpose is to provide a framework for research on automata learning algorithms as well as for their application in practice.
The public version is a re-implemented version of the former closed-source version of LearnLib. While certain features have been stripped for improved modularity, development has since then extended the features offered. Currently, the following learning algorithms with respective target models are supported:
Algorithm (active) | Target models | Algorithm (passive) | Models | |
---|---|---|---|---|
ADT | Mealy |
OSTIA | SST |
|
DHC | Mealy |
RPNI | DFA Mealy |
|
Discrimination Tree | DFA Mealy VPDA |
RPNI (EDSM) | DFA |
|
Kearns & Vazirani | DFA Mealy |
RPNI (MDL) | DFA |
|
L* (incl. variants) | DFA Mealy ROCA VCA |
|||
NL* | NFA |
|||
SPA | SPA |
|||
TTT | DFA Mealy VPDA |
Additionally, LearnLib offers a variety of tools to ease the practical application of automata learning on real-world systems. This includes drivers and mappers for interfacing software systems with the LearnLib API as well as caches and parallelization for improving the overall performance of the learning setup. Also, more nuanced setups such as Black-Box-Checking (via LTSMin) or inferring partial machines are possible.
While we strive to deliver code at a high quality, please note that there exist parts of the library that still need thorough testing. Contributions -- whether it is in the form of new features, better documentation or tests -- are welcome.
For simply using LearnLib you may use the Maven artifacts which are available in the Maven Central repository. It is also possible to download a bundled distribution artifact if you want to use LearnLib without Maven support. Note that LearnLib requires Java 8 or newer.
If you intend to use development versions of LearnLib, you can either use the deployed ROCA-FORK artifacts from the continuous integration server (see Using Development Versions), or build them yourself. Simply clone the development branch of the repository
git clone -b develop --single-branch https://github.com/LearnLib/learnlib.git
and run a single mvn clean install
.
This will build all the required maven artifacts and will install them in your local Maven repository so that you can reference them in other projects.
If you plan to use a development version of LearnLib in an environment where no Maven support is available, simply run mvn clean package -Pbundles
.
The respective JARs are then available under distribution/target/bundles
.
Note: Development versions of LearnLib usually depend on development versions of AutomataLib. For building development versions of AutomataLib, see the corresponding documentation on the project's README.
For developing the code base of LearnLib it is suggested to use one of the major Java IDEs which come with out-of-the-box Maven support.
-
For IntelliJ IDEA:
- Select
File
->New
->Project from existing sources
and select the folder containing the development checkout. - Choose "Import Project from external model", select "Maven" and click
Next
. - Configure the project to your liking but make sure to check "Import Maven projects automatically" and have "Generated sources folders" set to "Detect automatically".
- Click
Next
until the project is imported (no Maven profile needs to be selected). - In order to have both development versions of AutomataLib and LearnLib available at once, continue to import AutomataLib as documented in the project's README, but choose
File
->New
->Module from existing sources
as the first step.
- Select
-
For Eclipse:
- Note: LearnLib uses annotation processing on several occasions throughout the build process. This is usually handled correctly by Maven, however, for Eclipse you need to install the m2e-apt-plugin and activate annotation processing afterwards (see the issue #32).
- Select
File
->Import...
and select "Existing Maven Projects". - Select the folder containing the development checkout as the root directory and click
Finish
. - In order to have both development versions of AutomataLib and LearnLib available at once, continue to import AutomataLib as documented in the project's README.
- Maven Project Site: latest release | older versions
- API Documentation: latest release | older versions
- Q&A @ Google Groups -- General questions regarding the usage of LearnLib.
- Discussion @ Google Groups -- Discussions about the internals of LearnLib.
- Internal (private) @ Google Groups -- Discussions about future development plans.
- Markus Frohme (2017 - )
- Falk Howar (2013 - )
- Malte Isberner (2013 - 2015)
All the files in the packages de.learnlib.algorithms.lstar.roca
, de.learnlib.algorithms.lstar.vca
, de.learnlib.oracle.membership.roca
, de.learnlib.oracle.equivalence.vca
, de.learnlib.oracle.equivalence.roca
, de.learnlib.filter.cache.roca
, de.learnlib.examples.oca
and the classes de.learnlib.filter.statistic.oracle.CounterEQOracle
, de.learnlib.util.AbstractExperiment
belong to University of Mons and University Antwerpen.
Moreover, the files api/src/main/java/de/learnlib/api/oracle/EquivalenceOracle.java
, api/src/main/java/de/learnlib/api/oracle/MembershipOracle.java
, api/src/main/java/de/learnlib/api/oracle/SingleQueryOracle.java
, commons/util/src/main/java/de/learnlib/util/Experiment.java
, oracles/filters/statistics/src/main/java/de/learnlib/filter/statistic/oracle/CounterEQOracle.java
, oracles/filters/statistics/src/main/java/de/learnlib/filter/statistic/oracle/CounterOracle.java
, oracles/membership-oracles/src/main/java/de/learnlib/oracle/membership/SimulatorOracle.java
, datastructures/observation-table/src/main/java/de/learnlib/datastructure/observationtable/writer/StratifiedObservationTableASCIIWriter.java
, datastructures/observation-table/src/main/java/de/learnlib/datastructure/observationtable/writer/StratifiedObservationTableHTMLWriter.java
, algorithms/active/pom.xml
, examples/pom.xml
, datastructures/observation-table/pom.xml
, pom.xml
, and README.md
were modified by University of Mons and University Antwerpen.