Skip to content

Commit

Permalink
extended test refs #12335, #21
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Apr 9, 2024
1 parent 8a771cb commit eb5ea06
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/complex/traci/input_net.net.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<location netOffset="500.00,500.00" convBoundary="0.00,0.00,1000.00,1000.00" origBoundary="-500.00,-500.00,500.00,500.00" projParameter="!"/>

<edge id="1fi" from="1" to="m1" priority="2">
<lane id="1fi_0" index="0" speed="11.11" length="248.50" shape="0.00,498.35 248.50,498.35"/>
<lane id="1fi_0" index="0" speed="11.11" length="248.50" shape="0.00,498.35 248.50,498.35" disallow="rail_urban"/>
</edge>
<edge id="1o" from="0" to="1" priority="1">
<lane id="1o_0" index="0" speed="11.11" length="488.65" shape="488.65,501.65 0.00,501.65"/>
Expand Down
1 change: 1 addition & 0 deletions tests/complex/traci/lane/lane/output.complex
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ allowed to change to the left ('private', 'emergency', 'authority', 'army', 'vip
allowed to change to the right ('private', 'emergency', 'authority', 'army', 'vip', 'pedestrian', 'passenger', 'hov', 'taxi', 'bus', 'coach', 'delivery', 'truck', 'trailer', 'motorcycle', 'moped', 'bicycle', 'evehicle', 'tram', 'rail_urban', 'rail', 'rail_electric', 'rail_fast', 'ship', 'container', 'cable_car', 'subway', 'aircraft', 'wheelchair', 'scooter', 'drone', 'custom1', 'custom2')
allowed to change to the left after setChangePermissions ()
allowed to change to the right after setChangePermissions ('passenger',)
loaded permissions ('private', 'emergency', 'authority', 'army', 'vip', 'pedestrian', 'passenger', 'hov', 'taxi', 'bus', 'coach', 'delivery', 'truck', 'trailer', 'motorcycle', 'moped', 'bicycle', 'evehicle', 'tram', 'rail', 'rail_electric', 'ship', 'wheelchair', 'scooter', 'custom1', 'custom2') ('rail_urban', 'rail_fast', 'container', 'cable_car', 'subway', 'aircraft', 'drone')
after setAllowed ('taxi',) ('private', 'emergency', 'authority', 'army', 'vip', 'pedestrian', 'passenger', 'hov', 'bus', 'coach', 'delivery', 'truck', 'trailer', 'motorcycle', 'moped', 'bicycle', 'evehicle', 'tram', 'rail_urban', 'rail', 'rail_electric', 'rail_fast', 'ship', 'container', 'cable_car', 'subway', 'aircraft', 'wheelchair', 'scooter', 'drone', 'custom1', 'custom2')
after setDisallowed ('private', 'emergency', 'authority', 'army', 'vip', 'pedestrian', 'passenger', 'hov', 'taxi', 'coach', 'delivery', 'truck', 'trailer', 'motorcycle', 'moped', 'bicycle', 'evehicle', 'tram', 'rail_urban', 'rail', 'rail_electric', 'rail_fast', 'ship', 'container', 'cable_car', 'subway', 'aircraft', 'wheelchair', 'scooter', 'drone', 'custom1', 'custom2') ('bus',)
after setMaxSpeed 42.0
Expand Down
2 changes: 2 additions & 0 deletions tests/complex/traci/lane/lane/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@
print("allowed to change to the right after setChangePermissions",
traci.lane.getChangePermissions(centerLaneID, traci.constants.LANECHANGE_RIGHT))

print("loaded permissions", traci.lane.getAllowed(
"1fi_0"), traci.lane.getDisallowed("1fi_0"))
traci.lane.setAllowed(laneID, ["taxi"])
print("after setAllowed", traci.lane.getAllowed(
laneID), traci.lane.getDisallowed(laneID))
Expand Down
1 change: 1 addition & 0 deletions tests/complex/traci/lane/sublane/output.complex
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ allowed to change to the left ('private', 'emergency', 'authority', 'army', 'vip
allowed to change to the right ('private', 'emergency', 'authority', 'army', 'vip', 'pedestrian', 'passenger', 'hov', 'taxi', 'bus', 'coach', 'delivery', 'truck', 'trailer', 'motorcycle', 'moped', 'bicycle', 'evehicle', 'tram', 'rail_urban', 'rail', 'rail_electric', 'rail_fast', 'ship', 'container', 'cable_car', 'subway', 'aircraft', 'wheelchair', 'scooter', 'drone', 'custom1', 'custom2')
allowed to change to the left after setChangePermissions ()
allowed to change to the right after setChangePermissions ('passenger',)
loaded permissions ('private', 'emergency', 'authority', 'army', 'vip', 'pedestrian', 'passenger', 'hov', 'taxi', 'bus', 'coach', 'delivery', 'truck', 'trailer', 'motorcycle', 'moped', 'bicycle', 'evehicle', 'tram', 'rail', 'rail_electric', 'ship', 'wheelchair', 'scooter', 'custom1', 'custom2') ('rail_urban', 'rail_fast', 'container', 'cable_car', 'subway', 'aircraft', 'drone')
after setAllowed ('taxi',) ('private', 'emergency', 'authority', 'army', 'vip', 'pedestrian', 'passenger', 'hov', 'bus', 'coach', 'delivery', 'truck', 'trailer', 'motorcycle', 'moped', 'bicycle', 'evehicle', 'tram', 'rail_urban', 'rail', 'rail_electric', 'rail_fast', 'ship', 'container', 'cable_car', 'subway', 'aircraft', 'wheelchair', 'scooter', 'drone', 'custom1', 'custom2')
after setDisallowed ('private', 'emergency', 'authority', 'army', 'vip', 'pedestrian', 'passenger', 'hov', 'taxi', 'coach', 'delivery', 'truck', 'trailer', 'motorcycle', 'moped', 'bicycle', 'evehicle', 'tram', 'rail_urban', 'rail', 'rail_electric', 'rail_fast', 'ship', 'container', 'cable_car', 'subway', 'aircraft', 'wheelchair', 'scooter', 'drone', 'custom1', 'custom2') ('bus',)
after setMaxSpeed 42.0
Expand Down

0 comments on commit eb5ea06

Please sign in to comment.