Package eas.startSetup.parameterDatatypes

Examples of eas.startSetup.parameterDatatypes.ArrayListInt


     */
    private int anzahlGute(
            final EnvironmentEA umg,
            final ParCollection params) {
        int anz = 0;
        ArrayListInt gut = (ArrayListInt) params.getParValue("guterautomat");
        LinkedList<Integer> code = new LinkedList<Integer>();
        code.addAll(gut);
       
        for (RobEA r : umg.getRobAgents()) {
            if (code.equals(r.getVerhCodes()[0])) {
View Full Code Here


        this.random = new Random(params.getSeed());
        ArrayList<RobEA> akteure = new ArrayList<RobEA>(umg.getRobAgents());
        int anzGute = (Integer) params.getParValue("anzahlgute");
        int anzSchlechte = (Integer) params.getParValue("anzahlschlechte");
        ArrayListInt gut = (ArrayListInt) params.getParValue("guterautomat");
        ArrayListInt schlecht
            = (ArrayListInt) params.getParValue("schlechterautomat");
        String[] seqGut = new String[1];
        seqGut[0] = EndlicherAutomat.bereinigeStatic(gut.toString());
        String[] seqSchlecht = new String[1];
        seqSchlecht[0] = EndlicherAutomat.bereinigeStatic(schlecht.toString());
       
        if (anzGute >= 0 && anzSchlechte >= 0) {
            for (RobEA r : akteure) {
                umg.removeAgent(r);
            }
View Full Code Here

                "LISA"));
       
        arr.add(new SingleParameter(
                "guterautomat",
                Datatypes.INTEGER_ARR,
                new ArrayListInt(autGut),
                "Sequenz der guten Roboter.",
                "LISA"));
       
        arr.add(new SingleParameter(
                "schlechterautomat",
                Datatypes.INTEGER_ARR,
                new ArrayListInt(autSchlecht),
                "Sequenz der schlechten Roboter.",
                "LISA"));
       
        arr.add(new SingleParameter(
                "anzahlgute",
View Full Code Here

            this.showGrid = pars.getParValueBoolean("ShowGrid?");
            this.gridDistance = pars.getParValueVector2D("GridDistance");
            this.gridDelta = pars.getParValueVector2D("GridDelta");
            this.setShowIDs(pars.getParValueBoolean("showAgentIDs?"));
            try {
                ArrayListInt bckColor = pars.getParValueArrayListInt("BackgroundColor");
                this.backgroundColor = new Color(bckColor.get(0), bckColor.get(1), bckColor.get(2), bckColor.get(3));
            } catch (Exception e) {
                this.backgroundColor = Color.white;
            }
        }
    }
View Full Code Here

                "WheelRadiuses",
                Datatypes.VECTOR2D,
                new Vector2D(1, 1),
                "The radiuses (R_l, R_r) of the wheels of the agents.",
                "ABSTRACT_ENVIRONMENT_2D"));
        ArrayListInt transparent = new ArrayListInt(new Integer[] {255, 255, 255, 0});
        params.add(new SingleParameter(
                "BackgroundColor",
                Datatypes.INTEGER_ARR,
                transparent,
                "The color (R, G, B, A) element {0, ..., 255} x {0, ..., 255} x {0, ..., 255} x {0, ..., 255} of the arena's background.",
View Full Code Here

        } else if (par.getParameterType().equals(Datatypes.DOUBLE)) {
            // Double.
            par.setParValue(Double.parseDouble(arg));
            pushToListener(Double.parseDouble(arg), par);
        } else if (par.getParameterType().equals(Datatypes.INTEGER_ARR)) {
            ArrayListInt intListe = new ArrayListInt(
                    strArr.length);
            for (String s : strArr) {
                intListe.add(Integer.parseInt(s));
            }
            par.setParValue(intListe);
            pushToListener(intListe, par);
        } else if (par.getParameterType().equals(Datatypes.INTEGER) || par.getParameterType().startsWith(Datatypes.INTEGER_RANGE_PREFIX)) {
            // Integer.
View Full Code Here

TOP

Related Classes of eas.startSetup.parameterDatatypes.ArrayListInt

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.