Package eas.plugins.standard.eaPlugin

Examples of eas.plugins.standard.eaPlugin.EAPlugin


        this.verhCodes = new LinkedList[autAnzahl];

        this.earlErk = earl;
        this.scriptInt = scriInt;
       
        if (params.getPlugIDList().contains(new EAPlugin().id())) {
            this.initAuts(autAnzahl);
        }
       
        if (autAnzahl == 0) {
            StaticMethods.log(StaticMethods.LOG_ERROR,
                          "Keine Startautomaten fuer Roboter "
                                + ident
                                + " angegeben.",
                          params);
        }
       
        this.selektiert = sel;
        this.befehle = new ArrayList<Integer>();
        this.id = ident;
        this.rand = zufall;
       
        double alpha = wink * Math.PI / 180;

        this.timerStart = null;
        this.aktBefehle = new ArrayList<Integer>();
        this.aktBefehlePar = new ArrayList<Double>();
        this.aktBewegung = 0;
        this.aktBewegungPar = 0;

        this.sensoren = new int[256];
       
        this.position = new Vector2D(x, y);
        this.ausd = new Vector2D(xAusd, yAusd);
        this.blickrichtung = new Vector2D(
                Math.cos(alpha) * this.pars.getParValueDouble(eas.statistics.ConstantsStatistics.VERZERR_ATTR),
                Math.sin(alpha) * this.pars.getParValueDouble(eas.statistics.ConstantsStatistics.VERZERR_ATTR));
        this.winkel = this.gultWinkel(wink);
        this.umg = umgebung;
        this.eckPunkte = new Vector2D[4];
        this.setEckpVeraendert();

        this.sensAnzIR = ConstantsSimulation.SENS_RICHT.length;
        this.absSensorWink = new double[this.sensAnzIR];
        this.sensOeffn = ConstantsSimulation.SENS_OEFFN;
        this.relSensorWink = new double[this.sensAnzIR];
        this.alleAbsSensRicht = new Vector2D[ConstantsSimulation.ABSTUFUNGEN]
                                          [this.sensAnzIR];
        for (int i = 0; i < this.sensAnzIR; i++) {
            this.relSensorWink[i] = ConstantsSimulation.SENS_RICHT[i];
        }
        this.setzeSensorRicht();
        this.mut = mutation;
       
//        if (params != null) {
            if (params.getPlugIDList().contains(new EAPlugin().id())) {
                this.fitZyklen = params.getParValueLong(EAPlugin.FIT_ZYK_ATTR);
                this.fitRedZyklen = params
                        .getParValueLong(EAPlugin.FIT_EVAP_ZYK_ATTR);
                this.fitRedWert = params
                        .getParValueDouble(EAPlugin.FIT_EVAP_VAL_ATTR);
View Full Code Here


     *
     * @param anzAuts  Die Anzahl der Automaten.
     */
    @SuppressWarnings(value = { "unchecked" })
    protected void initAuts(final int anzAuts) {
        if (!this.pars.getPlugIDList().contains(new EAPlugin().id())) {
            return;
        }
       
        this.aktAut = 0;
        this.aktZustand = new Knoten[anzAuts];
View Full Code Here

    private static final long serialVersionUID = -3309106623450804773L;

    @Override
    public List<String> getRequiredPlugins() {
        LinkedList<String> list = new LinkedList<String>();
        list.add(new EAPlugin().id());
        list.add(new AllroundTrajectoryPlugin().id());
        return list;
    }
View Full Code Here

    private static final long serialVersionUID = 7975273675002291371L;

    @Override
    public List<String> getRequiredPlugins() {
        LinkedList<String> list = new LinkedList<String>();
        list.add(new EAPlugin().id());
        list.add(new AllroundTrajectoryPlugin().id());
        return list;
    }
View Full Code Here

    @Override
    public void runBeforeSimulation(EnvironmentEA env, ParCollection params) {
        EnvironmentEA umg = env;
        int anzAgenten;
        EAPlugin ea = (EAPlugin) umg.getPluginObject(new EAPlugin().id());
        anzAgenten = ea.anzRob(params);
       
        this.aufnahme = new XMLAufnSpeichern(
                params,
                anzAgenten,
                umg);
View Full Code Here

     *         sein, wenn keine abhängigkeiten definiert werden sollen.
     */
    @Override
    public List<String> getRequiredPlugins() {
        ArrayList<String> liste = new ArrayList<String>(1);
        liste.add(new EAPlugin().id());
        return liste;
    }
View Full Code Here

     * @return  Benötigte Plugins: EA-Plugin.
     */
    @Override
    public List<String> getRequiredPlugins() {
        List<String> liste = super.getRequiredPlugins();
        liste.add(new EAPlugin().id());
        return liste;
    }
View Full Code Here

        // this.deleteVerz(zielVerz);
        // return "Keine Roboter in " + quellVerz.getAbsolutePath() + ".";
        // }

        // Umgebungsdateien kopieren.
        if (params.existsPlugin(new EAPlugin().id())) {
            for (final String ausg : ausgaben) {
                // Achtung: In 0, ..., 4, letzt von ausg stehen JoSchKa-Zusätze.
                final String[] ausg1 = StaticMethods.processStringAsCommandLineParameters(ausg);
                String[] ausg2; // Ohne JoSchKa-Zusätze.
                ausg2 = new String[ausg1.length - 6];
View Full Code Here

            dispose();
            SimulationStarter.main(parsNeu.getAllParsArrayView());
        } else if (arg0.getActionCommand().equals(START_MARB_BUILDER_STRING)) {
            final ParCollection parsNeu = new ParCollection(params);
            parsNeu.setMaster(new DefaultMasterEA().id());
            parsNeu.setPlugins(new String[] {new EAPlugin().id()});
            parsNeu.complete();
            dispose();
            SteuerFenster.main(StaticMethods.processStringAsCommandLineParameters(
                    parsNeu.parStrPlain().replace('\n', ' ')));
        } else if (arg0.getActionCommand().equals(START_XML_TRACE_VIEWER_STRING)) {
View Full Code Here

TOP

Related Classes of eas.plugins.standard.eaPlugin.EAPlugin

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.