Examples of AllroundVideoPlugin


Examples of eas.plugins.standard.visualization.AllroundVideoPlugin

        this.nextAgent = this.getRandomTile(params);
    }

    private void initializeVidPlug(TetrisEnvAutomatic env) {
        if (vidPlug == null) {
            vidPlug = (AllroundVideoPlugin) env.getSimTime().getPluginObject(new AllroundVideoPlugin().id());
        }
        if (vidPlug != null) {
            env.getSimTime().requestEvents(vidPlug, new KeyEventFilter());
//            vidPlug.getLiveWindow().setAlwaysOnTop(true);
//            vidPlug.getLiveWindow().setSize(500, 666);
View Full Code Here

Examples of eas.plugins.standard.visualization.AllroundVideoPlugin

        String parameters = "cd data\n"
                + "java -Xmx900M -cp \"./*;./" + JAR_FILE_NAME + "\" eas.startSetup.Starter "
                + "startimmediately true "
                + "masterScheduler simStateLoader "
                + "plugin null "
                + SimStateLoaderMaster.ADDITIONAL_PLUGINS_TO_LOAD_PARNAME + " " + new AllroundVideoPlugin().id() + " "
                + SimStateLoaderMaster.PLUGINS_TO_REMOVE_PARNAME + " " + new AllroundSimstateStorerPlugin().id() + " "
                + "filePath ../" + this.data.getStorageFile().getName();
       
        StaticMethods.speichereTextDatei(
                this.data.getStorageFile().getParent(),
                this.data.getStorageFile().getName().replace(".eas", "") + ".bat",
                parameters,
                GlobalVariables.getPrematureParameters());
       
        // Linux.
        parameters = "#!/bin/bash \n\n"
                + "function startMe {\n\n"
                + "java -Xmx900M -cp \"./*:./" + JAR_FILE_NAME + "\" eas.startSetup.Starter "
                + "masterScheduler simStateLoader "
                + "plugin null "
                + SimStateLoaderMaster.ADDITIONAL_PLUGINS_TO_LOAD_PARNAME + " " + new AllroundVideoPlugin().id() + " "
                + SimStateLoaderMaster.PLUGINS_TO_REMOVE_PARNAME + " " + new AllroundSimstateStorerPlugin().id() + " "
                + "filePath ../" + this.data.getStorageFile().getName()
                + "\n\n}\n\nstartMe";
       
        StaticMethods.speichereTextDatei(
View Full Code Here

Examples of eas.plugins.standard.visualization.AllroundVideoPlugin

    public List<SingleParameter> getParameters() {
        LinkedList<SingleParameter> list = new LinkedList<SingleParameter>();
        list.add(new SingleParameter("filePath", Datatypes.STRING, "null", SimStateLoaderMaster.class));
       
        ArrayListString stdAddPlugs = new ArrayListString();
        stdAddPlugs.add(new AllroundVideoPlugin().id());
        ArrayListString stdRemPlugs = new ArrayListString();
        stdAddPlugs.add(new AllroundSimstateStorerPlugin().id());

        list.add(new SingleParameter(ADDITIONAL_PLUGINS_TO_LOAD_PARNAME, Datatypes.STRING_ARR, stdAddPlugs, SimStateLoaderMaster.class));
        list.add(new SingleParameter(PLUGINS_TO_REMOVE_PARNAME, Datatypes.STRING_ARR, stdRemPlugs, SimStateLoaderMaster.class));
View Full Code Here

Examples of eas.plugins.standard.visualization.AllroundVideoPlugin

        existiert = false;
        String[] plugs = new String[this.pars.getPlugIDArray().length + 1];
        int i = 0;
        for (i = 0; i < this.pars.getPlugIDArray().length; i++) {
            plugs[i] = this.pars.getPlugIDArray()[i];
            if (plugs[i].equals(new AllroundVideoPlugin().id())) {
                existiert = true;
                break;
            }
        }
        if (!existiert) {
            plugs[plugs.length - 1] = new AllroundVideoPlugin().id();
            this.pars.setPlugins(plugs);
            this.pars.setParValue(AllroundVideoPlugin.LIVE_FILM_PAR, true);
        }
       
        this.pars.complete();
View Full Code Here

Examples of eas.plugins.standard.visualization.AllroundVideoPlugin

        }

        // Diffuse trail / store picture:
        this.diffuseTrail();
       
        AllroundVideoPlugin video
            = (AllroundVideoPlugin) umg.getPluginObject(new AllroundVideoPlugin().id());
        if (video != null) {
            video.setDarBild(this.erzeugeFeldBild());
        }
    }
View Full Code Here

Examples of eas.plugins.standard.visualization.AllroundVideoPlugin

    public synchronized void runDuringSimulation(TrafficEnvironment env, Wink currentSimTime, ParCollection params) {
        super.runDuringSimulation(env, currentSimTime, params);
       
        if (currentSimTime.getLastTick() == 1) {
            try {
                AllroundVideoPlugin vid = (AllroundVideoPlugin) env.getSimTime().getPluginObject(new AllroundVideoPlugin().id());
                vid.setPauseInterval(2000);
            } catch (Exception e) {
            }
        }
    }
View Full Code Here

Examples of eas.plugins.standard.visualization.AllroundVideoPlugin

    public double distanceToTarget() {
        return this.getAgentPosition().distance(getTargetLocation());
    }
   
    public boolean isMarked() {
        AllroundVideoPlugin v = (AllroundVideoPlugin) this.getEnvironment().getSimTime().getPluginObject(new AllroundVideoPlugin().id());
        return v.getMarkedAgentId() == this.id();
    }
View Full Code Here

Examples of eas.plugins.standard.visualization.AllroundVideoPlugin

        this.removeAllGridObjects();
       
        try {
            this.positionStreets(TrafficParameters.numStreets, TrafficParameters.proportionOfRoundabouts / 100.0);
            this.positionCars(TrafficParameters.numCars);
            AllroundVideoPlugin vid = (AllroundVideoPlugin) this.getSimTime().getPluginObject(new AllroundVideoPlugin().id());
            vid.showTooltipps(false);
            vid.setFollowAgent(true);
        } catch (Exception e) {}
    }
View Full Code Here

Examples of eas.plugins.standard.visualization.AllroundVideoPlugin

    @MethodRunnableProperties(ignoreMethod=true)
    public synchronized BufferedImage getOutsideView() {
        BufferedImage img = super.getOutsideView();
       
        try {
            AllroundVideoPlugin vid = (AllroundVideoPlugin) this.getSimTime().getPluginObject(new AllroundVideoPlugin().id());
            CarAgent c = (CarAgent) this.getAgent(vid.getMarkedAgentId());
            Graphics2D g = img.createGraphics();
            g.setColor(Color.blue);
           
            Polygon2D pol = new Polygon2D();
            pol.add(new Vector2D(c.getTargetLocation()).add(new Vector2D(0.5, 0.5)));
View Full Code Here

Examples of eas.plugins.standard.visualization.AllroundVideoPlugin

        { // In allen anderen Zyklen...
          pop.step()
          stigmergy.repaint();
        }
       
        AllroundVideoPlugin video = (AllroundVideoPlugin) umg.getSimTime().getPluginObject(
                new AllroundVideoPlugin().id());
        if (video != null) {
            video.setDarBild(this.erzeugeBild());
        }
    }
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.