fsm

State Machine Framework for JBoss/Java? [closed]

这一生的挚爱 提交于 2019-12-06 15:05:48
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . We are developing an application that involves a lot of different tests where each test lead the users to a number of steps. We are thinking of using a state machine framework to capture the states/transitions out of the code. We are also thinking of using rule engine to supplement on the rules. Anyone has

Is using a finite state machine a good design for general text parsing?

北战南征 提交于 2019-12-06 11:23:39
I am reading a file that is filled with hex numbers. I have to identify a particular pattern, say "aaad" (without quotes) from it. Every time I see the pattern, I generate some data to some other file. This would be a very common case in designing programs - parsing and looking for a particular pattern . I have designed it as a Finite State Machine and structured structured it in C using switch-case to change states. This was the first implementation that occured to me. DESIGN: Are there some better designs possible? IMPLEMENTATION: Do you see some problems with using a switch case as I

SCTP 库的简述和代码 (3)

∥☆過路亽.° 提交于 2019-12-06 04:16:37
--- 如转请保留作者信息 jundai2009@gmail.com 接这上回说, 上面, g_sctp_fsm 是状态列表入口, 不同的状态下,处理网络包的方法不一样, 就是说处理的API不一样, 那这API就在这里选择. 状态表格中, 左边fsm_handler_fn 是执行动作, 右边是下面将要进入的状态. 关于这个库的状态机设计, 还有下面两个比较重要的宏 #define SCTP_TRANSFER_STATE(assoc, new_state) do {\ if ((assoc)->cur_state != new_state) {\ sctp_enter_state(assoc, new_state);\ assoc->cur_state = new_state;\ }\ }while(0); #define SCTP_PROC_PKG(instance, assoc, pkg, parsed_info, new_assoc) do {\ sctp_state old_state, new_state; \ old_state = (assoc) ? (assoc->cur_state):SCTP_STATE_CLOSED;\ new_state = (g_sctp_fsm[old_state] + (pkg))->new_state;\ new_assoc =

What does 1-, 2-, or 3-process mean for an FSM in VHDL?

狂风中的少年 提交于 2019-12-04 22:47:54
问题 It seems like there is quite some debate about how to code finite state machines (FSMs) in VHDL. People talk about 1-process, 2-process, or 3-process FSMs as if everyone knew exactly what it means and what each process does. However, I've been unable to find a precise definition, and the examples that exist seem to be contradictory. This is an objective question: What is the difference in terms of code for each FSM style (1-process, 2-process, 3-process)? I understand that there is a

State Machine Framework for JBoss/Java? [closed]

徘徊边缘 提交于 2019-12-04 21:48:13
Closed. This question is off-topic . It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . We are developing an application that involves a lot of different tests where each test lead the users to a number of steps. We are thinking of using a state machine framework to capture the states/transitions out of the code. We are also thinking of using rule engine to supplement on the rules. Anyone has experience with any state machine framework that would work with JBoss and/or Java? Thanks in advance.

Designing high-performance State Machine in Java

本秂侑毒 提交于 2019-12-04 07:59:46
问题 I am in the process of starting to write a Java library to implement high-performance Finite State Machines. I know there are a lot of libraries out there, but I want to write my own from scratch, as almost all the libraries out there construct automatons optimized for handling only one at a time. I would like to know what the people in the SO community who have dabbled in state machine design feels are the most important / best design principles when it comes to implementing high-performance

Finite State Machine and inter-FSM signaling

社会主义新天地 提交于 2019-12-03 10:37:14
Recommendations for languages with native (so no FSM generation tools) support for state machine development and execution and passing of messages/signals. This is for telecoms, e.g implementation of FSMs of this level of complexity. I have considered Erlang, but would love some feedback, suggestions, pointer to tutorials, alternatives, particularly Java based frameworks. Maybe Scala? Open source only. I'm not looking for UML or regular expression related solutions. As this is for the implementation of telecoms protocols the FSMs may be non-trivial. Many states, many transitions, signal based,

RE -> FSM generator? [closed]

本秂侑毒 提交于 2019-12-03 10:04:31
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . Given a regular expression, I'm looking for a package which will dynamically generate the code for a finite state machine that implements the RE. C/C++ and Python preferred, but other languages are of interest as well. 回答1: re2c generates C code. I'm not sure what you mean by 'dynamically' -- AFAIK you'd have to

Convert finite state machine to regular expression

一笑奈何 提交于 2019-12-03 07:45:48
问题 Is there a tool (or an algorithm) to convert a finite state machine into a regular expression ? (not the other way around, that would be easy). 回答1: There are several algorithms to perform this task: the "state-elimination method" from Brzozowski and Mc Cluskey, the resolution of a system of linear equation, the method from McNaughton and Yamada, etc. They are very well described in Automata and rational expressions by Jacques Sakarovitch. The state-elimination method in particular is simple

Graphical Finite State Machine Editor [closed]

﹥>﹥吖頭↗ 提交于 2019-12-03 05:40:53
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I am looking for a sophisticated graphical FSM editor that can export a model in a well-documented output format, like SCXML or similar. Can anybody recommend me a tool? 回答1: I am only just now starting to look at YAKINDU - it looks like it might be a great graphical FSM tool built on top of the Eclipse