Package de.tudresden.sumo.util

Examples of de.tudresden.sumo.util.SumoCommand


   * convert2D
   */

  public static SumoCommand convert2D(String edgeID, double pos, byte laneIndex, String toGeo){
    Object[] array = new Object[]{pos, laneIndex, toGeo};
    return new SumoCommand(Constants.CMD_GET_SIM_VARIABLE, Constants.POSITION_CONVERSION, edgeID, array, Constants.RESPONSE_GET_SIM_VARIABLE, Constants.TYPE_STRINGLIST);
  }
View Full Code Here


   * convert3D
   */

  public static SumoCommand convert3D(String edgeID, double pos, byte laneIndex, String toGeo){
    Object[] array = new Object[]{pos, laneIndex, toGeo};
    return new SumoCommand(Constants.CMD_GET_SIM_VARIABLE, Constants.POSITION_CONVERSION, edgeID, array, Constants.RESPONSE_GET_SIM_VARIABLE, Constants.TYPE_STRINGLIST);
  }
View Full Code Here

   * convertGeo
   */

  public static SumoCommand convertGeo(double x, double y, String fromGeo){
    Object[] array = new Object[]{y, fromGeo};
    return new SumoCommand(Constants.CMD_GET_SIM_VARIABLE, Constants.POSITION_CONVERSION, x, array, Constants.RESPONSE_GET_SIM_VARIABLE, Constants.TYPE_STRINGLIST);
  }
View Full Code Here

   * convertRoad
   */

  public static SumoCommand convertRoad(double x, double y, String isGeo){
    Object[] array = new Object[]{y, isGeo};
    return new SumoCommand(Constants.CMD_GET_SIM_VARIABLE, Constants.VAR_POSITION, x, array, Constants.RESPONSE_GET_SIM_VARIABLE, Constants.POSITION_2D);
  }
View Full Code Here

  /**
   * Returns a list of IDs of vehicles which arrived in this time step.
   */

  public static SumoCommand getArrivedIDList(){
    return new SumoCommand(Constants.CMD_GET_SIM_VARIABLE, Constants.VAR_ARRIVED_VEHICLES_IDS, "", Constants.RESPONSE_GET_SIM_VARIABLE, Constants.TYPE_STRINGLIST);
  }
View Full Code Here

  /**
   * Returns the number of vehicles which arrived in this time step.
   */

  public static SumoCommand getArrivedNumber(){
    return new SumoCommand(Constants.CMD_GET_SIM_VARIABLE, Constants.VAR_ARRIVED_VEHICLES_NUMBER, "", Constants.RESPONSE_GET_SIM_VARIABLE, Constants.TYPE_INTEGER);
  }
View Full Code Here

  /**
   * Returns the current simulation time (in ms).
   */

  public static SumoCommand getBusStopWaiting(){
    return new SumoCommand(Constants.CMD_GET_SIM_VARIABLE, Constants.VAR_BUS_STOP_WAITING, "", Constants.RESPONSE_GET_SIM_VARIABLE, Constants.TYPE_INTEGER);
  }
View Full Code Here

  /**
   * getParkingEndingVehiclesIDList()
   */

  public static SumoCommand getParkingEndingVehiclesIDList(){
    return new SumoCommand(Constants.CMD_GET_SIM_VARIABLE, Constants.VAR_PARKING_ENDING_VEHICLES_IDS, "", Constants.RESPONSE_GET_SIM_VARIABLE, Constants.TYPE_STRINGLIST);
  }
View Full Code Here

  /**
   * getParkingEndingVehiclesNumber()
   */

  public static SumoCommand getParkingEndingVehiclesNumber(){
    return new SumoCommand(Constants.CMD_GET_SIM_VARIABLE, Constants.VAR_PARKING_ENDING_VEHICLES_NUMBER, "", Constants.RESPONSE_GET_SIM_VARIABLE, Constants.TYPE_INTEGER);
  }
View Full Code Here

  /**
   * getParkingStartingVehiclesIDList()
   */

  public static SumoCommand getParkingStartingVehiclesIDList(){
    return new SumoCommand(Constants.CMD_GET_SIM_VARIABLE, Constants.VAR_PARKING_STARTING_VEHICLES_IDS, "", Constants.RESPONSE_GET_SIM_VARIABLE, Constants.TYPE_STRINGLIST);
  }
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.