Package fmg.fmg8.endlAutomat.conditions

Examples of fmg.fmg8.endlAutomat.conditions.ConstLeaf


     *
     * @param kn1  Quellknoten.
     * @param kn2  Zielknoten.
     */
    public void ergaenze(final Integer kn1, final Integer kn2) {
        Condition cond = new ConstLeaf(true);
        Condition zwisch;
       
        if (this.holeKnoten(kn1).getInfo().getBedingungen().size() > 0) {
            cond = SonstMeth.ausFormatBed(
                    this.holeKnoten(kn1).getInfo().
                        getBedingungen().get(0).getCond().formatted());
            cond.negiere();
        }
       
        for (int i = 1;
            i < this.holeKnoten(kn1).getInfo().getBedingungen().size();
            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))) {
            this.einfuegKante(kn1, kn2, cond, 1);
        }
    }
View Full Code Here


        int klammerAuf = 1;
       
        if (bedingung.length() == 3) {
            if (bedingung.charAt(1)
                == fmg.fmg8.endlAutomat.Konstanten.TRUE) {
                return new ConstLeaf(true);
            } else if (bedingung.charAt(1)
                       == fmg.fmg8.endlAutomat.Konstanten.FALSE) {
                return new ConstLeaf(false);
            }
        }
       
        if (bedingung.charAt(1) != fmg.fmg8.endlAutomat.Konstanten.KA) {
            int op1;
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

            this.besteTrans[i] = null;
            this.besteTransCodes[i] = null;
            if (this.translatoren[i] == null) {
                this.translatoren[i] = new Translator(
                      fmg.fmg8.endlAutomat.translator.Konstanten.STD_TRANS_STR,
                      new ScriptInterpreter(
                              this.getPars(),
                              ScriptInterpreter.MODUS_VERHALTEN),
                      this.getPars());
            }
            this.transCodes[i] = this.translatoren[i].erzeugeSequenz();
View Full Code Here

            if (trans2[i] != null) {
                trans2[i].setModus(SonstMeth.MODUS_TRANSLATOR);
            }
            this.translatoren[i] = new Translator(
                    "",
                    new ScriptInterpreter(
                            this.getPars(),
                            ScriptInterpreter.MODUS_VERHALTEN),
                    this.getPars());
            this.translatoren[i].erzeugeAusSequenz(seqs[i], trans2[i], pruefen);
           
View Full Code Here

TOP

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

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.