Island: Make ISimulationRepository methods abstract

This commit is contained in:
Mike Salvatore 2022-07-01 09:35:38 -04:00
parent a24bf921c1
commit 28e75319b0
1 changed files with 5 additions and 1 deletions

View File

@ -1,16 +1,19 @@
from abc import ABC
from abc import ABC, abstractmethod
from monkey_island.cc.models import Simulation
from monkey_island.cc.services.mode.mode_enum import IslandModeEnum
class ISimulationRepository(ABC):
@abstractmethod
def save_simulation(self, simulation: Simulation):
pass
@abstractmethod
def get_simulation(self):
pass
@abstractmethod
def get_mode(self) -> IslandModeEnum:
"""
Get's the island's current mode
@ -20,6 +23,7 @@ class ISimulationRepository(ABC):
"""
pass
@abstractmethod
def set_mode(self, mode: IslandModeEnum):
"""
Set the island's mode