Package eas.simulation.spatial.sim2D.marbSimulation.translator

Examples of eas.simulation.spatial.sim2D.marbSimulation.translator.Translator


     * auffasst und daraus auf die klassische Weise einen Automaten aus einem
     * Code erzeugt. Der Modus für diesen Translator ist "Verhalten", also
     * werden damit Verhaltensautomaten generiert.
     */
    public static Translator getStdTranslatorBE(final ParCollection params) {
        return new Translator(
                ConstantsTranslatorWOC.STD_TRANS_STR,
                new ScriptInterpreter(
                        params,
                        ScriptInterpreter.MODUS_VERHALTEN),
                params);
View Full Code Here


     * auffasst und daraus auf die klassische Weise einen Automaten aus einem
     * Code erzeugt. Der Modus für diesen Translator ist "Translator", also
     * werden damit Translatorautomaten generiert.
     */
    public static Translator getStdTranslatorTR(final ParCollection params) {
        return new Translator(
                ConstantsTranslatorWOC.STD_TRANS_STR,
                new ScriptInterpreter(params, ScriptInterpreter.MODUS_TRANSLATOR),
                params);
    }
View Full Code Here

                    trStr = eas.simulation.spatial.sim2D.marbSimulation.translator.ConstantsTranslator.STD_TRANS_STR;
                } else {
                    trStr = ConstantsTranslatorWOC.STD_TRANS_STR;
                }
               
                this.translatoren[i] = new Translator(
                      trStr,
                      new ScriptInterpreter(
                              this.getPars(),
                              ScriptInterpreter.MODUS_VERHALTEN),
                      this.getPars());
View Full Code Here

                    trStr = ConstantsTranslator.STD_TRANS_STR;
                } else {
                    trStr = ConstantsTranslatorWOC.STD_TRANS_STR;
                }
               
                trans2[i] = new Translator(
                        trStr,
                        new ScriptInterpreter(
                                this.getPars(),
                                StaticMethods.MODUS_TRANSLATOR),
                        this.getPars());
View Full Code Here

//        if (trans != null) {
//            altMod = trans.getModus();
//            trans.setModus(SonstMeth.MODUS_TRANSLATOR);
//        }
       
        this.translatoren[transNum] = new Translator(
                "",
                new ScriptInterpreter(
                        this.getPars(),
                        ScriptInterpreter.MODUS_VERHALTEN),
                this.getPars());
View Full Code Here

        // Unter Voraussetzung, dass es nur die zwei Varianten gibt...
        if (pluginCasc == null) { // CompletelyEvolvable...
            list.add(this.getTranslatoren()[0]);
        } else { // Cascading...
            int i = 1; // Beginne bei 1. Translator-Level (0 = Verhalten).
            Translator trans = (Translator) pluginCasc.getAutomat(this.id(), i);
            while (trans != null) {
                list.add(trans);
                i++;
                trans = null;
                try {
View Full Code Here

            final String seq,
            final Translator trans,
            final boolean pruefen,
            final ParCollection params) {
        String seq2 = this.bereinige(seq);
        Translator trans2, konstTrBE;
       
        if (params.getParValueBoolean("UseTranslatorWITHCompletingTransitions")) {
            konstTrBE = ConstantsTranslator.getStdTranslatorBE(params);
        } else {
            konstTrBE = ConstantsTranslatorWOC.getStdTranslatorBE(params);
        }
       
        if (trans == null) {
            trans2 = konstTrBE;
        } else {
            trans2 = trans;
        }

        if (Konstanten.SEQUENZ_KORREKTHEIT_PRUEFEN) {
            if (pruefen) {
                if (!this.seqKorrPruef(seq2)) {
                    return;
                }
            }
        }
       
        /**
         * Anmerkung (Sabrina): if Teil der Bedingung war auskommentiert und wurde
         * wieder einkommentiert um das Aging nutzen zu können
         */
        // Falls nur Standardkodierung verwendet werden soll: (TODO!)
        if (params.getParValueBoolean("UseOnlyStandardDecoding")) {
            this.erzeugeAusStdSequenz(seq2, pruefen);
        } else {
            Script neuScript = trans2.translate(seq2);
            trans2.getScriptInterpreter().generateAutomaton(this, neuScript);
        }
    }
View Full Code Here

                a = new fmg.fmg8.statistik.Aufnahme(
                        "C:/Users/aifb/Desktop/GECCO2010/simTrans/FMG0_9_simStatistik_0" + statnum + ".dat");

                for (int i = 0; i < a.getPops().size(); i++) {
                    for (int j = 0; j < 1; j++) {
                        Translator trans = new Translator(a.getPops().get(i)
                                .getRobSchnapp()[j].getTStdCodes()[0],
                                new ScriptInterpreter(params,
                                        ScriptInterpreter.MODUS_VERHALTEN),
                                params);
                        tempList = m.measureManyTimes(trans, times);
View Full Code Here

                                                .bereinigeStatic(a.getPops()
                                                        .get(i).getRobSchnapp()[j]
                                                        .getTStdCodes()[0]));
                                ArrayList<Integer> newSeq = StaticMethods
                                        .convertTransFromFMGWithoutCompletingTransitionsToAequivalentNew(oldSeq);
                                Translator trans = new Translator(
                                        StaticMethods.stringAusListSeq(newSeq),
                                        new ScriptInterpreter(
                                                params,
                                                ScriptInterpreter.MODUS_VERHALTEN),
                                        params);
View Full Code Here

        this.popNum = pop.getId();
        this.graphen.clear();
       
        for (int i = 0; i < robs.length; i++) {
            for (int j = 0; j < trans.length; j++) {
                trans[j] = new Translator(
                        robs[i].getTStdCodes()[j],
                        new ScriptInterpreter(
                                this.aktParams,
                                StaticMethods.MODUS_TRANSLATOR),
                        this.aktParams);
View Full Code Here

TOP

Related Classes of eas.simulation.spatial.sim2D.marbSimulation.translator.Translator

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.