Package eu.planets_project.pp.plato.model.values

Examples of eu.planets_project.pp.plato.model.values.INumericValue


                double min = Long.MAX_VALUE;
                double max = Long.MIN_VALUE;
               
                for (Alternative a : alternativesDefinition.getConsideredAlternatives()) {
                    for (Value v: leaf.getValues(a.getName()).getList()) {
                        INumericValue value = (INumericValue) v;
                        if (value.value() > max) {
                            max = value.value();
                        }
                        if (value.value() < min) {
                            min = value.value();
                        }
                    }
                }
                nt.defaults(min,max);
                nt.setMode(TransformationMode.LINEAR);
View Full Code Here


       
        scale.setUnit(""+list.size());
   
        Double d = 0.0;
        for (Measurement entry : list) {
            INumericValue value = (INumericValue) entry.getValue();
            d+= value.value();
        }
        FloatValue average = (FloatValue) new FloatScale().createValue();
        average.setValue(d/list.size());
        measurement.setValue(average);
        return measurement;
View Full Code Here

        for (String config : benchmarkConfigs.keySet()) {
            ToolExperience ex = eb.getToolExperience(config);
           
                Measurement m = ex.getAverage(MigrationResult.MIGRES_ELAPSED_TIME_PER_MB);
                if (m != null) {
                        INumericValue v =  (INumericValue) m.getValue();
                        score += v.value();
                }
        }
        return score/benchmarkConfigs.size()/4000;
    }
View Full Code Here

TOP

Related Classes of eu.planets_project.pp.plato.model.values.INumericValue

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.