@@ -0,0 +1,1632 @@
+package ibm.smartWatch.heartRate;%0A%0Apublic class HeartRateController %7B%0A%09HeartRateModel highHeartRateModel = new HeartRateModel();%0A%09HeartRateModel lowHeartRateModel = new HeartRateModel();%0A%09HeartRateModel currentHeartRateModel = new HeartRateModel();%0A%0A%09public HeartRateController() %7B%0A%0A%09%09highHeartRateModel.setHeartRate(HeartRateModel.maxHeartRate);%0A%09%09lowHeartRateModel.setHeartRate(HeartRateModel.minHeartRate);%0A%09%7D%0A%0A%09public HeartRateModel getHighHeartRateModel() %7B%0A%09%09return highHeartRateModel;%0A%09%7D%0A%0A%09public void setHighHeartRateModel(HeartRateModel highHeartRateModel) %7B%0A%09%09this.highHeartRateModel = highHeartRateModel;%0A%09%7D%0A%0A%09public HeartRateModel getLowHeartRateModel() %7B%0A%09%09return lowHeartRateModel;%0A%09%7D%0A%0A%09public void setLowHeartRateModel(HeartRateModel lowHeartRateModel) %7B%0A%09%09this.lowHeartRateModel = lowHeartRateModel;%0A%09%7D%0A%0A%09public HeartRateModel getCurrentHeartRateModel() %7B%0A%09%09return currentHeartRateModel;%0A%09%7D%0A%0A%09public void setCurrentHeartRateModel(HeartRateModel currentHeartRateModel) %7B%0A%09%09this.currentHeartRateModel = currentHeartRateModel;%0A%09%7D%0A%0A%09public void evaluateHeartRate() %7B%0A%09%09// HIGH heart rate%0A%09%09if (currentHeartRateModel.getHeartRate() %3E highHeartRateModel.getHeartRate()) %7B%0A%09%09%09System.err.println(%22Heart Rate: %22 + currentHeartRateModel.getHeartRate()%0A%09%09%09%09%09+ %22 Alert!!! BOOST of Adrenaline at ----%3E%3E %22 + currentHeartRateModel.getEndTime());%0A%09%09%7D%0A%09%09// LOW heart rate%0A%09%09if (currentHeartRateModel.getHeartRate() %3C lowHeartRateModel.getHeartRate()) %7B%0A%09%09%09System.err.println(%22Heart Rate: %22 + currentHeartRateModel.getHeartRate()%0A%09%09%09%09%09+ %22 Alert!!! Possible falling asleep at ----%3E%3E %22 + currentHeartRateModel.getEndTime());%0A%09%09%7D%0A%0A%09%7D%0A%0A%7D%0A

Create HeartRateController.java