예제 #1
0
 def __init__(self,
              db_wrapper,
              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):
     RouteManagerBase.__init__(
         self,
         db_wrapper=db_wrapper,
         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)
예제 #2
0
 def __init__(self,
              db_wrapper,
              coords,
              max_radius,
              max_coords_within_radius,
              path_to_include_geofence,
              path_to_exclude_geofence,
              routefile,
              mode=None,
              init=False,
              name="unknown",
              settings=None):
     RouteManagerBase.__init__(
         self,
         db_wrapper=db_wrapper,
         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)
     self.encounter_ids_left = []
     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
예제 #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,
              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)
예제 #4
0
 def __init__(self,
              db_wrapper: DbWrapperBase,
              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):
     RouteManagerBase.__init__(
         self,
         db_wrapper=db_wrapper,
         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)
     self.starve_route = False
     self._stoplist: List[Location] = []
예제 #5
0
 def __init__(self,
              db_wrapper,
              coords,
              max_radius,
              max_coords_within_radius,
              path_to_include_geofence,
              path_to_exclude_geofence,
              routefile,
              mode=None,
              init=False,
              name="unknown",
              settings=None):
     RouteManagerBase.__init__(
         self,
         db_wrapper=db_wrapper,
         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)
     self.starve_route = False
     self._stoplist = []
     self._unprocessed_stops = {}
예제 #6
0
    def __init__(self, db_wrapper: DbWrapperBase, 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 = "optimized", joinqueue = None):
        RouteManagerBase.__init__(self, db_wrapper=db_wrapper, 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
                                  )
        self.starve_route = False
        self._stoplist: List[Location] = []

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