Kaynağa Gözat

[db] specs closes #5

Maxime Alves LIRMM@home 4 yıl önce
ebeveyn
işleme
dc2637d9a7
4 değiştirilmiş dosya ile 703 ekleme ve 0 silme
  1. 664
    0
      db/autodia.out.dia
  2. BIN
      db/autodia.out.gif
  3. BIN
      db/pyheatpump.db
  4. 39
    0
      db/pyheatpump.sql

+ 664
- 0
db/autodia.out.dia Dosyayı Görüntüle

@@ -0,0 +1,664 @@
1
+<?xml version="1.0"?>
2
+<dia:diagram xmlns:dia="http://www.lysator.liu.se/~alla/dia/">
3
+  <dia:diagramdata>
4
+    <dia:attribute name="background">
5
+      <dia:color val="#ffffff"/>
6
+    </dia:attribute>
7
+    <dia:attribute name="paper">
8
+      <dia:composite type="paper">
9
+        <dia:attribute name="name">
10
+          <dia:string>#A4#</dia:string>
11
+        </dia:attribute>
12
+        <dia:attribute name="tmargin">
13
+          <dia:real val="2.82"/>
14
+        </dia:attribute>
15
+        <dia:attribute name="bmargin">
16
+          <dia:real val="2.82"/>
17
+        </dia:attribute>
18
+        <dia:attribute name="lmargin">
19
+          <dia:real val="2.82"/>
20
+        </dia:attribute>
21
+        <dia:attribute name="rmargin">
22
+          <dia:real val="2.82"/>
23
+        </dia:attribute>
24
+        <dia:attribute name="is_portrait">
25
+          <dia:boolean val="true"/>
26
+        </dia:attribute>
27
+        <dia:attribute name="scaling">
28
+          <dia:real val="1"/>
29
+        </dia:attribute>
30
+        <dia:attribute name="fitto">
31
+          <dia:boolean val="false"/>
32
+        </dia:attribute>
33
+      </dia:composite>
34
+    </dia:attribute>
35
+    <dia:attribute name="grid">
36
+      <dia:composite type="grid">
37
+        <dia:attribute name="width_x">
38
+          <dia:real val="1"/>
39
+        </dia:attribute>
40
+        <dia:attribute name="width_y">
41
+          <dia:real val="1"/>
42
+        </dia:attribute>
43
+        <dia:attribute name="visible_x">
44
+          <dia:int val="1"/>
45
+        </dia:attribute>
46
+        <dia:attribute name="visible_y">
47
+          <dia:int val="1"/>
48
+        </dia:attribute>
49
+      </dia:composite>
50
+    </dia:attribute>
51
+    <dia:attribute name="guides">
52
+      <dia:composite type="guides">
53
+        <dia:attribute name="hguides"/>
54
+        <dia:attribute name="vguides"/>
55
+      </dia:composite>
56
+    </dia:attribute>
57
+  </dia:diagramdata>
58
+  <dia:layer name="Background" visible="true">
59
+    <dia:object type="UML - Class" version="0" id="O2">
60
+      <dia:attribute name="obj_pos">
61
+        <dia:point val="1.000,1.000"/>
62
+      </dia:attribute>
63
+      <dia:attribute name="obj_bb">
64
+        <dia:rectangle val="1.000,1.000;16.000,7.000"/>
65
+      </dia:attribute>
66
+      <dia:attribute name="elem_corner">
67
+        <dia:point val="1.000,1.000"/>
68
+      </dia:attribute>
69
+      <dia:attribute name="elem_width">
70
+        <dia:real val="15.000"/>
71
+      </dia:attribute>
72
+      <dia:attribute name="elem_height">
73
+        <dia:real val="6.000"/>
74
+      </dia:attribute>
75
+      <dia:attribute name="name">
76
+        <dia:string>#IF NOT EXISTS var_value #</dia:string>
77
+      </dia:attribute>
78
+      <dia:attribute name="stereotype">
79
+              <dia:string/>
80
+            </dia:attribute>
81
+      <dia:attribute name="abstract">
82
+        <dia:boolean val="false"/>
83
+      </dia:attribute>
84
+      <dia:attribute name="suppress_attributes">
85
+        <dia:boolean val="false"/>
86
+      </dia:attribute>
87
+      <dia:attribute name="suppress_operations">
88
+        <dia:boolean val="false"/>
89
+      </dia:attribute>
90
+      <dia:attribute name="visible_attributes">
91
+        <dia:boolean val="true"/>
92
+      </dia:attribute>
93
+      <dia:attribute name="visible_operations">
94
+        <dia:boolean val="true"/>
95
+      </dia:attribute>
96
+      <dia:attribute name="foreground_color">
97
+        <dia:color val="#000000"/>
98
+      </dia:attribute>
99
+      <dia:attribute name="background_color">
100
+        <dia:color val="#ffffff"/>
101
+      </dia:attribute>
102
+
103
+            <dia:attribute name="attributes">
104
+                <dia:composite type="umlattribute">
105
+          <dia:attribute name="name">
106
+            <dia:string>#type#</dia:string>
107
+          </dia:attribute>
108
+          <dia:attribute name="type">
109
+            <dia:string>#CHAR(1)#</dia:string>
110
+          </dia:attribute>
111
+          <dia:attribute name="value">
112
+            <dia:string></dia:string>
113
+          </dia:attribute>
114
+          <dia:attribute name="visibility">
115
+            <dia:enum val="0"/>
116
+          </dia:attribute>
117
+          <dia:attribute name="abstract">
118
+            <dia:boolean val="false"/>
119
+          </dia:attribute>
120
+          <dia:attribute name="class_scope">
121
+            <dia:boolean val="false"/>
122
+          </dia:attribute>
123
+        </dia:composite>
124
+                <dia:composite type="umlattribute">
125
+          <dia:attribute name="name">
126
+            <dia:string>#address#</dia:string>
127
+          </dia:attribute>
128
+          <dia:attribute name="type">
129
+            <dia:string>#INT#</dia:string>
130
+          </dia:attribute>
131
+          <dia:attribute name="value">
132
+            <dia:string></dia:string>
133
+          </dia:attribute>
134
+          <dia:attribute name="visibility">
135
+            <dia:enum val="0"/>
136
+          </dia:attribute>
137
+          <dia:attribute name="abstract">
138
+            <dia:boolean val="false"/>
139
+          </dia:attribute>
140
+          <dia:attribute name="class_scope">
141
+            <dia:boolean val="false"/>
142
+          </dia:attribute>
143
+        </dia:composite>
144
+                <dia:composite type="umlattribute">
145
+          <dia:attribute name="name">
146
+            <dia:string>#DEFAULT#</dia:string>
147
+          </dia:attribute>
148
+          <dia:attribute name="type">
149
+            <dia:string>#CURR#</dia:string>
150
+          </dia:attribute>
151
+          <dia:attribute name="value">
152
+            <dia:string></dia:string>
153
+          </dia:attribute>
154
+          <dia:attribute name="visibility">
155
+            <dia:enum val="0"/>
156
+          </dia:attribute>
157
+          <dia:attribute name="abstract">
158
+            <dia:boolean val="false"/>
159
+          </dia:attribute>
160
+          <dia:attribute name="class_scope">
161
+            <dia:boolean val="false"/>
162
+          </dia:attribute>
163
+        </dia:composite>
164
+                <dia:composite type="umlattribute">
165
+          <dia:attribute name="name">
166
+            <dia:string>#value#</dia:string>
167
+          </dia:attribute>
168
+          <dia:attribute name="type">
169
+            <dia:string>#INT#</dia:string>
170
+          </dia:attribute>
171
+          <dia:attribute name="value">
172
+            <dia:string></dia:string>
173
+          </dia:attribute>
174
+          <dia:attribute name="visibility">
175
+            <dia:enum val="0"/>
176
+          </dia:attribute>
177
+          <dia:attribute name="abstract">
178
+            <dia:boolean val="false"/>
179
+          </dia:attribute>
180
+          <dia:attribute name="class_scope">
181
+            <dia:boolean val="false"/>
182
+          </dia:attribute>
183
+        </dia:composite>
184
+                <dia:composite type="umlattribute">
185
+          <dia:attribute name="name">
186
+            <dia:string>#address,#</dia:string>
187
+          </dia:attribute>
188
+          <dia:attribute name="type">
189
+            <dia:string>#time#</dia:string>
190
+          </dia:attribute>
191
+          <dia:attribute name="value">
192
+            <dia:string></dia:string>
193
+          </dia:attribute>
194
+          <dia:attribute name="visibility">
195
+            <dia:enum val="0"/>
196
+          </dia:attribute>
197
+          <dia:attribute name="abstract">
198
+            <dia:boolean val="false"/>
199
+          </dia:attribute>
200
+          <dia:attribute name="class_scope">
201
+            <dia:boolean val="false"/>
202
+          </dia:attribute>
203
+        </dia:composite>
204
+              </dia:attribute>
205
+                  <dia:attribute name="operations"/>
206
+            <dia:attribute name="template">
207
+        <dia:boolean val="false"/>
208
+      </dia:attribute>
209
+      <dia:attribute name="templates"/>
210
+    </dia:object>
211
+    <dia:object type="UML - Class" version="0" id="O0">
212
+      <dia:attribute name="obj_pos">
213
+        <dia:point val="1.000,1.000"/>
214
+      </dia:attribute>
215
+      <dia:attribute name="obj_bb">
216
+        <dia:rectangle val="1.000,1.000;16.000,7.800"/>
217
+      </dia:attribute>
218
+      <dia:attribute name="elem_corner">
219
+        <dia:point val="1.000,1.000"/>
220
+      </dia:attribute>
221
+      <dia:attribute name="elem_width">
222
+        <dia:real val="15.000"/>
223
+      </dia:attribute>
224
+      <dia:attribute name="elem_height">
225
+        <dia:real val="6.800"/>
226
+      </dia:attribute>
227
+      <dia:attribute name="name">
228
+        <dia:string>#IF NOT EXISTS var_type #</dia:string>
229
+      </dia:attribute>
230
+      <dia:attribute name="stereotype">
231
+              <dia:string/>
232
+            </dia:attribute>
233
+      <dia:attribute name="abstract">
234
+        <dia:boolean val="false"/>
235
+      </dia:attribute>
236
+      <dia:attribute name="suppress_attributes">
237
+        <dia:boolean val="false"/>
238
+      </dia:attribute>
239
+      <dia:attribute name="suppress_operations">
240
+        <dia:boolean val="false"/>
241
+      </dia:attribute>
242
+      <dia:attribute name="visible_attributes">
243
+        <dia:boolean val="true"/>
244
+      </dia:attribute>
245
+      <dia:attribute name="visible_operations">
246
+        <dia:boolean val="true"/>
247
+      </dia:attribute>
248
+      <dia:attribute name="foreground_color">
249
+        <dia:color val="#000000"/>
250
+      </dia:attribute>
251
+      <dia:attribute name="background_color">
252
+        <dia:color val="#ffffff"/>
253
+      </dia:attribute>
254
+
255
+            <dia:attribute name="attributes">
256
+                <dia:composite type="umlattribute">
257
+          <dia:attribute name="name">
258
+            <dia:string>#slabel#</dia:string>
259
+          </dia:attribute>
260
+          <dia:attribute name="type">
261
+            <dia:string>#CHAR(1)#</dia:string>
262
+          </dia:attribute>
263
+          <dia:attribute name="value">
264
+            <dia:string></dia:string>
265
+          </dia:attribute>
266
+          <dia:attribute name="visibility">
267
+            <dia:enum val="0"/>
268
+          </dia:attribute>
269
+          <dia:attribute name="abstract">
270
+            <dia:boolean val="false"/>
271
+          </dia:attribute>
272
+          <dia:attribute name="class_scope">
273
+            <dia:boolean val="false"/>
274
+          </dia:attribute>
275
+        </dia:composite>
276
+                <dia:composite type="umlattribute">
277
+          <dia:attribute name="name">
278
+            <dia:string>#label#</dia:string>
279
+          </dia:attribute>
280
+          <dia:attribute name="type">
281
+            <dia:string>#VARCHAR(10)#</dia:string>
282
+          </dia:attribute>
283
+          <dia:attribute name="value">
284
+            <dia:string></dia:string>
285
+          </dia:attribute>
286
+          <dia:attribute name="visibility">
287
+            <dia:enum val="0"/>
288
+          </dia:attribute>
289
+          <dia:attribute name="abstract">
290
+            <dia:boolean val="false"/>
291
+          </dia:attribute>
292
+          <dia:attribute name="class_scope">
293
+            <dia:boolean val="false"/>
294
+          </dia:attribute>
295
+        </dia:composite>
296
+                <dia:composite type="umlattribute">
297
+          <dia:attribute name="name">
298
+            <dia:string>#type#</dia:string>
299
+          </dia:attribute>
300
+          <dia:attribute name="type">
301
+            <dia:string>#VARCHAR(10)#</dia:string>
302
+          </dia:attribute>
303
+          <dia:attribute name="value">
304
+            <dia:string></dia:string>
305
+          </dia:attribute>
306
+          <dia:attribute name="visibility">
307
+            <dia:enum val="0"/>
308
+          </dia:attribute>
309
+          <dia:attribute name="abstract">
310
+            <dia:boolean val="false"/>
311
+          </dia:attribute>
312
+          <dia:attribute name="class_scope">
313
+            <dia:boolean val="false"/>
314
+          </dia:attribute>
315
+        </dia:composite>
316
+                <dia:composite type="umlattribute">
317
+          <dia:attribute name="name">
318
+            <dia:string>#start_address#</dia:string>
319
+          </dia:attribute>
320
+          <dia:attribute name="type">
321
+            <dia:string>#INT#</dia:string>
322
+          </dia:attribute>
323
+          <dia:attribute name="value">
324
+            <dia:string></dia:string>
325
+          </dia:attribute>
326
+          <dia:attribute name="visibility">
327
+            <dia:enum val="0"/>
328
+          </dia:attribute>
329
+          <dia:attribute name="abstract">
330
+            <dia:boolean val="false"/>
331
+          </dia:attribute>
332
+          <dia:attribute name="class_scope">
333
+            <dia:boolean val="false"/>
334
+          </dia:attribute>
335
+        </dia:composite>
336
+                <dia:composite type="umlattribute">
337
+          <dia:attribute name="name">
338
+            <dia:string>#end_address#</dia:string>
339
+          </dia:attribute>
340
+          <dia:attribute name="type">
341
+            <dia:string>#INT#</dia:string>
342
+          </dia:attribute>
343
+          <dia:attribute name="value">
344
+            <dia:string></dia:string>
345
+          </dia:attribute>
346
+          <dia:attribute name="visibility">
347
+            <dia:enum val="0"/>
348
+          </dia:attribute>
349
+          <dia:attribute name="abstract">
350
+            <dia:boolean val="false"/>
351
+          </dia:attribute>
352
+          <dia:attribute name="class_scope">
353
+            <dia:boolean val="false"/>
354
+          </dia:attribute>
355
+        </dia:composite>
356
+              </dia:attribute>
357
+                  <dia:attribute name="operations">
358
+                <dia:composite type="umloperation">
359
+          <dia:attribute name="name">
360
+            <dia:string>#Primary Key#</dia:string>
361
+          </dia:attribute>
362
+          <dia:attribute name="type">
363
+	              <dia:string>#pk#</dia:string>
364
+	            </dia:attribute>
365
+          <dia:attribute name="visibility">
366
+            <dia:enum val="0"/>
367
+          </dia:attribute>
368
+          <dia:attribute name="abstract">
369
+            <dia:boolean val="false"/>
370
+          </dia:attribute>
371
+          <dia:attribute name="class_scope">
372
+            <dia:boolean val="false"/>
373
+          </dia:attribute>
374
+	  	  <dia:attribute name = "parameters"/>
375
+	          </dia:composite>
376
+              </dia:attribute>
377
+            <dia:attribute name="template">
378
+        <dia:boolean val="false"/>
379
+      </dia:attribute>
380
+      <dia:attribute name="templates"/>
381
+    </dia:object>
382
+    <dia:object type="UML - Class" version="0" id="O1">
383
+      <dia:attribute name="obj_pos">
384
+        <dia:point val="1.000,1.000"/>
385
+      </dia:attribute>
386
+      <dia:attribute name="obj_bb">
387
+        <dia:rectangle val="1.000,1.000;16.000,7.000"/>
388
+      </dia:attribute>
389
+      <dia:attribute name="elem_corner">
390
+        <dia:point val="1.000,1.000"/>
391
+      </dia:attribute>
392
+      <dia:attribute name="elem_width">
393
+        <dia:real val="15.000"/>
394
+      </dia:attribute>
395
+      <dia:attribute name="elem_height">
396
+        <dia:real val="6.000"/>
397
+      </dia:attribute>
398
+      <dia:attribute name="name">
399
+        <dia:string>#IF NOT EXISTS variable #</dia:string>
400
+      </dia:attribute>
401
+      <dia:attribute name="stereotype">
402
+              <dia:string/>
403
+            </dia:attribute>
404
+      <dia:attribute name="abstract">
405
+        <dia:boolean val="false"/>
406
+      </dia:attribute>
407
+      <dia:attribute name="suppress_attributes">
408
+        <dia:boolean val="false"/>
409
+      </dia:attribute>
410
+      <dia:attribute name="suppress_operations">
411
+        <dia:boolean val="false"/>
412
+      </dia:attribute>
413
+      <dia:attribute name="visible_attributes">
414
+        <dia:boolean val="true"/>
415
+      </dia:attribute>
416
+      <dia:attribute name="visible_operations">
417
+        <dia:boolean val="true"/>
418
+      </dia:attribute>
419
+      <dia:attribute name="foreground_color">
420
+        <dia:color val="#000000"/>
421
+      </dia:attribute>
422
+      <dia:attribute name="background_color">
423
+        <dia:color val="#ffffff"/>
424
+      </dia:attribute>
425
+
426
+            <dia:attribute name="attributes">
427
+                <dia:composite type="umlattribute">
428
+          <dia:attribute name="name">
429
+            <dia:string>#type#</dia:string>
430
+          </dia:attribute>
431
+          <dia:attribute name="type">
432
+            <dia:string>#CHAR(1)#</dia:string>
433
+          </dia:attribute>
434
+          <dia:attribute name="value">
435
+            <dia:string></dia:string>
436
+          </dia:attribute>
437
+          <dia:attribute name="visibility">
438
+            <dia:enum val="0"/>
439
+          </dia:attribute>
440
+          <dia:attribute name="abstract">
441
+            <dia:boolean val="false"/>
442
+          </dia:attribute>
443
+          <dia:attribute name="class_scope">
444
+            <dia:boolean val="false"/>
445
+          </dia:attribute>
446
+        </dia:composite>
447
+                <dia:composite type="umlattribute">
448
+          <dia:attribute name="name">
449
+            <dia:string>#address#</dia:string>
450
+          </dia:attribute>
451
+          <dia:attribute name="type">
452
+            <dia:string>#INT#</dia:string>
453
+          </dia:attribute>
454
+          <dia:attribute name="value">
455
+            <dia:string></dia:string>
456
+          </dia:attribute>
457
+          <dia:attribute name="visibility">
458
+            <dia:enum val="0"/>
459
+          </dia:attribute>
460
+          <dia:attribute name="abstract">
461
+            <dia:boolean val="false"/>
462
+          </dia:attribute>
463
+          <dia:attribute name="class_scope">
464
+            <dia:boolean val="false"/>
465
+          </dia:attribute>
466
+        </dia:composite>
467
+                <dia:composite type="umlattribute">
468
+          <dia:attribute name="name">
469
+            <dia:string>#unit#</dia:string>
470
+          </dia:attribute>
471
+          <dia:attribute name="type">
472
+            <dia:string>#VARCHAR(5)#</dia:string>
473
+          </dia:attribute>
474
+          <dia:attribute name="value">
475
+            <dia:string></dia:string>
476
+          </dia:attribute>
477
+          <dia:attribute name="visibility">
478
+            <dia:enum val="0"/>
479
+          </dia:attribute>
480
+          <dia:attribute name="abstract">
481
+            <dia:boolean val="false"/>
482
+          </dia:attribute>
483
+          <dia:attribute name="class_scope">
484
+            <dia:boolean val="false"/>
485
+          </dia:attribute>
486
+        </dia:composite>
487
+                <dia:composite type="umlattribute">
488
+          <dia:attribute name="name">
489
+            <dia:string>#last_update#</dia:string>
490
+          </dia:attribute>
491
+          <dia:attribute name="type">
492
+            <dia:string>#DATE#</dia:string>
493
+          </dia:attribute>
494
+          <dia:attribute name="value">
495
+            <dia:string></dia:string>
496
+          </dia:attribute>
497
+          <dia:attribute name="visibility">
498
+            <dia:enum val="0"/>
499
+          </dia:attribute>
500
+          <dia:attribute name="abstract">
501
+            <dia:boolean val="false"/>
502
+          </dia:attribute>
503
+          <dia:attribute name="class_scope">
504
+            <dia:boolean val="false"/>
505
+          </dia:attribute>
506
+        </dia:composite>
507
+              </dia:attribute>
508
+                  <dia:attribute name="operations">
509
+                <dia:composite type="umloperation">
510
+          <dia:attribute name="name">
511
+            <dia:string>#Primary Key#</dia:string>
512
+          </dia:attribute>
513
+          <dia:attribute name="type">
514
+	              <dia:string>#pk#</dia:string>
515
+	            </dia:attribute>
516
+          <dia:attribute name="visibility">
517
+            <dia:enum val="0"/>
518
+          </dia:attribute>
519
+          <dia:attribute name="abstract">
520
+            <dia:boolean val="false"/>
521
+          </dia:attribute>
522
+          <dia:attribute name="class_scope">
523
+            <dia:boolean val="false"/>
524
+          </dia:attribute>
525
+	  	  <dia:attribute name = "parameters"/>
526
+	          </dia:composite>
527
+              </dia:attribute>
528
+            <dia:attribute name="template">
529
+        <dia:boolean val="false"/>
530
+      </dia:attribute>
531
+      <dia:attribute name="templates"/>
532
+    </dia:object>
533
+  <dia:object type="UML - Generalization" version="0" id="O6">
534
+   <dia:attribute name="obj_pos">
535
+     <dia:point val="5.5,-2"/>
536
+   </dia:attribute>
537
+   <dia:attribute name="obj_bb">
538
+     <dia:rectangle val="5.5,-2;10.5,1.000"/>
539
+   </dia:attribute>
540
+   <dia:attribute name="orth_points">
541
+     <dia:point val="5.5,-2"/>
542
+     <dia:point val="5.5,-0.5"/>
543
+     <dia:point val="10.5,-0.5"/>
544
+     <dia:point val="10.5,1.000"/>
545
+   </dia:attribute>
546
+   <dia:attribute name="orth_orient">
547
+     <dia:enum val="1"/>
548
+     <dia:enum val="0"/>
549
+     <dia:enum val="1"/>
550
+   </dia:attribute>
551
+   <dia:attribute name="autorouting">
552
+      <dia:boolean val="true"/>
553
+   </dia:attribute>
554
+   <dia:attribute name="name">
555
+     <dia:string/>
556
+   </dia:attribute>
557
+   <dia:attribute name="stereotype">
558
+      <dia:string/>
559
+   </dia:attribute>
560
+   <dia:connections>
561
+     <dia:connection handle="0" to="O1" connection="6"/>
562
+     <dia:connection handle="1" to="O1" connection="1"/>
563
+    </dia:connections>
564
+ </dia:object>
565
+  <dia:object type="UML - Generalization" version="0" id="O7">
566
+   <dia:attribute name="obj_pos">
567
+     <dia:point val="5.5,-2"/>
568
+   </dia:attribute>
569
+   <dia:attribute name="obj_bb">
570
+     <dia:rectangle val="5.5,-2;10.5,1.000"/>
571
+   </dia:attribute>
572
+   <dia:attribute name="orth_points">
573
+     <dia:point val="5.5,-2"/>
574
+     <dia:point val="5.5,-0.5"/>
575
+     <dia:point val="10.5,-0.5"/>
576
+     <dia:point val="10.5,1.000"/>
577
+   </dia:attribute>
578
+   <dia:attribute name="orth_orient">
579
+     <dia:enum val="1"/>
580
+     <dia:enum val="0"/>
581
+     <dia:enum val="1"/>
582
+   </dia:attribute>
583
+   <dia:attribute name="autorouting">
584
+      <dia:boolean val="true"/>
585
+   </dia:attribute>
586
+   <dia:attribute name="name">
587
+     <dia:string/>
588
+   </dia:attribute>
589
+   <dia:attribute name="stereotype">
590
+      <dia:string/>
591
+   </dia:attribute>
592
+   <dia:connections>
593
+     <dia:connection handle="0" to="O1" connection="6"/>
594
+     <dia:connection handle="1" to="O2" connection="1"/>
595
+    </dia:connections>
596
+ </dia:object>
597
+  <dia:object type="UML - Generalization" version="0" id="O8">
598
+   <dia:attribute name="obj_pos">
599
+     <dia:point val="5.5,-2"/>
600
+   </dia:attribute>
601
+   <dia:attribute name="obj_bb">
602
+     <dia:rectangle val="5.5,-2;10.5,1.000"/>
603
+   </dia:attribute>
604
+   <dia:attribute name="orth_points">
605
+     <dia:point val="5.5,-2"/>
606
+     <dia:point val="5.5,-0.5"/>
607
+     <dia:point val="10.5,-0.5"/>
608
+     <dia:point val="10.5,1.000"/>
609
+   </dia:attribute>
610
+   <dia:attribute name="orth_orient">
611
+     <dia:enum val="1"/>
612
+     <dia:enum val="0"/>
613
+     <dia:enum val="1"/>
614
+   </dia:attribute>
615
+   <dia:attribute name="autorouting">
616
+      <dia:boolean val="true"/>
617
+   </dia:attribute>
618
+   <dia:attribute name="name">
619
+     <dia:string/>
620
+   </dia:attribute>
621
+   <dia:attribute name="stereotype">
622
+      <dia:string/>
623
+   </dia:attribute>
624
+   <dia:connections>
625
+     <dia:connection handle="0" to="O0" connection="6"/>
626
+     <dia:connection handle="1" to="O0" connection="1"/>
627
+    </dia:connections>
628
+ </dia:object>
629
+  <dia:object type="UML - Generalization" version="0" id="O3">
630
+   <dia:attribute name="obj_pos">
631
+     <dia:point val="5.5,-2"/>
632
+   </dia:attribute>
633
+   <dia:attribute name="obj_bb">
634
+     <dia:rectangle val="5.5,-2;10.5,1.000"/>
635
+   </dia:attribute>
636
+   <dia:attribute name="orth_points">
637
+     <dia:point val="5.5,-2"/>
638
+     <dia:point val="5.5,-0.5"/>
639
+     <dia:point val="10.5,-0.5"/>
640
+     <dia:point val="10.5,1.000"/>
641
+   </dia:attribute>
642
+   <dia:attribute name="orth_orient">
643
+     <dia:enum val="1"/>
644
+     <dia:enum val="0"/>
645
+     <dia:enum val="1"/>
646
+   </dia:attribute>
647
+   <dia:attribute name="autorouting">
648
+      <dia:boolean val="true"/>
649
+   </dia:attribute>
650
+   <dia:attribute name="name">
651
+     <dia:string/>
652
+   </dia:attribute>
653
+   <dia:attribute name="stereotype">
654
+      <dia:string/>
655
+   </dia:attribute>
656
+   <dia:connections>
657
+     <dia:connection handle="0" to="O1" connection="6"/>
658
+     <dia:connection handle="1" to="O0" connection="1"/>
659
+    </dia:connections>
660
+ </dia:object>
661
+
662
+
663
+ </dia:layer>
664
+</dia:diagram>

