Difference between revisions of "Simulation/Variable Speed Signs"

From Sumo
Jump to navigation Jump to search
Line 5: Line 5:
 
       <step time="<TIME>" speed="<SPEED>"/>
 
       <step time="<TIME>" speed="<SPEED>"/>
 
       <step time="<TIME>" speed="<SPEED>"/>
 
       <step time="<TIME>" speed="<SPEED>"/>
       ...
+
 
 +
       ... further entries ...
 +
 
 
   </routeProbe>
 
   </routeProbe>
 
  </additional>
 
  </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" | '''edge'''
 +
| id (string)
 +
| The id of the lanes in the simulation network
 +
|-
 +
| class="inlxml" | '''freq'''
 +
| time (s)
 +
| The frequency in which to report the distribution
 +
|-
 +
| 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:
  
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:
+
<vss>
<pre class="xml">
 
<vss>
 
 
   <step time="<TIME>" speed="<SPEED>"/>
 
   <step time="<TIME>" speed="<SPEED>"/>
 
   <step time="<TIME>" speed="<SPEED>"/>
 
   <step time="<TIME>" speed="<SPEED>"/>
Line 19: Line 45:
  
 
   <step time="<TIME>" speed="<SPEED>"/>
 
   <step time="<TIME>" speed="<SPEED>"/>
</vss>
+
</vss>
</pre>
 
  
Each step is a combination of the time the next new speed shall be set and the speed to set itself.
+
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" | '''time'''
 +
| id (int)
 +
| Time in which the speed are changed
 +
|-
 +
| class="inlxml" | '''speed'''
 +
| id (double)
 +
| New speed
 +
|-
 +
|}
  
 
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".

Revision as of 10:56, 8 July 2016

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" freq="<FREQUENCY>" file="DEF_FILE">
     <step time="
     ... further entries ...
  </routeProbe>
</additional>

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)
edge id (string) The id of the lanes in the simulation network
freq time (s) The frequency in which to report the distribution
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="
  ... further entries ...
  <step time="

The following attributes are used within the VariableSpeedSignal element:

Attribute Name Value Type Description
time id (int) Time in which the speed are changed
speed id (double) New speed

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