pymasep.common.controller ========================= .. py:module:: pymasep.common.controller Classes ------- .. autoapisummary:: pymasep.common.controller.Controller Module Contents --------------- .. py:class:: Controller(environment) Abstract controller to control an agent in the environment :param environment: environment for the controller .. py:attribute:: environment .. py:method:: action_choice(observation, agent) Choose the action. :param pymasep.common.State observation: The observation used to choose the action. :param pymasep.common.Agent agent: The agent who chooses the action. :return: The action (pymasep.common.Action) chose for the agent. .. py:method:: on_observe(observation, reward = None) Do something when the agent observes the state and possibly a reward. Useful for learning controllers. :param pymasep.common.State observation: The observation used to choose the action. :param reward: The reward obtained.