Package org.drools.planner.core.score.buildin.hardandsoft

Examples of org.drools.planner.core.score.buildin.hardandsoft.DefaultHardAndSoftScore.compareTo()


        Score b = new DefaultHardAndSoftScore(-20, -20);
        Score c = new DefaultHardAndSoftScore(-20);
        assertTrue(a.compareTo(b) > 0);
        assertTrue(b.compareTo(a) < 0);
        assertTrue(b.compareTo(c) > 0);
        assertTrue(c.compareTo(b) < 0);
    }

    @Test
    public void feasible() {
        assertEquals(true, new DefaultHardAndSoftScore(0, -300).isFeasible());
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.