Package eu.scape_project.planning.model.values

Examples of eu.scape_project.planning.model.values.TargetValue


    }

    @Test
    public void testWorstOneValue() {
        TargetValues values = new TargetValues();
        values.list().add(new TargetValue(1.0));
        assertEquals(1.0, values.worst(), EPSILON);
    }
View Full Code Here


    }

    @Test
    public void testWorstAscendingValues() {
        TargetValues values = new TargetValues();
        values.getList().add(new TargetValue(1.5));
        values.getList().add(new TargetValue(2.0));
        values.getList().add(new TargetValue(5.0));

        assertEquals(1.5, values.worst(), EPSILON);
    }
View Full Code Here

    }

    @Test
    public void testWorstDescendingValues() {
        TargetValues values = new TargetValues();
        values.getList().add(new TargetValue(5.0));
        values.getList().add(new TargetValue(2.0));
        values.getList().add(new TargetValue(1.5));

        assertEquals(1.5, values.worst(), EPSILON);
    }
View Full Code Here

TOP

Related Classes of eu.scape_project.planning.model.values.TargetValue

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.