You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’m actually working on library evaluation for state machine and I’m very interesting in what Automat do. To resume, I develop a module to manage small process like Bluetooth communication with a remote sensor.
Automat can help me, in the future, to manage the state machine associate with the process (for example, Remote sensor stopped, remote sensor ready to measure, remote sensor measuring, …)
However, I have some difficulties to find some support (forum or mailing list), it’s why I write an issue on GitHub..
My questions about Automat :
Let’s imagine that :
The inputs are done by the user through a GUI (connect to the remote sensor, start remote sensor, start measurements, etc…)
We have an output class RemoteSensor to manage the communication with the remote sensor
How is it plan to manage Exception ?
For example, the user trigger the input “Connect to the remote sensor”. The associate output method “connect” of RemoteSensor class does the job by opening the connection. If the establishment of the connection fails (ie. Exception throw), I don’t want to go in the next state which is “Remote sensor stopped”. Is there any way to do that ?
Is it possible (and logical) to have an output class which does input too ?
For example, my RemoteSensor class manage the connection with the remote sensor. The user triggers the input “Start measurements” through the GUI , so the output method “startMeasurement” of RemoteSensor Class sends the order to the remote sensor to start measuring. The state machine goes into “Remote Sensor Measuring” state. Now, I had to wait until the measuring process finish. This information is gotten from the remote sensor by asking it each second. I want the RemoteSensor class manage this task. However, I don’t know if the design pattern is correct.
What I imagine : create a second output in the state machine call “waitForEndingMeasurements” which call a specific method of the RemoteSensor class with a call back to the state machine input
Have you plan something to do automatic GUI (web based if possible) ?
I plug Automat with twisted http server and return JSON state machine description with possible states, current state and inputs available function of current state to product HTML5 GUI to :
Display information,
Allow the user to make inputs
In the future, maybe I will associate it with the graphviz svg export of the state machine.
I’m ready to contribute to the project if necessary.
Thanks a lot for your help.
Thibaud
The text was updated successfully, but these errors were encountered:
I’m actually working on library evaluation for state machine and I’m very interesting in what Automat do. To resume, I develop a module to manage small process like Bluetooth communication with a remote sensor.
Automat can help me, in the future, to manage the state machine associate with the process (for example, Remote sensor stopped, remote sensor ready to measure, remote sensor measuring, …)
However, I have some difficulties to find some support (forum or mailing list), it’s why I write an issue on GitHub..
My questions about Automat :
I’m ready to contribute to the project if necessary.
Thanks a lot for your help.
Thibaud
The text was updated successfully, but these errors were encountered: