Something went wrong on our end
-
Peter Joseph De Jonckheere CESM2014 authored
Mid work commit with some sensors possibly implemented and notifications completed. Both are as yet untested.
Peter Joseph De Jonckheere CESM2014 authoredMid work commit with some sensors possibly implemented and notifications completed. Both are as yet untested.
Stimulus.java 709 B
package com.example.stimulus;
import android.content.BroadcastReceiver;
import com.example.notification.Notification;
import com.example.stimulusStrategy.Accelerometer;
import com.example.stimulusStrategy.Clock;
import com.example.stimulusStrategy.StimulusStrategy;
import java.util.Observer;
/**
* Created by pharmacy on 09/01/2018.
*/
public interface Stimulus {
//StimulusStrategy defaultStrategy = new Clock(context);
//Creates an instance of the desired notifcation type (Factory Method)
//TBD if this is to be public
Notification createNotification();
//Allows the Stimulus Strategy to be used with this stimlus to be chosen
void chooseStrategy(StimulusStrategy s);
}