specless.strategy

Strategy module

This module contains the base classes for all strategy classes.

Classes

Strategy

Base class for all strategy classes.

FeedbackStrategy

Base class for all feedback strategy classes.

FeedforwardStrategy

Base class for all feedforward strategy classes.

MemorylessStrategy

Base class for all memoryless strategy classes.

HistoryDependentStrategy

Base class for all history-dependent strategy classes.

PlanStrategy

Plan strategy class.

PolicyStrategy

Policy strategy class.

CombinedStrategy

Combined strategy class.

Examples

>>> from specless.strategy import PlanStrategy
>>> plan = [0, 1, 2, 3]
>>> strategy = PlanStrategy(plan)
>>> state = 0 # Anything is fine.
>>> action = strategy.action(state)
>>> print(action)
0
>>> action = strategy.action(state)
>>> print(action)
1
>>> action = strategy.action(state)
>>> print(action)
2
>>> action = strategy.action(state)
>>> print(action)
3

Classes

CombinedStrategy

Combined strategy class.

FeedbackStrategy

Base class for all feedback strategy classes

FeedforwardStrategy

Base class for all feedforward strategy classes.

HistoryDependentStrategy

Base class for all history-dependent strategy classes.

MemorylessStrategy

Base class for all memoryless strategy classes.

PlanStrategy

Plan strategy class.

PolicyStrategy

Policy strategy class.

Strategy

Base class for all strategy classes