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

LearnLib / automatalib / 13138848026

04 Feb 2025 02:53PM UTC coverage: 92.108% (+2.2%) from 89.877%
13138848026

push

github

mtf90
[maven-release-plugin] prepare release automatalib-0.12.0

16609 of 18032 relevant lines covered (92.11%)

1.7 hits per line

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

88.89
/api/src/main/java/net/automatalib/automaton/graph/AbstractAutomatonGraphView.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.graph;
17

18
import java.util.Collection;
19
import java.util.Iterator;
20

21
import net.automatalib.automaton.Automaton;
22
import net.automatalib.common.util.mapping.MutableMapping;
23
import net.automatalib.graph.Graph;
24
import net.automatalib.graph.concept.NodeIDs;
25

26
public abstract class AbstractAutomatonGraphView<S, A extends Automaton<S, ?, ?>, E> implements Graph<S, E> {
27

28
    protected final A automaton;
29

30
    public AbstractAutomatonGraphView(A automaton) {
1✔
31
        this.automaton = automaton;
1✔
32
    }
1✔
33

34
    @Override
35
    public <V> MutableMapping<S, V> createStaticNodeMapping() {
36
        return automaton.createStaticStateMapping();
1✔
37
    }
38

39
    @Override
40
    public <V> MutableMapping<S, V> createDynamicNodeMapping() {
41
        return automaton.createDynamicStateMapping();
×
42
    }
43

44
    @Override
45
    public int size() {
46
        return automaton.size();
1✔
47
    }
48

49
    @Override
50
    public Collection<S> getNodes() {
51
        return automaton.getStates();
1✔
52
    }
53

54
    @Override
55
    public Iterator<S> iterator() {
56
        return automaton.iterator();
1✔
57
    }
58

59
    @Override
60
    public NodeIDs<S> nodeIDs() {
61
        return new StateAsNodeIDs<>(automaton.stateIDs());
1✔
62
    }
63

64
}
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