Package fmg.fmg8.endlAutomat.translator

Examples of fmg.fmg8.endlAutomat.translator.Translator


     * Startet einen Zeitablauf mit Simulation ohne GUI.
     *
     * @param args  Die Parameter.
     */
    public static void main(final String[] args) {
        Parametersatz params = new Parametersatz(args);
        params.ergaenze();
        params.setGraphisch(false);
       
        if (params.getGraphisch().booleanValue()) {
            throw new RuntimeException("Nur Kommandozeilenmodus erlaubt.");
        }
       
        SonstMeth.log(1, params.toString(), params, "plain", null);
        SimulationsZeit simT = new SimulationsZeit(params, null, null);
       
        simT.zeitStarten();
    }
View Full Code Here


            v = new Vektor2D(-2.3, -1.7);
            a.add(v);
        }

        if (nummer == 6) {
            Parametersatz params = new Parametersatz(new String[0]);
            params.ergaenze();
            PfeilMaster zeichnen = new PfeilMaster(params);

            ArrayList<Double> dicken = new ArrayList<Double>();
            Polygon2D bez = new Polygon2D();
View Full Code Here

     * Main-Methode.
     *
     * @param args  Argumente.
     */
    public static void main(final String[] args) {
        Parametersatz params = new Parametersatz(args);
        params.ergaenze();
        PfeilMaster zeichnen = new PfeilMaster(params);
        List<Object> l = new ArrayList<Object>();
        Polygon2D bez2 = new Polygon2D();

        bez2 = Geometrie2D.bezierKurve(
                new Vektor2D(0, 0),
                new Vektor2D(50, 0),
                new Vektor2D(50, -20),
                new Vektor2D(100, -20),
                0.0001);
       
        bez2 = bez2.normalisiere();

        Polygon2D seg = zeichnen.segmentPfeilPol2D(
                bez2,
                null,
                PfeilMaster.DOPPELSPITZES_ENDE,
                PfeilMaster.EINFACHE_SPITZE_1,
                new Vektor2D(1, 1),
                new Vektor2D(1, 1));

        l.add(seg.toPol(5, Vektor2D.NULL_VEKTOR));
        l.add(0, new AusgMerkm(Color.black, Color.yellow, true, true));
        params.setStdPfad(
          "C:\\Eig\\Forschung\\Paper_Vortraege\\Paper_4_AAMAS_accept\\Poster");
       
        Geometrie2D.saveObjectsToFile(l, "luke", "png", params);
    }
View Full Code Here

    public static void main(final String[] args) {
        String seq = "";
        String[] argsNeu = new String[2];
        argsNeu[0] = "log";
        argsNeu[1] = "0";
        Parametersatz params = new Parametersatz(argsNeu);
        params.ergaenze();

        // BO
//        LinkedList<String> s = SonstMeth.liesTextArray(
//                "graphen", "sequenz2.txt", params);
//        System.out.println();
View Full Code Here

     *
     * @param args  Parameter.
     */
    @Deprecated
    public static void main(String[] args) {
        Parametersatz params = new Parametersatz(args);
        params.ergaenze();
        String seqCode
        = "001 110 100 101 000 012 099 001 000 007 000 000 002 001 000 " +
        "012 099 002 000 004 000 000 005 001 000 000 000 014 105 100 " +
        "001 000 012 099 001 000 004 000 000 010 001 000 012 099 001 " +
        "000 007 000 000 004 001 000 000 000 013 108 100 001 000 012 " +
View Full Code Here

            } else {
                automatSp = false;
            }
                this.schnappAuts++;
                this.schnappZyklen = 0;
                this.aufnahme.addPopSn(new PopSnapshot(
                                       this.umgebung.getAkteure(),
                                       this.umgebung.getGegVerschieb(),
                                       this.simZyklen,
                                       automatSp));
        }
View Full Code Here

            final Translator[] trans) {

        this.aktVisTrans = new LinkedList<VisTrans>();
       
        if (this.rob == null) {
            this.rob = new Roboter(
                    0,
                    0,
                    0,
                    fmg.fmg8.umgebung2D.Konstanten.ROB_AUSDEHNUNG_X,
                    fmg.fmg8.umgebung2D.Konstanten.ROB_AUSDEHNUNG_Y,
View Full Code Here

        Iterator<Integer> it2;
        Iterator<Transition> it3;
        Knoten knot;
        Knoten knot1;
        Knoten knot2;
        Vektor2D koord1;
        Vektor2D koord2;

        if (!g.istLeer()) {
            final ArrayList<Knoten> knotenListe
                = new ArrayList<Knoten>(g.holAdj().values());
            int knAnzahl = knotenListe.size();
           
            if (knAnzahl < 2) {
                knAnzahl = 2;
            }
           
            int gitterX = Math.abs(this.rechts - this.links)
                          / (int) ((Math.ceil(Math.sqrt(knAnzahl))) - 1);
            int gitterY = Math.abs(this.unten - this.oben)
                          / (int) ((Math.ceil(Math.sqrt(knAnzahl))) - 1);

            int koordX = this.links;
            int koordY = this.oben;
           
            int kX;
            int kY;
            Transition bed;
            int folgeZustand;
            String bedingung;
            int xAusgleich;
            int zaehler = 0;
           
            // Knoten
            it = knotenListe.iterator();
            while (it.hasNext()) {
                knot = it.next();

                if (this.gesetzteKn.containsKey(knot.holeName())) {
                    kX = (int) this.gesetzteKn.get(knot.holeName()).x;
                    kY = (int) this.gesetzteKn.get(knot.holeName()).y;
                    this.setzeKnoten(knot,
                                     darstellung,
                                     kX,
                                     kY,
                                     (Knoten) ausgKn);

                    if (g.istStartZ(knot)) {
                        darstellung.hinzuPfeil(kX - 60,
                                               kY - 60,
                                               kX - 45,
                                               kY - 45,
                                               0.5,
                                               false);
                    }
                } else {
                    this.setzeKnoten(knot,
                                     darstellung,
                                     koordX,
                                     koordY,
                                     (Knoten) ausgKn);

                    this.gesetzteKn.put(knot.holeName(),
                                        new Vektor2D(koordX, koordY));

                    if (g.istStartZ(knot)) {
                        darstellung.hinzuPfeil(koordX - 60,
                                               koordY - 60,
                                               koordX - 45,
View Full Code Here

     *                werden soll.
     * @param x       X-Koordinate.
     * @param y       Y-Koordinate.
     */
    public void neueKoord(final Knoten knoten, final int x, final int y) {
        Vektor2D koord;

        if (this.gesetzteKn.containsKey(knoten.holeName())) {
            koord = this.gesetzteKn.get(knoten.holeName());
            koord.x = x;
            koord.y = y;
        } else {
            this.gesetzteKn.put(knoten.holeName(), new Vektor2D(x, y));
        }
    }
View Full Code Here

                    this.drehen.set(i, !this.drehen.get(i));
                    this.winkel.set(i, this.random.nextDouble() * 0.5);
                }
            }
            if (this.versch.get(i)) {
                Vektor2D vSchiebg = umg.getDynVersch()[this.waende.get(i)];
                vSchiebg.add(new Vektor2D(
                        this.xRicht.get(i),
                        this.yRicht.get(i)));
               
                if (null != umg.verschWand(
                        this.waende.get(i),
                        vSchiebg)) {
                    this.versch.set(i, !this.versch.get(i));
                    this.xRicht.set(i, this.random.nextDouble() * 0.5);
                    this.yRicht.set(i, this.random.nextDouble() * 0.5);
                }
            } else {
                Vektor2D vSchiebg = umg.getDynVersch()[this.waende.get(i)];
                vSchiebg.add(new Vektor2D(
                        -this.xRicht.get(i),
                        -this.yRicht.get(i)));
               
                if (null != umg.verschWand(
                        this.waende.get(i),
View Full Code Here

TOP

Related Classes of fmg.fmg8.endlAutomat.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.