betfsm.EventOutcome

Bases: Generator

Checks the given condition, and if it returns a string generates an outcome based upon the event_map. By default this node will wait until the condition is triggered, i.e. NO_EVENT is mapped to TICKING. If NO_EVENT is mapped to something else, EventOutcome is a one-time, non-blocking check.

__init__(name, event_poller, event_map=Dict[str, str])

Parameters:
  • name (str) –

    name of the node

  • event_poller (Condition) –

    evaluates conditions (i.e. subclasses of Condition), conditions can be combined with operators | (or), & (and) and Not(...,"event")

  • event_map

    maps an event string to an outcome string.