Environment
- class Melodie.Environment
Bases:
Element- setup()
Set up the environment at the beginning of a simulation run.
This method is called after the scenario has been initialized, so scenario parameters can be accessed via
self.scenario. It is intended for initializing environment-level properties or states.
- to_dict(properties: List[str]) Dict
Convert a list of environment properties to a dictionary.
- Parameters:
properties – A list of property names to include in the dictionary.