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

LearnLib / learnlib / 6673301747

27 Oct 2023 11:46PM UTC coverage: 91.986% (-1.3%) from 93.327%
6673301747

push

github

mtf90
merge the release and sign-artifacts profiles

10984 of 11941 relevant lines covered (91.99%)

1.72 hits per line

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

0.0
/oracles/property-oracles/src/main/java/de/learnlib/oracle/property/DFAFinitePropertyOracle.java
1
/* Copyright (C) 2013-2023 TU Dortmund
2
 * This file is part of LearnLib, http://www.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.oracle.property;
17

18
import java.util.Collection;
19

20
import de.learnlib.api.oracle.EmptinessOracle.DFAEmptinessOracle;
21
import de.learnlib.api.oracle.PropertyOracle.DFAPropertyOracle;
22
import net.automatalib.automaton.fsa.DFA;
23
import net.automatalib.modelchecking.ModelChecker.DFAModelChecker;
24

25
/**
26
 * A property oracle for DFAs where it is fine to only check finite words from the model checker.
27
 *
28
 * @param <I>
29
 *         the input type
30
 * @param <P>
31
 *         the property type
32
 */
33
public class DFAFinitePropertyOracle<I, P> extends AbstractPropertyOracle<I, DFA<?, I>, P, Boolean, DFA<?, I>>
34
        implements DFAPropertyOracle<I, P> {
35

36
    private final DFAModelChecker<I, P, DFA<?, I>> modelChecker;
37

38
    public DFAFinitePropertyOracle(P property,
39
                                   DFAInclusionOracle<I> inclusionOracle,
40
                                   DFAEmptinessOracle<I> emptinessOracle,
41
                                   DFAModelChecker<I, P, DFA<?, I>> modelChecker) {
42
        super(property, inclusionOracle, emptinessOracle);
×
43
        this.modelChecker = modelChecker;
×
44
    }
×
45

46
    @Override
47
    protected DFA<?, I> modelCheck(DFA<?, I> hypothesis, Collection<? extends I> inputs) {
48
        return modelChecker.findCounterExample(hypothesis, inputs, getProperty());
×
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