Package de.tudresden.sumo.util

Examples of de.tudresden.sumo.util.SumoCommand


   */

  public static SumoCommand setBoundary(String viewID, double xmin, double ymin, double xmax, double ymax){

    Object[] array = new Object[]{xmin, ymin, xmax, ymax};
    return new SumoCommand(Constants.CMD_SET_GUI_VARIABLE, Constants.VAR_VIEW_BOUNDARY, viewID, array);
  }
View Full Code Here


   */

  public static SumoCommand setOffset(String viewID, double x, double y){

    Object[] array = new Object[]{x, y};
    return new SumoCommand(Constants.CMD_SET_GUI_VARIABLE, Constants.VAR_VIEW_OFFSET, viewID, array);
  }
View Full Code Here

   *            the coloring scheme
   */

  public static SumoCommand setSchema(String viewID, String schemeName){

    return new SumoCommand(Constants.CMD_SET_GUI_VARIABLE, Constants.VAR_VIEW_SCHEMA, viewID, schemeName);
  }
View Full Code Here

   *            desired zoom factor
   */

  public static SumoCommand setZoom(String viewID, double zoom){

    return new SumoCommand(Constants.CMD_SET_GUI_VARIABLE, Constants.VAR_VIEW_ZOOM, viewID, zoom);
  }
View Full Code Here

   *            a string identifying the vehicle
   */

  public static SumoCommand trackVehicle(String viewID, String vehID){

    return new SumoCommand(Constants.CMD_SET_GUI_VARIABLE, Constants.VAR_TRACK_VEHICLE, viewID, vehID);
  }
View Full Code Here

  /**
   * Returns the maximum acceleration of the named vehicle class.
   */

  public static SumoCommand getAccel(String typeID){
    return new SumoCommand(Constants.CMD_GET_VEHICLETYPE_VARIABLE, Constants.VAR_ACCEL, typeID, Constants.RESPONSE_GET_VEHICLETYPE_VARIABLE, Constants.TYPE_DOUBLE);
  }
View Full Code Here

  /**
   * Returns the number of all vehicle types in the network.
   */

  public static SumoCommand getIDCount(){
    return new SumoCommand(Constants.CMD_GET_VEHICLETYPE_VARIABLE, Constants.ID_COUNT, "", Constants.RESPONSE_GET_VEHICLETYPE_VARIABLE, Constants.TYPE_INTEGER);
  }
View Full Code Here

  /**
   *  Returns the vehicle type's color.
   */

  public static SumoCommand getColor(String typeID){
    return new SumoCommand(Constants.CMD_GET_VEHICLETYPE_VARIABLE, Constants.VAR_COLOR, typeID, Constants.RESPONSE_GET_VEHICLETYPE_VARIABLE, Constants.TYPE_COLOR);
  }
View Full Code Here

  /**
   * Returns the maximum deceleration of the names vehicle type.
   */

  public static SumoCommand getDecel(String typeID){
    return new SumoCommand(Constants.CMD_GET_VEHICLETYPE_VARIABLE, Constants.VAR_DECEL, typeID, Constants.RESPONSE_GET_VEHICLETYPE_VARIABLE, Constants.TYPE_DOUBLE);
  }
View Full Code Here

  /**
   * Returns the emission class of the named vehicle type.
   */

  public static SumoCommand getEmissionClass(String typeID){
    return new SumoCommand(Constants.CMD_GET_VEHICLETYPE_VARIABLE, Constants.VAR_EMISSIONCLASS, typeID, Constants.RESPONSE_GET_VEHICLETYPE_VARIABLE, Constants.TYPE_STRING);
  }
View Full Code Here

TOP

Related Classes of de.tudresden.sumo.util.SumoCommand

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.