• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

LearnLib / automatalib / 13815628111

12 Mar 2025 03:46PM CUT coverage: 92.058% (-0.001%) from 92.059%
13815628111

push

github

mtf90
cleanup redundant type variable definitions

1 of 1 new or added line in 1 file covered. (100.0%)

16599 of 18031 relevant lines covered (92.06%)

1.7 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/api/src/main/java/net/automatalib/automaton/Automaton.java
1
/* Copyright (C) 2013-2025 TU Dortmund University
2
 * This file is part of AutomataLib <https://automatalib.net>.
3
 *
4
 * Licensed under the Apache License, Version 2.0 (the "License");
5
 * you may not use this file except in compliance with the License.
6
 * You may obtain a copy of the License at
7
 *
8
 *     http://www.apache.org/licenses/LICENSE-2.0
9
 *
10
 * Unless required by applicable law or agreed to in writing, software
11
 * distributed under the License is distributed on an "AS IS" BASIS,
12
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
 * See the License for the specific language governing permissions and
14
 * limitations under the License.
15
 */
16
package net.automatalib.automaton;
17

18
import java.util.Collection;
19

20
import net.automatalib.automaton.graph.AutomatonGraphView;
21
import net.automatalib.automaton.graph.TransitionEdge;
22
import net.automatalib.automaton.simple.SimpleAutomaton;
23
import net.automatalib.graph.Graph;
24
import net.automatalib.ts.TransitionSystem;
25

26
/**
27
 * Basic interface for an automaton. An automaton is a {@link TransitionSystem} with a finite number of states.
28
 *
29
 * @param <S>
30
 *         state type
31
 * @param <I>
32
 *         input symbol type
33
 * @param <T>
34
 *         transition type
35
 */
36
public interface Automaton<S, I, T> extends TransitionSystem<S, I, T>, SimpleAutomaton<S, I> {
37

38
    /**
39
     * Obtains a {@link Graph graph} view of the transition graph of this automaton, taking into account the specified
40
     * input symbols. The transitions are represented as {@link TransitionEdge}s in the graph.
41
     *
42
     * @param inputs
43
     *         the input symbols to consider
44
     *
45
     * @return a graph view of the transition graph of this automaton for the given input symbols
46
     */
47
    default Graph<S, TransitionEdge<I, T>> transitionGraphView(Collection<? extends I> inputs) {
48
        return new AutomatonGraphView<>(this, inputs);
×
49
    }
50
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc