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


            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

            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

            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

        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

        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

   
    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

   
    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

   
    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

   
    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

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.