Class that implements a FSM (Finite State Machine)

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.

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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 under "Java rules engine" (Require All Words)
Starting with Angular 5

Learn the essential features and functions of the popular JavaScript framework for building mobile, desktop and web applications.

I think you'll find everything in here:

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!
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.
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.
No objections
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.