Package fmg.fmg8.endlAutomat

Examples of fmg.fmg8.endlAutomat.EndlicherAutomat


        }

        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

     *
     * @return  Die mutierte Bedingung.
     */
    @Override
    public Condition mutiere(final Condition cond) {
        EndlicherAutomat aut = new EndlicherAutomat();
        Long[] intObj = new Long[5];
        ArrayList<Long> vert = new ArrayList<Long>(5);
       
        aut.einfuegenKnoten(1, 1, 1, 1);
        aut.einfuegKante(1, 1, cond, 1);

       
        for (int i = 0; i < intObj.length; i++) {
            intObj[i] = new Long(i);
        }
       
        vert.add(new Long(10)); // 0 : mutationBedA
        vert.add(new Long(9)); //  1 : mutationBedBeinfacher
        vert.add(new Long(3)); //  2 : mutationBedZahl
        vert.add(new Long(6)); //  3 : mutationBedkomplexer
        vert.add(new Long(1)); //  4 : mutationBedSensVar
       
        Long rnd = (Long) MathMeth.randVerteilung(
                intObj,
                vert,
                this.getRand());
       
        switch(rnd.intValue()) {
        case 0:
            this.mutationBedA(aut);
            break;
        case 1:
            this.mutationBedBeinfacher(aut);
            break;
        case 2:
            this.mutationBedZahl(aut);
            break;
        case 3:
            this.mutationBedkomplexer(aut);
            break;
        case 4:
            this.mutationBedSensVar(aut);
            break;
        default:
            break;
        }

        return aut.holeKnoten(1).getInfo().getBedingungen().get(0).getCond();
    }
View Full Code Here

TOP

Related Classes of fmg.fmg8.endlAutomat.EndlicherAutomat

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.