d819e99cf719e8c3d1852e311bfd3398de3565e7,flow/envs/base_env.py,Env,_reset,#Env#,425

Before Change


        self.traci_connection.simulationStep()

        // update all internal classes with current state data
        self._update()

        self.prev_last_lc = dict()
        for veh_id in self.vehicles.get_ids():
            // re-initialize the vehicles class with the states of the vehicles

After Change


        self.traci_connection.simulationStep()

        // collect subscription information from sumo
        vehicle_obs = self.traci_connection.vehicle.getSubscriptionResults()
        id_lists = self.traci_connection.simulation.getSubscriptionResults()
        tls_obs = self.traci_connection.trafficlight.getSubscriptionResults()

        // store new observations in the vehicles and traffic lights class
        self.vehicles.update(vehicle_obs, id_lists, self)
        self.traffic_lights.update(tls_obs)

        self.prev_last_lc = dict()
        for veh_id in self.vehicles.get_ids():
            // re-initialize the vehicles class with the states of the vehicles
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 15

Instances


Project Name: flow-project/flow
Commit Name: d819e99cf719e8c3d1852e311bfd3398de3565e7
Time: 2018-01-25
Author: akreidieh@gmail.com
File Name: flow/envs/base_env.py
Class Name: Env
Method Name: _reset


Project Name: flow-project/flow
Commit Name: d819e99cf719e8c3d1852e311bfd3398de3565e7
Time: 2018-01-25
Author: akreidieh@gmail.com
File Name: flow/envs/base_env.py
Class Name: Env
Method Name: _step


Project Name: flow-project/flow
Commit Name: d819e99cf719e8c3d1852e311bfd3398de3565e7
Time: 2018-01-25
Author: akreidieh@gmail.com
File Name: flow/envs/base_env.py
Class Name: Env
Method Name: _reset


Project Name: flow-project/flow
Commit Name: d819e99cf719e8c3d1852e311bfd3398de3565e7
Time: 2018-01-25
Author: akreidieh@gmail.com
File Name: flow/envs/base_env.py
Class Name: Env
Method Name: setup_initial_state