Documentation Source Text

Check-in [fd2d3b3be4]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Added the requirements derivation matrix report.
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: fd2d3b3be4df5271679de5f1d210cdfad4a83f33
User & Date: drh 2008-07-22 18:46:40
Context
2008-07-22
18:55
Modify fileio.in to add requirements to the database as it is parsed. check-in: a9b591daa0 user: dan tags: trunk
18:46
Added the requirements derivation matrix report. check-in: fd2d3b3be4 user: drh tags: trunk
18:46
Updates to support the requirements derivation matrix. check-in: 273baf47db user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Added pages/reqmatrix.in.





























































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<title>Requirements Derivation Matrix</title>

<h2>Requirements Derivation Matrix</h2>

<table cellspacing="20">
<tcl>
unset -nocomplain ALLREQ_CHILDREN
foreach id [array names ALLREQ] {set ALLREQ_CHILDREN($id) {}}
foreach cid [array names ALLREQ_DERIVEDFROM] {
  foreach pid $ALLREQ_DERIVEDFROM($cid) {
    lappend ALLREQ_CHILDREN($pid) $cid
  }
} 
foreach id [lsort [array names ALLREQ]] {
  if {[string index $id 0]=="A"} continue
  hd_puts "<tr><td valign=\"top\">$id</td><td valign=\"top\">"
  if {$ALLREQ_VERBATIM($id)} {
    hd_puts $ALLREQ($id)
  } else {
    hd_resolve $ALLREQ($id)
  }
  hd_puts <p>
  set plist $ALLREQ_DERIVEDFROM($id)
  if {[llength $plist]==0} {
    hd_puts "<i>No parents</i>"
  } else {
    hd_puts "Parents:"
    foreach pid $plist {
      hd_resolve "\[$pid\]"
    }
  }
  hd_puts </p><p>
  set clist $ALLREQ_CHILDREN($id)
  if {[llength $clist]==0} {
    hd_puts "<i>No children</i>"
  } else {
    hd_puts "Children:"
    foreach cid $clist {
      hd_resolve "\[$cid\]"
    }
  }
  hd_puts </p>
  hd_puts "</td></tr>"
}
</tcl>
</table>