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

LearnLib / learnlib / 6805330902

08 Nov 2023 11:40PM UTC coverage: 93.335% (+0.008%) from 93.327%
6805330902

push

github

mtf90
typo

11736 of 12574 relevant lines covered (93.34%)

1.69 hits per line

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

66.67
/oracles/parallelism/src/main/java/de/learnlib/oracle/parallelism/StaticParallelOmegaOracle.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.parallelism;
17

18
import java.util.Collection;
19

20
import de.learnlib.oracle.MembershipOracle;
21
import de.learnlib.oracle.OmegaMembershipOracle;
22
import de.learnlib.query.OmegaQuery;
23
import net.automatalib.word.Word;
24
import org.checkerframework.checker.index.qual.NonNegative;
25

26
/**
27
 * A specialized {@link AbstractStaticBatchProcessor} for {@link OmegaMembershipOracle}s that implements {@link
28
 * ParallelOmegaOracle}.
29
 *
30
 * @param <I>
31
 *         input symbol type
32
 * @param <D>
33
 *         output domain type
34
 */
35
public class StaticParallelOmegaOracle<S, I, D>
36
        extends AbstractStaticBatchProcessor<OmegaQuery<I, D>, OmegaMembershipOracle<S, I, D>>
37
        implements ParallelOmegaOracle<S, I, D> {
38

39
    public StaticParallelOmegaOracle(Collection<? extends OmegaMembershipOracle<S, I, D>> oracles,
40
                                     @NonNegative int minBatchSize,
41
                                     PoolPolicy policy) {
42
        super(oracles, minBatchSize, policy);
2✔
43
    }
2✔
44

45
    @Override
46
    public void processQueries(Collection<? extends OmegaQuery<I, D>> omegaQueries) {
47
        processBatch(omegaQueries);
2✔
48
    }
2✔
49

50
    @Override
51
    public MembershipOracle<I, D> getMembershipOracle() {
52
        return getProcessor().getMembershipOracle();
×
53
    }
54

55
    @Override
56
    public boolean isSameState(Word<I> w1, S s1, Word<I> w2, S s2) {
57
        return getProcessor().isSameState(w1, s1, w2, s2);
×
58
    }
59
}
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