Package eu.scape_project.planning.model.aggregators

Examples of eu.scape_project.planning.model.aggregators.WeightedMultiplication


        leafBeans = analyseResults.constructPlanReportLeaves();

        acceptableAlternatives = plan.getAcceptableAlternatives();

        aggMultResultNodes.clear();
        aggMultResultNodes.add(new ResultNode(plan.getTree().getRoot(), new WeightedMultiplication(), plan
            .getAlternativesDefinition().getConsideredAlternatives()));

        aggSumResultNodes.clear();
        // calculate result nodes for all considered alternatives
        ResultNode sumResultNode = new ResultNode(plan.getTree().getRoot(), new WeightedSum(), plan
View Full Code Here


            }
        }
        acceptableAlternatives = plan.getAcceptableAlternatives();

        aggMultResultNodes.clear();
        aggMultResultNodes.add(new ResultNode(plan.getTree().getRoot(), new WeightedMultiplication(), plan
            .getAlternativesDefinition().getConsideredAlternatives()));

        knockedoutAlternativePresent = acceptableAlternatives.size() != plan.getAlternativesDefinition()
            .getConsideredAlternatives().size();
        showAllConsideredAlternativesForWeightedSum = false;
View Full Code Here

     *
     * @return List of acceptable alternatives.
     */
    public List<Alternative> getAcceptableAlternatives() {
        List<Alternative> acceptableAlternatives = new ArrayList<Alternative>();
        ResultNode multNode = new ResultNode(getTree().getRoot(), new WeightedMultiplication(),
            getAlternativesDefinition().getConsideredAlternatives());

        for (Alternative a : getAlternativesDefinition().getConsideredAlternatives()) {
            Double alternativeResult = multNode.getResults().get(a.getName());
            if (alternativeResult > 0.0) {
View Full Code Here

TOP

Related Classes of eu.scape_project.planning.model.aggregators.WeightedMultiplication

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.