Skip to content

question on documentation, process model #537

@schaefer01

Description

@schaefer01

Hi,
two points on https://github.com/fgmacedo/python-statemachine/blob/develop/docs/processing_model.md

  1. the statement below seems to have no effect on the code execution when removed:

def on_connect(self):
return "on_connect"

  1. It would be nice if the examples on the page included the use of Events
    by events, I mean explicitly declared events, the example on this page
    the events are not explicitly named and they automatically pass control
    from one to the other. I'd like events to be, for example, tied to (called from) outside
    the state machine, as in the "cycle" example.

    Anyway, I know I'm misunderstanding something but I don't know exactly what I'm misunderstanding.

thank you
bob s

For context, I am trying to implement a state machine for science operations of an ISR radar and yesterday I discovered that the "cycle" model does not match the reality of the states needed and today I'm trying to match reality with the process_model, except I need to add events that are explicitly called, not implicit in the transitions. An example would make this easier.
thank you again

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions