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

LearnLib / automatalib / 6763327895

05 Nov 2023 07:29PM UTC coverage: 89.726% (-0.1%) from 89.868%
6763327895

push

github

mtf90
fix typo

4 of 4 new or added lines in 4 files covered. (100.0%)

99 existing lines in 18 files now uncovered.

15677 of 17472 relevant lines covered (89.73%)

1.66 hits per line

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

64.29
/core/src/main/java/net/automatalib/automaton/transducer/CompactMoore.java
1
/* Copyright (C) 2013-2023 TU Dortmund
2
 * This file is part of AutomataLib, http://www.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.transducer;
17

18
import net.automatalib.alphabet.Alphabet;
19
import net.automatalib.automaton.AutomatonCreator;
20
import net.automatalib.automaton.UniversalCompactSimpleDet;
21
import org.checkerframework.checker.nullness.qual.Nullable;
22

23
public class CompactMoore<I, @Nullable O> extends UniversalCompactSimpleDet<I, O>
24
        implements MutableMooreMachine<Integer, I, Integer, O> {
25

26
    public CompactMoore(Alphabet<I> alphabet) {
27
        super(alphabet);
2✔
28
    }
2✔
29

30
    public CompactMoore(Alphabet<I> alphabet, int stateCapacity, float resizeFactor) {
31
        super(alphabet, stateCapacity, resizeFactor);
2✔
32
    }
2✔
33

34
    public CompactMoore(CompactMoore<I, O> other) {
35
        super(other);
1✔
36
    }
1✔
37

38
    protected CompactMoore(Alphabet<I> alphabet, CompactMoore<?, O> other) {
UNCOV
39
        super(alphabet, other);
×
UNCOV
40
    }
×
41

42
    @Override
43
    public void setStateOutput(Integer state, O output) {
44
        setStateProperty(state, output);
×
45
    }
×
46

47
    @Override
48
    public O getStateOutput(Integer state) {
49
        return getStateProperty(state);
2✔
50
    }
51

52
    public static final class Creator<I, @Nullable O> implements AutomatonCreator<CompactMoore<I, O>, I> {
2✔
53

54
        @Override
55
        public CompactMoore<I, O> createAutomaton(Alphabet<I> alphabet, int sizeHint) {
56
            return new CompactMoore<>(alphabet, sizeHint, DEFAULT_RESIZE_FACTOR);
2✔
57
        }
58

59
        @Override
60
        public CompactMoore<I, O> createAutomaton(Alphabet<I> alphabet) {
61
            return new CompactMoore<>(alphabet);
×
62
        }
63
    }
64

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

© 2026 Coveralls, Inc