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

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


            writeLock.lock();
            for(Iterator<MetricCalculator> metricIt = dirtyMetrics.iterator(); metricIt.hasNext(); ) {
                MetricCalculator metric = metricIt.next();
                metricIt.remove();
                try {
                    MetricValue metricValue = metric.computeValue();
                    valueCache.put(metric, metricValue);
                } catch (Exception e) {
                    logger.severe(e);
                    // Mark as not computed
                    valueCache.put(metric, null);
View Full Code Here


    private List<MetricValue> readMetrics() {
        readLock.lock();
        try {
            List<MetricValue> result = Lists.newArrayList();
            for(MetricCalculator metric : metrics) {
                MetricValue value = valueCache.get(metric);
                if (value != null) {
                    result.add(value);
                }
            }
            return result;
View Full Code Here

TOP

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

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.