forked from p15670423/monkey
Island: Rename set_island_mode -> set_agent_configuration_per_island_mode
This commit is contained in:
parent
8b87783998
commit
822d9d6eec
|
@ -1,3 +1,3 @@
|
||||||
from .reset_agent_configuration import reset_agent_configuration
|
from .reset_agent_configuration import reset_agent_configuration
|
||||||
from .reset_machine_repository import reset_machine_repository
|
from .reset_machine_repository import reset_machine_repository
|
||||||
from .set_island_mode import set_island_mode
|
from .set_agent_configuration_per_island_mode import set_agent_configuration_per_island_mode
|
||||||
|
|
|
@ -5,7 +5,7 @@ from monkey_island.cc.models import IslandMode
|
||||||
from monkey_island.cc.repository import IAgentConfigurationRepository
|
from monkey_island.cc.repository import IAgentConfigurationRepository
|
||||||
|
|
||||||
|
|
||||||
class set_island_mode:
|
class set_agent_configuration_per_island_mode:
|
||||||
"""
|
"""
|
||||||
Callable class that sets the Island's mode
|
Callable class that sets the Island's mode
|
||||||
"""
|
"""
|
|
@ -5,7 +5,7 @@ from monkey_island.cc.event_queue import IIslandEventQueue, IslandEventTopic
|
||||||
from monkey_island.cc.island_event_handlers import (
|
from monkey_island.cc.island_event_handlers import (
|
||||||
reset_agent_configuration,
|
reset_agent_configuration,
|
||||||
reset_machine_repository,
|
reset_machine_repository,
|
||||||
set_island_mode,
|
set_agent_configuration_per_island_mode,
|
||||||
)
|
)
|
||||||
from monkey_island.cc.repository import (
|
from monkey_island.cc.repository import (
|
||||||
IAgentEventRepository,
|
IAgentEventRepository,
|
||||||
|
@ -59,4 +59,6 @@ def _subscribe_clear_simulation_data_events(
|
||||||
def _subscribe_set_island_mode_events(
|
def _subscribe_set_island_mode_events(
|
||||||
island_event_queue: IIslandEventQueue, container: DIContainer
|
island_event_queue: IIslandEventQueue, container: DIContainer
|
||||||
):
|
):
|
||||||
island_event_queue.subscribe(IslandEventTopic.SET_MODE, container.resolve(set_island_mode))
|
island_event_queue.subscribe(
|
||||||
|
IslandEventTopic.SET_MODE, container.resolve(set_agent_configuration_per_island_mode)
|
||||||
|
)
|
||||||
|
|
Loading…
Reference in New Issue