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

LearnLib / automatalib / 13100258666

02 Feb 2025 03:46PM UTC coverage: 92.108% (+0.1%) from 92.01%
13100258666

push

github

mtf90
provide some default methods for {Mutable,]ProbabilisticMealy

including tests

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

18 existing lines in 7 files now uncovered.

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

64.29
/core/src/main/java/net/automatalib/automaton/transducer/impl/CompactMoore.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.transducer.impl;
17

18
import net.automatalib.alphabet.Alphabet;
19
import net.automatalib.automaton.AutomatonCreator;
20
import net.automatalib.automaton.impl.UniversalCompactSimpleDet;
21
import net.automatalib.automaton.transducer.MutableMooreMachine;
22

23
public class CompactMoore<I, 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);
×
40
    }
×
41

42
    @Override
43
    public void setStateOutput(Integer state, O output) {
UNCOV
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, 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) {
UNCOV
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