Island: Remove set_simulation_mode

This commit is contained in:
Shreya Malviya 2022-09-21 18:02:42 +05:30
parent 547637d151
commit 10e1177ef6
1 changed files with 0 additions and 17 deletions

View File

@ -1,17 +0,0 @@
from monkey_island.cc.models import IslandMode
from monkey_island.cc.repository import ISimulationRepository
class set_simulation_mode:
"""
Callable class that sets the Island's mode
"""
def __init__(
self,
simulation_repository: ISimulationRepository,
):
self._simulation_repository = simulation_repository
def __call__(self, mode: IslandMode):
self._simulation_repository.set_mode(mode)