parameters: (self, queue, queue_alloc, ids_targetedge_sumo, capa_queue,
                       id_veh, id_veh_sumo, id_targetedge_sumo,
                       id_shuntedge, id_shuntedge_sumo, vehicles, edges)
docstring: Queue allocation for platoon leader only.
docstring_summary: Queue allocation for platoon leader only.
docstring_tokens: Queue allocation for platoon leader only .
function: def _alloc_queue(self, queue, queue_alloc, ids_targetedge_sumo, capa_queue,
                       id_veh, id_veh_sumo, id_targetedge_sumo,
                       id_shuntedge, id_shuntedge_sumo, vehicles, edges):
          """Queue allocation for platoon leader only."""
          queue.append(id_veh)
  
          # store here also the target necessary to reprogram
          queue_alloc.append(id_veh)
          # TODO: idea, the original target should be stored in the vehicles db
          ids_targetedge_sumo[id_veh] = id_targetedge_sumo
          len_queue = len(queue)
  
          # make platoon leder always stop at the foremost position
          pos_stop = 1.0 + capa_queue*(self.length_veh)
          # print '_alloc_queue',id_veh_sumo,id_shuntedge_sumo,capa_queue-len_queue,pos_stop
          vehicles.reschedule_trip_sumo(id_veh_sumo, id_shuntedge_sumo)
          vehicles.set_stop(id_veh, id_shuntedge_sumo, pos_stop, laneindex=0)
  
          # Forced exit of vehicle from merge conrol
          self.parent.mergenodes.exit_veh_forced(id_veh, id_veh_sumo, vehicles)
function_tokens: def _alloc_queue ( self , queue , queue_alloc , ids_targetedge_sumo , capa_queue , id_veh , id_veh_sumo , id_targetedge_sumo , id_shuntedge , id_shuntedge_sumo , vehicles , edges ) : queue . append ( id_veh ) # store here also the target necessary to reprogram queue_alloc . append ( id_veh ) # TODO: idea, the original target should be stored in the vehicles db ids_targetedge_sumo [ id_veh ] = id_targetedge_sumo len_queue = len ( queue ) # make platoon leder always stop at the foremost position pos_stop = 1.0 + capa_queue * ( self . length_veh ) # print '_alloc_queue',id_veh_sumo,id_shuntedge_sumo,capa_queue-len_queue,pos_stop vehicles . reschedule_trip_sumo ( id_veh_sumo , id_shuntedge_sumo ) vehicles . set_stop ( id_veh , id_shuntedge_sumo , pos_stop , laneindex = 0 ) # Forced exit of vehicle from merge conrol self . parent . mergenodes . exit_veh_forced ( id_veh , id_veh_sumo , vehicles )