Difference between revisions of "Simulation/Variable Speed Signs"

From Sumo
Jump to navigation Jump to search
(New page: =Variable Speed Signs (VSS)= 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: <sp...)
 
(removed invalid attribute)
 
(20 intermediate revisions by 3 users not shown)
Line 1: Line 1:
=Variable Speed Signs (VSS)=
+
One of the trigger objects that may be specified within an {{AdditionalFile}} allows the simulation of variable speed signs. The syntax for such an object is:  
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: <span class="xml><variableSpeedSign id="<VSS_ID>" lanes="<LANE_ID>[;<LANE_ID>]*" file="<DEF_FILE>"/></span>.
 
  
A file name must 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:
+
<additional>
<pre class="xml">
+
  <variableSpeedSign id="VSS_ID" lanes="LANE_IDS" file="DEF_FILE">
<vss>
+
      <step time="<TIME>" speed="<SPEED>"/>
 +
 +
      ... further entries ...
 +
 +
  </variableSpeedSign>
 +
</additional>
 +
 
 +
The following attributes are used within the {{XML|VariableSpeedSignal}} element:
 +
{| cellspacing="0" border="1" align="center" width="80%"
 +
|-
 +
! style="background:#ddddff;" | Attribute Name
 +
! style="background:#ddddff;" | Value Type
 +
! style="background:#ddddff;" | Description
 +
|-
 +
| class="inlxml" | '''id'''
 +
| id (string)
 +
| The id of the Variable Speed Signal element (user choice)
 +
|-
 +
| class="inlxml" | '''lanes'''
 +
| id (string)
 +
| The id of the lanes of the simulation network
 +
|-
 +
| class="inlxml" | 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="<TIME>" speed="<SPEED>"/>
 
   <step time="<TIME>" speed="<SPEED>"/>
 
   <step time="<TIME>" speed="<SPEED>"/>
 
   <step time="<TIME>" speed="<SPEED>"/>
 
+
 
   ... further entries ...
 
   ... further entries ...
 +
 +
</vss>
  
  <step time="<TIME>" speed="<SPEED>"/>
+
The following attributes are used within the {{XML|VariableSpeedSignal}} element:
</vss>
+
{| cellspacing="0" border="1" align="center" width="80%"
</pre>
+
|-
 
+
! style="background:#ddddff;" | Attribute Name
Each step is a combination of the time the next new speed shall be set and the speed to set itself.
+
! style="background:#ddddff;" | Value Type
 +
! style="background:#ddddff;" | Description
 +
|-
 +
| class="inlxml" | '''time'''
 +
| time (int)
 +
| Time in which the speed will be changed
 +
|-
 +
| class="inlxml" | 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' within SUMO may be found in "data/examples/extended/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".