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

LearnLib / learnlib / 24134909303

20 Mar 2026 04:02PM UTC coverage: 95.073% (+0.006%) from 95.067%
24134909303

push

github

mtf90
bump analysis plugins + corresponding cleanups

23 of 24 new or added lines in 12 files covered. (95.83%)

14628 of 15386 relevant lines covered (95.07%)

1.74 hits per line

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

83.33
/algorithms/active/ttt-vpa/src/main/java/de/learnlib/algorithm/ttt/vpa/NonDetState.java
1
/* Copyright (C) 2013-2026 TU Dortmund University
2
 * This file is part of LearnLib <https://learnlib.de>.
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 de.learnlib.algorithm.ttt.vpa;
17

18
import java.util.Collections;
19
import java.util.Set;
20

21
import net.automatalib.automaton.vpa.State;
22

23
final class NonDetState<L> {
2✔
24

25
    private final NonDetStackContents stack;
26
    private final Set<L> locations;
27

28
    NonDetState(Set<L> locations, NonDetStackContents stack) {
2✔
29
        this.locations = locations;
2✔
30
        this.stack = stack;
2✔
31
    }
2✔
32

33
    static <L> NonDetState<L> fromDet(State<L> state) {
34
        return new NonDetState<>(Collections.singleton(state.getLocation()),
2✔
35
                                 NonDetStackContents.fromDet(state.getStackContents()));
2✔
36
    }
37

38
    State<L> determinize() {
39
        assert !isNonDet();
×
NEW
40
        return new State<>(locations.iterator().next(), NonDetStackContents.toDet(stack));
×
41
    }
42

43
    boolean isNonDet() {
44
        return stack != null && stack.isTrueNonDet() || locations.size() > 1;
2✔
45
    }
46

47
    NonDetStackContents getStack() {
48
        return stack;
2✔
49
    }
50

51
    Set<L> getLocations() {
52
        return locations;
2✔
53
    }
54

55
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc