File: index.rst

package info (click to toggle)
sphinx-needs 5.1.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 11,924 kB
  • sloc: python: 21,132; javascript: 187; makefile: 89; sh: 29; xml: 10
file content (152 lines) | stat: -rw-r--r-- 2,237 bytes parent folder | download
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
TEST DOCUMENT NEEDUML
=====================

.. story:: Test story
   :id: ST_001

   Some content

.. story:: Test story2
   :id: ST_002

   Some content 2

.. int:: Test interface
   :id: INT_001

   circle "Int_X" as int

.. comp:: Test component
   :id: COMP_001

   class "test component" as comp {
       name
       functions
       activate()
   }

   {{uml("INT_001")}}

   comp --> int


.. sys:: Test System
   :id: SYS_001

   {{uml("COMP_001")}}

   class "Component 2" as comp_2 {
       name
       street
   }

   comp_2 --> int


.. prod:: Test Product
   :id: PROD_001

   allowmixing
   {{uml("SYS_001")}}

   node "System A" as sys_2
   sys_2 --> int


.. needuml::
   :scale: 50%
   :align: center
   :config: mixing
   :debug:

   class "{{needs['ST_001'].title}}" as test {
     implement
     {{needs['ST_001'].status}}
   }

   {{uml("SYS_001")}}


.. int:: Test interface2
   :id: INT_002

   .. needuml::
      :scale: 50%
      :align: center
      :config: mixing

      class "{{needs['ST_001'].title}}" as test {
         implement
         {{needs['ST_001'].status}}
      }

      {{uml("SYS_001")}}

   .. needuml::
      :scale: 50%
      :align: center
      :config: mixing
      :key: sequence

      Alice -> Bob: Hi Bob
      Bob --> Alice: Hi Alice


.. int:: Test interface3
   :id: INT_003

   .. needuml::
      :key: class

      allowmixing

      class "{{needs['ST_001'].title}}" as test {
         implement
         {{needs['ST_001'].status}}
      }

      {{uml("INT_002", "sequence")}}

   .. needuml::
      :key: sequence

      Alice -> Bob: Hi Bob
      Bob --> Alice: Hi Alice


.. int:: Test interface4
   :id: INT_004

   .. needuml::
      :scale: 50%
      :key: class

      allowmixing

      class "{{needs['ST_001'].title}}" as test {
         implement
         {{needs['ST_001'].status}}
      }

      {{uml("SYS_001")}}

   .. needuml::

      Superman -> Batman: Hi Bruce
      Batman --> Superman: Hi Clark

   .. needuml::
      :key: sequence

      DC -> Marvel: Hi Kevin
      Marvel --> DC: Anyone there?

   .. needuml::

      Alice -> Bob: Hi Bob
      Bob --> Alice: Hi Alice

.. needtable:: 
   :filter: arch
   :style: table
   :columns: id, type, title