Package edu.stanford.bmir.protege.web.shared.metrics

Examples of edu.stanford.bmir.protege.web.shared.metrics.IntegerMetricValue


    public MetricValue computeValue() {
        int count = 0;
        for(OWLOntology ontology : getRootOntology().getImportsClosure()) {
            count += (ontology.getAxiomCount() - ontology.getLogicalAxiomCount());
        }
        return new IntegerMetricValue("Annotation axioms", count);
    }
View Full Code Here


    public MetricValue computeValue() {
        int count = 0;
        for(OWLOntology ontology : getRootOntology().getImportsClosure()) {
            count += ontology.getAxiomCount();
        }
        return new IntegerMetricValue("Axioms", count);
    }
View Full Code Here

    public IntegerMetricValue computeValue() {
        int count = 0;
        for(OWLOntology ontology : getRootOntology().getImportsClosure()) {
            count += ontology.getAxiomCount(type);
        }
        return new IntegerMetricValue(metricName, count);
    }
View Full Code Here

    public MetricValue computeValue() {
        int count = 0;
        for(OWLOntology ontology : getRootOntology().getImportsClosure()) {
            count += ontology.getLogicalAxiomCount();
        }
        return new IntegerMetricValue("Logical Axioms", count);
    }
View Full Code Here

    }

    @Override
    public final IntegerMetricValue computeValue() {
        int entityCount = getEntityCount();
        return new IntegerMetricValue(metricName, entityCount);
    }
View Full Code Here

    private IntegerMetricValue value;

    @Before
    public void setUp() throws Exception {
        testname = "testname";
        value = new IntegerMetricValue(testname, INT_VALUE);
    }
View Full Code Here

        value = new IntegerMetricValue(testname, INT_VALUE);
    }

    @Test(expected = NullPointerException.class)
    public void shouldThrowNullPointerExceptionIfNameIsNull() {
        new IntegerMetricValue(null, INT_VALUE);
    }
View Full Code Here

    }

    @Test
    public void shouldReturnAxiomTypeCount() {
        AxiomTypeCountMetricCalculator calculator = new AxiomTypeCountMetricCalculator(ontology, axiomType);
        IntegerMetricValue value = calculator.computeValue();
        assertThat(value.getValue(), is(AXIOM_COUNT));
    }
View Full Code Here

TOP

Related Classes of edu.stanford.bmir.protege.web.shared.metrics.IntegerMetricValue

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.