@@ -0,0 +1,1868 @@
+/* Copyright (C) 2013-2018 TU Dortmund%0A * This file is part of LearnLib, http://www.learnlib.de/.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *     http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage de.learnlib.filter.statistic.oracle;%0A%0Aimport java.util.concurrent.atomic.AtomicLong;%0A%0Aimport de.learnlib.api.oracle.SymbolQueryOracle;%0A%0A/**%0A * A simple wrapper for counting the number of %7B@link SymbolQueryOracle#reset() resets%7D and%0A * %7B@link SymbolQueryOracle#query(Object) symbol queries%7D of a %7B@link SymbolQueryOracle%7D.%0A *%0A * @param %3CI%3E%0A *         input symbol type%0A * @param %3CO%3E%0A *         output symbol type%0A *%0A * @author frohme%0A */%0Apublic class CounterSymbolQueryOracle%3CI, O%3E implements SymbolQueryOracle%3CI, O%3E %7B%0A%0A    private final SymbolQueryOracle%3CI, O%3E delegate;%0A    private final AtomicLong resetCounter = new AtomicLong();%0A    private final AtomicLong symbolCounter = new AtomicLong();%0A%0A    public CounterSymbolQueryOracle(SymbolQueryOracle%3CI, O%3E delegate) %7B%0A        this.delegate = delegate;%0A    %7D%0A%0A    @Override%0A    public O query(I i) %7B%0A        symbolCounter.incrementAndGet();%0A        return delegate.query(i);%0A    %7D%0A%0A    @Override%0A    public void reset() %7B%0A        resetCounter.incrementAndGet();%0A        delegate.reset();%0A    %7D%0A%0A    public long getResetCount() %7B%0A        return resetCounter.get();%0A    %7D%0A%0A    public long getSymbolCount() %7B%0A        return symbolCounter.get();%0A    %7D%0A%7D%0A

add counting wrapper for SymbolQueryOracles