Island: Add @abstractmethod in IAgentConfigurationRepository

This commit is contained in:
Mike Salvatore 2022-06-17 11:41:29 -04:00
parent a75041e93f
commit 5ebdb60ea4
1 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,4 @@
from abc import ABC
from abc import ABC, abstractmethod
from common.configuration import AgentConfiguration
@ -8,6 +8,7 @@ class IAgentConfigurationRepository(ABC):
A repository used to store and retrieve the agent configuration.
"""
@abstractmethod
def get_configuration(self) -> AgentConfiguration:
"""
Retrieve the agent configuration from the repository
@ -16,6 +17,7 @@ class IAgentConfigurationRepository(ABC):
"""
pass
@abstractmethod
def set_configuration(self, agent_configuration: AgentConfiguration):
"""
Store the agent configuration in the repository