BOSWatch 3
Python Script to receive and decode German BOS Information with rtl_fm and multimon-NG
 
Loading...
Searching...
No Matches
boswatch.router.route.Route Class Reference

Class for single routing points. More...

Public Member Functions

 __init__ (self, name, callback, statsCallback=None, cleanupCallback=None, isRouter=False)
 Create a instance of an route point.
 

Data Fields

 name
 
 callback
 
 statistics
 
 cleanup
 
 isRouter
 

Detailed Description

Class for single routing points.

Constructor & Destructor Documentation

◆ __init__()

boswatch.router.route.Route.__init__ (   self,
  name,
  callback,
  statsCallback = None,
  cleanupCallback = None,
  isRouter = False 
)

Create a instance of an route point.

Parameters
namename of the route point
callbackinstance of the callback function
statsCallbackinstance of the callback to get statistics (None)
cleanupCallbackinstance of the callback to run a cleanup method (None)
isRouterTrue if this route point jumps into another router (type: router). Used by Router._process_route_recursive() to distinguish a sub-router that filtered internally (continue with the parent's next route point) from a module/plugin that explicitly stops the whole route (stop immediately). (False)
25 def __init__(self, name, callback, statsCallback=None, cleanupCallback=None, isRouter=False):
26 r"""!Create a instance of an route point
27
28 @param name: name of the route point
29 @param callback: instance of the callback function
30 @param statsCallback: instance of the callback to get statistics (None)
31 @param cleanupCallback: instance of the callback to run a cleanup method (None)
32 @param isRouter: True if this route point jumps into another router (type: router).
33 Used by Router._process_route_recursive() to distinguish a
34 sub-router that filtered internally (continue with the parent's
35 next route point) from a module/plugin that explicitly stops
36 the whole route (stop immediately). (False)
37 """
38 self.name = name
39 self.callback = callback
40 self.statistics = statsCallback
41 self.cleanup = cleanupCallback
42 self.isRouter = isRouter

Field Documentation

◆ name

boswatch.router.route.Route.name

◆ callback

boswatch.router.route.Route.callback

◆ statistics

boswatch.router.route.Route.statistics

◆ cleanup

boswatch.router.route.Route.cleanup

◆ isRouter

boswatch.router.route.Route.isRouter