Examples of fitInBoundingRectangle()


Examples of eas.simulation.spatial.sim2D.standardScenes.ObstacleScene.fitInBoundingRectangle()

    @Override
    public WandaEnvironment<AbstractAgent2D<?>>[] generateRunnables(ParCollection params) {
        WandaEnvironment<AbstractAgent2D<?>> env = new WandaEnvironment<AbstractAgent2D<?>>(0, params);

        Scene2D<AbstractAgent2D<?>> scene = new ObstacleScene(params);
        scene.fitInBoundingRectangle(new Vector2D(-1000, -1000), new Vector2D(1500, 1500));
        env.addScene(scene);

        Random rand = new Random(params.getSeed());
        for (int i = 0; i < 5; i++) {
            WandaAgent agent = new WandaAgent(i, env, params);
View Full Code Here

Examples of eas.simulation.spatial.sim2D.standardScenes.ObstacleScene.fitInBoundingRectangle()

        double agentSize = 1;
       
        Random rand = new Random(params.getSeed());
       
        Scene2D<AbstractAgent2D<?>> scene1 = new ObstacleScene(params);
        scene1.fitInBoundingRectangle(new Vector2D(-20, -20), new Vector2D(80, 20), Scene2D.FITTING_MODE_FIT_UPPER_LEFT);
        runnable.addScene(scene1);
       
        Scene2D<AbstractAgent2D<?>> scene2 = new ObstacleScene(params);
        scene2.fitInBoundingRectangle(new Vector2D(-5, -5), new Vector2D(5, 5), Scene2D.FITTING_MODE_FIT_UPPER_LEFT);
        runnable.addScene(scene2);
View Full Code Here

Examples of eas.simulation.spatial.sim2D.standardScenes.ObstacleScene.fitInBoundingRectangle()

        Scene2D<AbstractAgent2D<?>> scene1 = new ObstacleScene(params);
        scene1.fitInBoundingRectangle(new Vector2D(-20, -20), new Vector2D(80, 20), Scene2D.FITTING_MODE_FIT_UPPER_LEFT);
        runnable.addScene(scene1);
       
        Scene2D<AbstractAgent2D<?>> scene2 = new ObstacleScene(params);
        scene2.fitInBoundingRectangle(new Vector2D(-5, -5), new Vector2D(5, 5), Scene2D.FITTING_MODE_FIT_UPPER_LEFT);
        runnable.addScene(scene2);
        runnable.removeAgent(7);
       
        double factor = 12;
        int startSize = runnable.getAgents().size();
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.