Solved

Class that implements a FSM (Finite State Machine)

Posted on 2003-11-11
8
458 Views
Last Modified: 2006-11-17
Could anybody recommend a Java class that could be employed to implement a FSM?

The solution that is being developed will access some machine peripherals and needs to send them commands depending on their current responses, in order to make them execute some tasks.

If the solution was based on C++, there would be a table containing informations such as the possible states, the methods that could be executed for each state depending on the last response, the next states, etc.

I'm new at Java programming and don't have any idea on how to program FSMs using this language, but was told to find any ready to use FSM class to help me.

Thanks,
Edson
0
Comment
Question by:edsont
8 Comments
 
LVL 35

Accepted Solution

by:
TimYates earned 84 total points
ID: 9721405
0
 
LVL 35

Expert Comment

by:TimYates
ID: 9721410
0
 
LVL 86

Assisted Solution

by:CEHJ
CEHJ earned 83 total points
ID: 9721431
You might also benefit from looking at rules engines in Java, which are configurable with text files (xml) and can take actions based on a particular state. Look at http://sourceforge.net/search under "Java rules engine" (Require All Words)
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 9

Assisted Solution

by:doronb
doronb earned 83 total points
ID: 9727744
I think you'll find everything in here: http://www.coyotegulch.com/bookart/books.html

Download the Java Source Code for the Java Algorithms book, in which you'll find source code for FSM's and how they can be mutated as well :)

Good luck!
Doron
0
 
LVL 14

Expert Comment

by:sudhakar_koundinya
ID: 10049956
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:


[split points to doronb,CEHJ and TimYates]


Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
sudhakar_koundinya
EE Cleanup Volunteer
---------------------
If you feel that your question was not properly addressed, or that none of the comments received were appropriate answers, please post your concern in THIS thread.
0
 
LVL 9

Expert Comment

by:doronb
ID: 11515131
No objections
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question