Package eu.scape_project.planning.criteria.bean.data

Examples of eu.scape_project.planning.criteria.bean.data.PotentialToRangeData


        }

        log.debug("Adding potential and range of node " + selectedCriteriaSet.getName());

        // Create data object
        PotentialToRangeData data = new PotentialToRangeData();
        // Title
        data.setTitle("Potential Impact Range to Actual Impact of " + selectedCriteriaSet.getName());
        data.setSourcesTitle("Structural nodes");

        data.setFormatString("%.3f");

        // Label of series
        ArrayList<String> seriesLabels = new ArrayList<String>();
        seriesLabels.add("Potential Impact Range");
        seriesLabels.add("Actual Impact");

        // Data lists for structural nodes
        ArrayList<String> sourceLabels = new ArrayList<String>();
        ArrayList<Double> potentialSeries = new ArrayList<Double>();
        ArrayList<Double> rangeSeries = new ArrayList<Double>();

        // Get root of tree
        CriteriaNode treeRoot = selectedCriteriaSet.getCriteriaTreeRoot();

        // Add data of root
        sourceLabels.add(treeRoot.getName());
        potentialSeries.add(treeRoot.getImportanceFactorSIF4());
        rangeSeries.add(treeRoot.getImportanceFactorSIF6());

        // Add data of other structural nodes
        for (CriteriaTreeNode criteriaTreeNode : treeRoot.getAllSuccessiveTreeNodes()) {
            if (criteriaTreeNode instanceof CriteriaNode) {
                CriteriaNode criteriaNode = (CriteriaNode) criteriaTreeNode;
                sourceLabels.add(criteriaNode.getName());
                potentialSeries.add(criteriaNode.getImportanceFactorSIF4());
                rangeSeries.add(criteriaNode.getImportanceFactorSIF6());
            }
        }

        // Set data
        data.setSeriesLabels(seriesLabels);
        data.setSourceLabels(sourceLabels);
        data.setPotentialSeries(potentialSeries);
        data.setRangeSeries(rangeSeries);

        return data;
    }
View Full Code Here


            }

        }));

        // Create data object
        PotentialToRangeData data = new PotentialToRangeData();
        // Title
        data.setTitle("Maximum Impact to Average Impact");
        data.setSourcesTitle("Criteria sets");

        data.setFormatString("%.3f");

        // Label of series
        ArrayList<String> seriesLabels = new ArrayList<String>();
        seriesLabels.add("Maximum Impact");
        seriesLabels.add("Average Impact");

        // Data lists for criteria sets
        ArrayList<String> sourceLabels = new ArrayList<String>();
        ArrayList<Double> potentialSeries = new ArrayList<Double>();
        ArrayList<Double> rangeSeries = new ArrayList<Double>();

        for (CriteriaHierarchy criteriaSet : criteriaSets) {

            log.debug("Adding potential and range of node " + criteriaSet.getName());

            // Source label
            sourceLabels.add(criteriaSet.getName());

            // Get root of tree
            CriteriaNode treeRoot = criteriaSet.getCriteriaTreeRoot();

            // Add values
            potentialSeries.add(treeRoot.getImportanceFactorSIF7());
            rangeSeries.add(treeRoot.getImportanceFactorSIF6());
        }

        // Set data
        data.setSeriesLabels(seriesLabels);
        data.setSourceLabels(sourceLabels);
        data.setPotentialSeries(potentialSeries);
        data.setRangeSeries(rangeSeries);
        return data;
    }
View Full Code Here

        }

        log.debug("Adding potential and range of node " + selectedCriteriaSet.getName());

        // Create data object
        PotentialToRangeData data = new PotentialToRangeData();
        // Title
        data.setTitle("Potential to Range of " + selectedCriteriaSet.getName());
        data.setSourcesTitle("Structural nodes");

        data.setFormatString("%.3f");

        // Label of series
        ArrayList<String> seriesLabels = new ArrayList<String>();
        seriesLabels.add("SIF4: Potential");
        seriesLabels.add("SIF6: Range");

        // Data lists for structural nodes
        ArrayList<String> sourceLabels = new ArrayList<String>();
        ArrayList<Double> potentialSeries = new ArrayList<Double>();
        ArrayList<Double> rangeSeries = new ArrayList<Double>();

        // Get root of tree
        CriteriaNode treeRoot = selectedCriteriaSet.getCriteriaTreeRoot();

        // Add data of root
        sourceLabels.add(treeRoot.getName());
        potentialSeries.add(treeRoot.getImportanceFactorSIF4());
        rangeSeries.add(treeRoot.getImportanceFactorSIF6());

        // Add data of other structural nodes
        for (CriteriaTreeNode criteriaTreeNode : treeRoot.getAllSuccessiveTreeNodes()) {
            if (criteriaTreeNode instanceof CriteriaNode) {
                CriteriaNode criteriaNode = (CriteriaNode) criteriaTreeNode;
                sourceLabels.add(criteriaNode.getName());
                potentialSeries.add(criteriaNode.getImportanceFactorSIF4());
                rangeSeries.add(criteriaNode.getImportanceFactorSIF6());
            }
        }

        // Set data
        data.setSeriesLabels(seriesLabels);
        data.setSourceLabels(sourceLabels);
        data.setPotentialSeries(potentialSeries);
        data.setRangeSeries(rangeSeries);

        return data;
    }
View Full Code Here

TOP

Related Classes of eu.scape_project.planning.criteria.bean.data.PotentialToRangeData

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.