Thread safe java finite state machine (FSM) [closed] - java

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I have seen quite a few FSM implementations for JAVA, but I am not sure if there are any "reusable" ones. What do I mean by reusable?
I am processing state transitions for multiple objects with various states. I want to configure a singleton state machine which obviously itself needs to be stateless and thread-safe, so I can just pass all given objects to have their state transitions executed possible in parallel.
I wonder if there are any suitable ones for this scenario out there?

This may be a duplicate of https://stackoverflow.com/questions/10875317/recommended-fsm-finite-state-machine-library-for-java but it is hard to be sure. I have used SMC in a multithreaded system before.
Simpler state machine which may suit you is to use an enum like this.
http://vanillajava.blogspot.com/2011/06/java-secret-using-enum-as-state-machine.html
Again, this is how I have written them from scratch.

Related

Known Java test suites with race condition hazard [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
One feature of the tool I am developing is to detect potential race conditions within a Java unit test suite (hazards introduced not by the application but how the test suite is written.). Are there any known such suites for me to test on? BTW, it would be better that less native methods get involved.
Thanks
The best you can do is to search few open source project issue trackers.
E.g.:
https://jira.springsource.org/browse/AMQP-280?jql=text%20~%20%22test%20race%20condition%22
I bet some of them will be pretty complicated.

What Java libraries are suitable for graphing math functions including SDEs [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
Ideally would want libraries that handle creating graphs on screen well. For now these would be read-only, but eventually we may want to re-draw based on user GUI manipulations.
The other side of the story is SDEs. Would appreciate comments on any experiences people have of SDE calculations and modelling of stochastic math projections using Java. What are the likely performance tradeoff scenarios?
Would prefer to rely on widely used libraries if possible. Any thoughts?
jgraph is the general standard.
http://www.jgraph.com/

Code mutation tools for Java [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I am trying to find tools that mutate Java source code. I am looking for these tools in order to assess the effectiveness of automated debugging algorithms. To date, I have been manually injecting faults in programs in order to test these algorithms. I think mutation will be a nice way to automate this task.
So far, I have only been able to find Mutation Testing tools, like Pitest and Jester.
These tools, despite having the mutators I'm looking for, do not save the mutated source files, which is what I'm after. So, please, do not recommend me Mutation Testing tools that only mutate programs in-memory.
Are there such tools available?

Which EventBus is preferable for new Desktop Applications? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
For several years we use org.bushe.swing.event.EventBus for mainly swing desktop applications. The API is really consistent, and easy to use. But now new requirements have arrised and its desired, that some EventSubscribers should get prefered over others, since they are informed synchronisly. So some kind of priority factor is needed for those subscribers.
Extending EventBus to priorize EventSubscribers shouldnt be that much of a problem, but since org.bushe.swing.event.EventBus has gone stale, I am not sure, if it might be preferable to change the EventBus Implementation.
org.bushe.swing.event.EventBus itself recommends projects like GWT Eventbus for GWT. I'm not sure, if that is also a good approach for swing applications. Which EventBus Implementations do you usually use? Do you may even know a simple Implementations which supports Priorities for Subscribers?

Java library for keeping a synchronised / replicated in-memory copy of remote data [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I've had this requirement come up quite a lot and I'm wondering if there is a library that encapsulates this functionality. Essentially it's this:
I have some remote data store (often a database but could be anything) and I'd like to cache the whole thing in memory and periodically check for updates as well as do full refreshes. Ideally the check for updates should only track delta's (so either the remote store provides a stream of updates to the store or the library figures it out by a combination of a 'modified on' and 'archive' fields).
Often I'd use a cache that just looks up the value if it's not in the cache but there are cases where the latency on a cache miss would be unacceptable.

Categories