EMMA Coverage Report (generated Fri Feb 14 08:28:31 UTC 2014)
[all classes][org.qedeq.kernel.bo.logic.proof.checker]

COVERAGE SUMMARY FOR SOURCE FILE [ProofChecker0Impl.java]

nameclass, %method, %block, %line, %
ProofChecker0Impl.java100% (1/1)67%  (2/3)85%  (35/41)78%  (7/9)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ProofChecker0Impl100% (1/1)67%  (2/3)85%  (35/41)78%  (7/9)
checkRule (Rule, ModuleContext, RuleChecker, ReferenceResolver): LogicalCheck... 0%   (0/1)0%   (0/6)0%   (0/2)
ProofChecker0Impl (): void 100% (1/1)100% (9/9)100% (3/3)
checkProof (Element, FormalProofLineList, RuleChecker, ModuleContext, Referen... 100% (1/1)100% (26/26)100% (4/4)

1/* This file is part of the project "Hilbert II" - http://www.qedeq.org
2 *
3 * Copyright 2000-2014,  Michael Meyling <mime@qedeq.org>.
4 *
5 * "Hilbert II" is free software; you can redistribute
6 * it and/or modify it under the terms of the GNU General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 */
15 
16package org.qedeq.kernel.bo.logic.proof.checker;
17 
18import org.qedeq.base.io.Version;
19import org.qedeq.kernel.bo.logic.common.LogicalCheckExceptionList;
20import org.qedeq.kernel.bo.logic.common.ReferenceResolver;
21import org.qedeq.kernel.bo.logic.proof.common.ProofChecker;
22import org.qedeq.kernel.bo.logic.proof.common.RuleChecker;
23import org.qedeq.kernel.se.base.list.Element;
24import org.qedeq.kernel.se.base.module.FormalProofLineList;
25import org.qedeq.kernel.se.base.module.Rule;
26import org.qedeq.kernel.se.common.ModuleContext;
27 
28 
29/**
30 * Formal proof checker that don't allow any proof method.
31 *
32 * @author  Michael Meyling
33 */
34public class ProofChecker0Impl implements ProofChecker {
35 
36    /** Rule version we can check. */
37    private final Version ruleVersion;
38 
39    /**
40     * Constructor.
41     *
42     */
43    public ProofChecker0Impl() {
44        this.ruleVersion = new Version("0.00.00");
45    }
46 
47    public LogicalCheckExceptionList checkProof(final Element formula,
48            final FormalProofLineList proof,
49            final RuleChecker checker,
50            final ModuleContext moduleContext,
51            final ReferenceResolver resolver) {
52        final ProofCheckException ex = new ProofCheckException(
53            BasicProofErrors.NO_FORMAL_PROOFS_SUPORTED_CODE,
54            BasicProofErrors.NO_FORMAL_PROOFS_SUPORTED_TEXT + ruleVersion,
55            null, moduleContext, null);
56            final LogicalCheckExceptionList exceptions = new LogicalCheckExceptionList();
57            exceptions.add(ex);
58        return exceptions;
59    }
60 
61    public LogicalCheckExceptionList checkRule(final Rule rule,
62            final ModuleContext context, final RuleChecker checker,
63            final ReferenceResolver resolver) {
64        // we just ignore rule definitions
65        final LogicalCheckExceptionList exceptions = new LogicalCheckExceptionList();
66        return exceptions;
67    }
68 
69}

[all classes][org.qedeq.kernel.bo.logic.proof.checker]
EMMA 2.1.5320 (stable) (C) Vladimir Roubtsov