eod commit

This commit is contained in:
Marek Wolan
2024-02-23 10:06:48 +00:00
parent 72f4cc0a50
commit f933341df5
6 changed files with 24 additions and 30 deletions

View File

@@ -160,8 +160,12 @@ class SimComponent(BaseModel):
self._request_manager: RequestManager = self._init_request_manager()
self._parent: Optional["SimComponent"] = None
def reset_component_for_episode(self, episode: int):
"""Reset the original state of the SimComponent."""
def setup_for_episode(self, episode: int):
"""
Perform any additional setup on this component that can't happen during __init__.
For instance, some components may require for the entire network to exist before some configuration can be set.
"""
pass
def _init_request_manager(self) -> RequestManager: