예제 #1
0
 def __init__(self,
              db_wrapper,
              dbm,
              area_id,
              coords,
              max_radius,
              max_coords_within_radius,
              path_to_include_geofence,
              path_to_exclude_geofence,
              routefile,
              mode=None,
              coords_spawns_known=True,
              init=False,
              name="unknown",
              settings=None,
              joinqueue=None,
              include_event_id=None):
     RouteManagerBase.__init__(
         self,
         db_wrapper=db_wrapper,
         dbm=dbm,
         area_id=area_id,
         coords=coords,
         max_radius=max_radius,
         max_coords_within_radius=max_coords_within_radius,
         path_to_include_geofence=path_to_include_geofence,
         path_to_exclude_geofence=path_to_exclude_geofence,
         routefile=routefile,
         init=init,
         name=name,
         settings=settings,
         mode=mode,
         joinqueue=joinqueue)
     self.coords_spawns_known = coords_spawns_known
     self.include_event_id = include_event_id
예제 #2
0
 def __init__(self,
              db_wrapper,
              dbm,
              area_id,
              coords,
              max_radius,
              max_coords_within_radius,
              path_to_include_geofence,
              path_to_exclude_geofence,
              routefile,
              mode=None,
              settings=None,
              init=False,
              name="unknown",
              joinqueue=None,
              useS2: bool = False,
              S2level: int = 15):
     RouteManagerBase.__init__(
         self,
         db_wrapper=db_wrapper,
         dbm=dbm,
         area_id=area_id,
         coords=coords,
         max_radius=max_radius,
         max_coords_within_radius=max_coords_within_radius,
         path_to_include_geofence=path_to_include_geofence,
         path_to_exclude_geofence=path_to_exclude_geofence,
         routefile=routefile,
         init=init,
         name=name,
         settings=settings,
         mode=mode,
         useS2=True,
         S2level=S2level,
         joinqueue=joinqueue)
예제 #3
0
 def __init__(self, db_wrapper, dbm, area_id, coords, max_radius, max_coords_within_radius,
              path_to_include_geofence,
              path_to_exclude_geofence, routefile, mode=None, init=False,
              name="unknown", settings=None, joinqueue=None):
     RouteManagerBase.__init__(self, db_wrapper=db_wrapper, dbm=dbm, area_id=area_id, coords=coords,
                               max_radius=max_radius,
                               max_coords_within_radius=max_coords_within_radius,
                               path_to_include_geofence=path_to_include_geofence,
                               path_to_exclude_geofence=path_to_exclude_geofence,
                               routefile=routefile, init=init,
                               name=name, settings=settings, mode=mode, joinqueue=joinqueue
                               )
     self.encounter_ids_left: List[int] = []
     self.starve_route = True
     if self.delay_after_timestamp_prio is None:
         # just set a value to enable the queue
         self.delay_after_timestamp_prio = 5
예제 #4
0
    def __init__(self, db_wrapper: DbWrapper, dbm, area_id, coords: List[Location], max_radius: float,
                 max_coords_within_radius: int, path_to_include_geofence: str, path_to_exclude_geofence: str,
                 routefile: str, mode=None, init: bool = False, name: str = "unknown", settings: dict = None,
                 level: bool = False, calctype: str = "quick", joinqueue=None, ws_server = None):
        RouteManagerBase.__init__(self, db_wrapper=db_wrapper, dbm=dbm, area_id=area_id, coords=coords,
                                  max_radius=max_radius,
                                  max_coords_within_radius=max_coords_within_radius,
                                  path_to_include_geofence=path_to_include_geofence,
                                  path_to_exclude_geofence=path_to_exclude_geofence,
                                  routefile=routefile, init=init,
                                  name=name, settings=settings, mode=mode, level=level, calctype=calctype,
                                  joinqueue=joinqueue, ws_server=ws_server
                                  )
        self.starve_route = False
        self._stoplist: List[Location] = []

        self._shutdown_route: bool = False
        self._routecopy: List[Location] = []
        self._tempinit: bool = False