specless.strategy.HistoryDependentStrategy

class specless.strategy.HistoryDependentStrategy[source]

Bases: FeedbackStrategy

Base class for all history-dependent strategy classes.

Methods

action

Get the action for the history-dependent strategy given the state.

reset

Reset the feedback strategy.

action(state: ObsType) ActType[source]

Get the action for the history-dependent strategy given the state.

Parameters:

state (ObsType) – The state for which to get the action.

Returns:

The action for the history-dependent strategy.

Return type:

ActType

Raises:

NotImplementedError – If the method is not implemented in a subclass.

reset() None

Reset the feedback strategy.

Raises:

NotImplementedError – If the method is not implemented in a subclass.