Skip to main content
Filter by
Sorted by
Tagged with
316 votes
22 answers
363k views

Update: Again thanks for the examples, they have been very helpful and with the following, I don't mean to take anything away from them. Aren't the currently given examples, as far as I understand ...
Jennifer Owens's user avatar
188 votes
4 answers
44k views

I am working on investigation of one front-end application of medium complexity. At this moment it is written in pure javascript, it has a lot of different event-based messages connecting few main ...
Artem Arkhipov's user avatar
104 votes
6 answers
33k views

Is a finite state machine just an implementation of a Markov chain? What are the differences between the two?
Carson's user avatar
  • 17.9k
82 votes
8 answers
168k views

I am just wondering if anyone know of some good tutorials on the Internet for developing state machines. Or ebooks? I am starting working on state machines and just need something general to get me ...
ant2009's user avatar
  • 22.7k
70 votes
8 answers
157k views

I have something to do for work and I need your help. We want to implement a FSM - Finite State Machine, to identify char sequence(like: A, B, C, A, C), and tell if it accepted. We think to implement ...
Ofir A.'s user avatar
  • 3,172
64 votes
1 answer
2k views

I am trying to leverage Akka's finite state machine framework for my use case. I am working on a system that processes a request that goes through various states. The request here is the application ...
user_mda's user avatar
  • 19.6k
53 votes
12 answers
59k views

Related to this Stack Overflow question (C state-machine design), could you Stack Overflow folks share your Python state-machine design techniques with me (and the community)? At the moment,...
jldupont's user avatar
  • 97.5k
51 votes
3 answers
6k views

I need to match certain URLs in web application, i.e. /123,456,789, and wrote this regex to match the pattern: r'(\d+(,)?)+/$' I noticed that it does not seem to evaluate, even after several minutes ...
abhillman's user avatar
  • 4,422
41 votes
16 answers
16k views

I am just curious if there is a programming language which has state machines (similar to boost::statechart) as primary language construct. Analogies - c# has delegates where java uses the observer ...
danatel's user avatar
  • 5,032
36 votes
2 answers
62k views

Does anybody know a workflow engine (such as Spring WebFlow) for Javascript? We have a home-made framework that allows us to guide site navigation using JSON, but its quality is far from good. Edit ...
eabait's user avatar
  • 1,196
35 votes
9 answers
44k views

I'm using several enum-based state machines in my Android application. While these work very well, what I am looking for is a suggestion for how to elegantly receive events, typically from registered ...
Trevor's user avatar
  • 11k
32 votes
3 answers
4k views

I'd love to figure it out myself but I was wondering roughly what's the algorithm for converting a function with yield statements into a state machine for an enumerator? For example how does C# turn ...
Mark Cidade's user avatar
32 votes
4 answers
29k views

I want to learn what is the difference between "State machine" and "workflow", and how is it any different from "State machine workflow"?
Rohit Sharma's user avatar
  • 6,500
31 votes
5 answers
20k views

I am attempting to build an FSM to control a timer in (iphone sdk) objective c. I felt it was a necessary step, because I was otherwise ending up with nasty spaghetti code containing pages of if-then ...
mwt's user avatar
  • 523
28 votes
4 answers
13k views

Is it feasible to use the yield keyword to implement a simple state machine as shown here. To me it looks like the C# compiler has done the hard work for you as it internally implements a state ...
Matt Warren's user avatar
  • 10.3k
23 votes
6 answers
57k views

What is the difference between Mealy & Moore type of finite state machines?
user avatar
22 votes
6 answers
7k views

What is the correct syntax for performing a validation on before a transition in the state_machine gem? I've tried the following, before_transition :apple => :orange do validate :validate_core ...
James McMahon's user avatar
21 votes
1 answer
14k views

I have some fairly simple state needs (for now). I think I would like to model these using the Stateless api. (But I don't really know much about state machines, so I could be wrong.) But I am ...
Vaccano's user avatar
  • 83.2k
20 votes
5 answers
8k views

Is it possible to send variables in the the transition? i.e. @car.crash!(:crashed_by => current_user) I have callbacks in my model but I need to send them the user who instigated the transition ...
Kevin Monk's user avatar
  • 1,454
20 votes
5 answers
13k views

I came across stateless, a hierarchical state machine framework based on Simple State Machine for Boo, but configured using C# 3.0 It is easy to configure and use, I will probably use it soon. But I ...
Leyu's user avatar
  • 2,687
19 votes
9 answers
24k views

What is the best way to write a state machine in C? I usually write a big switch-case statement in a for(;;), with callbacks to re-enter the state machine when an external operation is finished. Do ...
Maurizio Reginelli's user avatar
19 votes
2 answers
19k views

I need to write state machines that run fast in c#. I like the Windows Workflow Foundation library, but it's too slow and over crowded with features (i.e. heavy). I need something faster, ideally with ...
Nestor's user avatar
  • 14k
18 votes
1 answer
4k views

Interface IAsyncStateMachine can be used only by compiler, and is used in generating state machine for async methods. Interface has SetMachineState - configures the state machine with a heap-allocated ...
Vasyl Senko's user avatar
  • 1,819
17 votes
4 answers
8k views

Please, help me. I'm confused. I know how to write state-driven behavior of model, but I don't know what should I write in specs... My model.rb file look class Ratification < ActiveRecord::Base ...
petRUShka's user avatar
  • 10.2k
16 votes
2 answers
9k views

Both of them represent the different states a system can take. So what is the difference of Petri Nets and Finite State Machines? When do I use Petri Nets, and when do I use Finite State Machines?
LJag's user avatar
  • 351

1
2 3 4 5
36