forked from p15670423/monkey
Island: Make ISimulationRepository methods abstract
This commit is contained in:
parent
a24bf921c1
commit
28e75319b0
|
@ -1,16 +1,19 @@
|
||||||
from abc import ABC
|
from abc import ABC, abstractmethod
|
||||||
|
|
||||||
from monkey_island.cc.models import Simulation
|
from monkey_island.cc.models import Simulation
|
||||||
from monkey_island.cc.services.mode.mode_enum import IslandModeEnum
|
from monkey_island.cc.services.mode.mode_enum import IslandModeEnum
|
||||||
|
|
||||||
|
|
||||||
class ISimulationRepository(ABC):
|
class ISimulationRepository(ABC):
|
||||||
|
@abstractmethod
|
||||||
def save_simulation(self, simulation: Simulation):
|
def save_simulation(self, simulation: Simulation):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
@abstractmethod
|
||||||
def get_simulation(self):
|
def get_simulation(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
@abstractmethod
|
||||||
def get_mode(self) -> IslandModeEnum:
|
def get_mode(self) -> IslandModeEnum:
|
||||||
"""
|
"""
|
||||||
Get's the island's current mode
|
Get's the island's current mode
|
||||||
|
@ -20,6 +23,7 @@ class ISimulationRepository(ABC):
|
||||||
"""
|
"""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
@abstractmethod
|
||||||
def set_mode(self, mode: IslandModeEnum):
|
def set_mode(self, mode: IslandModeEnum):
|
||||||
"""
|
"""
|
||||||
Set the island's mode
|
Set the island's mode
|
||||||
|
|
Loading…
Reference in New Issue