A very basic example model to showcase the visualization on web browser.
A simple grid is displayed on browser with two agents. The example does not have any agent motion involved. This example does not have any movement of agents so as to keep it to the simplest of level possible.
This model showcases following features:
- A rectangular grid
- Text Overlay on the agent's shape on CanvasGrid
- ArrowHead shaped agent for displaying heading of the agent on CanvasGrid
To install the dependencies use pip and the requirements.txt in this directory. e.g.
$ pip install -r requirements.txt
To run the model interactively, run mesa runserver
in this directory. e.g.
$ mesa runserver
Then open your browser to http://127.0.0.1:8521/ and press Reset, then Run.
shape_model/model.py
: Defines the basic shape model and agents.shape_model/server.py
: Sets up the interactive visualization server.run.py
: Launches a model visualization server.