项目作者: webgme

项目描述 :
Finite state machine domain
高级语言: JavaScript
项目地址: git://github.com/webgme/finite-state-machine.git
创建时间: 2015-10-05T19:59:04Z
项目社区:https://github.com/webgme/finite-state-machine

开源协议:

下载


Finite State Machine

Finite state machine domain with seed, decorator and plugin for generating executable command line simulators in different languages.

Finite-state-machine

Run as a standalone webgme app

Make sure the dependencies for webgme are installed.

  1. Clone this repository and from the root of the repo do:
  2. npm install - installs all dependencies
  3. npm install webgme - installs webgme (it’s a peer-dependency).
  4. Launch a local mongodb instance (if not local edit the webgme config).
  5. npm start
  6. Visit localhost:8888 from a browser.

Import components into your own webgme repo

Using the webgme-cli the following pieces can be imported (execute from root of repository).

Seed

Serialized model containing the finite-state-machine metamodel and some examples.

  1. webgme import seed FiniteStateMachine webgme-finite-state-machine

Decorator

Decorates the states and transitions in a UML-like fashion. The seed already registers the decorator for the appropriate nodes.

  1. webgme import decorator UMLStateMachineDecorator webgme-finite-state-machine

Plugin

Generates code from a state-machine. The seed registers the plugin for state-machines.

  1. webgme import plugin FiniteStateMachine webgme-finite-state-machine

Developers

Publish new release at npm

  1. npm prune
  2. npm install
  3. npm version 1.1.0 -m "Release %s"
  4. git push origin master
  5. git checkout v1.1.0
  6. git push origin v1.1.0
  7. npm publish ./