Skip to content

An epidemic simulation with visuals to practice design patterns. Many design principles was in my mind while I implemented it. Put extra effort to get familiar with modern Java practices with functional programming paradigms which I love. An over-engineered example for sure...

Notifications You must be signed in to change notification settings

selmanozleyen/epidemic-sim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Intro

An epidemic simulation with visuals to practice design patterns. Many design principles was in my mind while I implemented it. Put extra effort to get familiar with modern Java practices with functional programming paradigms which I love. An over-engineered example for sure...

How To Run

Make sure you have maven and javac then you can type:

mvn clean javafx:run

GUI

Start Screen

Starting window asks some parameters for the simulation. You can change them every run and see how it changes the Death Count.
Spoiler Alert: You don't go extinct when you stay home & wear mask.

fig3

Visual

Red Squares: People currently in social interaction.
Blue Squares: People walking around without social interaction.
Squares with Green Circles: Infected people.
fig1

Real-Time Plot

Stats are gather by a decorated component of the simulation to demonstrate the decoupling of components. fig2

Design

Used Component Pattern. Similar to what Unity has. See media/diagram for more.
Why so over-engineered? Because the main purpose was to practice...

About

An epidemic simulation with visuals to practice design patterns. Many design principles was in my mind while I implemented it. Put extra effort to get familiar with modern Java practices with functional programming paradigms which I love. An over-engineered example for sure...

Topics

Resources

Stars

Watchers

Forks

Languages