environment_interface
environment_interface
¤
Classes:
Name | Description |
---|---|
IEnvironmentPlugin |
IEnvironmentPlugin is an abstract base class that defines the interface for environment plugins. |
IEnvironmentPlugin
¤
IEnvironmentPlugin(
env_config_to_test: EnvironmentConfig,
output_dir: str,
env_type: str,
env_sub_type: str,
event_manager: EventManager,
)
Bases: IPlugin
IEnvironmentPlugin is an abstract base class that defines the interface for environment plugins.
Attributes:
Name | Type | Description |
---|---|---|
templates_dir |
str
|
Directory path for templates specific to the environment type and subtype. |
output_dir |
str
|
Directory path for output files. |
env_type |
str
|
Type of the environment. |
env_sub_type |
str
|
Subtype of the environment. |
log_dirs |
str
|
Directory path for log files. |
plugin_loader |
Loader for the plugin (initially set to None). |
|
env_config_to_test |
EnvironmentConfig
|
Configuration of the environment to be tested. |
event_manager |
EventManager
|
Manager for handling events. |
Methods:
Name | Description |
---|---|
is_network_environment |
Abstract method. Returns True if the plugin is a network environment. |
setup_environment |
Abstract method. Sets up the required environment before running experiments. |
teardown_environment |
Abstract method. Tears down the environment after experiments are completed. |
Source code in .venv/lib/python3.10/site-packages/panther/plugins/environments/environment_interface.py
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
|
is_network_environment
abstractmethod
¤
is_network_environment()
Returns True if the plugin is a network environment.
Source code in .venv/lib/python3.10/site-packages/panther/plugins/environments/environment_interface.py
53 54 55 56 57 58 |
|
setup_environment
abstractmethod
¤
setup_environment()
Sets up the required environment before running experiments.
Source code in .venv/lib/python3.10/site-packages/panther/plugins/environments/environment_interface.py
60 61 62 63 64 65 |
|
teardown_environment
abstractmethod
¤
teardown_environment()
Tears down the environment after experiments are completed.
Source code in .venv/lib/python3.10/site-packages/panther/plugins/environments/environment_interface.py
67 68 69 70 71 72 |
|