Results 1 to 5 of 5
Thread: FSM in java
- 11-30-2011, 02:26 PM #1
Member
- Join Date
- Nov 2011
- Posts
- 1
- Rep Power
- 0
- 11-30-2011, 02:39 PM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,606
- Blog Entries
- 7
- Rep Power
- 17
Re: FSM in java
Creating a new class State (or similar) would be the easiest approach. Given a state and a character (or whatever) should give you a new set of state objects (possibly only one).
kind regards,
JosWhen people rob a bank they get a penalty; when banks rob people they get a bonus.
- 11-30-2011, 04:09 PM #3
Re: FSM in java
The only problem I had building a FSM was the forward references in the state tables.
- 11-30-2011, 04:19 PM #4
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,606
- Blog Entries
- 7
- Rep Power
- 17
- 12-01-2011, 10:50 AM #5
Re: FSM in java
Are you required to implement your own FSM for school or something? If not, I highly recommend the dk.brics.automaton library.
Get in the habit of using standard Java naming conventions!


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks