Examples of ResultNode


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

            sl.setWeight(0.1);
        }
        l1.setWeight(0.1);
        l2.setWeight(0.1);
       
        ResultNode resultRoot = new ResultNode(root, new WeightedSum(), alternatives);
        resultRoot.analyseSensitivity(weightModifier,
                SensitivityAnalysisTestFactory.getSensitivityTest(root, new WeightedSum(), alternatives));
       
        assert(resultRoot.isSensitive());
    }
View Full Code Here

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

            sl.setWeight(0.05);
        }
        l1.setWeight(0.3);
        l2.setWeight(0.3);
       
        ResultNode resultRoot = new ResultNode(root, new WeightedSum(), alternatives);
        resultRoot.analyseSensitivity(weightModifier,
                SensitivityAnalysisTestFactory.getSensitivityTest(root, new WeightedSum(), alternatives));
       
        assert(!resultRoot.isSensitive());
    }
View Full Code Here

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

            sl.setWeight(0.11);
        }
        l1.setWeight(0.06);
        l2.setWeight(0.06);
       
        ResultNode resultRoot = new ResultNode(root, new WeightedSum(), alternatives);
        resultRoot.analyseSensitivity(weightModifier,
                SensitivityAnalysisTestFactory.getSensitivityTest(root, new WeightedSum(), alternatives));
       
        assert(resultRoot.isSensitive());
    }
View Full Code Here

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

        l1.setWeight(0.164);
        l2.setWeight(0.164);
       
       
       
        ResultNode resultRoot = new ResultNode(root, new WeightedSum(), alternatives);
        resultRoot.analyseSensitivity(weightModifier,
                SensitivityAnalysisTestFactory.getSensitivityTest(root, new WeightedSum(), alternatives));
       
        assert(!resultRoot.isSensitive());
    }
View Full Code Here

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

        l1.setWeight(0.156);
        l2.setWeight(0.156);
       
       
       
        ResultNode resultRoot = new ResultNode(root, new WeightedSum(), alternatives);
        resultRoot.analyseSensitivity(weightModifier,
                SensitivityAnalysisTestFactory.getSensitivityTest(root, new WeightedSum(), alternatives));
       
        assert(resultRoot.isSensitive());
    }
View Full Code Here

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

   
    public void testUnstableWeights() {
        leaf11.setWeight(0.55);
        leaf12.setWeight(0.45);
       
        ResultNode resultRoot = new ResultNode(root, new WeightedSum(), alternatives);
        resultRoot.analyseSensitivity(weightModifier,
                SensitivityAnalysisTestFactory.getSensitivityTest(root, new WeightedSum(), alternatives));
       
        assert(getResult(resultRoot, child1).isSensitive());
        assert(resultRoot.isAnyChildSensitive());
        assert(resultRoot.isSensitive(true));
    }
View Full Code Here

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

   
    public void testYetUnstableWeights() {
        leaf11.setWeight(0.59);
        leaf12.setWeight(0.41);
       
        ResultNode resultRoot = new ResultNode(root, new WeightedSum(), alternatives);
        resultRoot.analyseSensitivity(weightModifier,
                SensitivityAnalysisTestFactory.getSensitivityTest(root, new WeightedSum(), alternatives));
       
        //assert(resultRoot.isSensitive());
        assert(getResult(resultRoot, child1).isSensitive());
    }   
View Full Code Here

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

   
    public void testStableWeights() {
        leaf11.setWeight(0.81);
        leaf12.setWeight(0.29);
       
        ResultNode resultRoot = new ResultNode(root, new WeightedSum(), alternatives);
        resultRoot.analyseSensitivity(weightModifier,
                SensitivityAnalysisTestFactory.getSensitivityTest(root, new WeightedSum(), alternatives));
       
        assert(!getResult(resultRoot, child1).isSensitive());
    }
View Full Code Here

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

   
    public void testYetStableWeights() {
        leaf11.setWeight(0.69);
        leaf12.setWeight(0.31);
       
        ResultNode resultRoot = new ResultNode(root, new WeightedSum(), alternatives);
        resultRoot.analyseSensitivity(weightModifier,
                SensitivityAnalysisTestFactory.getSensitivityTest(root, new WeightedSum(), alternatives));
       
        assert(!getResult(resultRoot, child1).isSensitive());
    }
View Full Code Here

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

        // the alternative a2 becomes the new winner
        // in other words the current weighting is unstable
        sf1.setWeight(0.49);
        sf2.setWeight(0.51);
       
        ResultNode resultRoot = new ResultNode(root, new WeightedSum(), alternatives);
        resultRoot.analyseSensitivity(weightModifier,
                SensitivityAnalysisTestFactory.getSensitivityTest(root, new WeightedSum(), alternatives));
        assert(resultRoot.isSensitive());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.