#1752: Apply suggestions from PR review

This commit is contained in:
Czar.Echavez
2023-09-14 20:08:06 +01:00
parent 98e103a984
commit b1e46b4f9e
3 changed files with 14 additions and 60 deletions

View File

@@ -1,6 +1,5 @@
from abc import abstractmethod
from ipaddress import IPv4Address
from typing import Any, Dict, List, Optional
from typing import Any, Dict, Optional
from primaite.simulator.system.applications.application import Application
@@ -19,27 +18,6 @@ class WebBrowser(Application):
history: Dict[str]
"A dict that stores all of the previous domain names."
@abstractmethod
def describe_state(self) -> Dict:
"""
Describes the current state of the software.
The specifics of the software's state, including its health, criticality,
and any other pertinent information, should be implemented in subclasses.
:return: A dictionary containing key-value pairs representing the current state of the software.
:rtype: Dict
"""
pass
def apply_action(self, action: List[str]) -> None:
"""
Applies a list of actions to the Application.
:param action: A list of actions to apply.
"""
pass
def reset_component_for_episode(self, episode: int):
"""
Resets the Application component for a new episode.