Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
eclipse
GitHub Repository: eclipse/sumo
Path: blob/main/tests/complex/traci/trafficlight/actuated_conditions/input_additional.add.xml
169689 views
1
<add>
2
<timedEvent type="SaveTLSStates" source="C" dest="tls_state.xml" saveDetectors="true" saveConditions="true"/>
3
4
5
<tlLogic id="C" type="actuated" programID="1" offset="0">
6
<phase duration="33" state="GgrrGgrr" minDur="5" maxDur="60" />
7
<phase duration="3" state="ygrrygrr" earlyTarget="NS"/>
8
<phase duration="6" state="rGrrrGrr" minDur="5" maxDur="60" />
9
<phase duration="3" state="ryrrryrr" earlyTarget="NSL"/>
10
<phase duration="33" state="rrGgrrGg" minDur="5" maxDur="60" />
11
<phase duration="3" state="rrygrryg" earlyTarget="EW"/>
12
<phase duration="6" state="rrrGrrrG" minDur="5" maxDur="60" />
13
<phase duration="3" state="rrryrrry" earlyTarget="EWL"/>
14
15
<condition id="NS" value="z:D0.0 > 3 and z:D2.0 > 3"/>
16
<condition id="NSL" value="z:D0.1 > 3 and z:D2.1 > 3"/>
17
<condition id="EW" value="z:D1.0 > 3 and z:D3.0 > 3"/>
18
<condition id="EWL" value="z:D1.1 > 3 and z:D3.1 > 3"/>
19
</tlLogic>
20
21
</add>
22
23