org.drasyl.example.diningphilosophers.README.md Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of drasyl-examples Show documentation
Show all versions of drasyl-examples Show documentation
This package contains examples of how to use drasyl.
# drasyl Nodes as Finite State Machines
This example demonstrates how drasyl nodes can be implemented as finite state machines using
the [dining philosophers problem](https://en.wikipedia.org/wiki/Dining_philosophers_problem).
Start the example by
typing `mvn compile exec:java -Dexec.mainClass="org.drasyl.example.diningphilosophers.DiningPhilosophers"`
. In the output you can see the actions of the philosopher nodes.