Package de.tudresden.sumo.util

Examples of de.tudresden.sumo.util.SumoCommand


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

  public static SumoCommand setSpeedDeviation(String typeID, double deviation){

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


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

  public static SumoCommand setSpeedFactor(String typeID, double factor){

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

   * setTau
   */

  public static SumoCommand setTau(String typeID, double tau){

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

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

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

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

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

  public static SumoCommand setWidth(String typeID, double width){

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

   *
   * @param tlsID a string identifying the traffic light
   */

  public static SumoCommand getCompleteRedYellowGreenDefinition(String tlsID){
    return new SumoCommand(Constants.CMD_GET_TL_VARIABLE, Constants.TL_COMPLETE_DEFINITION_RYG, tlsID, Constants.RESPONSE_GET_TL_VARIABLE, Constants.TYPE_COMPOUND);
  }
View Full Code Here

  /**
   * Returns the number of all traffic lights in the network.
   */
 
  public static SumoCommand getIDCount(){
    return new SumoCommand(Constants.CMD_GET_TL_VARIABLE, Constants.ID_COUNT, "", Constants.RESPONSE_GET_TL_VARIABLE, Constants.TYPE_INTEGER);
  }
View Full Code Here

  /**
   * getPhaseDuration
   */

  public static SumoCommand getPhaseDuration(String tlsID){
    return new SumoCommand(Constants.CMD_GET_TL_VARIABLE, Constants.TL_PHASE_DURATION, tlsID, Constants.RESPONSE_GET_TL_VARIABLE, Constants.TYPE_INTEGER);
  }
View Full Code Here

   * @return list of controlled lanes
   */
 
 
  public static SumoCommand getControlledLanes(String tlsID){
    return new SumoCommand(Constants.CMD_GET_TL_VARIABLE, Constants.TL_CONTROLLED_LANES, tlsID, Constants.RESPONSE_GET_TL_VARIABLE, Constants.TYPE_STRINGLIST);
  }
View Full Code Here

   * @param tlsID a string identifying the traffic light
   * @return list of controlled links
   */

  public static SumoCommand getControlledLinks(String tlsID){
    return new SumoCommand(Constants.CMD_GET_TL_VARIABLE, Constants.TL_CONTROLLED_LINKS, tlsID, Constants.RESPONSE_GET_TL_VARIABLE, Constants.TYPE_COMPOUND);
  }
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.