Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
eclipse
GitHub Repository: eclipse/sumo
Path: blob/main/tools/game/rail_demo/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
21
<route id="freight" edges="-E30.50 -E300 E28 E28.46 -E24 E0 E3 E6 E23.25 -E26.46 -E26 -E31" repeat="1000">
22
<stop busStop="ts_1" duration="60.00"/>
23
<stop busStop="ts_6" duration="60.00"/>
24
</route>
25
<vehicle id="freight_0" type="freightTrain" depart="0.00" departPos="stop" arrivalSpeed="0.00" line="line1" route="freight"/>
26
27
<route id="passenger_alternate" edges="E1 E7 E9 E26 E26.46 -E23 -E230 -E19 -E17 -E21 E24 E24.25 -E28.46 -E28 -E25 E5 E2 E8 E9 E26 E26.46 -E23 -E230 -E20 -E18 -E22 E24 E24.25 -E28.46 -E28 -E25 E4" repeat="1000">
28
<stop busStop="ts_2" duration="60.00"/>
29
<stop busStop="ts_4" duration="60.00"/>
30
<stop busStop="ts_3" duration="60.00"/>
31
<stop busStop="ts_5" duration="60.00"/>
32
</route>
33
<vehicle id="trip_1" type="passengerTrain" depart="0.00" departPos="stop" arrivalSpeed="0.00" line="line2" route="passenger_alternate"/>
34
35
<route id="passenger" edges="E2 E8 E9 E26 E26.46 -E23 -E230 -E20 -E18 -E22 E24 E24.25 -E28.46 -E28 -E25 E5" repeat="1000">
36
<stop busStop="ts_3" duration="60.00"/>
37
<stop busStop="ts_5" duration="60.00"/>
38
</route>
39
<vehicle id="trip_2" type="passengerTrain" depart="0.00" departPos="stop" arrivalSpeed="0.00" line="line2" route="passenger"/>
40
41
<vType id="DEFAULT_PEDTYPE" width="2" length="2"/>
42
<personFlow id="y" begin="0" number="35000" period="exp(0.07)" color="yellow">
43
<stop trainStop="ts_6" duration="0"/>
44
<ride trainStop="ts_1" lines="freight_0"/>
45
</personFlow>
46
<personFlow id="g" begin="0" number="20000" period="exp(0.05)" color="green">
47
<stop trainStop="ts_2" duration="0"/>
48
<ride trainStop="ts_4" lines="trip_1 trip_2"/>
49
</personFlow>
50
<personFlow id="b" begin="0" number="45000" period="exp(0.1)" color="cyan">
51
<stop trainStop="ts_3" duration="0"/>
52
<ride trainStop="ts_5" lines="trip_1 trip_2"/>
53
</personFlow>
54
</routes>
55
56