Package eu.planets_project.pp.plato.bean

Examples of eu.planets_project.pp.plato.bean.ResultNode


       
        sf1.setWeight(sf1Weight);
        sf2.setWeight(sf2Weight);
        sf3.setWeight(sf3Weight);
       
        ResultNode resultRoot = new ResultNode(root, new WeightedSum(), alternatives);
        resultRoot.analyseSensitivity(weightModifier,
                SensitivityAnalysisTestFactory.getSensitivityTest(root, new WeightedSum(), alternatives));

        assert(!resultRoot.isSensitive());
    }
View Full Code Here


        /*
         * Set roots and fill result-beans of the Multiplication- and Sum-Trees.
         */
        if (this.selectedPlan.getState().getValue() >= PlanState.TRANSFORMATION_DEFINED) {
            multNode = new ResultNode(selectedPlan.getTree().getRoot(),
                    new WeightedMultiplication(), selectedPlan.getAlternativesDefinition().getConsideredAlternatives());

            for (Alternative a: this.selectedPlan.getAlternativesDefinition().getConsideredAlternatives()) {
                Double d= multNode.getResults().get(a.getName());
                if (d > 0.0) {
                    this.acceptableAlternatives.add(a);
                }
            }

            sumNode = new ResultNode(selectedPlan.getTree().getRoot(),
                    sumAggregator,
                    acceptableAlternatives);
        }
       
       
View Full Code Here

        /*
         * Set roots and fill result-beans of the Multiplication- and Sum-Trees.
         */
        if (this.selectedPlan.getState().getValue() >= PlanState.TRANSFORMATION_DEFINED) {
            multNode = new ResultNode(selectedPlan.getTree().getRoot(),
                    new WeightedMultiplication(), selectedPlan.getAlternativesDefinition().getConsideredAlternatives());

            for (Alternative a: this.selectedPlan.getAlternativesDefinition().getConsideredAlternatives()) {
                Double d= multNode.getResults().get(a.getName());
                if (d > 0.0) {
                    this.acceptableAlternatives.add(a);
                }
            }

            sumNode = new ResultNode(selectedPlan.getTree().getRoot(),
                    sumAggregator,
                    selectedPlan.getAlternativesDefinition().getConsideredAlternatives());
        }

        this.recommendationAlternatives = new String[acceptableAlternatives.size()];
View Full Code Here

TOP

Related Classes of eu.planets_project.pp.plato.bean.ResultNode

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.