Examples of newPath()


Examples of org.drools.simulation.fluent.simulation.impl.DefaultSimulationFluent.newPath()

        int counter = 0;
        int remainingInstances = numberOfAllInstances;
        for (SimulationPath path : paths) {
           
            double probability = provider.calculatePathProbability(path);
            f.newPath("path" + counter);

            int instancesOfPath = 1;
            // count how many instances/steps should current path have
            if (numberOfAllInstances > 1) {
                instancesOfPath = (int) Math.round((numberOfAllInstances * probability));
 
View Full Code Here

Examples of org.drools.simulation.fluent.simulation.impl.DefaultSimulationFluent.newPath()

       
        List list = new ArrayList();
       
        VariableContext<?> vc = f.getVariableContext();
        // @formatter:off         
        f.newPath("init")
            .newStep( 0 )
                .newKieSession( releaseId, "org.test.KBase1.KSession1" )
                    .setGlobal( "list", list ).set( "list" )
                    .startProcess("DummyProcess")
                    .fireAllRules()
View Full Code Here

Examples of org.drools.simulation.fluent.simulation.impl.DefaultSimulationFluent.newPath()

       
        List list = new ArrayList();
       
        VariableContext<?> vc = f.getVariableContext();
        // @formatter:off         
        f.newPath("init")
        .newStep( 0 )
        .newKieSession( releaseId, "org.test.KBase1.KSession1" )
            .setGlobal( "list", list ).set( "list" )
            .fireAllRules()
            .end()
View Full Code Here

Examples of org.drools.simulation.fluent.simulation.impl.DefaultSimulationFluent.newPath()

        List list1 = new ArrayList();
        List list2 = new ArrayList();
       
        VariableContext<?> vc = f.getVariableContext();
        // @formatter:off         
        f.newPath("init")
        .newStep(0)
        .newKieSession( releaseId, "org.test.KBase1.KSession1" )
            .setGlobal("list", list1).set("list")
            .fireAllRules()
            .end()
View Full Code Here

Examples of org.drools.simulation.fluent.simulation.impl.DefaultSimulationFluent.newPath()

        List list = new ArrayList();
       
        VariableContext<?> vc = f.getVariableContext();
        // @formatter:off         
        f.newPath("init")
        .newStep(0)
        .newKieSession( releaseId, "org.test.KBase1.KSession1" )
            .setGlobal("list", list).set("list")
            .fireAllRules()
            .end()
View Full Code Here

Examples of org.locationtech.geogig.api.plumbing.diff.DiffEntry.newPath()

        assertNull(de.getOldObject());
        assertNotNull(de.getNewObject());

        String expectedPath = NodeRef.appendChild(pointsName, points1.getIdentifier().getID());
        assertEquals(expectedPath, de.newPath());

        assertEquals(DiffEntry.ChangeType.ADDED, de.changeType());
        assertEquals(ObjectId.NULL, de.oldObjectId());

        assertEquals(newOid, de.newObjectId());
View Full Code Here

Examples of org.locationtech.geogig.api.plumbing.diff.DiffEntry.newPath()

        // then the diff should report an ADD instead of a DELETE
        assertNotNull(difflist);
        assertEquals(1, difflist.size());
        DiffEntry de = difflist.get(0);
        assertNull(de.oldPath());
        assertEquals(path, de.newPath());

        assertEquals(DiffEntry.ChangeType.ADDED, de.changeType());

        assertEquals(ObjectId.NULL, de.oldObjectId());
View Full Code Here

Examples of org.locationtech.geogig.api.plumbing.diff.DiffEntry.newPath()

        assertNotNull(difflist);
        assertEquals(1, difflist.size());
        DiffEntry de = difflist.get(0);
        String expectedPath = NodeRef.appendChild(pointsName, featureId);
        assertEquals(expectedPath, de.newPath());

        assertEquals(DiffEntry.ChangeType.MODIFIED, de.changeType());
        assertEquals(oldOid, de.oldObjectId());

        assertEquals(newOid, de.newObjectId());
View Full Code Here

Examples of org.locationtech.geogig.api.plumbing.diff.DiffEntry.newPath()

        DiffEntry de = difflist.get(0);

        assertNull(de.getOldObject());
        assertNotNull(de.getNewObject());

        assertEquals(linesName, de.newPath());

        assertEquals(DiffEntry.ChangeType.ADDED, de.changeType());
        assertEquals(ObjectId.NULL, de.oldObjectId());
        assertFalse(de.getNewObject().getMetadataId().isNull());
    }
View Full Code Here

Examples of org.locationtech.geogig.api.plumbing.diff.DiffEntry.newPath()

        DiffEntry de = difflist.get(0);

        assertNull(de.getOldObject());
        assertNotNull(de.getNewObject());

        assertEquals(linesName, de.newPath());

        assertEquals(DiffEntry.ChangeType.ADDED, de.changeType());
        assertEquals(ObjectId.NULL, de.oldObjectId());
        assertFalse(de.getNewObject().getMetadataId().isNull());
    }
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.