GenericParameters

Introduction#

Generic parameters allow an arbitrary mapping of string keys to string values. They can be used for user-defined data storage but some key/value pairs also affect the simulation.

The following objects support the definition of custom parameters in their XML definitions:

  • Edge
  • Lane
  • Person
  • Vehicle
  • Stop
  • VehicleType
  • PoI
  • Polygon
  • Route
  • TrafficLight
  • ChargingStation
  • ParkingArea
  • Calibrator
  • Rerouter
  • VariableSpeedSign

Parameters support the following functionality

XML Parameter Definition#

Parameters are always defined as child elements of the respective object:

<vType id="t0" maxSpeed="12.3">
  <param key="last paint job" value="1959"/>
</vType>
<vehicle id="v0" route="route0" depart="0">
  <param key="answer to everything" value="42"/>
</vehicle>

Special parameters that affect behavior#

Some parameters are special and affect (or reflect) simulation behavior in the following ways:

Special parameters that affect visualization#

Some parameters are special and affect how vehicles and other objects are drawn in sumo-gui: