5. Simulation Methods code to do 30 0
0 15 30 45 60 75 90 60 30 0
0 15 30 45 60 75 90 0
15 30 45 60 75 Time (Day)
KLOC
KLOC
KLOC
KLOC
KLOC
KLOC
KLOC
KLOC
KLOC
KLOC
code to dos : Current-CodeSub code docs : Current-CodeSub code faults detected[s1] : Current-CodeSub code faults detected[s2] : Current-CodeSub code faults detected[s3] : Current-CodeSub code faults detected[s4] : Current-CodeSub code faults detected[s5] : Current-CodeSub code faults undetected[s1] : Current-CodeSub code faults pending[s1] : Current-CodeSub code faults corrected[s1] : Current-CodeSub code docs : Current-CodeSub code docs : Current-CodeSub code docs : Current-CodeSub code docs : Current-CodeSub code to dos : Current-CodeSub code to dos : Current-CodeSub code to dos : Current-CodeSub code to dos : Current-CodeSub code faults detected 100 Time (Day)
Defects
Defects
Defects
Defects
Defects
Defects
Defects
Defects code faults corrected[s2] :
Current-CodeSubDefects code faults corrected[s3] : Current-CodeSub
Defects code faults corrected[s4] : Current-CodeSub code faults corrected[s5] : Current-CodeSub
Defects
Defects code faults pending[s2] : Current-CodeSub
Defects code faults pending[s3] : Current-CodeSub
Defects code faults pending[s4] : Current-CodeSub code faults pending[s5] : Current-CodeSub
Defects
Defects code faults undetected[s2] : Current-CodeSub
Defects code faults undetected[s3] : Current-CodeSub code faults undetected[s4] : Current-CodeSub code faults undetected[s5] : Current-CodeSub
Defects
Defects
Defects
code docTime (Day)
code faults pending 40 Time (Day)
code faults corrected 100 Time (Day)
code faults undetected 50 0
0 20 40 60 80 100 0
20 40 60 80 100 0
20 40 60 80 Time (Day)
Fig. 13Simulation outputs for concurrently coding five sub-systems
146 MM ller and D. Pfahl
Event-driven simulation techniques take a complementary perspective when modelling the generic artefact development and verification process introduced in Sect. 6.1. For example, instead of modelling the artefact
as one monolithic document, e.g., of size 200 KLOC in the case of the code document, event-driven simulation models individual code units as single items which are routed through a sequence of processing stations, e.g., a station for development and a station for verification. These
items have several attributes, e.g., size, state, number of defects injected, detected,
corrected, etc. The list of attributes can be extended or refined, e.g., by introducing attributes to distinguish defect types and severity classes. The attribute information determines, for example, the processing time in the development
and verification stations, and the routing of an item after leaving a station.
Defects
Code Development View (C 600 150 100 50 0
0 10 20 30 40 50 60 70 80 90 100 0
10 20 30 40 50 60 70 80 90 Time (Day)
KLOC
Code Quality View (C 300 150 Time (Day)
code faults detected code faults corrected code faults undetected code doc code to do code faults pending
Fig. 14Aggregated simulation outputs for concurrent coding of five subsystems 600 400 200 Defects 60 90 120 150 180 210 240 270 undetected corrected detected injected
Share with your friends: