Package eu.scape_project.planning.model.values

Examples of eu.scape_project.planning.model.values.INumericValue


        for (String config : benchmarkConfigs.keySet()) {
            ToolExperience ex = eb.getToolExperience(config);

            Measurement m = ex.getAverage(MeasureConstants.ELAPSED_TIME_PER_MB);
            if (m != null) {
                INumericValue v = (INumericValue) m.getValue();
                score += v.value();
            }
        }
        return score / benchmarkConfigs.size() / 4000;
    }
View Full Code Here


            throw new IllegalArgumentException("cannot calculate average of nun-numeric value: " + m.getMeasureId());
        }

        double average = 0.0;
        for (Measurement meas : list) {
            INumericValue value = (INumericValue) meas.getValue();
            average += value.value();
        }
        average = average / list.size();

        Measurement measurement = new Measurement(m.getMeasureId() + ":accumulated:average(" + list.size() + ")",
            average);
View Full Code Here

                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

        for (VPlanLeaf l : measurePlanLeaves) {
            for (Value val : l.getMeasuredValues()) {
                if (val instanceof INumericValue) {
                    atLeastOneMeasuredValue = true;
                    INumericValue numVal = (INumericValue) val;
                    if (numVal.value() < min) {
                        min = numVal.value();
                    }
                }
            }
        }
View Full Code Here

        for (VPlanLeaf l : measurePlanLeaves) {
            for (Value val : l.getMeasuredValues()) {
                if (val instanceof INumericValue) {
                    atLeastOneMeasuredValue = true;
                    INumericValue numVal = (INumericValue) val;
                    if (numVal.value() > max) {
                        max = numVal.value();
                    }
                }
            }
        }
View Full Code Here

        for (VPlanLeaf l : measurePlanLeaves) {
            for (Value val : l.getMeasuredValues()) {
                if (val instanceof INumericValue) {
                    count++;
                    INumericValue numVal = (INumericValue) val;
                    sum = sum + numVal.value();
                }
            }
        }

        if (count > 0) {
View Full Code Here

TOP

Related Classes of eu.scape_project.planning.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.