Source code for bsb.simulation.component from .. import config from .._util import obj_str_insert [docs] @config.node class SimulationComponent: name: str = config.attr(key=True) @property def simulation(self): return self._config_parent._config_parent @obj_str_insert def __str__(self): return f"'{self.name}'" [docs] def implement(self, adapter, simulation, simdata): """Method called when simulation is being set up. Can be used for components to set themselves up and store the context they need to operate.""" pass __all__ = ["SimulationComponent"]