Difference between revisions of "Simulation/Variable Speed Signs"

From Sumo
Jump to navigation Jump to search
(removed invalid attribute)
 
(6 intermediate revisions by 2 users not shown)
Line 2: Line 2:
  
 
  <additional>
 
  <additional>
   <variableSpeedSign id="VSS_ID" lanes="LANE_IDS" freq="<FREQUENCY>" file="DEF_FILE">
+
   <variableSpeedSign id="VSS_ID" lanes="LANE_IDS" file="DEF_FILE">
      <step time="<TIME>" speed="<SPEED>"/>
 
 
       <step time="<TIME>" speed="<SPEED>"/>
 
       <step time="<TIME>" speed="<SPEED>"/>
 
   
 
   
 
       ... further entries ...
 
       ... further entries ...
 
   
 
   
   </routeProbe>
+
   </variableSpeedSign>
 
  </additional>
 
  </additional>
  
Line 22: Line 21:
 
| The id of the Variable Speed Signal element (user choice)
 
| The id of the Variable Speed Signal element (user choice)
 
|-
 
|-
| class="inlxml" | '''edge'''
+
| class="inlxml" | '''lanes'''
 
| id (string)
 
| id (string)
| The id of the lanes in the simulation network
+
| The id of the lanes of the simulation network
|-
 
| class="inlxml" | '''freq'''
 
| time (s)
 
| The frequency in which to report the distribution
 
 
|-
 
|-
 
| class="inlxml" | file
 
| class="inlxml" | file
Line 44: Line 39:
 
   ... further entries ...
 
   ... further entries ...
 
   
 
   
  <step time="<TIME>" speed="<SPEED>"/>
 
 
  </vss>
 
  </vss>
  
Line 58: Line 52:
 
| Time in which the speed will be changed
 
| Time in which the speed will be changed
 
|-
 
|-
| class="inlxml" | '''speed'''
+
| class="inlxml" | speed
 
| speed (double)
 
| speed (double)
| New speed
+
| New speed (if no value or a negative value is given, the speed will be reset to the original network value)
 
|-
 
|-
 
|}
 
|}
  
 
A small example for usage of vss' may be found in the SUMO directory under "examples/sumo/variable_speed_signs".
 
A small example for usage of vss' may be found in the SUMO directory under "examples/sumo/variable_speed_signs".

Latest revision as of 20:07, 17 May 2017

One of the trigger objects that may be specified within an additional-file allows the simulation of variable speed signs. The syntax for such an object is:

<additional>
  <variableSpeedSign id="VSS_ID" lanes="LANE_IDS" file="DEF_FILE">
     <step time="

The following attributes are used within the VariableSpeedSignal element:

Attribute Name Value Type Description
id id (string) The id of the Variable Speed Signal element (user choice)
lanes id (string) The id of the lanes of the simulation network
file string optional file in which the time and speed values are defined

Each step is a combination of the time the next new speed shall be set and the speed to set itself. A file name can be supplied, called <DEF_FILE> within the schema above. This file must contain the information about when a certain speed shall be set onto the lane. This file has the following format:

<vss>
  <step time="

The following attributes are used within the VariableSpeedSignal element:

Attribute Name Value Type Description
time time (int) Time in which the speed will be changed
speed speed (double) New speed (if no value or a negative value is given, the speed will be reset to the original network value)

A small example for usage of vss' may be found in the SUMO directory under "examples/sumo/variable_speed_signs".