This document is an effort to give the understanding about stimulus response model (Software
Engineering)
Stimulus Response Model
What ?
A system which shows the system reaction to various events is called stimulus response system.
To design the weather station using a state machine model we first need to identify the stimuli’s following
table describes the stimuli for weather station
Object WeatherStation
Stimuli Description
reportWeather This stimulus get the summery of data from data that have been archived
Calibrate (Instruments) Used to check the accuracy of the data collected devices/hardware equipments
Startup(Instruments) Change the state of instruments in to active state
Shutdown(Instruments) Change the state of instruments in to inactive state
ReportWeather
Report weather
Summarize data
Algorithm
Calibrate
calibrate
Calibrating device
Barometer
Algorithm
This function takes the argument of device and then check the accuracy of device Active / inactive using
calibrate function
Start up
Start Up Device
Barometer
Algorithm
Shut down
Barometer
Algorithm
Shutdown Summarize
data
Ground Anemometer
thermometer
Calibrating
device
Barometer
Ground Anemometer
thermometer
Start Up
Device Ground Anemometer
thermometer
Start Up
Barometer Device
Barometer
Qaisar Ayub & Sulma Rashid
Stimuli Description
Collect This stimuli is used to collect the data from devices
Summarize It summarize the data for queried report
Collect
Data Archiving
Algrothem
Int collect (int collect_device)
(
If collect_device ==1 then
Collect data from data archiving
Return collect data;
Else
Return collect data from devices
}
Stimuli Description
Test It is used to test the instrument state Functioning / non functioning
Calibrate It used to check the accuracy of device
Ground thermometer
Calibrating
device
Algrothem
Object Anemometer
Stimuli Description
Test It is used to test the instrument state Functioning / non functioning
Calibrate It used to check the accuracy of device
Ground Anemometer
Calibrating
device
Algrothem
Boolean calibrate (int inputdata)
{
If inputdate = getdatafromdevice then return true
Else
Return false
}
Barometer
Stimuli Description
Test It is used to test the instrument state Functioning / non functioning
Calibrate It used to check the accuracy of device
Ground Barometer
Calibrating
Algrothem device