twitch

A central nervous system.

npm install twitch
1 downloads in the last week
4 downloads in the last month

Twitch

A central nervous system.

Plan

Incomplete, not necessarily in order.

  • [ ] Statechart design syntax
    • [ ] name: 'string'
    • [ ] beforeEnter: function
    • [ ] enter: function
    • [ ] beforeExit: function
    • [ ] exit: function
    • [ ] eventName(s): function
    • [ ] 'eventName:eventScope': function
  • [ ] Conversion from design to objects
    • State Model
    • States Collection
    • note: may be best to extract these to separate modules
    • StateChart Object (twitch)
  • [ ] Ordered Tree traversal
    • [ ] should be able to find a specific node in the tree from the root
    • [ ] should be able to find a specific node in the tree from any arbitrary node in the tree
  • [ ] State de/activation
    • [ ] state can only be activated (entered) if parent state is active
    • [ ] states deactivate bottom up
    • [ ] root state activation must occur first, caused externally/explicitly
  • [ ] Event flow from root to leaves
    • [ ] root is only permitted point of entry for events
    • [ ] events trickle down
    • [ ] states which can respond to events, do
npm loves you