pymasep.interface.environment_interface
Classes
Represents the environment of the game (Interface part). This object keeps all dynamic value of the game. |
Module Contents
- class pymasep.interface.environment_interface.EnvironmentInterface(id_env=None, cfg=None)
Bases:
pymasep.common.environment.EnvironmentRepresents the environment of the game (Interface part). This object keeps all dynamic value of the game. This environment chooses the action of the agent controlled by the interface.
- Parameters:
id_env (str) – the id of the environment. If None, a new uuid will be set
cfg (omegaconf.DictConfig)
- Parm cfg:
the configuration of the environment
- controlled_agent = None
the agent controlled by the interface
- choose_action()
tell the agent controlled by interface to choose their action
- Return type:
None
- update_current_next(observation_xml, additional_info)
update the current state of the interface from the observation
- Parameters:
observation_xml (xml.etree.ElementTree.Element) – observation as XML
additional_info – additional information
- Return type:
None