Package eas.startSetup

Examples of eas.startSetup.SingleParameter


  @Override
  public List<SingleParameter> getParameters() {
    final LinkedList<SingleParameter> params = new LinkedList<SingleParameter>();

    params.add(new SingleParameter(
        "gridPoints",
        Datatypes.VECTOR2D,
        new Vector2D(10, 10),
        "",
        id()));
View Full Code Here


   
    @Override
    public List<SingleParameter> getParameters() {
        LinkedList<SingleParameter> params = new LinkedList<SingleParameter>();
       
        params.add(new SingleParameter(
                "mingenomlaenge",
                Datatypes.INTEGER,
                0,
                "Die minimale Genomlänge der initialen Zufallsgenome.",
                this.id().toUpperCase()));
        params.add(new SingleParameter(
                "maxgenomlaenge",
                Datatypes.INTEGER,
                0,
                "Die maximale Genomlänge der initialen Zufallsgenome.",
                this.id().toUpperCase()));
View Full Code Here

    }
   
    @Override
    public List<SingleParameter> getParameters() {
        List<SingleParameter> list = new ArrayList<SingleParameter>(1);
        list.add(new SingleParameter(
                SHOW_THESE_PAR_NAME,
                Datatypes.STRING_ARR,
                new ArrayListString(new String[] {"all"}),
                AllroundLiveParameterSetterPlugin.class
                ));
View Full Code Here

    public List<SingleParameter> getParameters() {
        LinkedList<SingleParameter> list = new LinkedList<SingleParameter>();
//        ParCollection paramsZwisch = new ParCollection(new String[] {});
//        paramsZwisch.complete();

        list.add(new SingleParameter(
                "TimeToTermination",
                Datatypes.DOUBLE,
                100000.0,
                "Simulation time till termination.",
                this.id().toUpperCase()));

        EnvironmentEA[] environments = this.generateRunnables(GlobalVariables.getPrematureParameters());
        LinkedList<SingleParameter> wholeList = new LinkedList<SingleParameter>();
        for (EnvironmentEA e : environments) {
            wholeList.addAll(e.getParameters());
            for (AbstractAgent<?> a : e.getAgents()) {
                wholeList.addAll(a.getParameters());
            }
        }
       
        for (SingleParameter s1 : wholeList) {
            boolean contains = false;
            for (SingleParameter s2 : list) {
                if (s2.getParameterName().equals(s1.getParameterName())) {
                    contains = true;
                    break;
                }
            }
            if (!contains) {
                list.add(s1);
            }
        }
       
        list.add(new SingleParameter(
                "threadAnzahl",
                Datatypes.INTEGER,
                1));

        return list;
View Full Code Here

            }
        }
       
        String parName = this.labels[num].getText();
       
        SingleParameter sp = this.pars.getSinglePar(parName);
       
        IntelligentInput intInp = null;
       
        if (sp.isPluginParameter()) {
            intInp = sp.getIntelligentInput(frame, this.pars);
        }

        if (sp.isPluginParameter() && intInp != null) {
            intInp.setVisible(true);
            if (intInp.getResult() != null) {
                this.fields[num].setText(intInp.getResult());
                this.actionPerformed(new ActionEvent(this.buttons[num], 100, ""));
            }
View Full Code Here

    @Override
    @SuppressWarnings("serial")
    public List<SingleParameter> getParameters() {
        ArrayList<SingleParameter> liste = new ArrayList<SingleParameter>(10);

        liste.add(new SingleParameter(
                EAPlugin.UMGEBUNG_ATTR,
                Datatypes.STRING,
                EAPlugin.UMGEBUNG_DATNAME,
                "Der Dateiname, aus dem die Umgebung gelesen wird.",
                this.id().toUpperCase()) {
                    @Override
                    public BufferedImage getImage(final ParCollection params) {
                        BufferedImage img = null;
                        try {
                            img = ImageIO.read(new File(
                                    params.getStdDirectory()
                                        + File.separator
                                        + this.getParValue()));
                        } catch (IOException e) {
                            img = new BufferedImage(
                                    400,
                                    100,
                                    BufferedImage.TYPE_INT_RGB);
                            Graphics2D g = img.createGraphics();
                            g.setColor(Color.red);
                            g.fillRect(0, 0, 400, 100);
                            g.setColor(Color.black);
                            g.drawString("Field bitmap not found: "
                                    + params.getStdDirectory()
                                    + File.separator
                                    + this.getParValue(), 50, 50);
                        }
                       
                        return img;
                    }
        });

        ArrayListString fitList = new ArrayListString(1);
        fitList.add(new FitnessNull().id());
        liste.add(new SingleParameter(
                EAPlugin.FIT_VERFAHREN_AT,
                Datatypes.STRING_ARR,
                fitList,
                "Array der Fitnessverfahren (1 / Automat; siehe Klasse "
                + "OpsFactory): "
                + "die einzelnen Fitnessverfahren "
                + "müssen durch Kommas ohne Leerzeichen voneinander getrennt "
                + "werden. ACHTUNG: mindestens ein Verfahren erforderlich.",
                this.id().toUpperCase()));

        liste.add(new SingleParameter(
                EAPlugin.FIT_ZYK_ATTR,
                Datatypes.LONG,
                50l,
                "Das Intervall für Fitness-Snapshots.",
                this.id().toUpperCase()));

        liste.add(new SingleParameter(
                EAPlugin.FIT_EVAP_ZYK_ATTR,
                Datatypes.LONG,
                300l,
                "Das Intervall für Fitness-Evaporation.",
                this.id().toUpperCase()));

        liste.add(new SingleParameter(
                EAPlugin.FIT_EVAP_VAL_ATTR,
                Datatypes.DOUBLE,
                2.0,
                "Der Divisionswert für die Fitness-Evaporation.",
                this.id().toUpperCase()));

        liste.add(new SingleParameter(
                EAPlugin.UNFALL_ABZUG,
                Datatypes.DOUBLE,
                3.0,
                "Der Fitness-Abzug bei Kollisionen.",
                this.id().toUpperCase()));

        liste.add(new SingleParameter(
                "UseOnlyStandardDecoding?",
                Datatypes.BOOLEAN,
                new Boolean(false),
                "Ob nur die Standardkodierung verwendet werden soll. "
                    + "Der Translator wird dabei NICHT zum Übersetzen "
                    + "verwendet.",
                this.id().toUpperCase()));

        liste.add(new SingleParameter(
                "showEALabels?",
                Datatypes.BOOLEAN,
                true,
                "Ob die Labels (Knoten / Kanten) in der grafischen Darstellung eines MARBs angezeigt werden.",
                this.id().toUpperCase()));

        liste.add(new SingleParameter(
                "UseTranslatorWITHCompletingTransitions",
                Datatypes.BOOLEAN,
                true,
                "Selects the translator mode (with - WC or without - WOC completing transitions)",
                this.id().toUpperCase()));
View Full Code Here

TOP

Related Classes of eas.startSetup.SingleParameter

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.