Package fmg.fmg8.endlAutomat.conditions

Examples of fmg.fmg8.endlAutomat.conditions.InnerNode


            // Operator
            if (this.tokenIsInClasses(token, this.tcOperator)) {
                char value = this.actualValue(token).charAt(0);
                condR = this.stack.pop();
                condL = this.stack.pop();
                cond = new InnerNode(condL, condR, value);
               
                this.stack.push(cond);
            }
           
        } else {
View Full Code Here


            i++) {
            zwisch = SonstMeth.ausFormatBed(
                    this.holeKnoten(kn1).getInfo().
                        getBedingungen().get(i).getCond().formatted());
            zwisch.negiere();
            cond = new InnerNode(cond, zwisch, endlicherAutomat.Konstanten.UND);
        }
       
        cond = cond.simplify();
       
        if (!cond.equals(new ConstLeaf(false))) {
View Full Code Here

            } else if (bedingung.charAt(i)
                    == fmg.fmg8.endlAutomat.Konstanten.KZ) {
                klammerAuf--;
            } else if (klammerAuf == 1
                       && istBoolOperator(bedingung.charAt(i))) {
                return new InnerNode(ausFormatBed(bedingung.substring(3,
                                                                i - 1)),
                                     ausFormatBed(bedingung.substring(i + 2,
                                                     bedingung.length() - 3)),
                                     bedingung.charAt(i));
            }
View Full Code Here

                zielKnNum = (Integer) knotZuord[i].get(zielKn.holeName());
                neuBed = SonstMeth.ausFormatBed(conds[i].formatted());
                for (int j = 0; j < i; j++) {
                    zwischBed = SonstMeth.ausFormatBed(conds[j].formatted());
                    zwischBed.negiere();
                    neuBed = new InnerNode(neuBed,
                                           zwischBed,
                                           fmg.fmg8.endlAutomat.Konstanten.UND);
                }
               
                for (int j = 0; j < eas.length; j++) {
                    if (j != i) {
                        knot = new ArrayList<Integer>(
                                eas[j].holAdj().keySet());
                        it = knot.iterator();
                       
                        while (it.hasNext()) {
                            aktKnNum = (Integer) knotZuord[j].get(it.next());
                            neu.einfuegKante(aktKnNum, zielKnNum, neuBed, 1);
                        }
                    }
                }
            }
        }

        // Neue Kanten INTRA Automaten zuordnen.
        for (int i = 0; i < eas.length; i++) {
            knot1 = new ArrayList<Integer>(eas[i].holAdj().keySet());
            it1 = knot1.iterator();
           
            while (it1.hasNext()) {
                numOrig1 = it1.next();
                aktKnNum = (Integer) knotZuord[i].get(numOrig1);
                aktKn = eas[i].holeKnoten(numOrig1);
               
                if (aktKn.getInfo() != null
                        && aktKn.getInfo().getBedingungen() != null) {
                    trans = aktKn.getInfo().getBedingungen();
                    it3 = trans.iterator();
                   
                    while (it3.hasNext()) {
                        tran = it3.next();
                        numOrig2 = tran.getFolgezustand();
                        zielKnNum = (Integer) knotZuord[i].get(numOrig2);
                        aktBed = tran.getCond();
                       
                        if (aktBed != null) {
                            neu.einfuegKante(aktKnNum, zielKnNum, aktBed, 1);
                        }
                    }
                }
            }
        }

        // true - Kanten zu den einzelnen Startknoten einf�gen.
        for (int i = 0; i < eas.length; i++) {
            zielKn = eas[i].holeStartzustand();
           
            if (zielKn != null) {
                zielKnNum = (Integer) knotZuord[i].get(zielKn.holeName());
               
                knot = new ArrayList<Integer>(eas[i].holAdj().keySet());
                it = knot.iterator();
               
                while (it.hasNext()) {
                    aktKnNum = (Integer) knotZuord[i].get(it.next());
                    neu.einfuegKante(aktKnNum,
                                     zielKnNum,
                                     SonstMeth.ausBed("t"),
                                     1);
                }
            }
        }

        // Einen IDLE-Startknoten einf�gen.
        idlBefehl = SonstMeth.posSuch(fmg.fmg8.umgebung2D.Konstanten.BEF,
                                      "IDL");
        neu.einfuegenKnoten(lfdNr, idlBefehl, 1, 1);
        neu.setStart(neu.holeKnoten(lfdNr));
        for (int i = 0; i < conds.length; i++) {
            if (i > 0) {
                neuBed = conds[i];
            } else {
                neuBed = SonstMeth.ausFormatBed(conds[i].formatted());
                for (int j = 1; j < conds.length; j++) {
                    zwischBed = SonstMeth.ausFormatBed(conds[j].formatted());
                    zwischBed.negiere();
                    neuBed = new InnerNode(
                            neuBed,
                            zwischBed,
                            fmg.fmg8.endlAutomat.Konstanten.ODER);
                }
            }
View Full Code Here

                        this.pars.getMutSeqLenKonstTrans(),
                        this.rand);

                visRob = new VisMantel(grNam,
                        this.umgebung,
                        new MutationSEQ(mutSeqVerh, true, false),
                        new MutationSEQ(mutSeqTrans, false, true),
                        this.rand,
                        this.kleinsteFreieID(),
                        this.pars,
                        sel,
                        obs);
