Package eas.simulation.spatial.sim2D.marbSimulation.endlAutomat

Examples of eas.simulation.spatial.sim2D.marbSimulation.endlAutomat.VisMantel


    private void ladeGraphen(final EnvironmentEA umg) {
        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;
        boolean sel = false;
       
        if (gespGr != null) {
            for (int i = 0; i < gespGr.length; i++) {
                grNam = gespGr[i].substring(
                                0,
                                gespGr[i].length() - endung.length() - 1);
               
//                if (this.pars.getGraphisch().booleanValue()) {
//                    for (int j = 0; j < this.visObserver.length; j++) {
//                        if (this.visObserver[j].getGraphName().equals(grNam)) {
//                            obs = this.visObserver[j];
//                            sel = this.visObserver[j].isVisible();
//                            break;
//                        }
//                    }
//                }

                CondMutVerfahren mutVerh = null;
                CondMutVerfahren mutTrans = null;
                if (umg.existsPlugin(new EvolutionPluginCompletelyEvolvable().id())) {
                    mutVerh = OpsFactory.getKonstMut(
                            this.pars.getParValueString(EvolutionPluginCompletelyEvolvable.MUT_ART_VE),
                            this.rand,
                            this.pars);
                    mutTrans = OpsFactory.getKonstMut(
                            this.pars.getParValueString(EvolutionPluginCompletelyEvolvable.MUT_ART_TR),
                            this.rand,
                            this.pars);
                }
               
                visRob = new VisMantel(grNam,
                        umg,
                        mutVerh,
                        mutTrans,
                        this.rand,
                        this.kleinsteFreieID(),
View Full Code Here


    /**
     * Speichert alle Graphen in der Liste <code>this.graphen</code>.
     */
    public void speichereAlleGraphen() {
        Iterator<VisMantel> it = this.graphen.iterator();
        VisMantel aktGr;

        while (it.hasNext()) {
            aktGr = it.next();
            aktGr.speichereGraph();
        }
    }
View Full Code Here

     * @return  Die kleinste noch nicht verwendete ID.
     */
    public int kleinsteFreieID() {
        int kleinste = 0;
        Iterator<VisMantel> it = this.graphen.iterator();
        VisMantel aktGr;
       
        while (it.hasNext()) {
            aktGr = it.next();
            if (kleinste <= aktGr.getRob().id()) {
                kleinste = aktGr.getRob().id() + 1;
            }
        }
       
        return kleinste;
    }
View Full Code Here

TOP

Related Classes of eas.simulation.spatial.sim2D.marbSimulation.endlAutomat.VisMantel

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.