betfsm.betfsm.Adapt

Bases: GeneratorWithState

__init__(name, state, outcomeMap=[])

Adapts the outcome of a state using a transition table

Parameters:
  • name (str) –

    instance name

  • state (TickingState) –

    state to be adapted

  • outcomeMap (Dict[str, str], default: [] ) –

    a dictionary that maps outcomes of state to their new values. If the outcome is not present in the dictionary, it is returned unchanged.