View Full Code Here

                        }
                    }
                }
               
                MutSeqVerf mutSeqVerh = new MutationKlWkeit(
                        new EinzelMutAdd(
                                this.rand,
                                this.pars.getMutVerhStdAbw()),
                        this.pars.getMutVerhWkeit(),
                        this.pars.getMutMinFaktorVerh(),
                        this.pars.getMutMaxFaktorVerh(),
                        this.pars.getMutSeqLenKonstVerh(),
                        this.rand);
                MutSeqVerf mutSeqTrans = new MutationKlWkeit(
                        new EinzelMutAdd(
                                this.rand,
                                this.pars.getMutTransStdAbw()),
                        this.pars.getMutTransWkeit(),
                        this.pars.getMutMinFaktorTrans(),
                        this.pars.getMutMaxFaktorTrans(),
View Full Code Here

                            break;
                        }
                    }
                }
               
                MutSeqVerf mutSeqVerh = new MutationKlWkeit(
                        new EinzelMutAdd(
                                this.rand,
                                this.pars.getMutVerhStdAbw()),
                        this.pars.getMutVerhWkeit(),
                        this.pars.getMutMinFaktorVerh(),
                        this.pars.getMutMaxFaktorVerh(),
                        this.pars.getMutSeqLenKonstVerh(),
                        this.rand);
                MutSeqVerf mutSeqTrans = new MutationKlWkeit(
                        new EinzelMutAdd(
                                this.rand,
                                this.pars.getMutTransStdAbw()),
                        this.pars.getMutTransWkeit(),
                        this.pars.getMutMinFaktorTrans(),
View Full Code Here

                            break;
                        }
                    }
                }
               
                MutSeqVerf mutSeqVerh = new MutationKlWkeit(
                        new EinzelMutAdd(
                                this.rand,
                                this.pars.getMutVerhStdAbw()),
                        this.pars.getMutVerhWkeit(),
                        this.pars.getMutMinFaktorVerh(),
                        this.pars.getMutMaxFaktorVerh(),
                        this.pars.getMutSeqLenKonstVerh(),
                        this.rand);
                MutSeqVerf mutSeqTrans = new MutationKlWkeit(
                        new EinzelMutAdd(
                                this.rand,
                                this.pars.getMutTransStdAbw()),
                        this.pars.getMutTransWkeit(),
                        this.pars.getMutMinFaktorTrans(),
View Full Code Here

        this.visObserver = visObs;

        this.aufnahme = new Aufnahme(this.pars);
        this.schnappZyklen = this.pars.getSchnInt().longValue();
        this.rand = new Random(this.pars.getSeed().longValue());
        this.rekombArt = new RekTrivial(
                this.pars.getRekAnzEltern(),
                this.pars.getRekAnzKinder(),
                this.pars.getRekNormiert(),
                this.pars.getRekMaxPopSize(),
                this.rand);
View Full Code Here

        this.visObserver = visObs;

        this.aufnahme = new Aufnahme(this.pars);
        this.schnappZyklen = this.pars.getSchnInt().longValue();
        this.rand = new Random(this.pars.getSeed().longValue());
        this.rekombArt = new RekTrivial(
                this.pars.getRekAnzEltern(),
                this.pars.getRekAnzKinder(),
                this.pars.getRekNormiert(),
                this.pars.getRekMaxPopSize(),
                this.rand);
View Full Code Here

TOP

Related Classes of fmg.fmg8.endlAutomat.conditions.InnerNode

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.