The environment base class.
The environment specifies the setting in which the agent(s) act. The class is responsible to update the agent(s) at each time step of the program loop and keeps track if the agents’ task is complete.
agents : Agent or list[Agent], optional
A list of agents that act in the environment.
The module’s unique identifier.
Add an agent to the environment.
Enter the environment and all agents.
Exit the environment and all agents.
Return the agent specified by the id.
Checks if the environment has completed.
Load the state of the module from file.
Resets the environment.
Save the current state of the module to file.
Update the environment and all agents.