Documentation for Addonmanager Module¶
AddondManager
¶
Responsible for initializing and managing system add-ons.
This class handles the lifecycle of optional services (add-ons) such as mobility simulation, GPS module, and network simulation. Add-ons are conditionally deployed based on the provided configuration.
Source code in nebula/core/addonmanager.py
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 |
|
__init__(engine, config)
¶
Initializes the AddondManager instance.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
engine
|
Engine
|
Reference to the main engine instance of the system. |
required |
config
|
dict
|
Configuration object containing participant settings for enabling add-ons. |
required |
This constructor sets up the internal references to the engine and configuration, and initializes the list of add-ons to be managed.
Source code in nebula/core/addonmanager.py
22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
|
deploy_additional_services()
async
¶
Deploys and starts additional services based on the participant's configuration.
This method checks the configuration to determine which optional components should be activated. It supports: - Mobility simulation (e.g., moving node behavior). - GPS module (e.g., geolocation updates). - Network simulation (e.g., changing connectivity conditions).
All enabled add-ons are instantiated and started asynchronously.
Notes
- Add-ons are stored in the internal list
_addons
for lifecycle management. - Services are only launched if the corresponding configuration flags are set.
Source code in nebula/core/addonmanager.py
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
|
stop_additional_services()
async
¶
Stops all additional services.
Source code in nebula/core/addonmanager.py
76 77 78 79 80 81 82 83 84 85 86 87 88 |
|