Examples of SumoCommand


Examples of de.tudresden.sumo.util.SumoCommand

   *            allowed vehicle classes
   */

  public static SumoCommand setAllowed(String laneID, SumoStringList allowedClasses){

    return new SumoCommand(Constants.CMD_SET_LANE_VARIABLE, Constants.LANE_ALLOWED, laneID, allowedClasses);
  }
View Full Code Here

Examples of de.tudresden.sumo.util.SumoCommand

   *            not allowed vehicle classes
   */

  public static SumoCommand setDisallowed(String laneID, SumoStringList disallowedClasses){

    return new SumoCommand(Constants.CMD_SET_LANE_VARIABLE, Constants.LANE_DISALLOWED, laneID, disallowedClasses);
  }
View Full Code Here

Examples of de.tudresden.sumo.util.SumoCommand

   *            new length (in m) of the lane
   */

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

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

Examples of de.tudresden.sumo.util.SumoCommand

   *            maximum velocity allowed (in m/s)
   */

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

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

Examples of de.tudresden.sumo.util.SumoCommand

   * @return coordinates of the lower left and the upper right corner of the
   *         visible network
   */

  public static SumoCommand getBoundary(String viewID){
    return new SumoCommand(Constants.CMD_GET_GUI_VARIABLE, Constants.VAR_VIEW_BOUNDARY, viewID, Constants.RESPONSE_GET_GUI_VARIABLE, Constants.TYPE_BOUNDINGBOX);
  }
View Full Code Here

Examples of de.tudresden.sumo.util.SumoCommand

   *
   * @return list of available views
   */

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

Examples of de.tudresden.sumo.util.SumoCommand

   *            a string identifying the view in the simulation GUI
   * @return the x and y offset of the center of the visible network
   */

  public static SumoCommand getOffset(String viewID){
    return new SumoCommand(Constants.CMD_GET_GUI_VARIABLE, Constants.VAR_VIEW_OFFSET, viewID, Constants.RESPONSE_GET_GUI_VARIABLE, Constants.POSITION_2D);
  }
View Full Code Here

Examples of de.tudresden.sumo.util.SumoCommand

   *            a string identifying the view in the simulation GUI
   * @return the visualization scheme (e.g. "standard")
   */

  public static SumoCommand getSchema(String viewID){
    return new SumoCommand(Constants.CMD_GET_GUI_VARIABLE, Constants.VAR_VIEW_SCHEMA, viewID, Constants.RESPONSE_GET_GUI_VARIABLE, Constants.TYPE_STRING);
  }
View Full Code Here

Examples of de.tudresden.sumo.util.SumoCommand

   *            a string identifying the view in the simulation GUI
   * @return the current zoom level (in %)
   */

  public static SumoCommand getZoom(String viewID){
    return new SumoCommand(Constants.CMD_GET_GUI_VARIABLE, Constants.VAR_VIEW_ZOOM, viewID, Constants.RESPONSE_GET_GUI_VARIABLE, Constants.TYPE_DOUBLE);
  }
View Full Code Here

Examples of de.tudresden.sumo.util.SumoCommand

   *            probably gif, png and jpg as well
   */

  public static SumoCommand screenshot(String viewID, String filename){

    return new SumoCommand(Constants.CMD_SET_GUI_VARIABLE, Constants.VAR_SCREENSHOT, viewID, filename);
  }
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.