coopihc.observation.WrapAsObservationEngine.WrapAsObservationEngine

class WrapAsObservationEngine(obs_bundle)[source]

Bases: coopihc.observation.BaseObservationEngine.BaseObservationEngine

Wrap a bundle as an Observation Engine

Parameters

obs_bundle (Bundle :py:mod:<coopihc.bundle>) – bundle that simulates an observation process

Methods

default_value

Apply this decorator to use bundle.game_state as default value to observe if game_state = None

observe

observe_from_substates

reset

reset _summary_

step

Attributes

action

returns the last action

bundle

game_state

observation

returns the last observation

unwrapped

property action

returns the last action

Returns

last action

Return type

State

static default_value(func)

Apply this decorator to use bundle.game_state as default value to observe if game_state = None

property observation

returns the last observation

Returns

last observation

Return type

State

reset(*args, **kwargs)[source]

reset _summary_

Empty by default.

Parameters

random (bool, optional) – whether states internal to the observation engine are reset randomly, defaults to True. Useful in case of subclassing the Observation Engine.