| Package | Description |
|---|---|
| uniol.apt.adt.automaton | |
| uniol.apt.io.parser.impl |
| Modifier and Type | Interface and Description |
|---|---|
interface |
DeterministicFiniteAutomaton
Instances of this interface represent deterministic finite automatons.
|
| Modifier and Type | Method and Description |
|---|---|
static FiniteAutomaton |
FiniteAutomatonUtility.concatenate(FiniteAutomaton a1,
FiniteAutomaton a2)
Get a finite automaton accepting the concatenation of the languages of two automatons.
|
static FiniteAutomaton |
FiniteAutomatonUtility.fromLTS(TransitionSystem lts,
java.util.Collection<State> finalStates)
Construct a finite automaton from a transition system with final states.
|
static FiniteAutomaton |
FiniteAutomatonUtility.fromPrefixLanguageLTS(TransitionSystem lts)
Construct a finite automaton from a transition system.
|
static FiniteAutomaton |
FiniteAutomatonUtility.getAtomicLanguage(Symbol atom)
Get a finite automaton accepting just the word consisting of the given symbol.
|
static FiniteAutomaton |
FiniteAutomatonUtility.getDifferenceAutomaton(FiniteAutomaton a1,
FiniteAutomaton a2)
Return a finite automaton that accepts all words which are only accepted by one of the automatons.
|
static FiniteAutomaton |
FiniteAutomatonUtility.getEmptyLanguage()
Get a finite automaton accepting the empty language.
|
static FiniteAutomaton |
FiniteAutomatonUtility.intersection(FiniteAutomaton a1,
FiniteAutomaton a2)
Get a finite automaton accepting the intersection of the languages of two automatons.
|
static FiniteAutomaton |
FiniteAutomatonUtility.kleenePlus(FiniteAutomaton a)
Get a finite automaton accepting the kleene plus of the language of an automaton.
|
static FiniteAutomaton |
FiniteAutomatonUtility.kleeneStar(FiniteAutomaton a)
Get a finite automaton accepting the kleene star of the language of an automaton.
|
static FiniteAutomaton |
FiniteAutomatonUtility.optional(FiniteAutomaton a)
Get a finite automaton accepting a word accepted by the given automaton or the empty word.
|
static FiniteAutomaton |
FiniteAutomatonUtility.repeat(FiniteAutomaton a,
int min,
int max)
Get a finite automaton accepting repeatitions of the language of an automaton.
|
static FiniteAutomaton |
FiniteAutomatonUtility.union(FiniteAutomaton a1,
FiniteAutomaton a2)
Get a finite automaton accepting the union of the languages of two automatons.
|
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
AutomatonToRegularExpression.automatonToRegularExpression(FiniteAutomaton automaton)
Get an equivalent regular expression for a finite automaton.
|
static FiniteAutomaton |
FiniteAutomatonUtility.concatenate(FiniteAutomaton a1,
FiniteAutomaton a2)
Get a finite automaton accepting the concatenation of the languages of two automatons.
|
static DeterministicFiniteAutomaton |
FiniteAutomatonUtility.constructDFA(FiniteAutomaton a)
Construct a deterministic finite automaton from a general finite automaton via the powerset construction.
|
static java.util.List<java.lang.String> |
FiniteAutomatonUtility.findPredicateWord(FiniteAutomaton a,
org.apache.commons.collections4.Predicate<java.util.List<java.lang.String>> prefixPredicate,
org.apache.commons.collections4.Predicate<java.util.List<java.lang.String>> wordPredicate)
Find a word whose prefixes (including the word) conform to a given predicate and which itself also conforms
to a second predicate.
|
static java.util.List<java.lang.String> |
FiniteAutomatonUtility.findWordDifference(FiniteAutomaton a1,
FiniteAutomaton a2)
Find a word that is only accepted by one of the automatons.
|
static FiniteAutomaton |
FiniteAutomatonUtility.getDifferenceAutomaton(FiniteAutomaton a1,
FiniteAutomaton a2)
Return a finite automaton that accepts all words which are only accepted by one of the automatons.
|
static FiniteAutomaton |
FiniteAutomatonUtility.intersection(FiniteAutomaton a1,
FiniteAutomaton a2)
Get a finite automaton accepting the intersection of the languages of two automatons.
|
static boolean |
FiniteAutomatonUtility.isWordInLanguage(FiniteAutomaton a,
java.util.List<java.lang.String> word)
Test if a given word is accepted by a given finite automaton.
|
static FiniteAutomaton |
FiniteAutomatonUtility.kleenePlus(FiniteAutomaton a)
Get a finite automaton accepting the kleene plus of the language of an automaton.
|
static FiniteAutomaton |
FiniteAutomatonUtility.kleeneStar(FiniteAutomaton a)
Get a finite automaton accepting the kleene star of the language of an automaton.
|
static boolean |
FiniteAutomatonUtility.languageEquivalent(FiniteAutomaton a1,
FiniteAutomaton a2)
Test if two automaton are language equivalent.
|
static DeterministicFiniteAutomaton |
FiniteAutomatonUtility.minimize(FiniteAutomaton a)
Get the unique deterministic automaton with the minimal number of states that accepts the same language as
the given automaton.
|
static DeterministicFiniteAutomaton |
FiniteAutomatonUtility.negate(FiniteAutomaton a,
java.util.Set<Symbol> alphabet)
Get a finite automaton accepting the negation of the language of the given automaton.
|
static FiniteAutomaton |
FiniteAutomatonUtility.optional(FiniteAutomaton a)
Get a finite automaton accepting a word accepted by the given automaton or the empty word.
|
static DeterministicFiniteAutomaton |
FiniteAutomatonUtility.prefixClosure(FiniteAutomaton a)
Get a finite automaton accepting the prefix closure of the language of the given automaton.
|
static TransitionSystem |
FiniteAutomatonUtility.prefixLanguageLTS(FiniteAutomaton a)
Construct a transition system that describes the prefix language of the given finite automaton.
|
static java.lang.String |
FiniteAutomatonUtility.renderToGraphviz(FiniteAutomaton aut)
Render a finite automaton in the Graphviz file format.
|
static FiniteAutomaton |
FiniteAutomatonUtility.repeat(FiniteAutomaton a,
int min,
int max)
Get a finite automaton accepting repeatitions of the language of an automaton.
|
static java.lang.Iterable<uniol.apt.adt.automaton.State> |
FiniteAutomatonUtility.statesIterable(FiniteAutomaton a)
Get an Iterable iterating over all of the automaton's states.
|
static FiniteAutomaton |
FiniteAutomatonUtility.union(FiniteAutomaton a1,
FiniteAutomaton a2)
Get a finite automaton accepting the union of the languages of two automatons.
|
| Modifier and Type | Method and Description |
|---|---|
FiniteAutomaton |
RegexParser.parse(java.io.InputStream is) |