smartgrid.rewards.argumentation.situation.parse_situation

smartgrid.rewards.argumentation.situation.parse_situation(world: World, agent: Agent) Dict[str, Any][source]

Parse the current state-actions into a situation for judgment.

Parameters:
  • world – The current world (equivalent to the state); also contains all other agents so that we can compare the currently judged agent to them.

  • agent – The currently judged agent, mainly for its action, but may also refer to its profile, own personal state, etc.

Returns:

A dict indexed by string keys, representing the current situation. The dict contains pre-processed elements that are easier to handle by the argumentation graphs.