Examples of SumoCommand


Examples of de.tudresden.sumo.util.SumoCommand

   *            a string identifying a lane
   * @return the fuel consumption (in ml)
   */

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

Examples of de.tudresden.sumo.util.SumoCommand

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

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

Examples of de.tudresden.sumo.util.SumoCommand

   *
   * @return a list of IDs of all lanes
   */

  public static SumoCommand getIDList(){
    return new SumoCommand(Constants.CMD_GET_LANE_VARIABLE, Constants.ID_LIST, "", Constants.RESPONSE_GET_LANE_VARIABLE, Constants.TYPE_STRINGLIST);
  }
View Full Code Here

Examples of de.tudresden.sumo.util.SumoCommand

   *            a string identifying a lane
   * @return number of halting vehicles within the last time step
   */

  public static SumoCommand getLastStepHaltingNumber(String laneID){
    return new SumoCommand(Constants.CMD_GET_LANE_VARIABLE, Constants.LAST_STEP_VEHICLE_HALTING_NUMBER, laneID, Constants.RESPONSE_GET_LANE_VARIABLE, Constants.TYPE_INTEGER);
  }
View Full Code Here

Examples of de.tudresden.sumo.util.SumoCommand

   *            a string identifying a lane
   * @return vehicle length (in m) within the last time step
   */

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

Examples of de.tudresden.sumo.util.SumoCommand

   *            a string identifying a lane
   * @return the average speed (in m/s) within the last time step
   */

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

Examples of de.tudresden.sumo.util.SumoCommand

   *            a string identifying a lane
   * @return the percentage of time the lane was occupied
   */

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

Examples of de.tudresden.sumo.util.SumoCommand

   *            a string identifying a lane
   * @return list of IDs of vehicles
   */

  public static SumoCommand getLastStepVehicleIDs(String laneID){
    return new SumoCommand(Constants.CMD_GET_LANE_VARIABLE, Constants.LAST_STEP_VEHICLE_ID_LIST, laneID, Constants.RESPONSE_GET_LANE_VARIABLE, Constants.TYPE_STRINGLIST);
  }
View Full Code Here

Examples of de.tudresden.sumo.util.SumoCommand

   *            a string identifying a lane
   * @return number of vehicles
   */

  public static SumoCommand getLastStepVehicleNumber(String laneID){
    return new SumoCommand(Constants.CMD_GET_LANE_VARIABLE, Constants.LAST_STEP_VEHICLE_NUMBER, laneID, Constants.RESPONSE_GET_LANE_VARIABLE, Constants.TYPE_INTEGER);
  }
View Full Code Here

Examples of de.tudresden.sumo.util.SumoCommand

   *            a string identifying a lane
   * @return length of the named lane (in m)
   */

  public static SumoCommand getLength(String laneID){
    return new SumoCommand(Constants.CMD_GET_LANE_VARIABLE, Constants.VAR_LENGTH, laneID, Constants.RESPONSE_GET_LANE_VARIABLE, Constants.TYPE_DOUBLE);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.