BIN
db/autodia.out.gif Dosyayı Görüntüle


BIN
db/pyheatpump.db Dosyayı Görüntüle


+ 39
- 0
db/pyheatpump.sql Dosyayı Görüntüle

@@ -0,0 +1,39 @@
1
+CREATE TABLE IF NOT EXISTS var_type (
2
+	slabel CHAR(1) UNIQUE PRIMARY KEY,
3
+	label VARCHAR(10) UNIQUE,
4
+	type VARCHAR(10) NOT NULL,
5
+	start_address INT NOT NULL DEFAULT 0,
6
+	end_address INT NOT NULL DEFAULT 250
7
+);
8
+
9
+CREATE TABLE IF NOT EXISTS variable (
10
+	type CHAR(1) NOT NULL,
11
+	address INT NOT NULL,
12
+	unit VARCHAR(5) NULL,
13
+	last_update DATETIME NULL,
14
+
15
+
16
+	FOREIGN KEY (type) REFERENCES var_type(slabel)
17
+		ON DELETE CASCADE,
18
+	PRIMARY KEY(type, address)
19
+);
20
+
21
+CREATE TABLE IF NOT EXISTS var_value (
22
+	type CHAR(1) NOT NULL,
23
+	address INT NOT NULL,
24
+	time DATETIME DEFAULT CURRENT_TIMESTAMP,
25
+	value INT NOT NULL,
26
+
27
+	FOREIGN KEY (type) REFERENCES variable(type)
28
+		ON DELETE CASCADE,
29
+	FOREIGN KEY (address) REFERENCES variable(address)
30
+		ON DELETE CASCADE,
31
+	PRIMARY KEY(type, address, time)
32
+);
33
+
34
+INSERT INTO var_type (slabel, label, type) VALUES (
35
+	'A', 'Analog', 'float');
36
+INSERT INTO var_type (slabel, label, type) VALUES (
37
+	'I', 'Integer', 'int');
38
+INSERT INTO var_type (slabel, label, type) VALUES (
39
+	'D', 'Digital', 'boolean');

Loading…
İptal
Kaydet