Package de.tudresden.sumo.util

Examples of de.tudresden.sumo.util.SumoCommand


  /**
   * Returns the width of the named vehicle type.
   */

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


   * Sets the vehicle type's wished maximum acceleration to the given value.
   */

  public static SumoCommand setAccel(String typeID, double accel){

    return new SumoCommand(Constants.CMD_SET_VEHICLETYPE_VARIABLE, Constants.VAR_ACCEL, typeID, accel);
  }
View Full Code Here

   * Sets the vehicle type's color.
   */

  public static SumoCommand setColor(String typeID, SumoColor color){

    return new SumoCommand(Constants.CMD_SET_VEHICLETYPE_VARIABLE, Constants.VAR_COLOR, typeID, color);
  }
View Full Code Here

   * Sets the vehicle type's wished maximum deceleration to the given value.
   */

  public static SumoCommand setDecel(String typeID, double decel){

    return new SumoCommand(Constants.CMD_SET_VEHICLETYPE_VARIABLE, Constants.VAR_DECEL, typeID, decel);
  }
View Full Code Here

   * Sets the vehicle type's emission class to the given value.
   */

  public static SumoCommand setEmissionClass(String typeID, String clazz){

    return new SumoCommand(Constants.CMD_SET_VEHICLETYPE_VARIABLE, Constants.VAR_EMISSIONCLASS, typeID, clazz);
  }
View Full Code Here

   * setImperfection
   */

  public static SumoCommand setImperfection(String typeID, double imperfection){

    return new SumoCommand(Constants.CMD_SET_VEHICLETYPE_VARIABLE, Constants.VAR_IMPERFECTION, typeID, imperfection);
  }
View Full Code Here

   * Sets the vehicle type's length to the given value.
   */

  public static SumoCommand setLength(String typeID, double length){

    return new SumoCommand(Constants.CMD_SET_VEHICLETYPE_VARIABLE, Constants.VAR_LENGTH, typeID, length);
  }
View Full Code Here

   * Sets the vehicle type's maximum speed to the given value.
   */

  public static SumoCommand setMaxSpeed(String typeID, double speed){

    return new SumoCommand(Constants.CMD_SET_VEHICLETYPE_VARIABLE, Constants.VAR_MAXSPEED, typeID, speed);
  }
View Full Code Here

   * Sets the vehicle type's minimum headway gap to the given value.
   */

  public static SumoCommand setMinGap(String typeID, double minGap){

    return new SumoCommand(Constants.CMD_SET_VEHICLETYPE_VARIABLE, Constants.VAR_MINGAP, typeID, minGap);
  }
View Full Code Here

   * setShapeClass
   */

  public static SumoCommand setShapeClass(String typeID, String clazz){

    return new SumoCommand(Constants.CMD_SET_VEHICLETYPE_VARIABLE, Constants.VAR_SHAPECLASS, typeID, clazz);
  }
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.