Package eas.startSetup.marbBuilder

Examples of eas.startSetup.marbBuilder.Vis


            final ParCollection params) {
        String[] seqs = new String[1];
        String seq
            = eas.simulation.spatial.sim2D.marbSimulation.endlAutomat.EndlicherAutomat.bereinigeStatic(seqOrig);
        seqs[0] = seq;
        Vis zwisch = new Vis("", seqs, null, 1, params, null, null);
        zwisch.getRob().erzeugeAusSequenz(0, seq, null, false);
        zwisch.savePNGandPDF(augabeDat);
    }
View Full Code Here


        this.selRob = 0;
       
        String[] seqs = new String[
               aufn.getPop(0).getRobSchnapp()[0].getVStdCodes().length];
       
        this.aktGraph = new Vis("", seqs, null, -1,
                this.aktParams, null, null);

        this.popNum = -1;
       
        this.lastBest = 0;
View Full Code Here

                SimulationStarter.main(parsAufn.getAllParsArrayView());
            } else if (cmd.equals("Trajektorien...")) {
                ArrayList<String> arr = new ArrayList<String>();
                Iterator<Vis> it = this.graphen.iterator();
                while (it.hasNext()) {
                    Vis v = it.next();
                    arr.add(v.toString());
                }
               
                GeneralDialog dia = new GeneralDialog(
                          this,
                          "Draw trajectories",
View Full Code Here

     */
    private void ladeSnap(final int nummer) {
        PopSnapshot pop
            = this.aufnahme.getPop(nummer);
        RobSnapshot[] robs = pop.getRobSchnapp();
        Vis neuVis;
        Translator[] trans = new Translator[robs[0].getTStdCodes().length];
       
        this.popNum = pop.getId();
        this.graphen.clear();
       
        for (int i = 0; i < robs.length; i++) {
            for (int j = 0; j < trans.length; j++) {
                trans[j] = new Translator(
                        robs[i].getTStdCodes()[j],
                        new ScriptInterpreter(
                                this.aktParams,
                                StaticMethods.MODUS_TRANSLATOR),
                        this.aktParams);
            }
           
            neuVis = new Vis(
                    this.nameRob(pop, robs[i]),
                    robs[i].getVStdCodes(),
                    robs[i].getConds(),
                    robs[i].getId(),
                    this.aktParams,
                    trans,
                    null);
            this.graphen.add(neuVis);
           
            int zustand = robs[i].getZustand();
            if (zustand < 0) {
                // Markiere Startzustand, falls zustand = -1.
                if (neuVis.getRob().vAuts()[0].holeStartzustand() != null) {
                    zustand = neuVis.getRob().vAuts()[0]
                                     .holeStartzustand().holeName();
                }
            }
            neuVis.selKnoten(
                  neuVis.getRob().vAuts()[0].holeKnoten(zustand),
                  0);

            neuVis.setBounds(this.getWidth(),
                             0,
                             800,
                             700);
        }
       
View Full Code Here

   
    /**
     * Speichert die aktuelle Population im Standardverzeichnis.
     */
    private void speicherePop() {
        Vis aktVis;
        Iterator<Vis> it = this.graphen.iterator();
       
        while (it.hasNext()) {
            aktVis = it.next();
            aktVis.speichereGraph(
                    eas.startSetup.marbBuilder.Messages.getString("Vis.All"));
        }
       
        StaticMethods.log(StaticMethods.LOG_INFO,
                      "Population gespeichert ("
View Full Code Here

     *
     * @param rob  Der zu selektierende Roboter.
     */
    public void selGraph(final Roboter rob) {
        int i = 0;
        Vis aktVis;
       
        while (i < this.graphen.size()) {
            aktVis = this.graphen.get(i);
            if (aktVis.getRob().id() == rob.getId()) {
                aktVis.erzeugeTransAusStdSeqs(rob.getTransStdCodes());
                this.selGraph(aktVis);
            }
            i++;
        }
    }
View Full Code Here

        File verz = new File(this.pars.getStdDirectory());
        String endung = eas.startSetup.marbBuilder.ConstantsGraphVis.GRAPH_ENDUNG;
        String[] gespGr = verz.list(new FileNamePostfixFilter(endung));
        String grNam;
        VisMantel visRob = null;
        Vis obs = null;
       
        if (gespGr != null) {
            for (int i = 0; i < gespGr.length; i++) {
                grNam = gespGr[i].substring(
                                0,
View Full Code Here

                                       + "und Vis-Objekten.");
        }
       
        String grNam;
        VisMantel visRob = null;
        Vis obsVis = null;
        boolean sel = false;
       
        for (int i = 0; i < visObs.length; i++) {
            grNam = visObs[i].getGraphName();
           
View Full Code Here

TOP

Related Classes of eas.startSetup.marbBuilder.Vis

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.