Skip to content

Finite State Machine Implemented in Scala using Phantom Types

Notifications You must be signed in to change notification settings

blondacz/scala-fsm-phantom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

scala-fsm-phantom

Finite State Machine Implemented in Scala using Phantom Types so there is no need for tests of basic transitions between states because compiler does not allow invalid transitions.

Instruction FSM is actually two FSMs that should be cooperating: One for message state of the Instruction (SWIFT):

    New              =>       Failed
     ||
     \/  
  Published                      ||
     ||                          \/
     \/  
  Instructed 
     ||
     \/
  Cancel Submitted    =>     Not Instructed
     ||
     \/  
  Cancelled
  

One for confirmation state (it is not possible to cancle):

  Unconfirmed             
     ||
     \/  
  Confirmed <==
     ||       ||
     ==========
  

About

Finite State Machine Implemented in Scala using Phantom Types

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages