<?xml version="1.0" encoding="UTF-8"?>

<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/routes_file.xsd">
    <vType id="freightTrain" vClass="rail" length="72" speedFactor="0.6" decel="1" accel="1" imgFile="../images/locomotive.png" color="white"
           personCapacity="12" boardingDuration="10" jmIgnoreJunctionFoeProb="1">
        <param key="seatingWidth" value="1"/>
        <param key="locomotiveLength" value="12"/>
        <param key="carriageLength" value="10"/>
        <param key="carriageGap" value="0.3"/>
        <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"/>
    </vType>
    <vType id="passengerTrain" vClass="rail" length="52" speedFactor="0.9" decel="1" accel="1" imgFile="../images/locomotive.png" color="white"
           personCapacity="8" boardingDuration="10" jmIgnoreJunctionFoeProb="1">
        <param key="seatingWidth" value="1"/>
        <param key="locomotiveLength" value="12"/>
        <param key="carriageLength" value="20"/>
        <param key="carriageGap" value="0.3"/>
        <param key="carriageImages" value="../images/railcarPassenger.png"/>
    </vType>

	<route id="freight" edges="-E30.50 -E300 E28 E28.46 -E24 E0 E3 E6 E23.25 -E26.46 -E26 -E31" repeat="1000">
        <stop busStop="ts_1" duration="60.00"/>
        <stop busStop="ts_6" duration="60.00"/>
	</route>
    <vehicle id="freight_0" type="freightTrain" depart="0.00" departPos="stop" arrivalSpeed="0.00" line="line1" route="freight"/>

	<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">
        <stop busStop="ts_2" duration="60.00"/>
        <stop busStop="ts_4" duration="60.00"/>
        <stop busStop="ts_3" duration="60.00"/>
        <stop busStop="ts_5" duration="60.00"/>
	</route>
    <vehicle id="trip_1" type="passengerTrain" depart="0.00" departPos="stop" arrivalSpeed="0.00" line="line2" route="passenger_alternate"/>

	<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">
        <stop busStop="ts_3" duration="60.00"/>
        <stop busStop="ts_5" duration="60.00"/>
	</route>
    <vehicle id="trip_2" type="passengerTrain" depart="0.00" departPos="stop" arrivalSpeed="0.00" line="line2" route="passenger"/>

    <vType id="DEFAULT_PEDTYPE" width="2" length="2"/>
    <personFlow id="y" begin="0" number="35000" period="exp(0.07)" color="yellow">
        <stop trainStop="ts_6" duration="0"/>
        <ride trainStop="ts_1" lines="freight_0"/>
    </personFlow>
    <personFlow id="g" begin="0" number="20000" period="exp(0.05)" color="green">
        <stop trainStop="ts_2" duration="0"/>
        <ride trainStop="ts_4" lines="trip_1 trip_2"/>
    </personFlow>
    <personFlow id="b" begin="0" number="45000" period="exp(0.1)" color="cyan">
        <stop trainStop="ts_3" duration="0"/>
        <ride trainStop="ts_5" lines="trip_1 trip_2"/>
    </personFlow>
</routes>
