MODELLING THE ECOSYSTEM OF
ROSSUMØYA
Tor jus Strandenes Moen &
Bastian Undheim Øian
The Code
◦ Object oriented programming
◦ 3 main classes
◦ Animals, and their attributes
◦ Cell biomes: Water, Desert, Lowland & Highland
◦ Island, map of cells, report adjacent cells
◦ Birth, Death, Eating, Migration
Testing
◦ Making the best code
◦ Gold standard of testing – 85%
◦ Minimum one test/function
◦ Minimum one test/if statement
◦ Create imposter objects to test
◦ Mocker module to ensure outcomes
Improvements
◦ Optimization
◦ Faster visualization
◦ Readability
◦ GUI
◦ Serialization
Project features
Sphinx License
◦ Documentation for all modules ◦ GNU GPL-3.0-or-later
◦ Advanced features ◦ COPYING
◦ example code boxes ◦ Copyright notice in all source files
◦ note boxes
◦ warning boxes
◦ mathematics
◦ images, figures and logo
Project features
Build package Tox
◦ Can build a package ◦ Tests files and flake8
◦ python -m build ◦ Gitlab test runner
Visualization
◦ Year counter
◦ Map
◦ Line graph
◦ Population distribution
◦ Histograms
◦ Could be faster
◦ Could look nicer