The Wayback Machine - http://web.archive.org/web/20200614102046/https://github.com/topics/finite-state-machine
Skip to content
#

finite-state-machine

Here are 411 public repositories matching this topic...

michaellenaghan
michaellenaghan commented Jan 6, 2020

The page has this snippet:

green: {
  onEntry: "startHttpRequest",
  onExit: "cancelHttpRequest",
  ...
}

followed shortly thereafter by this snippet:

function transition(event, data) {
  currentState = stateMachine.transition(currentState, event, data);
  field.classList.value = currentState.value;
  currentState.actions.forEach(item => window[item]());
}

T

mikeage
mikeage commented Mar 4, 2020

Is your feature request related to a problem? Please describe.
The variable is called stay and it means "Keep the light on once triggered and never turn off", and so the service is called set_stay_on, which is parsed as "set stay_mode to on". However, not being familiar with the new stay feature, I first though that these two services would "set the light to stay on, always" and "set the

Improve this page

Add a description, image, and links to the finite-state-machine topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the finite-state-machine topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.