Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Class that implements a FSM (Finite State Machine)

Posted on 2003-11-11
8
Medium Priority
?
473 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 35

Accepted Solution

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

Expert Comment

by:TimYates
ID: 9721410
0
 
LVL 86

Assisted Solution

by:CEHJ
CEHJ earned 332 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 9

Assisted Solution

by:doronb
doronb earned 332 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
In this post we will learn different types of Android Layout and some basics of an Android App.
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 how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses

715 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