Examples of Vis


Examples of fmg.fmg8.graphVis.Vis

     */
    private void ladeSnap(final int nummer) {
        PopSnapshot pop
            = (PopSnapshot) this.aufnahme.getPops().get(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,
                                SonstMeth.MODUS_TRANSLATOR),
                        this.aktParams);
            }
           
            neuVis = new Vis(
                    this.nameRob(pop, robs[i]),
                    robs[i].getVStdCodes(),
                    robs[i].getConds(),
                    robs[i].getId(),
                    this.aktParams,
                    trans);
            this.graphen.add(neuVis);

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

Examples of fmg.fmg8.graphVis.Vis

   
    /**
     * 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(
                    fmg.fmg8.graphVis.Messages.getString("Vis.All"));
        }
       
        SonstMeth.log(SonstMeth.LOG_INFO,
                      "Population gespeichert ("
View Full Code Here

Examples of fmg.fmg8.graphVis.Vis

     *
     * @param rob  Der zu selektierende Roboter.
     */
    public void selGraph(final Roboter rob) {
        int i = 0;
        Vis aktVis;
        Vis robVis = (Vis) ((VisMantel) rob.getObserver()).getObserver();
       
        while (i < this.graphen.size()) {
            aktVis = (Vis) this.graphen.get(i);
            if (aktVis.getRob().getId() == robVis.getRob().getId()) {
                this.selGraph(aktVis);
            }
            i++;
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.