Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
eclipse
GitHub Repository: eclipse/sumo
Path: blob/main/tools/game/rail/input_routes.rou.xml
169679 views
1
<?xml version="1.0" encoding="UTF-8"?>
2
3
<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/routes_file.xsd">
4
<vType id="freightTrain" vClass="rail" length="72" speedFactor="0.6" decel="1" accel="1" imgFile="../images/locomotive.png" color="white"
5
personCapacity="12" boardingDuration="10" jmIgnoreJunctionFoeProb="1">
6
<param key="seatingWidth" value="1"/>
7
<param key="locomotiveLength" value="12"/>
8
<param key="carriageLength" value="10"/>
9
<param key="carriageGap" value="0.3"/>
10
<param key="carriageImages" value="../images/railcarFreight.png,../images/railcarFreight.png,../images/railcarFreight2.png,../images/railcarFreight.png,../images/railcarFreight2.png,../images/railcarFreight2.png,../images/railcarFreight2.png,../images/railcarFreight2.png,../images/railcarFreight.png"/>
11
</vType>
12
<vType id="passengerTrain" vClass="rail" length="52" speedFactor="0.9" decel="1" accel="1" imgFile="../images/locomotive.png" color="white"
13
personCapacity="8" boardingDuration="10" jmIgnoreJunctionFoeProb="1">
14
<param key="seatingWidth" value="1"/>
15
<param key="locomotiveLength" value="12"/>
16
<param key="carriageLength" value="20"/>
17
<param key="carriageGap" value="0.3"/>
18
<param key="carriageImages" value="../images/railcarPassenger.png"/>
19
</vType>
20
<trip id="trip_0" type="freightTrain" depart="0.00" from="-E30.50" to="E18" arrivalSpeed="0" departPos="stop" line="line1">
21
<stop trainStop="ts_1" duration="60"/>
22
</trip>
23
<trip id="trip_1" type="passengerTrain" depart="0.00" from="E1" to="-E17" arrivalSpeed="0" departPos="stop" line="line2">
24
<stop trainStop="ts_2" duration="60"/>
25
</trip>
26
<trip id="trip_2" type="passengerTrain" depart="0.00" from="E2" to="-E18" arrivalSpeed="0" departPos="stop" line="line2">
27
<stop trainStop="ts_3" duration="60"/>
28
</trip>
29
<vType id="DEFAULT_PEDTYPE" width="2" length="2"/>
30
<personFlow id="y" begin="0" number="35" period="exp(0.07)" color="yellow">
31
<stop trainStop="ts_6" duration="0"/>
32
<ride trainStop="ts_1" lines="trip_0"/>
33
</personFlow>
34
<personFlow id="g" begin="0" number="20" period="exp(0.05)" color="green">
35
<stop trainStop="ts_2" duration="0"/>
36
<ride trainStop="ts_4" lines="trip_1 trip_2"/>
37
</personFlow>
38
<personFlow id="b" begin="0" number="45" period="exp(0.1)" color="cyan">
39
<stop trainStop="ts_3" duration="0"/>
40
<ride trainStop="ts_5" lines="trip_1 trip_2"/>
41
</personFlow>
42
</routes>
43
44