Package eas.startSetup

Examples of eas.startSetup.SingleParameter


   
    @Override
    public List<SingleParameter> getParameters() {
        List<SingleParameter> list = super.getParameters();
       
        list.add(new SingleParameter(
                "heightProfileFromFile",
                Datatypes.STRING,
                "null",
                "Filename to read height profile from - null if height profile should be read from parameter \"heightProfile\"",
                this.getClass().getSimpleName().toUpperCase()));
       
        list.add(new SingleParameter(
                "heightProfile",
                Datatypes.MATRIX,
                new Matrix(new double[][] {{1.0, 1.1, 1.2}, {2.0, 2.1, 2.2}, {3.0, 3.1, 3.2}}),
                "",
                this.getClass().getSimpleName().toUpperCase()));
       
        list.add(new SingleParameter(
                "showAdditionalInfo",
                Datatypes.fixedStringSet(new String[] {
                        "none",
                        "heightProfile",
                        "heightProfile_and_gradients"}),
View Full Code Here


   */
  @Override
  public List<SingleParameter> getParameters() {
    // TODO Auto-generated method stub
    List<SingleParameter> list = super.getParameters();
    list.add(new SingleParameter("START", Datatypes.BOOLEAN, true, "T eingeben, um Programm zu starten", this.id().toUpperCase()));
    return list;
  }
View Full Code Here

   
    @Override
    public List<SingleParameter> getParameters() {
        List<SingleParameter> list = super.getParameters();
       
        list.add(new SingleParameter("TilesHorizontally", Datatypes.INTEGER, 10, "Number of tiles horizontally for collision calculation.", "ABSTRACT_ENVIRONMENT_2D_FAST"));
        list.add(new SingleParameter("TilesVertically", Datatypes.INTEGER, 10, "Number of tiles vertically for collision calculation.", "ABSTRACT_ENVIRONMENT_2D_FAST"));
        list.add(new SingleParameter("BoundingBuffer", Datatypes.VECTOR2D, new Vector2D(1, 1), "Buffer added left, right, above and below the bounding box.", "ABSTRACT_ENVIRONMENT_2D_FAST"));
        list.add(new SingleParameter("ShowTiles?", Datatypes.BOOLEAN, false, "If the tiles are shown in visualization.", "ABSTRACT_ENVIRONMENT_2D_FAST"));
        list.add(new SingleParameter("Epsilon", Datatypes.DOUBLE, 0.01, "The maximal unrecognized change value to the bounding box (should be less than the bounding buffer).", "ABSTRACT_ENVIRONMENT_2D_FAST"));
        list.add(new SingleParameter("ShowSensorRays?", Datatypes.BOOLEAN, false, "Shows laser sensor rays that have been sent out in the last cycle.", "ABSTRACT_ENVIRONMENT_2D_FAST"));
       
        return list;
    }
View Full Code Here

    @Override
    public List<SingleParameter> getParameters() {
        List<SingleParameter> list = super.getParameters();
       
        list.add(new SingleParameter("NumberOfInjured", Datatypes.INTEGER, 10, "", this.id().toUpperCase()));
        list.add(new SingleParameter("NumberOfRescuing", Datatypes.INTEGER, 10, "", this.id().toUpperCase()));
       
        return list;
    }
View Full Code Here

        /*
         * Simple definition of a program parameter without push service.
         * This parameter has to be updated by "pulling" it from the parameter
         * collection using *parCollection*.getParValue(...).
         */
        parsList.add(new SingleParameter(
                "GridFields",                                          // Parameter name.
                Datatypes.integerRange(0, 200),                        // Data type.
                100,                                                   // Standard value.
                "The width and height of the field.",                  // Description.
                CARS_PARAMETERS_CATEGORY_NAME)); // Category.
       
        /*
         * Better implementation of program parameters including push service.
         * Using this method, you do not have to get the parameter values from
         * the parameter collection (which is inefficient), but the fields
         * given in this class are set automatically to the correct values any
         * time a program parameter is changed.
         *
         * Consider this an example for a parameter connected to a listener class (this).
         * The class given as last parameter (CarsParameter.class in this case) has to
         * implement a static field with the same name as the parameter name (numCars
         * in this case) and, preferably, a static setter method (setNumCars(.) in
         * this case) to securely set the field. At program start and at any time
         * the respective parameter is set, the ParCollection calls the setter
         * method in "push" manner or, if the setter fails, sets the field directly.
         * This way of connecting a program parameter to a java field should be
         * preferred above checking parameters in "pull" manner using the getParValue...
         * methods of ParCollection as it is more efficient and secure.
         * (Both the setter and the field may be private if desired.)
         */
        parsList.add(new SingleParameter(
                NUM_CARS_PAR_NAME,                                   // Parameter name.
                Datatypes.integerRange(0, 2000),                     // Data type.
                100,                                                 // Standard value.
                "The number of cars.",                               // Description.
                CARS_PARAMETERS_CATEGORY_NAME,                       // Category.
                TrafficParameters.class));                           // NEW! Listener class connected to the parameter.
       
        parsList.add(new SingleParameter(
                NUM_STREETS_PAR_NAME,
                Datatypes.integerRange(1, 12),
                5,
                "The number of streets in each direction.",
                CARS_PARAMETERS_CATEGORY_NAME,
                TrafficParameters.class));
       
        parsList.add(new SingleParameter(
                CAR_MAX_SPEED_PAR_NAME,
                Datatypes.integerRange(0, 100),
                100,
                "The maximum speed any car can have as target speed.",
                CARS_PARAMETERS_CATEGORY_NAME,
                TrafficParameters.class));
       
        parsList.add(new SingleParameter(
                CAR_MIN_SPEED_PAR_NAME,
                Datatypes.integerRange(0, 100),
                100,
                "The minimum speed any car can have as target speed.",
                CARS_PARAMETERS_CATEGORY_NAME,
                TrafficParameters.class));
       
        parsList.add(new SingleParameter(
                TWO_LANES_PAR_NAME,
                Datatypes.BOOLEAN,
                true,
                "If every street has two directions (or else one).",
                CARS_PARAMETERS_CATEGORY_NAME,
                TrafficParameters.class));
       
        parsList.add(new SingleParameter(
                ACTIVATE_COLL_STRAT_PAR_NAME,
                Datatypes.BOOLEAN,
                true,
                "If the collision strategy is used (or else not).",
                CARS_PARAMETERS_CATEGORY_NAME,
                TrafficParameters.class));
       
        parsList.add(new SingleParameter(
                PROPORTION_OF_ROUNDABOUTS_PAR_NAME,
                Datatypes.integerRange(0, 100),
                50,
                "The percentage of roundabouts in relation to crossings.",
                CARS_PARAMETERS_CATEGORY_NAME,
                TrafficParameters.class));
       
        parsList.add(new SingleParameter(
                ROUNDABOUT_RADIUS_PAR_NAME,
                Datatypes.integerRange(2, 20),
                4,
                "The roundabout radius.",
                CARS_PARAMETERS_CATEGORY_NAME,
                TrafficParameters.class));
       
        parsList.add(new SingleParameter(
                NUM_OF_STORED_TRACE_POINTS_PAR_NAME,
                Datatypes.INTEGER,
                40,
                "The length of the trace displayed for each car.",
                CARS_PARAMETERS_CATEGORY_NAME,
                TrafficParameters.class));
       
        parsList.add(new SingleParameter(
                "collisionStrategy",
                Datatypes.fixedStringSet(StrategyFactory.getCollisionClassNames()),
                StrategyFactory.getCollisionClassNames()[0],
                "The collision strategy followed by the cars.",
                CARS_PARAMETERS_CATEGORY_NAME,
                TrafficParameters.class));
       
        parsList.add(new SingleParameter(
                "drivingStrategy",
                Datatypes.fixedStringSet(StrategyFactory.getDrivingClassNames()),
                StrategyFactory.getDrivingClassNames()[0],
                "The driving strategy followed by the cars.",
                CARS_PARAMETERS_CATEGORY_NAME,
View Full Code Here

    }

    @Override
    public List<SingleParameter> getParameters() {
        ArrayList<SingleParameter> list = new ArrayList<>(1);
        list.add(new SingleParameter("LightsInterval", Datatypes.integerRange(0, 200), 75, TrafficParameters.class));
        return list;
    }
View Full Code Here

 
  @Override
  public List<SingleParameter> getParameters() {
      List<SingleParameter> list = super.getParameters();
     
      list.add(new SingleParameter(
              "ants.nestKoordinaten",
              Datatypes.VECTOR2D,
              new Vector2D(10, 10)));
      list.add(new SingleParameter(
              "ants.foodKoordinaten",
              Datatypes.VECTOR2D,
              new Vector2D(20, 20)));
      list.add(new SingleParameter(
              "ants.fieldSize",
              Datatypes.INTEGER,
              30));
      list.add(new SingleParameter(
              "ants.numberOfAnts",
              Datatypes.INTEGER,
              10));
     
      return list;
View Full Code Here

  @Override
  public List<SingleParameter> getParameters() {
    ArrayList<SingleParameter> list = new ArrayList<SingleParameter>();

    list.add(new SingleParameter("windowWidth", Datatypes.INTEGER, 1024,
        "Breite des Fensters (1024, " + "falls nichts angegeben).",
        this.id().toUpperCase()));

    list.add(new SingleParameter("windowHeight", Datatypes.INTEGER, 768,
        "Höhe des Fensters (768, " + "falls nichts angegeben).", this
            .id().toUpperCase()));

    list.add(new SingleParameter("mouseSensitivityX", Datatypes.DOUBLE,
        1.0, "Mausempfindlichkeit horizontal.", this.id().toUpperCase()));

    list.add(new SingleParameter("mouseSensitivityY", Datatypes.DOUBLE,
        0.35, "Mausempfindlichkeit vertikal.", this.id().toUpperCase()));

    list.add(new SingleParameter("mouseSensitivityW", Datatypes.DOUBLE,
        0.012, "Mausempfindlichkeit Scrollrad.", this.id()
            .toUpperCase()));
    list.add(new SingleParameter("standardCameraDistance", Datatypes.DOUBLE,
        50.0, "Entfernung der Kamera vom zu beobachtenden Objekt.", this.id().toUpperCase()));

    return list;
  }
View Full Code Here

   
  @Override
  public List<SingleParameter> getParameters() {
      LinkedList<SingleParameter> list = new LinkedList<SingleParameter>();
     
      list.add(new SingleParameter(
              "showLiveCharts?",
              Datatypes.BOOLEAN,
              true,
              "If the charts are visualized in a frame during simulation. If not, charts are accessible by sending ChartEventStoreAsPDF events.",
              this.id().toUpperCase()));
View Full Code Here

    @Override
    public List<SingleParameter> getParameters() {
        LinkedList<SingleParameter> list = new LinkedList<SingleParameter>();
       
        list.add(new SingleParameter("Filename-StoreFitnesses", Datatypes.STRING, "fitnesses.csv", "--", this.id().toUpperCase()));
        list.add(new SingleParameter("Frequency", Datatypes.LONG, 100l, "Interval for storing fitnesses", this.id().toUpperCase()));
       
        return list;
    }
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.