Package fmg.fmg8.graphVis.zeichenModi

Examples of fmg.fmg8.graphVis.zeichenModi.Strecke2D


        }

        if (this.isSelektiert()) {
            this.getAktVAut().setzeChanged();
            this.getAktVAut().notifyObservers(
                    new AutomatenNummer(
                            this.getAktVAut().erzeugeStringSeq(),
                            this.getAktAutNum()));
           
        }
    }
View Full Code Here


        this.mut.mutiere((Roboter) this);
       
        if (this.isSelektiert()) {
            this.vAut[this.aktAut].setzeChanged();
            this.vAut[this.aktAut].notifyObservers(
                    new AutomatenNummer(
                            this.vAut[this.aktAut].erzeugeStringSeq(),
                            this.aktAut));
           
        }
    }
View Full Code Here

        if (this.selektiert != sel) {
            this.selektiert = sel;

            this.vAut[this.aktAut].setzeChanged();
            this.vAut[this.aktAut].notifyObservers(
                new AutomatenNummer(this.vAut[this.aktAut].erzeugeStringSeq(),
                                    this.aktAut));
        }
    }
View Full Code Here

    public void simBeendet() {
        if (this.pars.getGraphisch().booleanValue()) {
            for (int i = 0; i < this.vAut.length; i++) {
                this.vAut[i].setzeChanged();
                this.vAut[i].notifyObservers(
                        new AutomatenNummer(this.vAut[i].erzeugeStringSeq(),
                                            i));
            }
        }
    }
View Full Code Here

       
        if (this.isSelektiert()) {
            for (int i = 0; i < this.vAut.length; i++) {
                this.vAut[i].setzeChanged();
                this.vAut[i].notifyObservers(
                    new AutomatenNummer(this.vAut[i].erzeugeStringSeq(),
                                        i));
            }
        }
    }
View Full Code Here

        }
       
        if (this.isSelektiert()) {
            this.vAut[autNum].setzeChanged();
            this.vAut[autNum].notifyObservers(
                    new AutomatenNummer(this.vAut[autNum].erzeugeStringSeq(),
                                        autNum));
        }
    }
View Full Code Here

     * @param arg
     *            Der Zusatzparameter.
     */
    public void update(final Observable o, final Object arg) {
        Knoten k;
        AutomatenNummer aN;
        ConditionNummer cN;
        int autNum;

        if (arg == null) {
            return;
        }

        if (arg.getClass().equals(Integer.class)) {
            // Neuer Automat wurde ausgew�hlt.
            autNum = ((Integer) arg).intValue();
            this.benutztAut = autNum;
            this.selectAktAut(false, autNum);
        } else if (arg.getClass().equals(Knoten.class)) {
            // Neuer Knoten wurde ausgew�hlt.
            k = (Knoten) arg;
            this.selKnoten(k, this.benutztAut);
        } else if (arg.getClass().equals(AutomatenNummer.class)) {
            // Sequenz wurde ver�ndert.
            aN = (AutomatenNummer) arg;
            this.erzeugeAusSequenz(aN.getAutNum(),
                                   aN.getSequenz(),
                                   null,
                                   false);
        } else if (arg.getClass().equals(ConditionNummer.class)) {
            // Bedingungen wurden ver�ndert.
            cN = (ConditionNummer) arg;
View Full Code Here

                            this.getPars(),
                            ScriptInterpreter.MODUS_VERHALTEN),
                    this.getPars());
            this.translatoren[i].erzeugeAusSequenz(seqs[i], trans2[i], pruefen);
           
            bereinigt = (new EndlicherAutomat()).bereinige(seqs[i]);
            this.transCodes[i] = SonstMeth.listSeqAusString(bereinigt);
        }
    }
View Full Code Here

            if (i < Konstanten.FIT_VERFAHREN.length) {
                this.fitVs[i] = Konstanten.FIT_VERFAHREN[i];
            } else {
                this.fitVs[i] = this.fitVs[i - 1];
            }
            this.vAut[i] = new EndlicherAutomat(this.earlErk, this.scriptInt);
            if (this.pars.getGraphisch().booleanValue()
                    && this.observer != null) {
                this.vAut[i].addObserver(this.observer);
            }
        }
View Full Code Here

     *                 Population von neuen Robotern im Robotercode-Format.
     */
    public void uebernimmPop(final ArrayList<RobCode> semiPop) {
        Iterator<Roboter> itAkt;
        Roboter rob;
        RobCode robC;
        Iterator<RobCode> itSemi;
        Translator[] stdTrans
            = new Translator[semiPop.get(0).getVCodes().length];
       
        for (int i = 0; i < stdTrans.length; i++) {
            stdTrans[i]
                = fmg.fmg8.endlAutomat.translator.Konstanten.STD_TRANSL_TR;
        }
       
        itAkt = this.akteure.iterator();
        itSemi = semiPop.iterator();
        while (itAkt.hasNext() && itSemi.hasNext()) {
            rob = itAkt.next();
            robC = itSemi.next();
           
            rob.erzTransAusSeqs(robC.getTStdCodes(), stdTrans, false);
            rob.erzeugeAusSequenzen(
                    robC.getVCodes(),
                    rob.getConds(),
                    rob.getTranslatoren(),
                    false);
           
            rob.setTransCodes(SonstMeth.listSeqAusStrings(robC.getTCodes()));
            rob.setVerhCodes(SonstMeth.listSeqAusStrings(robC.getVCodes()));
            rob.setFitness(robC.getFitness());
           
//          rob.setConds(rob2.getConds()); TODO
        }
    }
View Full Code Here

TOP

Related Classes of fmg.fmg8.graphVis.zeichenModi.Strecke2D

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.