public GetEmulator(IDoctorPatientSurveyPresenterEmulator presenter, int index, String type)
 {
     if (type.Equals("Blood pressure"))
     {
         IEmulatorCreator creator = new EmulatorHeartRateCreator();
         toReturnEmulator = creator.create(presenter, index);
     }
     else if (type.Equals("Skin's temperature"))
     {
         IEmulatorCreator creator = new EmulatorSkinTemperatureCreator();
         toReturnEmulator = creator.create(presenter, index);
     }
     else if (type.Equals("Skin's humidity"))
     {
         IEmulatorCreator creator = new EmulatorSkinHumidityCreator();
         toReturnEmulator = creator.create(presenter, index);
     }
     else if (type.Equals("Heart rate"))
     {
         IEmulatorCreator creator = new EmulatorHeartRateCreator();
         toReturnEmulator = creator.create(presenter, index);
     }
     else if (type.Equals("Skin's electrical conductivity"))
     {
         IEmulatorCreator creator = new EmulatorSkinElecticalConductivityCreator();
         toReturnEmulator = creator.create(presenter, index);
     }
 }
 public DoctorPatientSurveyService(IDoctorPatientSurveyPresenterEmulator presenter, patientFull.Survey survey)
 {
     _survey       = survey;
     _presenter    = presenter;
     _sensors      = new List <SensorStruct>();
     _pointSources = new List <IEmulator>();
 }
 public IEmulator create(IDoctorPatientSurveyPresenterEmulator presenter, int surveyIndex)
 {
     return(new EmulatorSkinTemperature(presenter, surveyIndex));
 }
 public EmulatorSkinHumidity(IDoctorPatientSurveyPresenterEmulator presenter, int surveyIndex)
 {
     _presenter       = presenter;
     _surveyIndex     = surveyIndex;
     emulatingIsGoing = false;
 }
Example #5
0
 public IEmulator create(IDoctorPatientSurveyPresenterEmulator presenter, int surveyIndex)
 {
     return(new EmulatorBloodPressure(presenter, surveyIndex));
 }
Example #6
0
 public EmulatorSkinElecticalConductivity(IDoctorPatientSurveyPresenterEmulator presenter, int surveyIndex)
 {
     _presenter       = presenter;
     _surveyIndex     = surveyIndex;
     emulatingIsGoing = false;
 }
Example #7
0
 public EmulatorHeartRate(IDoctorPatientSurveyPresenterEmulator presenter, int surveyIndex)
 {
     _presenter       = presenter;
     _surveyIndex     = surveyIndex;
     emulatingIsGoing = false;
 }
Example #8
0
 public IEmulator create(IDoctorPatientSurveyPresenterEmulator presenter, int surveyIndex)
 {
     return(new EmulatorSkinElecticalConductivity(presenter, surveyIndex));
 }