A Reuse- and Prototyping- based Approach for the Specification of - - PowerPoint PPT Presentation
A Reuse- and Prototyping- based Approach for the Specification of - - PowerPoint PPT Presentation
A Reuse- and Prototyping- based Approach for the Specification of Building Automation Systems Andreas Metzger Stefan Queins SFB 501: Development of Large Systems with Generic Methods Department of Computer Science University of
Introduction Requirements Engineering Method
Reuse Prototyping
Case Study Perspectives
A Reuse- and Prototyping- based Approach for the Specification of Building Automation Systems
Andreas Metzger Stefan Queins
SFB 501: ‘Development of Large Systems with Generic Methods’ Department of Computer Science University of Kaiserslautern Germany
Andreas Metzger – OMER-2 Workshop – Herrsching – May 10, 2001 3
Properties of Building Automation Systems Control of Physical Effects
temperature
- ccupancy
sound air quality ventilation light humidity
Andreas Metzger – OMER-2 Workshop – Herrsching – May 10, 2001 4
Properties of Building Automation Systems Coupling of Physical Effects
Andreas Metzger – OMER-2 Workshop – Herrsching – May 10, 2001 5
Properties of Building Automation Systems Coupling of Physical Effects
Andreas Metzger – OMER-2 Workshop – Herrsching – May 10, 2001 6
Properties of Building Automation Systems Coupling of Physical Effects
Andreas Metzger – OMER-2 Workshop – Herrsching – May 10, 2001 7
Properties of Building Automation Systems Size
handling of complexity
type of building total sensors and actuators university building with 100
- ffices and computer labs
2,500 Burj Al Arab and Jumeirah Beach Hotel, Dubai 26,000
Andreas Metzger – OMER-2 Workshop – Herrsching – May 10, 2001 8
Properties of Building Automation Systems Size
handling of complexity
Number of Identical Products
small efficient development
type of building total sensors and actuators university building with 100
- ffices and computer labs
2,500 Burj Al Arab and Jumeirah Beach Hotel, Dubai 26,000
Andreas Metzger – OMER-2 Workshop – Herrsching – May 10, 2001 9
Properties of Building Automation Systems Size
handling of complexity
Number of Identical Products
small efficient development
Life Span
long traceability
type of building total sensors and actuators university building with 100
- ffices and computer labs
2,500 Burj Al Arab and Jumeirah Beach Hotel, Dubai 26,000
Andreas Metzger – OMER-2 Workshop – Herrsching – May 10, 2001 10
Development Process Requirements Engineering
Problem Description Requirements Specification
Andreas Metzger – OMER-2 Workshop – Herrsching – May 10, 2001 11
Development Process Requirements Engineering
Building Description
Problem Description Requirements Specification
Needs
Andreas Metzger – OMER-2 Workshop – Herrsching – May 10, 2001 12
Development Process Requirements Engineering
Building Description Object Structure
Problem Description Requirements Specification
Object Structure Specification Needs
Andreas Metzger – OMER-2 Workshop – Herrsching – May 10, 2001 13
Development Process Requirements Engineering
Building Description Object Structure Tasks
Problem Description Requirements Specification
Object Structure Specification Task Description Needs
Andreas Metzger – OMER-2 Workshop – Herrsching – May 10, 2001 14
Development Process Requirements Engineering
Building Description Object Structure Tasks
Problem Description Requirements Specification
Object Structure Specification Task Description Needs Informal Object Type Requirements Description
Andreas Metzger – OMER-2 Workshop – Herrsching – May 10, 2001 15
Development Process Requirements Engineering
Building Description Formal Object Type Object Structure Tasks
Problem Description Requirements Specification
Object Structure Specification Task Description Needs Requirements Modeling Informal Object Type Requirements Description
Andreas Metzger – OMER-2 Workshop – Herrsching – May 10, 2001 16
Development Process Requirements Engineering
Building Description Formal Object Type Object Structure Tasks
Problem Description Requirements Specification
Object Structure Specification Task Description Needs Requirements Modeling Informal Object Type Requirements Description
Domain Dictionary
Andreas Metzger – OMER-2 Workshop – Herrsching – May 10, 2001 17
Development Process Development Step
Output Input Activity
Andreas Metzger – OMER-2 Workshop – Herrsching – May 10, 2001 18
Development Process Development Step
Output Input Activity
Andreas Metzger – OMER-2 Workshop – Herrsching – May 10, 2001 19
Development Process Development Step
Library Output Input Activity
Andreas Metzger – OMER-2 Workshop – Herrsching – May 10, 2001 20
Development Process Development Step
Library Defects Check Output Input Activity
Andreas Metzger – OMER-2 Workshop – Herrsching – May 10, 2001 21
Development Process Development Step
Library Defects Check Output Input Defects Activity
Andreas Metzger – OMER-2 Workshop – Herrsching – May 10, 2001 22
Reuse Expected Benefits
- high quality products
- short development time
Andreas Metzger – OMER-2 Workshop – Herrsching – May 10, 2001 23
Reuse Expected Benefits
- high quality products
- short development time
Reuse Operations
Artifact Creation Candidate Adaption Candidate Specification Effort Estimation Candidate Selection
Andreas Metzger – OMER-2 Workshop – Herrsching – May 10, 2001 24
Reuse Expected Benefits
- high quality products
- short development time
Reuse Operations Evaluation
- metric to quantify gain of productivity
–a posteriori assessment to gather experience –a priori estimation to support development decisions
Artifact Creation Candidate Adaption Candidate Specification Effort Estimation Candidate Selection
Andreas Metzger – OMER-2 Workshop – Herrsching – May 10, 2001 25
Prototyping Expected Benefits
- high quality products
- short development time
Andreas Metzger – OMER-2 Workshop – Herrsching – May 10, 2001 26
Prototyping Expected Benefits
- high quality products
- short development time
Prototyping Environment
Prototype Generation Formal Model
Andreas Metzger – OMER-2 Workshop – Herrsching – May 10, 2001 27
Prototyping Expected Benefits
- high quality products
- short development time
Prototyping Environment
Building Simulator Physical Building Interlinking Prototype Generation Formal Model Environment
Andreas Metzger – OMER-2 Workshop – Herrsching – May 10, 2001 28
Prototyping Expected Benefits
- high quality products
- short development time
Prototyping Environment Evaluation
- quality
– number and types of errors found
- effort
– prototype application – benefit for design
Building Simulator Physical Building Interlinking Prototype Generation Formal Model Environment
Andreas Metzger – OMER-2 Workshop – Herrsching – May 10, 2001 29
Case Study
O435 O433 O425 CL426 O424 CL422 O416 O423 O415 P413 O412 CL410 CL411 hw1 CL418 O419 O429 hw1 hw1 O414 P420 M427 O431 O421 O417 N
building description:
22 rooms, 3 hallway sections
Andreas Metzger – OMER-2 Workshop – Herrsching – May 10, 2001 30
Case Study
O435 O433 O425 CL426 O424 CL422 O416 O423 O415 P413 O412 CL410 CL411 hw1 CL418 O419 O429 hw1 hw1 O414 P420 M427 O431 O421 O417 N
Floor Section Hallway Room sec(3) hw rm(n)
- bject structure:
25 object types, 920 instances
Object Structure Specification building description:
22 rooms, 3 hallway sections
Andreas Metzger – OMER-2 Workshop – Herrsching – May 10, 2001 31
Case Study
O435 O433 O425 CL426 O424 CL422 O416 O423 O415 P413 O412 CL410 CL411 hw1 CL418 O419 O429 hw1 hw1 O414 P420 M427 O431 O421 O417 N
Floor Section Hallway Room HWLight HWOcc RoomLt RoomTm RoomOcc sec(3) hw rm(n) hwOcc hwl rlt rtm
- cc
- bject structure:
25 object types, 920 instances
Object Structure Specification building description:
22 rooms, 3 hallway sections
Andreas Metzger – OMER-2 Workshop – Herrsching – May 10, 2001 32
Case Study
O435 O433 O425 CL426 O424 CL422 O416 O423 O415 P413 O412 CL410 CL411 hw1 CL418 O419 O429 hw1 hw1 O414 P420 M427 O431 O421 O417 N
Floor SunDet Section Hallway Room HWLight HWOcc HWDoor MotDet MotDet Contact RoomLt RoomTm RoomOcc Door Desk Light T empSens MotDet Contact Radiator Valve T empSens Contact T askLight Contact PulsGen Dimmer PulseGen PIDCtrl Blind sec(3) hw rm(n) hwOcc hwl imd3 door(2) imd(2) dcc rlt rtm
- cc
door(m) dsk lle(2) tss
- ls(6)
imd dcc rad (n) rva wts(3) sll tli sll lpg dim lpg pid sdt bld(n) OutDoorLight
- bject structure:
25 object types, 920 instances
Object Structure Specification building description:
22 rooms, 3 hallway sections
Andreas Metzger – OMER-2 Workshop – Herrsching – May 10, 2001 33
Case Study
“Shortly before a persons enters a hallway section, the lights should be turned on, if neccessary.”
68 needs
Andreas Metzger – OMER-2 Workshop – Herrsching – May 10, 2001 34
Case Study
“Shortly before a persons enters a hallway section, the lights should be turned on, if neccessary.” “Compute and propagate the light settings considering daylight.” “Determine occupancy using door.” Task
68 needs 126 tasks
Description
Andreas Metzger – OMER-2 Workshop – Herrsching – May 10, 2001 35
Case Study
“Shortly before a persons enters a hallway section, the lights should be turned on, if neccessary.” “Compute and propagate the light settings considering daylight.” “If a door reports the possible entrance of a person (newHW- DoorEntrance), set occupancy (occupied) to true and report it (newHWOcc).” Requirements “Determine occupancy using door.” Task
68 needs 126 tasks 126 strategies
Description Description
Andreas Metzger – OMER-2 Workshop – Herrsching – May 10, 2001 36
Case Study
“Shortly before a persons enters a hallway section, the lights should be turned on, if neccessary.” “Compute and propagate the light settings considering daylight.” “If a door reports the possible entrance of a person (newHW- DoorEntrance), set occupancy (occupied) to true and report it (newHWOcc).” Requirements “Determine occupancy using door.” Task Requirements
68 needs 126 tasks 126 strategies 37 SDL object types
unoccupied newHW_ DoorEntrance newHWOcc
- ccupied
Modeling Description Description
Process HWOcc 1(2)
Andreas Metzger – OMER-2 Workshop – Herrsching – May 10, 2001 37
Case Study Evaluation
- total effort:
26,000 min
2000 4000 6000 8000 10000 12000 14000 Object Structure Specification Requirements + Task Description Requirements Modeling Effort [min] Check
Andreas Metzger – OMER-2 Workshop – Herrsching – May 10, 2001 38
Case Study Evaluation
- total effort:
26,000 min
- reuse operations:
118
– no artifact found: 37 – external: 67 – internal: 14
2000 4000 6000 8000 10000 12000 14000 Object Structure Specification Requirements + Task Description Requirements Modeling Effort [min] Check
Andreas Metzger – OMER-2 Workshop – Herrsching – May 10, 2001 39
Case Study Evaluation
- total effort:
26,000 min
- reuse operations:
118
– no artifact found: 37 – external: 67 – internal: 14
- prototyping sessions: 45
– average duration: 82 min – defects (simulation): 23 – defects (phys. env.): 10 – defects (inspection): 24 – prototype generation: 10 min – code size: 10 MB
2000 4000 6000 8000 10000 12000 14000 Object Structure Specification Requirements + Task Description Requirements Modeling Effort [min] Check
Andreas Metzger – OMER-2 Workshop – Herrsching – May 10, 2001 40
Case Study Evaluation
- total effort:
26,000 min
- reuse operations:
118
– no artifact found: 37 – external: 67 – internal: 14
- prototyping sessions: 45
– average duration: 82 min – defects (simulation): 23 – defects (phys. env.): 10 – defects (inspection): 24 – prototype generation: 10 min – code size: 10 MB
- productivity:
– reference is earlier case study – total gain: 94% – gain caused by reuse: 22%
2000 4000 6000 8000 10000 12000 14000 Object Structure Specification Requirements + Task Description Requirements Modeling Effort [min] Check
Andreas Metzger – OMER-2 Workshop – Herrsching – May 10, 2001 41
Perspectives Development Process
- expansion: design and new domain
- workflow concept
- quality metric
Andreas Metzger – OMER-2 Workshop – Herrsching – May 10, 2001 42
Perspectives Development Process
- expansion: design and new domain
- workflow concept
- quality metric
Reuse
- finding reuse candidates
- effort estimation
Andreas Metzger – OMER-2 Workshop – Herrsching – May 10, 2001 43
Perspectives Development Process
- expansion: design and new domain
- workflow concept
- quality metric
Reuse
- finding reuse candidates
- effort estimation
Prototyping
- earlier prototyping
Formal Specification Prototype Generation
Andreas Metzger – OMER-2 Workshop – Herrsching – May 10, 2001 44
Perspectives Development Process
- expansion: design and new domain
- workflow concept
- quality metric
Reuse
- finding reuse candidates
- effort estimation
Prototyping
- earlier prototyping
- feedback loop
Test Cases Prototype Generation T est Defect Identification Fault Detection Formal Specification
Andreas Metzger – OMER-2 Workshop – Herrsching – May 10, 2001 45
Perspectives Development Process
- expansion: design and new domain
- workflow concept
- quality metric
Reuse
- finding reuse candidates
- effort estimation
Prototyping
- earlier prototyping
- feedback loop
- mixed simulation
- design support
Test Cases Prototype Generation T est Defect Identification Fault Detection Formal Specification
Andreas Metzger – OMER-2 Workshop – Herrsching – May 10, 2001 46
BLANK!
Andreas Metzger – OMER-2 Workshop – Herrsching – May 10, 2001 47
Properties of Building Automation Systems Control and Coupling of Physical Effects
Andreas Metzger – OMER-2 Workshop – Herrsching – May 10, 2001 48
Properties of Building Automation Systems Size
handling of complexity
Number of Identical Products
small efficient development
Life Span
long traceability
type of building total sensors and actuators university building with 100
- ffices and computer labs
2,500 Burj Al Arab and Jumeirah Beach Hotel, Dubai 26,000
Andreas Metzger – OMER-2 Workshop – Herrsching – May 10, 2001 49
Development Process Requirements Engineering
Building Description Formal Object Type Object Structure Tasks
Problem Description Requirements Specification
Object Structure Specification Task Description Needs Requirements Modeling Informal Object Type Requirements Description
Domain Dictionary
Andreas Metzger – OMER-2 Workshop – Herrsching – May 10, 2001 50
Development Process Development Step
Library Defects Check Output Input Defects Activity
Andreas Metzger – OMER-2 Workshop – Herrsching – May 10, 2001 51
Reuse Expected Benefits
- high quality products
- short development time
Reuse Operations Evaluation
- metric to quantify gain of productivity
–a posteriori assessment to gather experience –a priori estimation to support development decisions
Artifact Creation Candidate Adaption Candidate Specification Effort Estimation Candidate Selection
Andreas Metzger – OMER-2 Workshop – Herrsching – May 10, 2001 52
Prototyping Expected Benefits
- high quality products
- short development time
Prototyping Environment Evaluation
- quality
– number and types of errors found
- effort
– prototype application – benefit for design
Building Simulator Physical Building Interlinking Prototype Generation Formal Model Environment
Andreas Metzger – OMER-2 Workshop – Herrsching – May 10, 2001 53
Case Study
O435 O433 O425 CL426 O424 CL422 O416 O423 O415 P413 O412 CL410 CL411 hw1 CL418 O419 O429 hw1 hw1 O414 P420 M427 O431 O421 O417 N
Floor SunDet Section Hallway Room HWLight HWOcc HWDoor MotDet MotDet Contact RoomLt RoomTm RoomOcc Door Desk Light T empSens MotDet Contact Radiator Valve T empSens Contact T askLight Contact PulsGen Dimmer PulseGen PIDCtrl Blind sec(3) hw rm(n) hwOcc hwl imd3 door(2) imd(2) dcc rlt rtm
- cc
door(m) dsk lle(2) tss
- ls(6)
imd dcc rad (n) rva wts(3) sll tli sll lpg dim lpg pid sdt bld(n) OutDoorLight
- bject structure:
25 object types, 920 instances
Object Structure Specification building description:
22 rooms, 3 hallway sections
Andreas Metzger – OMER-2 Workshop – Herrsching – May 10, 2001 54
Case Study
“Shortly before a persons enters a hallway section, the lights should be turned on, if neccessary.” “Compute and propagate the light settings considering daylight.” “If a door reports the possible entrance of a person (newHW- DoorEntrance), set occupancy (occupied) to true and report it (newHWOcc).” Requirements “Determine occupancy using door.” Task Requirements
68 needs 126 tasks 126 strategies 37 SDL object types
unoccupied newHW_ DoorEntrance newHWOcc
- ccupied
Modeling Description Description
Process HWOcc 1(2)
Andreas Metzger – OMER-2 Workshop – Herrsching – May 10, 2001 55
Case Study Evaluation
- total effort:
26,000 min
- reuse operations:
118
– no artifact found: 37 – external: 67 – internal: 14
- prototyping sessions: 45
– average duration: 82 min – defects (simulation): 23 – defects (phys. env.): 10 – defects (inspection): 24 – prototype generation: 10 min – code size: 10 MB
- productivity:
– reference is earlier case study – total gain: 94% – gain caused by reuse: 22%
2000 4000 6000 8000 10000 12000 14000 Object Structure Specification Requirements + Task Description Requirements Modeling Effort [min] Check
Andreas Metzger – OMER-2 Workshop – Herrsching – May 10, 2001 56
Perspectives Development Process
- expansion: design and new domain
- workflow concept
- quality metric
Reuse
- finding reuse candidates
- effort estimation
Prototyping
- earlier prototyping
- feedback loop
- mixed simulation
- design support
Test Cases Prototype Generation T est Defect Identification Fault Detection Formal Specification
Andreas Metzger – OMER-2 Workshop – Herrsching – May 10, 2001 57
BLANK PAGE!
Andreas Metzger – OMER-2 Workshop – Herrsching – May 10, 2001 58
Reuse Metric
- reuse operation
- relative integration effort
- relative effort for artifact
- assumption: complexity correlates to effort
- relative effort for project
- relative productivity for project
integrate Ra 1 – Ra reuseable artifact artifact a
Erel,integrate Eadapt Ecreate
- =
a Erel,a Ra Erel,integrate 1 Ra – ( ) 1 ⋅ + ⋅ = Ka Ea ∼ Erel 1 Ka
a
∑
- Ka Erel,a
⋅
a
∑
⋅ = Preuse Pno reuse
- Prel
1 Erel
- =
=
Andreas Metzger – OMER-2 Workshop – Herrsching – May 10, 2001 59
Case Study Data
- correlation
: 0.87 CS3/1 CS3/2 number of object types 25 37 total complexity [units] 688 1826 total effort [min] 19,000 26,000 effort per complexity unit 27.6 14.2 total relative productivity 1 1.94 range of complexity
[units]
6..58 9..114 range of relative effort per artifact 1 0.44..1.35 relative productivity caused by reuse 1 1.22 Prel Ka Erel,a Prel Ka Ea ∼
Andreas Metzger – OMER-2 Workshop – Herrsching – May 10, 2001 60
Case Study Quality
- distribution of errors and removal effort
20 40 60 80 100 5 10 15 20 25 Phase 1 2 3 4 number of errors effort of removal [m in] prototyping applied
Andreas Metzger – OMER-2 Workshop – Herrsching – May 10, 2001 61
Workflow Concept
Inspection PrototypeTest Phase 1 Phase 4
- Req. Eng. Workflows
Calendar Time
Checking ObjStrSpec ObjStrSpec Activities ObjStrSpec Checking
Andreas Metzger – OMER-2 Workshop – Herrsching – May 10, 2001 62
Workflow Concept
Phase 5 Phase n Phase 1 Phase 4 Inspection PrototypeTest ObjStrSpec Checking Phase 1 Phase 4
- Req. Eng. Workflows
Calendar Time
Checking ObjStrSpec Checking ObjStrSpec ObjStrSpec Activities Design Workflows ObjStrSpec Checking ObjStrSpec Checking
Andreas Metzger – OMER-2 Workshop – Herrsching – May 10, 2001 63
Testbed Communication Structure
Area µC µC Area µC µC
Workstation
Area µC µC
(Embedded) PC (Embedded) PC (Embedded) PC Ethernet CAN
Andreas Metzger – OMER-2 Workshop – Herrsching – May 10, 2001 64