Package eas.startSetup.parameterDatatypes

Examples of eas.startSetup.parameterDatatypes.ArrayListVec2D


     * @return  Die Liste von Parametern.
     */
    @Override
    public List<SingleParameter> getParameters() {
        ArrayList<SingleParameter> arr = new ArrayList<SingleParameter>(7);
        ArrayListVec2D av = new ArrayListVec2D();
        av.add(new Vector2D(29.12, 212.2));
        av.add(new Vector2D(1.12, 12.2));
        av.add(new Vector2D(9.12, .2));

        ArrayListDouble av2 = new ArrayListDouble();
        av2.add(1.1);
        av2.add(2.2);
        av2.add(3.3);
View Full Code Here


        } else if (par.getParameterType().equals(Datatypes.LONG)) {
            // Long.
            par.setParValue(Long.parseLong(arg));
            pushToListener(Long.parseLong(arg), par);
        } else if (par.getParameterType().equals(Datatypes.VECTOR2D_ARR)) {
            ArrayListVec2D vekListe = new ArrayListVec2D(
                    strArr.length);
            for (String s : strArr) {
                vekListe.add(Vector2D.parseVector2D(s));
            }
            par.setParValue(vekListe);
            pushToListener(vekListe, par);
        } else if (par.getParameterType().equals(Datatypes.VECTOR2D)) {
            // Vektor2D.
View Full Code Here

                Datatypes.STRING,
                "trajectories.png",
                "Paints trajectories in png file with this filename ('.png' "
                + "is added automatically!). 'null' for no file creation.",
                this.id().toUpperCase()));
        ArrayListVec2D a = new ArrayListVec2D(1);
        a.add(new Vector2D(-1, 0));
        ArrayListVec2D b = new ArrayListVec2D(1);
        b.add(new Vector2D(-1, Double.MAX_VALUE));
        list.add(new SingleParameter(
                "startTrajectories",
                Datatypes.VECTOR2D_ARR,
                a,
                "If live painting is turned OFF: start trajectory painting "
View Full Code Here

        boolean showLiveWindow = params.getParValueBoolean("liveTrajectories?");
       
        this.activeAgents = new HashMap<Integer, Vector2D>();
       
        // Create lists of time steps to activate or deactivate trajectories.
        ArrayListVec2D begin = params.getParValueArrayListVector2D(
                "startTrajectories");
        ArrayListVec2D end = params.getParValueArrayListVector2D(
                "endTrajectories");
        this.beginAgents = new TreeMap<Double, LinkedList<Integer>>();
        this.endAgents = new TreeMap<Double, LinkedList<Integer>>();
       
        for (Vector2D v : begin) {
View Full Code Here

TOP

Related Classes of eas.startSetup.parameterDatatypes.ArrayListVec2D

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.