def update_veh_id(self):
    for veh_id in self.k.vehicle.get_rl_ids():
        if (veh_id not in (list(self.rl_queue) + self.rl_veh)):
            self.rl_queue.append(veh_id)
    for veh_id in list(self.rl_queue):
        if ((veh_id not in self.k.vehicle.get_rl_ids()) or (veh_id not in self.k.vehicle.get_ids())):
            self.rl_queue.remove(veh_id)
    for veh_id in self.rl_veh:
        if ((veh_id not in self.k.vehicle.get_rl_ids()) or (veh_id not in self.k.vehicle.get_ids())):
            self.rl_veh.remove(veh_id)
    while ((len(self.rl_queue) > 0) and (len(self.rl_veh) < self.num_rl)):
        rl_id = self.rl_queue.popleft()
        self.rl_veh.append(rl_id)
def update_veh_id(self):
    for veh_id in self.k.vehicle.get_rl_ids():
        if (veh_id not in (list(self.rl_queue) + self.rl_veh)):
            self.rl_queue.append(veh_id)
    for veh_id in list(self.rl_queue):
        if ((veh_id not in self.k.vehicle.get_rl_ids()) or (veh_id not in self.k.vehicle.get_ids())):
            self.rl_queue.remove(veh_id)
    for veh_id in self.rl_veh:
        if ((veh_id not in self.k.vehicle.get_rl_ids()) or (veh_id not in self.k.vehicle.get_ids())):
            self.rl_veh.remove(veh_id)
    while ((len(self.rl_queue) > 0) and (len(self.rl_veh) < self.num_rl)):
        rl_id = self.rl_queue.popleft()
        self.rl_veh.append(rl_id)