Difference between revisions of "Cholera MapReduce Application"

From CSE231 Wiki
Jump to navigation Jump to search
Line 10: Line 10:
  
 
[[File:Snow-cholera-map-1.jpg|thumb]]
 
[[File:Snow-cholera-map-1.jpg|thumb]]
 +
 +
=Code To Use=
 +
class Location
 +
: double getDistanceTo( Location other )
 +
 +
class CholeraDeath
 +
: Location getLocation()
 +
 +
enum WaterPump
 +
: Location getLocation()
 +
 +
class SohoCholeraOutbreak1854
 +
: static CholeraDeath[] getDeaths()
  
 
=Code To Implement=
 
=Code To Implement=

Revision as of 19:06, 26 February 2018

Motivation

Epidemiology is the important study of "why certain people are getting ill."

Background

John Snow memorial and pub.jpg

Imagine you are a physician in 1854 London in the midst of a cholera outbreak. Your theory that contaminated water is the cause meets resistance from the medical establishment which holds that it is spread via the air.

Imagine further that your friend Ada left you access to computing.

Snow-cholera-map-1.jpg

Code To Use

class Location

double getDistanceTo( Location other )

class CholeraDeath

Location getLocation()

enum WaterPump

Location getLocation()

class SohoCholeraOutbreak1854

static CholeraDeath[] getDeaths()

Code To Implement

class: CholeraApp.java Java.png
methods: getValueRepresentation
createMapper
createCollector
package: mapreduce.apps.cholera.studio
source folder: student/src/main/java

Testing Your Solution

Visualization

CholeraOutbreak.png

Correctness

class: CholeraStudioTestSuite.java Junit.png
package: mapreduce
source folder: testing/src/test/java