d480ed0a865d8041dfa231f15156202edd3ef694,flow/envs/bay_bridge/base.py,BayBridgeEnv,apply_toll_bridge_control,#BayBridgeEnv#,145
Before Change
if veh_id not in self.cars_waiting_for_toll:
// Disable lane changes inside Toll Area
lc_mode = self.vehicles.get_lane_change_mode(veh_id)
color = self.traci_connection.vehicle.getColor(veh_id)
self.cars_waiting_for_toll[veh_id] = {
"lane_change_mode": lc_mode,
"color": color
}
self.traci_connection.vehicle.setLaneChangeMode(
veh_id, 512)
self.traci_connection.vehicle.setColor(
veh_id, (255, 0, 255, 0))
else:
if pos > 120:
if self.toll_wait_time[lane] < 0:
traffic_light_states[lane] = "G"
After Change
if veh_id not in self.cars_waiting_for_toll:
// Disable lane changes inside Toll Area
lc_mode = self.vehicles.get_lane_change_mode(veh_id)
self.cars_waiting_for_toll[veh_id] = {
"lane_change_mode": lc_mode,
}
self.traci_connection.vehicle.setLaneChangeMode(
veh_id, 512)
else:
if pos > 120:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 13
Instances Project Name: flow-project/flow
Commit Name: d480ed0a865d8041dfa231f15156202edd3ef694
Time: 2018-12-15
Author: akreidieh@gmail.com
File Name: flow/envs/bay_bridge/base.py
Class Name: BayBridgeEnv
Method Name: apply_toll_bridge_control
Project Name: flow-project/flow
Commit Name: d480ed0a865d8041dfa231f15156202edd3ef694
Time: 2018-12-15
Author: akreidieh@gmail.com
File Name: flow/envs/bay_bridge/base.py
Class Name: BayBridgeEnv
Method Name: ramp_meter_lane_change_control
Project Name: flow-project/flow
Commit Name: d480ed0a865d8041dfa231f15156202edd3ef694
Time: 2018-12-15
Author: akreidieh@gmail.com
File Name: flow/envs/bay_bridge/base.py
Class Name: BayBridgeEnv
Method Name: apply_toll_bridge_control
Project Name: flow-project/flow
Commit Name: d480ed0a865d8041dfa231f15156202edd3ef694
Time: 2018-12-15
Author: akreidieh@gmail.com
File Name: flow/envs/bottleneck_env.py
Class Name: BottleneckEnv
Method Name: apply_toll_bridge_control