GithubHelp home page GithubHelp logo

nvdnkpr / state.js Goto Github PK

View Code? Open in Web Editor NEW

This project forked from steelbreeze/state.js

0.0 2.0 0.0 880 KB

JavaScript state machine supporting most UML 2 features

Home Page: http://www.steelbreeze.net/state.js

License: GNU General Public License v3.0

state.js's Introduction

Welcome to state.js

The latest beta is 3.0.0.

The current stable release is 2.0.1.

If you're using state.js I'd love to hear about it; please e-mail me at [email protected]

Version 3 notes

Version 3 moves back to a class based coding style; it provides more control via explicit use of SimpleState, CompositeState and OrthogonalState classes; this also removes the insertion of 'default' regions leading to a flatter model where orthogonal regions are not required.

Version 2 notes - please read before downloading

Version 2 breaks apart the state machine model and the state machine state. This facilitates creating a single state machine model and using it with many different state machine states without any overhead of resetting the state machine, serializing/deserializing state or rebuilding the machine.

###API changes The following are breaking API changes from version 1.2.x:

Calls to initialise and process now take a new first parameter for the state machine state object; this will have the _active and _current properties added to it automatically.

Also removed the previously depricated Completion and Transition objects (just remove kind: Completion or kind: Transition from your transitions).

Introduction

State.js is a JavaScript implementation of a state machine library that supports most of the UML 2 state machine semantics.

State.js provides a hierarchical state machine capable of managing orthogonal regions; a variety of pseudo state kinds are implemented including initial, shallow & deep history, choice, junction and entry & exit points.

Versioning

The versions are in the form {major}.{minor}.{build}

  • Major changes introduce significant new behaviour and will update the public API.
  • Minor changes introduce features, bug fixes, etc, but note that they also may break the public API.
  • Build changes can introduce features, though usually are fixes and performance enhancements; these will never break the public API.

Documentation

Please see the wiki for documentation.

Building state.js

There is no build, download a copy of state.js and use it in your site or project.

Installing with node.js

state.js is available as a node packaged module; to install type: npm install state.js

Licence

Copyright © 2013 Steelbreeze Limited.

state.js may be licenced under either GPLv3 or MIT licences at your discretion. githalytics.com alpha

state.js's People

Watchers

Navid Nikpour avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.