Remove todo comments

This commit is contained in:
Marek Wolan
2023-08-31 11:32:11 +01:00
parent f60f775f03
commit bd5aacaf0c
2 changed files with 10 additions and 3 deletions

View File

@@ -6,10 +6,17 @@ from primaite.simulator.system.services.service import Service
class DatabaseService(Service): class DatabaseService(Service):
"""TODO.""" """Service loosely modelled on Microsoft SQL Server."""
def describe_state(self) -> Dict: def describe_state(self) -> Dict:
"""TODO.""" """
Produce a dictionary describing the current state of this object.
Please see :py:meth:`primaite.simulator.core.SimComponent.describe_state` for a more detailed explanation.
:return: Current state of this object and child objects.
:rtype: Dict
"""
return super().describe_state() return super().describe_state()
def uninstall(self) -> None: def uninstall(self) -> None:

View File

@@ -132,7 +132,7 @@ class Service(IOSoftware):
if self.operating_state in [ServiceOperatingState.RUNNING, ServiceOperatingState.PAUSED]: if self.operating_state in [ServiceOperatingState.RUNNING, ServiceOperatingState.PAUSED]:
self.parent.sys_log.info(f"Pausing service {self.name}") self.parent.sys_log.info(f"Pausing service {self.name}")
self.operating_state = ServiceOperatingState.RESTARTING self.operating_state = ServiceOperatingState.RESTARTING
self.restart_countdown = self.restarting_duration # TODO: implement restart duration self.restart_countdown = self.restarting_duration
def disable(self) -> None: def disable(self) -> None:
"""Disable the service.""" """Disable the service."""