Package de.tudresden.sumo.util

Examples of de.tudresden.sumo.util.SumoCommand


   *            a string identifying a lane
   * @return number of connections to successive lanes
   */

  public static SumoCommand getLinkNumber(String laneID){
    return new SumoCommand(Constants.CMD_GET_LANE_VARIABLE, Constants.LANE_LINK_NUMBER, laneID, Constants.RESPONSE_GET_LANE_VARIABLE, Constants.TYPE_UBYTE);
  }
View Full Code Here


   *            a string identifying a lane
   * @return a list containing IDs of sucessor lanes
   */

  public static SumoCommand getLinks(String laneID){
    return new SumoCommand(Constants.CMD_GET_LANE_VARIABLE, Constants.LANE_LINKS, laneID, Constants.RESPONSE_GET_LANE_VARIABLE, Constants.TYPE_COMPOUND);
  }
View Full Code Here

   *            a string identifying a lane
   * @return maximum allowed speed (in m/s)
   */

  public static SumoCommand getMaxSpeed(String laneID){
    return new SumoCommand(Constants.CMD_GET_LANE_VARIABLE, Constants.VAR_MAXSPEED, laneID, Constants.RESPONSE_GET_LANE_VARIABLE, Constants.TYPE_DOUBLE);
  }
View Full Code Here

   *            a string identifying a lane
   * @return the NOx emissions (in mg)
   */

  public static SumoCommand getNOxEmission(String laneID){
    return new SumoCommand(Constants.CMD_GET_LANE_VARIABLE, Constants.VAR_NOXEMISSION, laneID, Constants.RESPONSE_GET_LANE_VARIABLE, Constants.TYPE_DOUBLE);
  }
View Full Code Here

   *            a string identifying a lane
   * @return the noise emissions (in mg)
   */

  public static SumoCommand getNoiseEmission(String laneID){
    return new SumoCommand(Constants.CMD_GET_LANE_VARIABLE, Constants.VAR_NOISEEMISSION, laneID, Constants.RESPONSE_GET_LANE_VARIABLE, Constants.TYPE_DOUBLE);
  }
View Full Code Here

   *            a string identifying a lane
   * @return the particular matter emissions (in mg)
   */

  public static SumoCommand getPMxEmission(String laneID){
    return new SumoCommand(Constants.CMD_GET_LANE_VARIABLE, Constants.VAR_PMXEMISSION, laneID, Constants.RESPONSE_GET_LANE_VARIABLE, Constants.TYPE_DOUBLE);
  }
View Full Code Here

   *            a string identifying a lane
   * @return list of position describing the geometry
   */

  public static SumoCommand getShape(String laneID){
    return new SumoCommand(Constants.CMD_GET_LANE_VARIABLE, Constants.VAR_SHAPE, laneID, Constants.RESPONSE_GET_LANE_VARIABLE, Constants.TYPE_POLYGON);
  }
View Full Code Here

   *            a string identifying a lane
   * @return estimated travel time (in s)
   */

  public static SumoCommand getTraveltime(String laneID){
    return new SumoCommand(Constants.CMD_GET_LANE_VARIABLE, Constants.VAR_CURRENT_TRAVELTIME, laneID, Constants.RESPONSE_GET_LANE_VARIABLE, Constants.TYPE_DOUBLE);
  }
View Full Code Here

   *            a string identifying a lane
   * @return width of lane (in m)
   */

  public static SumoCommand getWidth(String laneID){
    return new SumoCommand(Constants.CMD_GET_LANE_VARIABLE, Constants.VAR_WIDTH, laneID, Constants.RESPONSE_GET_LANE_VARIABLE, Constants.TYPE_DOUBLE);
  }
View Full Code Here

  /**
   * getWaitingTime
   */

  public static SumoCommand getWaitingTime(String laneID){
    return new SumoCommand(Constants.CMD_GET_LANE_VARIABLE, Constants.VAR_WAITING_TIME, laneID, Constants.RESPONSE_GET_LANE_VARIABLE, Constants.TYPE_DOUBLE);
  }
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.