Skip to content
/ DFSM Public

A basic Deterministic Finite State Machine with support for discrete states and actions.

License

Notifications You must be signed in to change notification settings

kannangce/DFSM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DFSM

  • The machine is capable being in a state at any given time.

  • At any state, the machine is capable of accepting an input

  • If an input is acceptable in a state, the result is a new state.

  • If the input is not valid in the context of the current state, exception will be thrown

  • The machine has finite set of discreet states and actions.

  • The machine will always be in a default state.

  • Each states accepts only a discreet number of actions, which is subset of all the possible actions.

Usage:

To make use of the DFSM, you can just copy the class DFSM.java, extend it and write your own state machine, by extending the methods getInitData and getDefaultState. For more help refer the test class, which has an anonymous implementation of DFSM, with 2 states and actions.

About

A basic Deterministic Finite State Machine with support for discrete states and actions.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages