sim.app.mousetraps.index.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mason Show documentation
Show all versions of mason Show documentation
MASON is a fast discrete-event multiagent simulation library core in Java, designed to be the foundation for large custom-purpose Java simulations, and also to provide more than enough functionality for many lightweight simulation needs. MASON contains both a model library and an optional suite of visualization tools in 2D and 3D.
The newest version!

Mouse Traps
By Gabriel Catalin Balan
A reimplementation of the original Mouse Trap example from Swarm. The floor is covered with a grid of mouse traps, each holding a ping-pong ball. Each time a ping-pong ball lands on an unsprung mouse trap, it fires the ball back up, plus the mouse trap's own ball, at random trajectories. If a ball hits a sprung mouse trap, the ball disappears. A single ball is dropped in the center of the field to start, and chaos ensues.
Our implementation has a slight twist: we track the 3D trajectories of the balls. This enables the 3D Mouse Traps example elsewhere.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy