-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDiagrama_Arquitetura.png
More file actions
1019 lines (911 loc) · 99.5 KB
/
Copy pathDiagrama_Arquitetura.png
File metadata and controls
1019 lines (911 loc) · 99.5 KB
Download raw file
Open symbols panelEdit and raw actions
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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="utf-8"><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"><style id="ace-twilight">.ace-twilight .ace_gutter {background: #232323;color: #E2E2E2}.ace-twilight .ace_print-margin {width: 1px;background: #232323}.ace-twilight {background-color: #141414;color: #F8F8F8}.ace-twilight .ace_cursor {color: #A7A7A7}.ace-twilight .ace_marker-layer .ace_selection {background: rgba(221, 240, 255, 0.20)}.ace-twilight.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px #141414;}.ace-twilight .ace_marker-layer .ace_step {background: rgb(102, 82, 0)}.ace-twilight .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgba(255, 255, 255, 0.25)}.ace-twilight .ace_marker-layer .ace_active-line {background: rgba(255, 255, 255, 0.031)}.ace-twilight .ace_gutter-active-line {background-color: rgba(255, 255, 255, 0.031)}.ace-twilight .ace_marker-layer .ace_selected-word {border: 1px solid rgba(221, 240, 255, 0.20)}.ace-twilight .ace_invisible {color: rgba(255, 255, 255, 0.25)}.ace-twilight .ace_keyword,.ace-twilight .ace_meta {color: #CDA869}.ace-twilight .ace_constant,.ace-twilight .ace_constant.ace_character,.ace-twilight .ace_constant.ace_character.ace_escape,.ace-twilight .ace_constant.ace_other,.ace-twilight .ace_heading,.ace-twilight .ace_markup.ace_heading,.ace-twilight .ace_support.ace_constant {color: #CF6A4C}.ace-twilight .ace_invalid.ace_illegal {color: #F8F8F8;background-color: rgba(86, 45, 86, 0.75)}.ace-twilight .ace_invalid.ace_deprecated {text-decoration: underline;font-style: italic;color: #D2A8A1}.ace-twilight .ace_support {color: #9B859D}.ace-twilight .ace_fold {background-color: #AC885B;border-color: #F8F8F8}.ace-twilight .ace_support.ace_function {color: #DAD085}.ace-twilight .ace_list,.ace-twilight .ace_markup.ace_list,.ace-twilight .ace_storage {color: #F9EE98}.ace-twilight .ace_entity.ace_name.ace_function,.ace-twilight .ace_meta.ace_tag,.ace-twilight .ace_variable {color: #AC885B}.ace-twilight .ace_string {color: #8F9D6A}.ace-twilight .ace_string.ace_regexp {color: #E9C062}.ace-twilight .ace_comment {font-style: italic;color: #5F5A60}.ace-twilight .ace_variable {color: #7587A6}.ace-twilight .ace_xml-pe {color: #494949}.ace-twilight .ace_indent-guide {background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWMQERFpYLC1tf0PAAgOAnPnhxyiAAAAAElFTkSuQmCC) right repeat-y}
/*# sourceURL=ace/css/ace-twilight */</style><style> .error_widget_wrapper { background: inherit; color: inherit; border:none } .error_widget { border-top: solid 2px; border-bottom: solid 2px; margin: 5px 0; padding: 10px 40px; white-space: pre-wrap; } .error_widget.ace_error, .error_widget_arrow.ace_error{ border-color: #ff5a5a } .error_widget.ace_warning, .error_widget_arrow.ace_warning{ border-color: #F1D817 } .error_widget.ace_info, .error_widget_arrow.ace_info{ border-color: #5a5a5a } .error_widget.ace_ok, .error_widget_arrow.ace_ok{ border-color: #5aaa5a } .error_widget_arrow { position: absolute; border: solid 5px; border-top-color: transparent!important; border-right-color: transparent!important; border-left-color: transparent!important; top: -5px; }</style><style id="ace-tm">.ace-tm .ace_gutter {background: #f0f0f0;color: #333;}.ace-tm .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-tm .ace_fold {background-color: #6B72E6;}.ace-tm {background-color: #FFFFFF;color: black;}.ace-tm .ace_cursor {color: black;}.ace-tm .ace_invisible {color: rgb(191, 191, 191);}.ace-tm .ace_storage,.ace-tm .ace_keyword {color: blue;}.ace-tm .ace_constant {color: rgb(197, 6, 11);}.ace-tm .ace_constant.ace_buildin {color: rgb(88, 72, 246);}.ace-tm .ace_constant.ace_language {color: rgb(88, 92, 246);}.ace-tm .ace_constant.ace_library {color: rgb(6, 150, 14);}.ace-tm .ace_invalid {background-color: rgba(255, 0, 0, 0.1);color: red;}.ace-tm .ace_support.ace_function {color: rgb(60, 76, 114);}.ace-tm .ace_support.ace_constant {color: rgb(6, 150, 14);}.ace-tm .ace_support.ace_type,.ace-tm .ace_support.ace_class {color: rgb(109, 121, 222);}.ace-tm .ace_keyword.ace_operator {color: rgb(104, 118, 135);}.ace-tm .ace_string {color: rgb(3, 106, 7);}.ace-tm .ace_comment {color: rgb(76, 136, 107);}.ace-tm .ace_comment.ace_doc {color: rgb(0, 102, 255);}.ace-tm .ace_comment.ace_doc.ace_tag {color: rgb(128, 159, 191);}.ace-tm .ace_constant.ace_numeric {color: rgb(0, 0, 205);}.ace-tm .ace_variable {color: rgb(49, 132, 149);}.ace-tm .ace_xml-pe {color: rgb(104, 104, 91);}.ace-tm .ace_entity.ace_name.ace_function {color: #0000A2;}.ace-tm .ace_heading {color: rgb(12, 7, 255);}.ace-tm .ace_list {color:rgb(185, 6, 144);}.ace-tm .ace_meta.ace_tag {color:rgb(0, 22, 142);}.ace-tm .ace_string.ace_regex {color: rgb(255, 0, 0)}.ace-tm .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-tm.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px white;}.ace-tm .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-tm .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-tm .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-tm .ace_marker-layer .ace_active-line {background: rgba(0, 0, 0, 0.07);}.ace-tm .ace_gutter-active-line {background-color : #dcdcdc;}.ace-tm .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-tm .ace_indent-guide {background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;}
/*# sourceURL=ace/css/ace-tm */</style><style id="ace_editor.css">.ace_br1 {border-top-left-radius : 3px;}.ace_br2 {border-top-right-radius : 3px;}.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}.ace_br4 {border-bottom-right-radius: 3px;}.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}.ace_br8 {border-bottom-left-radius : 3px;}.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_editor {position: relative;overflow: hidden;font: 12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;direction: ltr;text-align: left;-webkit-tap-highlight-color: rgba(0, 0, 0, 0);}.ace_scroller {position: absolute;overflow: hidden;top: 0;bottom: 0;background-color: inherit;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;cursor: text;}.ace_content {position: absolute;box-sizing: border-box;min-width: 100%;contain: style size layout;}.ace_dragging .ace_scroller:before{position: absolute;top: 0;left: 0;right: 0;bottom: 0;content: '';background: rgba(250, 250, 250, 0.01);z-index: 1000;}.ace_dragging.ace_dark .ace_scroller:before{background: rgba(0, 0, 0, 0.01);}.ace_selecting, .ace_selecting * {cursor: text !important;}.ace_gutter {position: absolute;overflow : hidden;width: auto;top: 0;bottom: 0;left: 0;cursor: default;z-index: 4;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;contain: style size layout;}.ace_gutter-active-line {position: absolute;left: 0;right: 0;}.ace_scroller.ace_scroll-left {box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;}.ace_gutter-cell {position: absolute;top: 0;left: 0;right: 0;padding-left: 19px;padding-right: 6px;background-repeat: no-repeat;}.ace_gutter-cell.ace_error {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: 2px center;}.ace_gutter-cell.ace_warning {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");background-position: 2px center;}.ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");background-position: 2px center;}.ace_dark .ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");}.ace_scrollbar {contain: strict;position: absolute;right: 0;bottom: 0;z-index: 6;}.ace_scrollbar-inner {position: absolute;cursor: text;left: 0;top: 0;}.ace_scrollbar-v{overflow-x: hidden;overflow-y: scroll;top: 0;}.ace_scrollbar-h {overflow-x: scroll;overflow-y: hidden;left: 0;}.ace_print-margin {position: absolute;height: 100%;}.ace_text-input {position: absolute;z-index: 0;width: 0.5em;height: 1em;opacity: 0;background: transparent;-moz-appearance: none;appearance: none;border: none;resize: none;outline: none;overflow: hidden;font: inherit;padding: 0 1px;margin: 0 -1px;contain: strict;-ms-user-select: text;-moz-user-select: text;-webkit-user-select: text;user-select: text;white-space: pre!important;}.ace_text-input.ace_composition {background: transparent;color: inherit;z-index: 1000;opacity: 1;}.ace_composition_placeholder { color: transparent }.ace_composition_marker { border-bottom: 1px solid;position: absolute;border-radius: 0;margin-top: 1px;}[ace_nocontext=true] {transform: none!important;filter: none!important;perspective: none!important;clip-path: none!important;mask : none!important;contain: none!important;perspective: none!important;mix-blend-mode: initial!important;z-index: auto;}.ace_layer {z-index: 1;position: absolute;overflow: hidden;word-wrap: normal;white-space: pre;height: 100%;width: 100%;box-sizing: border-box;pointer-events: none;}.ace_gutter-layer {position: relative;width: auto;text-align: right;pointer-events: auto;height: 1000000px;contain: style size layout;}.ace_text-layer {font: inherit !important;position: absolute;height: 1000000px;width: 1000000px;contain: style size layout;}.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {contain: style size layout;position: absolute;top: 0;left: 0;right: 0;}.ace_hidpi .ace_text-layer,.ace_hidpi .ace_gutter-layer,.ace_hidpi .ace_content,.ace_hidpi .ace_gutter {contain: strict;will-change: transform;}.ace_hidpi .ace_text-layer > .ace_line, .ace_hidpi .ace_text-layer > .ace_line_group {contain: strict;}.ace_cjk {display: inline-block;text-align: center;}.ace_cursor-layer {z-index: 4;}.ace_cursor {z-index: 4;position: absolute;box-sizing: border-box;border-left: 2px solid;transform: translatez(0);}.ace_multiselect .ace_cursor {border-left-width: 1px;}.ace_slim-cursors .ace_cursor {border-left-width: 1px;}.ace_overwrite-cursors .ace_cursor {border-left-width: 0;border-bottom: 1px solid;}.ace_hidden-cursors .ace_cursor {opacity: 0.2;}.ace_smooth-blinking .ace_cursor {transition: opacity 0.18s;}.ace_animate-blinking .ace_cursor {animation-duration: 1000ms;animation-timing-function: step-end;animation-name: blink-ace-animate;animation-iteration-count: infinite;}.ace_animate-blinking.ace_smooth-blinking .ace_cursor {animation-duration: 1000ms;animation-timing-function: ease-in-out;animation-name: blink-ace-animate-smooth;}@keyframes blink-ace-animate {from, to { opacity: 1; }60% { opacity: 0; }}@keyframes blink-ace-animate-smooth {from, to { opacity: 1; }45% { opacity: 1; }60% { opacity: 0; }85% { opacity: 0; }}.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {position: absolute;z-index: 3;}.ace_marker-layer .ace_selection {position: absolute;z-index: 5;}.ace_marker-layer .ace_bracket {position: absolute;z-index: 6;}.ace_marker-layer .ace_active-line {position: absolute;z-index: 2;}.ace_marker-layer .ace_selected-word {position: absolute;z-index: 4;box-sizing: border-box;}.ace_line .ace_fold {box-sizing: border-box;display: inline-block;height: 11px;margin-top: -2px;vertical-align: middle;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");background-repeat: no-repeat, repeat-x;background-position: center center, top left;color: transparent;border: 1px solid black;border-radius: 2px;cursor: pointer;pointer-events: auto;}.ace_dark .ace_fold {}.ace_fold:hover{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");}.ace_tooltip {background-color: #FFF;background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1));border: 1px solid gray;border-radius: 1px;box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);color: black;max-width: 100%;padding: 3px 4px;position: fixed;z-index: 999999;box-sizing: border-box;cursor: default;white-space: pre;word-wrap: break-word;line-height: normal;font-style: normal;font-weight: normal;letter-spacing: normal;pointer-events: none;}.ace_folding-enabled > .ace_gutter-cell {padding-right: 13px;}.ace_fold-widget {box-sizing: border-box;margin: 0 -12px 0 1px;display: none;width: 11px;vertical-align: top;background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: center;border-radius: 3px;border: 1px solid transparent;cursor: pointer;}.ace_folding-enabled .ace_fold-widget {display: inline-block; }.ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");}.ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");}.ace_fold-widget:hover {border: 1px solid rgba(0, 0, 0, 0.3);background-color: rgba(255, 255, 255, 0.2);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);}.ace_fold-widget:active {border: 1px solid rgba(0, 0, 0, 0.4);background-color: rgba(0, 0, 0, 0.05);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);}.ace_dark .ace_fold-widget {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");}.ace_dark .ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget:hover {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);background-color: rgba(255, 255, 255, 0.1);}.ace_dark .ace_fold-widget:active {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);}.ace_inline_button {border: 1px solid lightgray;display: inline-block;margin: -1px 8px;padding: 0 5px;pointer-events: auto;cursor: pointer;}.ace_inline_button:hover {border-color: gray;background: rgba(200,200,200,0.2);display: inline-block;pointer-events: auto;}.ace_fold-widget.ace_invalid {background-color: #FFB4B4;border-color: #DE5555;}.ace_fade-fold-widgets .ace_fold-widget {transition: opacity 0.4s ease 0.05s;opacity: 0;}.ace_fade-fold-widgets:hover .ace_fold-widget {transition: opacity 0.05s ease 0.05s;opacity:1;}.ace_underline {text-decoration: underline;}.ace_bold {font-weight: bold;}.ace_nobold .ace_bold {font-weight: normal;}.ace_italic {font-style: italic;}.ace_error-marker {background-color: rgba(255, 0, 0,0.2);position: absolute;z-index: 9;}.ace_highlight-marker {background-color: rgba(255, 255, 0,0.2);position: absolute;z-index: 8;}.ace_text-input-ios {position: absolute !important;top: -100000px !important;left: -100000px !important;}
/*# sourceURL=ace/css/ace_editor.css */</style>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Graphviz Online</title>
<style type="text/css" media="screen">
body {
overflow: hidden;
margin: 0 0;
}
body.presentation #editor {
display: none;
}
body.presentation #options {
left: 0;
}
body.presentation #review {
left: 0;
}
#editor-toggle {
position: absolute;
left: 0;
top: 50%;
z-index: 10;
transform: translateY(-50%);
}
#toggle-btn {
cursor: pointer;
padding: 10px 6px;
background: rgba(255, 255, 255, 0.7);
backdrop-filter: blur(4px);
border: 1px solid rgba(222, 226, 230, 0.7);
border-left: none;
border-radius: 0 6px 6px 0;
color: #495057;
font-size: 12px;
font-weight: 600;
box-shadow: 2px 0 4px rgba(0,0,0,0.08);
transition: all 0.2s ease;
display: flex;
align-items: center;
justify-content: center;
height: 40px;
width: 20px;
}
#toggle-btn:hover {
background: rgba(255, 255, 255, 0.9);
box-shadow: 2px 0 6px rgba(0,0,0,0.12);
color: #212529;
}
#toggle-btn:active {
background: rgba(233, 236, 239, 0.8);
box-shadow: 1px 0 3px rgba(0,0,0,0.05);
}
#toggle-btn.collapsed {
background: linear-gradient(to right, #ffffff, #f8f9fa);
border: 1px solid #dee2e6;
box-shadow: 2px 0 4px rgba(0,0,0,0.08);
color: #495057;
}
#toggle-btn.collapsed:hover {
background: linear-gradient(to right, #f8f9fa, #e9ecef);
color: #212529;
}
#editor {
margin: 0;
position: absolute;
top: 0;
bottom: 0;
left: 0;
transition: width 0.3s ease;
width: 50%;
}
#editor.collapsed {
width: 0 !important;
overflow: hidden;
}
#splitter {
position: absolute;
top: 0;
bottom: 0;
left: 50%;
width: 5px;
background: #ccc;
cursor: col-resize;
z-index: 5;
transition: left 0.3s ease;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 2px 0 4px rgba(0,0,0,0.08);
}
#splitter::before {
content: '⋮';
color: #555;
font-size: 20px;
font-weight: bold;
pointer-events: none;
line-height: 1;
}
#splitter:hover {
background: #999;
}
#splitter:hover::before {
color: #222;
}
#splitter.dragging {
background: #666;
transition: none;
}
#splitter.dragging::before {
color: #fff;
}
#review {
margin: 0;
position: absolute;
top: 42px;
bottom: 0;
right: 0;
left: calc(50% + 5px);
overflow: scroll;
transition: left 0.3s ease;
}
#review.expanded {
left: 0 !important;
}
#options {
margin: 0;
position: fixed;
left: calc(50% + 5px);
width: 100%;
flex: 0 0 auto;
background: linear-gradient(to bottom, #ffffff, #f8f9fa);
border-bottom: 1px solid #dee2e6;
padding: 8px 12px;
overflow: hidden;
transition: left 0.3s ease;
box-shadow: 0 2px 4px rgba(0,0,0,0.08);
display: flex;
align-items: center;
gap: 12px;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
font-size: 14px;
z-index: 10;
}
#options.expanded {
left: 0 !important;
}
#options label {
margin: 0;
display: flex;
align-items: center;
gap: 6px;
color: #495057;
font-weight: 500;
}
#options select {
padding: 4px 8px;
border: 1px solid #ced4da;
border-radius: 4px;
background: white;
color: #212529;
font-size: 14px;
cursor: pointer;
transition: border-color 0.15s ease;
}
#options select:hover {
border-color: #adb5bd;
}
#options select:focus {
outline: none;
border-color: #80bdff;
box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}
#options input[type="checkbox"] {
cursor: pointer;
}
#options input[type="button"] {
padding: 5px 12px;
border: 1px solid #ced4da;
border-radius: 4px;
background: white;
color: #212529;
font-size: 14px;
font-weight: 500;
cursor: pointer;
transition: all 0.15s ease;
}
#options input[type="button"]:hover {
background: #f8f9fa;
border-color: #adb5bd;
}
#options input[type="button"]:active {
background: #e9ecef;
}
#options #raw.disabled {
opacity: 0.5;
cursor: not-allowed;
}
#options #raw.disabled input {
cursor: not-allowed;
}
#status {
width: 100%;
position: fixed;
bottom: 0;
display: block;
color: #FFF;
z-index: 999;
}
#review svg {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
#review #text {
font-size: 12px;
font-family: monaco, courier, monospace;
white-space: pre;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
overflow: auto;
}
#review img {
display: block;
margin: 0 auto;
}
#review.working svg,
#output.error svg,
#review.working #text,
#output.error #text,
#review.working img,
#output.error img {
opacity: 0.4;
}
#review.error #error {
display: inherit;
}
#review #error {
display: none;
position: absolute;
top: 20px;
left: 20px;
margin-right: 20px;
background: red;
color: white;
z-index: 1;
}
#download {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
font-size: 14px;
font-weight: 500;
text-decoration: none;
background: white;
color: #212529;
padding: 5px 12px;
border: 1px solid #ced4da;
border-radius: 4px;
display: inline-block;
transition: all 0.15s ease;
}
#download:hover {
background: #f8f9fa;
border-color: #adb5bd;
}
#download:active {
background: #e9ecef;
}
#shareurl {
display: none;
padding: 4px 8px;
border: 1px solid #ced4da;
border-radius: 4px;
background: white;
color: #212529;
font-size: 14px;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
width: 300px;
}
#shareurl:focus {
outline: none;
border-color: #80bdff;
box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}
</style>
<script src="Diagrama_Arquitetura_arquivos/theme-twilight.js"></script><script src="Diagrama_Arquitetura_arquivos/mode-dot.js"></script></head>
<body>
<div id="editor-toggle">
<button id="toggle-btn">◀</button>
</div>
<pre id="editor" class=" ace_editor ace-twilight ace_dark ace_focus"><textarea class="ace_text-input" wrap="off" autocorrect="off" autocapitalize="none" spellcheck="false" style="opacity: 0; font-size: 1px; height: 1px; width: 1px; top: 721px; left: 58px;">}
</textarea><div class="ace_gutter" aria-hidden="true" style="left: 0px; width: 47px;"><div class="ace_layer ace_gutter-layer ace_folding-enabled" style="height: 1000000px; top: 0px; left: 0px; width: 47px;"><div class="ace_gutter-cell " style="height: 14.1333px; top: 0px;">1<span style="display: inline-block; height: 14.1333px;" class="ace_fold-widget ace_start ace_open"></span></div><div class="ace_gutter-cell " style="height: 14.1333px; top: 14.1333px;">2<span style="display: none;"></span></div><div class="ace_gutter-cell " style="height: 14.1333px; top: 28.2667px;">3<span style="display: none; height: 14.1333px;" class="ace_fold-widget ace_start ace_open"></span></div><div class="ace_gutter-cell " style="height: 14.1333px; top: 42.4px;">4<span style="display: none;"></span></div><div class="ace_gutter-cell " style="height: 14.1333px; top: 56.5333px;">5<span style="display: none;"></span></div><div class="ace_gutter-cell " style="height: 14.1333px; top: 70.6667px;">6<span style="display: none;"></span></div><div class="ace_gutter-cell " style="height: 14.1333px; top: 84.8px;">7<span style="display: inline-block; height: 14.1333px;" class="ace_fold-widget ace_start ace_open"></span></div><div class="ace_gutter-cell " style="height: 14.1333px; top: 98.9333px;">8<span style="display: none;"></span></div><div class="ace_gutter-cell " style="height: 14.1333px; top: 113.067px;">9<span style="display: none;"></span></div><div class="ace_gutter-cell " style="height: 14.1333px; top: 127.2px;">10<span style="display: none;"></span></div><div class="ace_gutter-cell " style="height: 14.1333px; top: 141.333px;">11<span style="display: none; height: 14.1333px;" class="ace_fold-widget ace_start ace_open"></span></div><div class="ace_gutter-cell " style="height: 14.1333px; top: 155.467px;">12<span style="display: none;"></span></div><div class="ace_gutter-cell " style="height: 14.1333px; top: 169.6px;">13<span style="display: none;"></span></div><div class="ace_gutter-cell " style="height: 14.1333px; top: 183.733px;">14<span style="display: none;"></span></div><div class="ace_gutter-cell " style="height: 14.1333px; top: 197.867px;">15<span style="display: none;"></span></div><div class="ace_gutter-cell " style="height: 14.1333px; top: 212px;">16<span style="display: none;"></span></div><div class="ace_gutter-cell " style="height: 14.1333px; top: 226.133px;">17<span style="display: none;"></span></div><div class="ace_gutter-cell " style="height: 14.1333px; top: 240.267px;">18<span style="display: none;"></span></div><div class="ace_gutter-cell " style="height: 14.1333px; top: 254.4px;">19<span style="display: none;"></span></div><div class="ace_gutter-cell " style="height: 14.1333px; top: 268.533px;">20<span style="display: none;"></span></div><div class="ace_gutter-cell " style="height: 14.1333px; top: 282.667px;">21<span style="display: none;"></span></div><div class="ace_gutter-cell " style="height: 14.1333px; top: 296.8px;">22<span style="display: inline-block; height: 14.1333px;" class="ace_fold-widget ace_start ace_open"></span></div><div class="ace_gutter-cell " style="height: 14.1333px; top: 310.933px;">23<span style="display: none;"></span></div><div class="ace_gutter-cell " style="height: 14.1333px; top: 325.067px;">24<span style="display: none;"></span></div><div class="ace_gutter-cell " style="height: 14.1333px; top: 339.2px;">25<span style="display: none;"></span></div><div class="ace_gutter-cell " style="height: 14.1333px; top: 353.333px;">26<span style="display: none;"></span></div><div class="ace_gutter-cell " style="height: 14.1333px; top: 367.467px;">27<span style="display: none;"></span></div><div class="ace_gutter-cell " style="height: 14.1333px; top: 381.6px;">28<span style="display: none;"></span></div><div class="ace_gutter-cell " style="height: 14.1333px; top: 395.733px;">29<span style="display: none;"></span></div><div class="ace_gutter-cell " style="height: 14.1333px; top: 409.867px;">30<span style="display: none;"></span></div><div class="ace_gutter-cell " style="height: 14.1333px; top: 424px;">31<span style="display: none;"></span></div><div class="ace_gutter-cell " style="height: 14.1333px; top: 438.133px;">32<span style="display: none;"></span></div><div class="ace_gutter-cell " style="height: 14.1333px; top: 452.267px;">33<span style="display: none;"></span></div><div class="ace_gutter-cell " style="height: 14.1333px; top: 466.4px;">34<span style="display: none;"></span></div><div class="ace_gutter-cell " style="height: 14.1333px; top: 480.533px;">35<span style="display: none;"></span></div><div class="ace_gutter-cell " style="height: 14.1333px; top: 494.667px;">36<span style="display: none;"></span></div><div class="ace_gutter-cell " style="height: 14.1333px; top: 508.8px;">37<span style="display: none;"></span></div><div class="ace_gutter-cell " style="height: 14.1333px; top: 522.933px;">38<span style="display: none;"></span></div><div class="ace_gutter-cell " style="height: 14.1333px; top: 537.067px;">39<span style="display: none;"></span></div><div class="ace_gutter-cell " style="height: 14.1333px; top: 551.2px;">40<span style="display: none;"></span></div><div class="ace_gutter-cell " style="height: 14.1333px; top: 565.333px;">41<span style="display: none;"></span></div><div class="ace_gutter-cell " style="height: 14.1333px; top: 579.467px;">42<span style="display: none;"></span></div><div class="ace_gutter-cell " style="height: 14.1333px; top: 593.6px;">43<span style="display: none;"></span></div><div class="ace_gutter-cell " style="height: 14.1333px; top: 607.733px;">44<span style="display: none;"></span></div><div class="ace_gutter-cell " style="height: 14.1333px; top: 621.867px;">45<span style="display: none;"></span></div><div class="ace_gutter-cell " style="height: 14.1333px; top: 636px;">46<span style="display: none;"></span></div><div class="ace_gutter-cell " style="height: 14.1333px; top: 650.133px;">47<span style="display: none;"></span></div><div class="ace_gutter-cell " style="height: 14.1333px; top: 664.267px;">48<span style="display: none;"></span></div><div class="ace_gutter-cell " style="height: 14.1333px; top: 678.4px;">49<span style="display: none;"></span></div><div class="ace_gutter-cell " style="height: 14.1333px; top: 692.533px;">50<span style="display: none;"></span></div><div class="ace_gutter-cell ace_gutter-active-line " style="height: 14.1333px; top: 706.667px;">51<span style="display: none;"></span></div></div></div><div class="ace_scroller" style="left: 47px; right: 0px; bottom: 0px;"><div class="ace_content" style="top: 0px; left: 0px; width: 773px; height: 804.267px;"><div class="ace_layer ace_print-margin-layer"><div class="ace_print-margin" style="left: 541px; visibility: visible;"></div></div><div class="ace_layer ace_marker-layer"><div style="height: 14.1333px; top: 706.667px; left: 0px; right: 0px;" class="ace_active-line"></div><div style="height: 14.1333px; width: 6.71667px; top: 0px; left: 71.1667px;" class="ace_bracket ace_start ace_br15"></div></div><div class="ace_layer ace_text-layer" style="height: 1000000px; margin: 0px 4px; top: 0px; left: 0px;"><div style="height: 14.1333px; top: 0px;" class="ace_line"><span class="ace_keyword">digraph</span> G <span class="ace_paren ace_lparen">{</span></div><div style="height: 14.1333px; top: 14.1333px;" class="ace_line"> <span class="ace_comment">// Configurações Globais</span></div><div style="height: 14.1333px; top: 28.2667px;" class="ace_line"> <span class="ace_variable">rankdir</span><span class="ace_keyword ace_operator">=</span>LR<span class="ace_punctuation ace_operator">;</span> <span class="ace_comment">// Layout da esquerda para a direita</span></div><div style="height: 14.1333px; top: 42.4px;" class="ace_line"> <span class="ace_keyword">node</span> <span class="ace_paren ace_lparen">[</span><span class="ace_variable">shape</span><span class="ace_keyword ace_operator">=</span>box<span class="ace_punctuation ace_operator">,</span> <span class="ace_variable">style</span><span class="ace_keyword ace_operator">=</span><span class="ace_string">"filled"</span><span class="ace_punctuation ace_operator">,</span> <span class="ace_variable">fillcolor</span><span class="ace_keyword ace_operator">=</span><span class="ace_string">"#EEEEEE"</span><span class="ace_punctuation ace_operator">,</span> <span class="ace_variable">fontname</span><span class="ace_keyword ace_operator">=</span><span class="ace_string">"Helvetica"</span><span class="ace_paren ace_rparen">]</span><span class="ace_punctuation ace_operator">;</span></div><div style="height: 14.1333px; top: 56.5333px;" class="ace_line"> </div><div style="height: 14.1333px; top: 70.6667px;" class="ace_line"> <span class="ace_comment">// Definição dos Componentes</span></div><div style="height: 14.1333px; top: 84.8px;" class="ace_line"> <span class="ace_keyword">subgraph</span> cluster_sensores <span class="ace_paren ace_lparen">{</span></div><div style="height: 14.1333px; top: 98.9333px;" class="ace_line"><span class="ace_indent-guide"> </span> <span class="ace_variable">label</span> <span class="ace_keyword ace_operator">=</span> <span class="ace_string">"1. Camada de Sensores (Entrada)"</span><span class="ace_punctuation ace_operator">;</span></div><div style="height: 14.1333px; top: 113.067px;" class="ace_line"><span class="ace_indent-guide"> </span> <span class="ace_variable">color</span> <span class="ace_keyword ace_operator">=</span> <span class="ace_string">"#2E86C1"</span><span class="ace_punctuation ace_operator">;</span></div><div style="height: 14.1333px; top: 127.2px;" class="ace_line"><span class="ace_indent-guide"> </span> <span class="ace_variable">style</span> <span class="ace_keyword ace_operator">=</span> <span class="ace_string">"rounded, filled"</span><span class="ace_punctuation ace_operator">;</span></div><div style="height: 14.1333px; top: 141.333px;" class="ace_line"><span class="ace_indent-guide"> </span> <span class="ace_variable">fillcolor</span> <span class="ace_keyword ace_operator">=</span> <span class="ace_string">"#F0F8FF"</span><span class="ace_punctuation ace_operator">;</span></div><div style="height: 14.1333px; top: 155.467px;" class="ace_line"><span class="ace_indent-guide"> </span> </div><div style="height: 14.1333px; top: 169.6px;" class="ace_line"><span class="ace_indent-guide"> </span> Sensor1 <span class="ace_paren ace_lparen">[</span><span class="ace_variable">label</span><span class="ace_keyword ace_operator">=</span><span class="ace_string">"Sensor 001</span>\<span class="ace_string">n(Publish)"</span><span class="ace_paren ace_rparen">]</span><span class="ace_punctuation ace_operator">;</span></div><div style="height: 14.1333px; top: 183.733px;" class="ace_line"><span class="ace_indent-guide"> </span> Sensor2 <span class="ace_paren ace_lparen">[</span><span class="ace_variable">label</span><span class="ace_keyword ace_operator">=</span><span class="ace_string">"Sensor 002</span>\<span class="ace_string">n(Publish)"</span><span class="ace_paren ace_rparen">]</span><span class="ace_punctuation ace_operator">;</span></div><div style="height: 14.1333px; top: 197.867px;" class="ace_line"><span class="ace_indent-guide"> </span> Sensor3 <span class="ace_paren ace_lparen">[</span><span class="ace_variable">label</span><span class="ace_keyword ace_operator">=</span><span class="ace_string">"Sensor 003</span>\<span class="ace_string">n(Publish)"</span><span class="ace_paren ace_rparen">]</span><span class="ace_punctuation ace_operator">;</span></div><div style="height: 14.1333px; top: 212px;" class="ace_line"> <span class="ace_paren ace_rparen">}</span></div><div style="height: 14.1333px; top: 226.133px;" class="ace_line"> </div><div style="height: 14.1333px; top: 240.267px;" class="ace_line"> Broker <span class="ace_paren ace_lparen">[</span><span class="ace_variable">label</span><span class="ace_keyword ace_operator">=</span><span class="ace_string">"Broker MQTT</span>\<span class="ace_string">n(Mosquitto)</span>\<span class="ace_string">nlocalhost:1883"</span><span class="ace_punctuation ace_operator">,</span> <span class="ace_variable">shape</span><span class="ace_keyword ace_operator">=</span>cylinder<span class="ace_punctuation ace_operator">,</span> <span class="ace_variable">fillcolor</span><span class="ace_keyword ace_operator">=</span><span class="ace_string">"#FFD700"</span><span class="ace_paren ace_rparen">]</span><span class="ace_punctuation ace_operator">;</span></div><div style="height: 14.1333px; top: 254.4px;" class="ace_line"> </div><div style="height: 14.1333px; top: 268.533px;" class="ace_line"> ServidorContexto <span class="ace_paren ace_lparen">[</span><span class="ace_variable">label</span><span class="ace_keyword ace_operator">=</span><span class="ace_string">"Servidor de Contexto</span>\<span class="ace_string">n(Subscriber/Publisher)</span>\<span class="ace_string">nPython"</span><span class="ace_punctuation ace_operator">,</span> <span class="ace_variable">fillcolor</span><span class="ace_keyword ace_operator">=</span><span class="ace_string">"#A9CCE3"</span><span class="ace_paren ace_rparen">]</span><span class="ace_punctuation ace_operator">;</span></div><div style="height: 14.1333px; top: 282.667px;" class="ace_line"> </div><div style="height: 14.1333px; top: 296.8px;" class="ace_line"> <span class="ace_keyword">subgraph</span> cluster_atuador <span class="ace_paren ace_lparen">{</span></div><div style="height: 14.1333px; top: 310.933px;" class="ace_line"><span class="ace_indent-guide"> </span> <span class="ace_variable">label</span> <span class="ace_keyword ace_operator">=</span> <span class="ace_string">"3. Camada de Atuação (Saída)"</span><span class="ace_punctuation ace_operator">;</span></div><div style="height: 14.1333px; top: 325.067px;" class="ace_line"><span class="ace_indent-guide"> </span> <span class="ace_variable">color</span> <span class="ace_keyword ace_operator">=</span> <span class="ace_string">"#2ECC71"</span><span class="ace_punctuation ace_operator">;</span></div><div style="height: 14.1333px; top: 339.2px;" class="ace_line"><span class="ace_indent-guide"> </span> <span class="ace_variable">style</span> <span class="ace_keyword ace_operator">=</span> <span class="ace_string">"rounded, filled"</span><span class="ace_punctuation ace_operator">;</span></div><div style="height: 14.1333px; top: 353.333px;" class="ace_line"><span class="ace_indent-guide"> </span> <span class="ace_variable">fillcolor</span> <span class="ace_keyword ace_operator">=</span> <span class="ace_string">"#F0FFF0"</span><span class="ace_punctuation ace_operator">;</span></div><div style="height: 14.1333px; top: 367.467px;" class="ace_line"><span class="ace_indent-guide"> </span> </div><div style="height: 14.1333px; top: 381.6px;" class="ace_line"><span class="ace_indent-guide"> </span> Atuador1 <span class="ace_paren ace_lparen">[</span><span class="ace_variable">label</span><span class="ace_keyword ace_operator">=</span><span class="ace_string">"Atuador 001</span>\<span class="ace_string">n(Subscribe)"</span><span class="ace_paren ace_rparen">]</span><span class="ace_punctuation ace_operator">;</span></div><div style="height: 14.1333px; top: 395.733px;" class="ace_line"> <span class="ace_paren ace_rparen">}</span></div><div style="height: 14.1333px; top: 409.867px;" class="ace_line"> </div><div style="height: 14.1333px; top: 424px;" class="ace_line"> <span class="ace_comment">// Fluxo 1: Coleta de Dados</span></div><div style="height: 14.1333px; top: 438.133px;" class="ace_line"> Sensor1 <span class="ace_keyword ace_operator">-></span> Broker <span class="ace_paren ace_lparen">[</span><span class="ace_variable">label</span><span class="ace_keyword ace_operator">=</span><span class="ace_string">"sala/001/dados"</span><span class="ace_paren ace_rparen">]</span><span class="ace_punctuation ace_operator">;</span></div><div style="height: 14.1333px; top: 452.267px;" class="ace_line"> Sensor2 <span class="ace_keyword ace_operator">-></span> Broker <span class="ace_paren ace_lparen">[</span><span class="ace_variable">label</span><span class="ace_keyword ace_operator">=</span><span class="ace_string">"sala/002/dados"</span><span class="ace_paren ace_rparen">]</span><span class="ace_punctuation ace_operator">;</span></div><div style="height: 14.1333px; top: 466.4px;" class="ace_line"> Sensor3 <span class="ace_keyword ace_operator">-></span> Broker <span class="ace_paren ace_lparen">[</span><span class="ace_variable">label</span><span class="ace_keyword ace_operator">=</span><span class="ace_string">"sala/003/dados"</span><span class="ace_paren ace_rparen">]</span><span class="ace_punctuation ace_operator">;</span></div><div style="height: 14.1333px; top: 480.533px;" class="ace_line"> </div><div style="height: 14.1333px; top: 494.667px;" class="ace_line"> <span class="ace_comment">// Fluxo 2: Processamento</span></div><div style="height: 14.1333px; top: 508.8px;" class="ace_line"> Broker <span class="ace_keyword ace_operator">-></span> ServidorContexto <span class="ace_paren ace_lparen">[</span><span class="ace_variable">label</span><span class="ace_keyword ace_operator">=</span><span class="ace_string">"sala/+/dados</span>\<span class="ace_string">n(Assinatura Concorrente)"</span><span class="ace_punctuation ace_operator">,</span> <span class="ace_variable">style</span><span class="ace_keyword ace_operator">=</span>dashed<span class="ace_punctuation ace_operator">,</span> <span class="ace_variable">color</span><span class="ace_keyword ace_operator">=</span><span class="ace_string">"#2E86C1"</span><span class="ace_paren ace_rparen">]</span><span class="ace_punctuation ace_operator">;</span></div><div style="height: 14.1333px; top: 522.933px;" class="ace_line"> </div><div style="height: 14.1333px; top: 537.067px;" class="ace_line"> <span class="ace_comment">// Fluxo 3: Decisão e Atuação Automática</span></div><div style="height: 14.1333px; top: 551.2px;" class="ace_line"> ServidorContexto <span class="ace_keyword ace_operator">-></span> Broker <span class="ace_paren ace_lparen">[</span><span class="ace_variable">label</span><span class="ace_keyword ace_operator">=</span><span class="ace_string">"atuador/001/comando</span>\<span class="ace_string">n(Decisão de Ação)"</span><span class="ace_punctuation ace_operator">,</span> <span class="ace_variable">color</span><span class="ace_keyword ace_operator">=</span><span class="ace_string">"#C0392B"</span><span class="ace_punctuation ace_operator">,</span> <span class="ace_variable">style</span><span class="ace_keyword ace_operator">=</span>bold<span class="ace_paren ace_rparen">]</span><span class="ace_punctuation ace_operator">;</span></div><div style="height: 14.1333px; top: 565.333px;" class="ace_line"> Broker <span class="ace_keyword ace_operator">-></span> Atuador1 <span class="ace_paren ace_lparen">[</span><span class="ace_variable">label</span><span class="ace_keyword ace_operator">=</span><span class="ace_string">"atuador/001/comando"</span><span class="ace_punctuation ace_operator">,</span> <span class="ace_variable">color</span><span class="ace_keyword ace_operator">=</span><span class="ace_string">"#C0392B"</span><span class="ace_paren ace_rparen">]</span><span class="ace_punctuation ace_operator">;</span></div><div style="height: 14.1333px; top: 579.467px;" class="ace_line"> </div><div style="height: 14.1333px; top: 593.6px;" class="ace_line"> <span class="ace_comment">// Fluxo 4: Logs (Opcional, mas útil)</span></div><div style="height: 14.1333px; top: 607.733px;" class="ace_line"> Sensor1 <span class="ace_keyword ace_operator">-></span> LogS <span class="ace_paren ace_lparen">[</span><span class="ace_variable">label</span><span class="ace_keyword ace_operator">=</span><span class="ace_string">"Log Leitura"</span><span class="ace_punctuation ace_operator">,</span> <span class="ace_variable">style</span><span class="ace_keyword ace_operator">=</span>dotted<span class="ace_paren ace_rparen">]</span><span class="ace_punctuation ace_operator">;</span></div><div style="height: 14.1333px; top: 621.867px;" class="ace_line"> ServidorContexto <span class="ace_keyword ace_operator">-></span> LogD <span class="ace_paren ace_lparen">[</span><span class="ace_variable">label</span><span class="ace_keyword ace_operator">=</span><span class="ace_string">"Log Decisão"</span><span class="ace_punctuation ace_operator">,</span> <span class="ace_variable">style</span><span class="ace_keyword ace_operator">=</span>dotted<span class="ace_paren ace_rparen">]</span><span class="ace_punctuation ace_operator">;</span></div><div style="height: 14.1333px; top: 636px;" class="ace_line"> Atuador1 <span class="ace_keyword ace_operator">-></span> LogA <span class="ace_paren ace_lparen">[</span><span class="ace_variable">label</span><span class="ace_keyword ace_operator">=</span><span class="ace_string">"Log Ação"</span><span class="ace_punctuation ace_operator">,</span> <span class="ace_variable">style</span><span class="ace_keyword ace_operator">=</span>dotted<span class="ace_paren ace_rparen">]</span><span class="ace_punctuation ace_operator">;</span></div><div style="height: 14.1333px; top: 650.133px;" class="ace_line"> </div><div style="height: 14.1333px; top: 664.267px;" class="ace_line"> LogS <span class="ace_paren ace_lparen">[</span><span class="ace_variable">label</span><span class="ace_keyword ace_operator">=</span><span class="ace_string">"Log_Sensores.txt"</span><span class="ace_punctuation ace_operator">,</span> <span class="ace_variable">shape</span><span class="ace_keyword ace_operator">=</span>note<span class="ace_punctuation ace_operator">,</span> <span class="ace_variable">fillcolor</span><span class="ace_keyword ace_operator">=</span><span class="ace_string">"#FFFFFF"</span><span class="ace_paren ace_rparen">]</span><span class="ace_punctuation ace_operator">;</span></div><div style="height: 14.1333px; top: 678.4px;" class="ace_line"> LogD <span class="ace_paren ace_lparen">[</span><span class="ace_variable">label</span><span class="ace_keyword ace_operator">=</span><span class="ace_string">"Log_Decisoes.txt"</span><span class="ace_punctuation ace_operator">,</span> <span class="ace_variable">shape</span><span class="ace_keyword ace_operator">=</span>note<span class="ace_punctuation ace_operator">,</span> <span class="ace_variable">fillcolor</span><span class="ace_keyword ace_operator">=</span><span class="ace_string">"#FFFFFF"</span><span class="ace_paren ace_rparen">]</span><span class="ace_punctuation ace_operator">;</span></div><div style="height: 14.1333px; top: 692.533px;" class="ace_line"> LogA <span class="ace_paren ace_lparen">[</span><span class="ace_variable">label</span><span class="ace_keyword ace_operator">=</span><span class="ace_string">"Log_Atuadores.txt"</span><span class="ace_punctuation ace_operator">,</span> <span class="ace_variable">shape</span><span class="ace_keyword ace_operator">=</span>note<span class="ace_punctuation ace_operator">,</span> <span class="ace_variable">fillcolor</span><span class="ace_keyword ace_operator">=</span><span class="ace_string">"#FFFFFF"</span><span class="ace_paren ace_rparen">]</span><span class="ace_punctuation ace_operator">;</span></div><div style="height: 14.1333px; top: 706.667px;" class="ace_line"><span class="ace_paren ace_rparen">}</span></div></div><div class="ace_layer ace_marker-layer"></div><div class="ace_layer ace_cursor-layer ace_animate-blinking"><div class="ace_cursor" style="display: block; top: 707px; left: 11px; width: 7px; height: 14.1333px; animation-duration: 1000ms;"></div></div></div></div><div class="ace_scrollbar ace_scrollbar-v" style="display: none; width: 20px; bottom: 0px;"><div class="ace_scrollbar-inner" style="width: 20px; height: 720.8px;"></div></div><div class="ace_scrollbar ace_scrollbar-h" style="display: none; height: 20px; left: 47px; right: 0px;"><div class="ace_scrollbar-inner" style="height: 20px; width: 773px;"></div></div><div style="height: auto; width: auto; top: 0px; left: 0px; visibility: hidden; position: absolute; white-space: pre; font: inherit; overflow: hidden;"><div style="height: auto; width: auto; top: 0px; left: 0px; visibility: hidden; position: absolute; white-space: pre; font: inherit; overflow: visible;">הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה</div><div style="height: auto; width: auto; top: 0px; left: 0px; visibility: hidden; position: absolute; white-space: pre; font-style: inherit; font-variant: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; font-size-adjust: inherit; font-kerning: inherit; font-optical-sizing: inherit; font-language-override: inherit; font-feature-settings: inherit; font-variation-settings: inherit; overflow: visible;">XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX</div></div></pre>
<div id="splitter"></div>
<div id="options">
<label id="engine">
Engine:
<select>
<option>circo</option>
<option selected="selected">dot</option>
<option>fdp</option>
<option>nop</option>
<option>nop2</option>
<option>neato</option>
<option>sfdp</option>
<option>twopi</option>
<option>osage</option>
<option>patchwork</option>
</select>
</label>
<label id="format">
Format:
<select>
<option selected="selected">svg</option>
<option>png</option>
<option>json</option>
<option>xdot</option>
<option>plain</option>
<option>ps</option>
</select>
</label>
<label id="raw" class="">
<input type="checkbox"> Show raw output
</label>
<label>
<a href="data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%221053pt%22%20height%3D%22227pt%22%20viewBox%3D%220.00%200.00%201053.00%20227.00%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%0A%3Cg%20id%3D%22graph0%22%20class%3D%22graph%22%20transform%3D%22scale(1%201)%20rotate(0)%20translate(4%20223)%22%3E%0A%3Ctitle%3EG%3C%2Ftitle%3E%0A%3Cpolygon%20fill%3D%22white%22%20stroke%3D%22none%22%20points%3D%22-4%2C4%20-4%2C-223%201049.17%2C-223%201049.17%2C4%20-4%2C4%22%2F%3E%0A%3Cg%20id%3D%22clust1%22%20class%3D%22cluster%22%3E%0A%3Ctitle%3Ecluster_sensores%3C%2Ftitle%3E%0A%3Cpath%20fill%3D%22%23f0f8ff%22%20stroke%3D%22%232e86c1%22%20d%3D%22M12%2C-8C12%2C-8%20190.21%2C-8%20190.21%2C-8%20196.21%2C-8%20202.21%2C-14%20202.21%2C-20%20202.21%2C-20%20202.21%2C-199%20202.21%2C-199%20202.21%2C-205%20196.21%2C-211%20190.21%2C-211%20190.21%2C-211%2012%2C-211%2012%2C-211%206%2C-211%200%2C-205%200%2C-199%200%2C-199%200%2C-20%200%2C-20%200%2C-14%206%2C-8%2012%2C-8%22%2F%3E%0A%3Ctext%20xml%3Aspace%3D%22preserve%22%20text-anchor%3D%22middle%22%20x%3D%22101.11%22%20y%3D%22-194.4%22%20font-family%3D%22Times%2Cserif%22%20font-size%3D%2214.00%22%3E1.%20Camada%20de%20Sensores%20(Entrada)%3C%2Ftext%3E%0A%3C%2Fg%3E%0A%3Cg%20id%3D%22clust2%22%20class%3D%22cluster%22%3E%0A%3Ctitle%3Ecluster_atuador%3C%2Ftitle%3E%0A%3Cpath%20fill%3D%22%23f0fff0%22%20stroke%3D%22%232ecc71%22%20d%3D%22M628.27%2C-18C628.27%2C-18%20795.6%2C-18%20795.6%2C-18%20801.6%2C-18%20807.6%2C-24%20807.6%2C-30%20807.6%2C-30%20807.6%2C-89%20807.6%2C-89%20807.6%2C-95%20801.6%2C-101%20795.6%2C-101%20795.6%2C-101%20628.27%2C-101%20628.27%2C-101%20622.27%2C-101%20616.27%2C-95%20616.27%2C-89%20616.27%2C-89%20616.27%2C-30%20616.27%2C-30%20616.27%2C-24%20622.27%2C-18%20628.27%2C-18%22%2F%3E%0A%3Ctext%20xml%3Aspace%3D%22preserve%22%20text-anchor%3D%22middle%22%20x%3D%22711.94%22%20y%3D%22-84.4%22%20font-family%3D%22Times%2Cserif%22%20font-size%3D%2214.00%22%3E3.%20Camada%20de%20Atua%C3%A7%C3%A3o%20(Sa%C3%ADda)%3C%2Ftext%3E%0A%3C%2Fg%3E%0A%3C!--%20Sensor1%20--%3E%0A%3Cg%20id%3D%22node1%22%20class%3D%22node%22%3E%0A%3Ctitle%3ESensor1%3C%2Ftitle%3E%0A%3Cpolygon%20fill%3D%22%23eeeeee%22%20stroke%3D%22black%22%20points%3D%22144.41%2C-177.8%2056.8%2C-177.8%2056.8%2C-136.2%20144.41%2C-136.2%20144.41%2C-177.8%22%2F%3E%0A%3Ctext%20xml%3Aspace%3D%22preserve%22%20text-anchor%3D%22middle%22%20x%3D%22100.61%22%20y%3D%22-161.2%22%20font-family%3D%22Helvetica%2Csans-Serif%22%20font-size%3D%2214.00%22%3ESensor%20001%3C%2Ftext%3E%0A%3Ctext%20xml%3Aspace%3D%22preserve%22%20text-anchor%3D%22middle%22%20x%3D%22100.61%22%20y%3D%22-144.4%22%20font-family%3D%22Helvetica%2Csans-Serif%22%20font-size%3D%2214.00%22%3E(Publish)%3C%2Ftext%3E%0A%3C%2Fg%3E%0A%3C!--%20Broker%20--%3E%0A%3Cg%20id%3D%22node4%22%20class%3D%22node%22%3E%0A%3Ctitle%3EBroker%3C%2Ftitle%3E%0A%3Cpath%20fill%3D%22%23ffd700%22%20stroke%3D%22black%22%20d%3D%22M429.04%2C-119.85C429.04%2C-123.88%20405.22%2C-127.15%20375.9%2C-127.15%20346.57%2C-127.15%20322.75%2C-123.88%20322.75%2C-119.85%20322.75%2C-119.85%20322.75%2C-54.15%20322.75%2C-54.15%20322.75%2C-50.12%20346.57%2C-46.85%20375.9%2C-46.85%20405.22%2C-46.85%20429.04%2C-50.12%20429.04%2C-54.15%20429.04%2C-54.15%20429.04%2C-119.85%20429.04%2C-119.85%22%2F%3E%0A%3Cpath%20fill%3D%22none%22%20stroke%3D%22black%22%20d%3D%22M429.04%2C-119.85C429.04%2C-115.82%20405.22%2C-112.55%20375.9%2C-112.55%20346.57%2C-112.55%20322.75%2C-115.82%20322.75%2C-119.85%22%2F%3E%0A%3Ctext%20xml%3Aspace%3D%22preserve%22%20text-anchor%3D%22middle%22%20x%3D%22375.9%22%20y%3D%22-99.6%22%20font-family%3D%22Helvetica%2Csans-Serif%22%20font-size%3D%2214.00%22%3EBroker%20MQTT%3C%2Ftext%3E%0A%3Ctext%20xml%3Aspace%3D%22preserve%22%20text-anchor%3D%22middle%22%20x%3D%22375.9%22%20y%3D%22-82.8%22%20font-family%3D%22Helvetica%2Csans-Serif%22%20font-size%3D%2214.00%22%3E(Mosquitto)%3C%2Ftext%3E%0A%3Ctext%20xml%3Aspace%3D%22preserve%22%20text-anchor%3D%22middle%22%20x%3D%22375.9%22%20y%3D%22-66%22%20font-family%3D%22Helvetica%2Csans-Serif%22%20font-size%3D%2214.00%22%3Elocalhost%3A1883%3C%2Ftext%3E%0A%3C%2Fg%3E%0A%3C!--%20Sensor1%26%2345%3B%26gt%3BBroker%20--%3E%0A%3Cg%20id%3D%22edge1%22%20class%3D%22edge%22%3E%0A%3Ctitle%3ESensor1-%26gt%3BBroker%3C%2Ftitle%3E%0A%3Cpath%20fill%3D%22none%22%20stroke%3D%22black%22%20d%3D%22M144.61%2C-145.99C189.42%2C-134.51%20260.13%2C-116.4%20311.38%2C-103.27%22%2F%3E%0A%3Cpolygon%20fill%3D%22black%22%20stroke%3D%22black%22%20points%3D%22312.04%2C-106.71%20320.86%2C-100.84%20310.3%2C-99.93%20312.04%2C-106.71%22%2F%3E%0A%3Ctext%20xml%3Aspace%3D%22preserve%22%20text-anchor%3D%22middle%22%20x%3D%22253.81%22%20y%3D%22-132.47%22%20font-family%3D%22Times%2Cserif%22%20font-size%3D%2214.00%22%3Esala%2F001%2Fdados%3C%2Ftext%3E%0A%3C%2Fg%3E%0A%3C!--%20LogS%20--%3E%0A%3Cg%20id%3D%22node7%22%20class%3D%22node%22%3E%0A%3Ctitle%3ELogS%3C%2Ftitle%3E%0A%3Cpolygon%20fill%3D%22%23ffffff%22%20stroke%3D%22black%22%20points%3D%22432.38%2C-185%20313.42%2C-185%20313.42%2C-149%20438.38%2C-149%20438.38%2C-179%20432.38%2C-185%22%2F%3E%0A%3Cpolyline%20fill%3D%22none%22%20stroke%3D%22black%22%20points%3D%22432.38%2C-185%20432.38%2C-179%22%2F%3E%0A%3Cpolyline%20fill%3D%22none%22%20stroke%3D%22black%22%20points%3D%22438.38%2C-179%20432.38%2C-179%22%2F%3E%0A%3Ctext%20xml%3Aspace%3D%22preserve%22%20text-anchor%3D%22middle%22%20x%3D%22375.9%22%20y%3D%22-162.8%22%20font-family%3D%22Helvetica%2Csans-Serif%22%20font-size%3D%2214.00%22%3ELog_Sensores.txt%3C%2Ftext%3E%0A%3C%2Fg%3E%0A%3C!--%20Sensor1%26%2345%3B%26gt%3BLogS%20--%3E%0A%3Cg%20id%3D%22edge7%22%20class%3D%22edge%22%3E%0A%3Ctitle%3ESensor1-%26gt%3BLogS%3C%2Ftitle%3E%0A%3Cpath%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-dasharray%3D%221%2C5%22%20d%3D%22M144.61%2C-158.57C186.65%2C-160.11%20251.49%2C-162.48%20301.67%2C-164.32%22%2F%3E%0A%3Cpolygon%20fill%3D%22black%22%20stroke%3D%22black%22%20points%3D%22301.47%2C-167.82%20311.6%2C-164.68%20301.73%2C-160.82%20301.47%2C-167.82%22%2F%3E%0A%3Ctext%20xml%3Aspace%3D%22preserve%22%20text-anchor%3D%22middle%22%20x%3D%22253.81%22%20y%3D%22-168.25%22%20font-family%3D%22Times%2Cserif%22%20font-size%3D%2214.00%22%3ELog%20Leitura%3C%2Ftext%3E%0A%3C%2Fg%3E%0A%3C!--%20Sensor2%20--%3E%0A%3Cg%20id%3D%22node2%22%20class%3D%22node%22%3E%0A%3Ctitle%3ESensor2%3C%2Ftitle%3E%0A%3Cpolygon%20fill%3D%22%23eeeeee%22%20stroke%3D%22black%22%20points%3D%22144.41%2C-117.8%2056.8%2C-117.8%2056.8%2C-76.2%20144.41%2C-76.2%20144.41%2C-117.8%22%2F%3E%0A%3Ctext%20xml%3Aspace%3D%22preserve%22%20text-anchor%3D%22middle%22%20x%3D%22100.61%22%20y%3D%22-101.2%22%20font-family%3D%22Helvetica%2Csans-Serif%22%20font-size%3D%2214.00%22%3ESensor%20002%3C%2Ftext%3E%0A%3Ctext%20xml%3Aspace%3D%22preserve%22%20text-anchor%3D%22middle%22%20x%3D%22100.61%22%20y%3D%22-84.4%22%20font-family%3D%22Helvetica%2Csans-Serif%22%20font-size%3D%2214.00%22%3E(Publish)%3C%2Ftext%3E%0A%3C%2Fg%3E%0A%3C!--%20Sensor2%26%2345%3B%26gt%3BBroker%20--%3E%0A%3Cg%20id%3D%22edge2%22%20class%3D%22edge%22%3E%0A%3Ctitle%3ESensor2-%26gt%3BBroker%3C%2Ftitle%3E%0A%3Cpath%20fill%3D%22none%22%20stroke%3D%22black%22%20d%3D%22M144.9%2C-92.83C165.3%2C-91.05%20189.98%2C-89.16%20212.21%2C-88.2%20244.86%2C-86.78%20281.24%2C-86.4%20311.3%2C-86.41%22%2F%3E%0A%3Cpolygon%20fill%3D%22black%22%20stroke%3D%22black%22%20points%3D%22310.97%2C-89.91%20320.97%2C-86.43%20310.98%2C-82.91%20310.97%2C-89.91%22%2F%3E%0A%3Ctext%20xml%3Aspace%3D%22preserve%22%20text-anchor%3D%22middle%22%20x%3D%22253.81%22%20y%3D%22-92.4%22%20font-family%3D%22Times%2Cserif%22%20font-size%3D%2214.00%22%3Esala%2F002%2Fdados%3C%2Ftext%3E%0A%3C%2Fg%3E%0A%3C!--%20Sensor3%20--%3E%0A%3Cg%20id%3D%22node3%22%20class%3D%22node%22%3E%0A%3Ctitle%3ESensor3%3C%2Ftitle%3E%0A%3Cpolygon%20fill%3D%22%23eeeeee%22%20stroke%3D%22black%22%20points%3D%22144.41%2C-57.8%2056.8%2C-57.8%2056.8%2C-16.2%20144.41%2C-16.2%20144.41%2C-57.8%22%2F%3E%0A%3Ctext%20xml%3Aspace%3D%22preserve%22%20text-anchor%3D%22middle%22%20x%3D%22100.61%22%20y%3D%22-41.2%22%20font-family%3D%22Helvetica%2Csans-Serif%22%20font-size%3D%2214.00%22%3ESensor%20003%3C%2Ftext%3E%0A%3Ctext%20xml%3Aspace%3D%22preserve%22%20text-anchor%3D%22middle%22%20x%3D%22100.61%22%20y%3D%22-24.4%22%20font-family%3D%22Helvetica%2Csans-Serif%22%20font-size%3D%2214.00%22%3E(Publish)%3C%2Ftext%3E%0A%3C%2Fg%3E%0A%3C!--%20Sensor3%26%2345%3B%26gt%3BBroker%20--%3E%0A%3Cg%20id%3D%22edge3%22%20class%3D%22edge%22%3E%0A%3Ctitle%3ESensor3-%26gt%3BBroker%3C%2Ftitle%3E%0A%3Cpath%20fill%3D%22none%22%20stroke%3D%22black%22%20d%3D%22M144.6%2C-41.71C184.05%2C-46.4%20244%2C-54.45%20295.42%2C-65.2%20300.66%2C-66.3%20306.06%2C-67.54%20311.47%2C-68.86%22%2F%3E%0A%3Cpolygon%20fill%3D%22black%22%20stroke%3D%22black%22%20points%3D%22310.51%2C-72.22%20321.07%2C-71.28%20312.23%2C-65.44%20310.51%2C-72.22%22%2F%3E%0A%3Ctext%20xml%3Aspace%3D%22preserve%22%20text-anchor%3D%22middle%22%20x%3D%22253.81%22%20y%3D%22-69.4%22%20font-family%3D%22Times%2Cserif%22%20font-size%3D%2214.00%22%3Esala%2F003%2Fdados%3C%2Ftext%3E%0A%3C%2Fg%3E%0A%3C!--%20ServidorContexto%20--%3E%0A%3Cg%20id%3D%22node5%22%20class%3D%22node%22%3E%0A%3Ctitle%3EServidorContexto%3C%2Ftitle%3E%0A%3Cpolygon%20fill%3D%22%23a9cce3%22%20stroke%3D%22black%22%20points%3D%22788.69%2C-170.2%20634.19%2C-170.2%20634.19%2C-111.8%20788.69%2C-111.8%20788.69%2C-170.2%22%2F%3E%0A%3Ctext%20xml%3Aspace%3D%22preserve%22%20text-anchor%3D%22middle%22%20x%3D%22711.44%22%20y%3D%22-153.6%22%20font-family%3D%22Helvetica%2Csans-Serif%22%20font-size%3D%2214.00%22%3EServidor%20de%20Contexto%3C%2Ftext%3E%0A%3Ctext%20xml%3Aspace%3D%22preserve%22%20text-anchor%3D%22middle%22%20x%3D%22711.44%22%20y%3D%22-136.8%22%20font-family%3D%22Helvetica%2Csans-Serif%22%20font-size%3D%2214.00%22%3E(Subscriber%2FPublisher)%3C%2Ftext%3E%0A%3Ctext%20xml%3Aspace%3D%22preserve%22%20text-anchor%3D%22middle%22%20x%3D%22711.44%22%20y%3D%22-120%22%20font-family%3D%22Helvetica%2Csans-Serif%22%20font-size%3D%2214.00%22%3EPython%3C%2Ftext%3E%0A%3C%2Fg%3E%0A%3C!--%20Broker%26%2345%3B%26gt%3BServidorContexto%20--%3E%0A%3Cg%20id%3D%22edge4%22%20class%3D%22edge%22%3E%0A%3Ctitle%3EBroker-%26gt%3BServidorContexto%3C%2Ftitle%3E%0A%3Cpath%20fill%3D%22none%22%20stroke%3D%22%232e86c1%22%20stroke-dasharray%3D%225%2C2%22%20d%3D%22M429.46%2C-76.96C475.62%2C-70.52%20543.75%2C-66.9%20598.27%2C-88.4%20608.39%2C-92.39%20607.02%2C-99.26%20616.27%2C-105%20618.83%2C-106.59%20621.47%2C-108.13%20624.18%2C-109.61%22%2F%3E%0A%3Cpolygon%20fill%3D%22%232e86c1%22%20stroke%3D%22%232e86c1%22%20points%3D%22622.34%2C-112.6%20632.83%2C-114.08%20625.55%2C-106.38%20622.34%2C-112.6%22%2F%3E%0A%3Ctext%20xml%3Aspace%3D%22preserve%22%20text-anchor%3D%22middle%22%20x%3D%22527.32%22%20y%3D%22-109.4%22%20font-family%3D%22Times%2Cserif%22%20font-size%3D%2214.00%22%3Esala%2F%2B%2Fdados%3C%2Ftext%3E%0A%3Ctext%20xml%3Aspace%3D%22preserve%22%20text-anchor%3D%22middle%22%20x%3D%22527.32%22%20y%3D%22-92.6%22%20font-family%3D%22Times%2Cserif%22%20font-size%3D%2214.00%22%3E(Assinatura%20Concorrente)%3C%2Ftext%3E%0A%3C%2Fg%3E%0A%3C!--%20Atuador1%20--%3E%0A%3Cg%20id%3D%22node6%22%20class%3D%22node%22%3E%0A%3Ctitle%3EAtuador1%3C%2Ftitle%3E%0A%3Cpolygon%20fill%3D%22%23eeeeee%22%20stroke%3D%22black%22%20points%3D%22757.58%2C-67.8%20665.3%2C-67.8%20665.3%2C-26.2%20757.58%2C-26.2%20757.58%2C-67.8%22%2F%3E%0A%3Ctext%20xml%3Aspace%3D%22preserve%22%20text-anchor%3D%22middle%22%20x%3D%22711.44%22%20y%3D%22-51.2%22%20font-family%3D%22Helvetica%2Csans-Serif%22%20font-size%3D%2214.00%22%3EAtuador%20001%3C%2Ftext%3E%0A%3Ctext%20xml%3Aspace%3D%22preserve%22%20text-anchor%3D%22middle%22%20x%3D%22711.44%22%20y%3D%22-34.4%22%20font-family%3D%22Helvetica%2Csans-Serif%22%20font-size%3D%2214.00%22%3E(Subscribe)%3C%2Ftext%3E%0A%3C%2Fg%3E%0A%3C!--%20Broker%26%2345%3B%26gt%3BAtuador1%20--%3E%0A%3Cg%20id%3D%22edge6%22%20class%3D%22edge%22%3E%0A%3Ctitle%3EBroker-%26gt%3BAtuador1%3C%2Ftitle%3E%0A%3Cpath%20fill%3D%22none%22%20stroke%3D%22%23c0392b%22%20d%3D%22M429.11%2C-57.47C437.97%2C-53.65%20447.25%2C-50.33%20456.38%2C-48.2%20522.86%2C-32.67%20601.83%2C-35.48%20653.88%2C-40.13%22%2F%3E%0A%3Cpolygon%20fill%3D%22%23c0392b%22%20stroke%3D%22%23c0392b%22%20points%3D%22653.42%2C-43.61%20663.71%2C-41.07%20654.08%2C-36.64%20653.42%2C-43.61%22%2F%3E%0A%3Ctext%20xml%3Aspace%3D%22preserve%22%20text-anchor%3D%22middle%22%20x%3D%22527.32%22%20y%3D%22-52.4%22%20font-family%3D%22Times%2Cserif%22%20font-size%3D%2214.00%22%3Eatuador%2F001%2Fcomando%3C%2Ftext%3E%0A%3C%2Fg%3E%0A%3C!--%20ServidorContexto%26%2345%3B%26gt%3BBroker%20--%3E%0A%3Cg%20id%3D%22edge5%22%20class%3D%22edge%22%3E%0A%3Ctitle%3EServidorContexto-%26gt%3BBroker%3C%2Ftitle%3E%0A%3Cpath%20fill%3D%22none%22%20stroke%3D%22%23c0392b%22%20stroke-width%3D%222%22%20d%3D%22M633.77%2C-142C582.79%2C-141.03%20514.74%2C-136.58%20456.38%2C-122%20450.94%2C-120.64%20445.4%2C-118.94%20439.92%2C-117.02%22%2F%3E%0A%3Cpolygon%20fill%3D%22%23c0392b%22%20stroke%3D%22%23c0392b%22%20stroke-width%3D%222%22%20points%3D%22442.88%2C-114.4%20432.29%2C-114.17%20440.43%2C-120.95%20442.88%2C-114.4%22%2F%3E%0A%3Ctext%20xml%3Aspace%3D%22preserve%22%20text-anchor%3D%22middle%22%20x%3D%22527.32%22%20y%3D%22-161.54%22%20font-family%3D%22Times%2Cserif%22%20font-size%3D%2214.00%22%3Eatuador%2F001%2Fcomando%3C%2Ftext%3E%0A%3Ctext%20xml%3Aspace%3D%22preserve%22%20text-anchor%3D%22middle%22%20x%3D%22527.32%22%20y%3D%22-144.74%22%20font-family%3D%22Times%2Cserif%22%20font-size%3D%2214.00%22%3E(Decis%C3%A3o%20de%20A%C3%A7%C3%A3o)%3C%2Ftext%3E%0A%3C%2Fg%3E%0A%3C!--%20LogD%20--%3E%0A%3Cg%20id%3D%22node8%22%20class%3D%22node%22%3E%0A%3Ctitle%3ELogD%3C%2Ftitle%3E%0A%3Cpolygon%20fill%3D%22%23ffffff%22%20stroke%3D%22black%22%20points%3D%221036.05%2C-159%20918.65%2C-159%20918.65%2C-123%201042.05%2C-123%201042.05%2C-153%201036.05%2C-159%22%2F%3E%0A%3Cpolyline%20fill%3D%22none%22%20stroke%3D%22black%22%20points%3D%221036.05%2C-159%201036.05%2C-153%22%2F%3E%0A%3Cpolyline%20fill%3D%22none%22%20stroke%3D%22black%22%20points%3D%221042.05%2C-153%201036.05%2C-153%22%2F%3E%0A%3Ctext%20xml%3Aspace%3D%22preserve%22%20text-anchor%3D%22middle%22%20x%3D%22980.35%22%20y%3D%22-136.8%22%20font-family%3D%22Helvetica%2Csans-Serif%22%20font-size%3D%2214.00%22%3ELog_Decisoes.txt%3C%2Ftext%3E%0A%3C%2Fg%3E%0A%3C!--%20ServidorContexto%26%2345%3B%26gt%3BLogD%20--%3E%0A%3Cg%20id%3D%22edge8%22%20class%3D%22edge%22%3E%0A%3Ctitle%3EServidorContexto-%26gt%3BLogD%3C%2Ftitle%3E%0A%3Cpath%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-dasharray%3D%221%2C5%22%20d%3D%22M788.92%2C-141C826.2%2C-141%20870.77%2C-141%20907.42%2C-141%22%2F%3E%0A%3Cpolygon%20fill%3D%22black%22%20stroke%3D%22black%22%20points%3D%22907.01%2C-144.5%20917.01%2C-141%20907.01%2C-137.5%20907.01%2C-144.5%22%2F%3E%0A%3Ctext%20xml%3Aspace%3D%22preserve%22%20text-anchor%3D%22middle%22%20x%3D%22861.57%22%20y%3D%22-145.2%22%20font-family%3D%22Times%2Cserif%22%20font-size%3D%2214.00%22%3ELog%20Decis%C3%A3o%3C%2Ftext%3E%0A%3C%2Fg%3E%0A%3C!--%20LogA%20--%3E%0A%3Cg%20id%3D%22node9%22%20class%3D%22node%22%3E%0A%3Ctitle%3ELogA%3C%2Ftitle%3E%0A%3Cpolygon%20fill%3D%22%23ffffff%22%20stroke%3D%22black%22%20points%3D%221039.17%2C-65%20915.53%2C-65%20915.53%2C-29%201045.17%2C-29%201045.17%2C-59%201039.17%2C-65%22%2F%3E%0A%3Cpolyline%20fill%3D%22none%22%20stroke%3D%22black%22%20points%3D%221039.17%2C-65%201039.17%2C-59%22%2F%3E%0A%3Cpolyline%20fill%3D%22none%22%20stroke%3D%22black%22%20points%3D%221045.17%2C-59%201039.17%2C-59%22%2F%3E%0A%3Ctext%20xml%3Aspace%3D%22preserve%22%20text-anchor%3D%22middle%22%20x%3D%22980.35%22%20y%3D%22-42.8%22%20font-family%3D%22Helvetica%2Csans-Serif%22%20font-size%3D%2214.00%22%3ELog_Atuadores.txt%3C%2Ftext%3E%0A%3C%2Fg%3E%0A%3C!--%20Atuador1%26%2345%3B%26gt%3BLogA%20--%3E%0A%3Cg%20id%3D%22edge9%22%20class%3D%22edge%22%3E%0A%3Ctitle%3EAtuador1-%26gt%3BLogA%3C%2Ftitle%3E%0A%3Cpath%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-dasharray%3D%221%2C5%22%20d%3D%22M758.02%2C-47C797.98%2C-47%20856.86%2C-47%20903.84%2C-47%22%2F%3E%0A%3Cpolygon%20fill%3D%22black%22%20stroke%3D%22black%22%20points%3D%22903.69%2C-50.5%20913.69%2C-47%20903.69%2C-43.5%20903.69%2C-50.5%22%2F%3E%0A%3Ctext%20xml%3Aspace%3D%22preserve%22%20text-anchor%3D%22middle%22%20x%3D%22861.57%22%20y%3D%22-51.2%22%20font-family%3D%22Times%2Cserif%22%20font-size%3D%2214.00%22%3ELog%20A%C3%A7%C3%A3o%3C%2Ftext%3E%0A%3C%2Fg%3E%0A%3C%2Fg%3E%0A%3C%2Fsvg%3E" target="_blank" id="download" download="graphviz.svg">Download</a>
</label>
<label>
<input type="button" value="Share" id="share">
</label>
<input type="input" id="shareurl">
</div>
<div id="review" class="">
<div id="error"></div>
<a><svg width="1053pt" height="227pt" xmlns="http://www.w3.org/2000/svg" xlink="http://www.w3.org/1999/xlink" ev="http://www.w3.org/2001/xml-events" style="overflow: hidden; "><g id="viewport-20251209204517036" class="svg-pan-zoom_viewport" transform="matrix(0.7422767281532288,0,0,0.7422767281532288,12.708576202392578,283.2022399902344)" style="transform: matrix(0.742277, 0, 0, 0.742277, 12.7086, 283.202);">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 223)">
<title>G</title>
<polygon fill="white" stroke="none" points="-4,4 -4,-223 1049.17,-223 1049.17,4 -4,4"></polygon>
<g id="clust1" class="cluster">
<title>cluster_sensores</title>
<path fill="#f0f8ff" stroke="#2e86c1" d="M12,-8C12,-8 190.21,-8 190.21,-8 196.21,-8 202.21,-14 202.21,-20 202.21,-20 202.21,-199 202.21,-199 202.21,-205 196.21,-211 190.21,-211 190.21,-211 12,-211 12,-211 6,-211 0,-205 0,-199 0,-199 0,-20 0,-20 0,-14 6,-8 12,-8"></path>
<text xml:space="preserve" text-anchor="middle" x="101.11" y="-194.4" font-family="Times,serif" font-size="14.00">1. Camada de Sensores (Entrada)</text>
</g>
<g id="clust2" class="cluster">
<title>cluster_atuador</title>
<path fill="#f0fff0" stroke="#2ecc71" d="M628.27,-18C628.27,-18 795.6,-18 795.6,-18 801.6,-18 807.6,-24 807.6,-30 807.6,-30 807.6,-89 807.6,-89 807.6,-95 801.6,-101 795.6,-101 795.6,-101 628.27,-101 628.27,-101 622.27,-101 616.27,-95 616.27,-89 616.27,-89 616.27,-30 616.27,-30 616.27,-24 622.27,-18 628.27,-18"></path>
<text xml:space="preserve" text-anchor="middle" x="711.94" y="-84.4" font-family="Times,serif" font-size="14.00">3. Camada de Atuação (Saída)</text>
</g>
<!-- Sensor1 -->
<g id="node1" class="node">
<title>Sensor1</title>
<polygon fill="#eeeeee" stroke="black" points="144.41,-177.8 56.8,-177.8 56.8,-136.2 144.41,-136.2 144.41,-177.8"></polygon>
<text xml:space="preserve" text-anchor="middle" x="100.61" y="-161.2" font-family="Helvetica,sans-Serif" font-size="14.00">Sensor 001</text>
<text xml:space="preserve" text-anchor="middle" x="100.61" y="-144.4" font-family="Helvetica,sans-Serif" font-size="14.00">(Publish)</text>
</g>
<!-- Broker -->
<g id="node4" class="node">
<title>Broker</title>
<path fill="#ffd700" stroke="black" d="M429.04,-119.85C429.04,-123.88 405.22,-127.15 375.9,-127.15 346.57,-127.15 322.75,-123.88 322.75,-119.85 322.75,-119.85 322.75,-54.15 322.75,-54.15 322.75,-50.12 346.57,-46.85 375.9,-46.85 405.22,-46.85 429.04,-50.12 429.04,-54.15 429.04,-54.15 429.04,-119.85 429.04,-119.85"></path>
<path fill="none" stroke="black" d="M429.04,-119.85C429.04,-115.82 405.22,-112.55 375.9,-112.55 346.57,-112.55 322.75,-115.82 322.75,-119.85"></path>
<text xml:space="preserve" text-anchor="middle" x="375.9" y="-99.6" font-family="Helvetica,sans-Serif" font-size="14.00">Broker MQTT</text>
<text xml:space="preserve" text-anchor="middle" x="375.9" y="-82.8" font-family="Helvetica,sans-Serif" font-size="14.00">(Mosquitto)</text>
<text xml:space="preserve" text-anchor="middle" x="375.9" y="-66" font-family="Helvetica,sans-Serif" font-size="14.00">localhost:1883</text>
</g>
<!-- Sensor1->Broker -->
<g id="edge1" class="edge">
<title>Sensor1->Broker</title>
<path fill="none" stroke="black" d="M144.61,-145.99C189.42,-134.51 260.13,-116.4 311.38,-103.27"></path>
<polygon fill="black" stroke="black" points="312.04,-106.71 320.86,-100.84 310.3,-99.93 312.04,-106.71"></polygon>
<text xml:space="preserve" text-anchor="middle" x="253.81" y="-132.47" font-family="Times,serif" font-size="14.00">sala/001/dados</text>
</g>
<!-- LogS -->
<g id="node7" class="node">
<title>LogS</title>
<polygon fill="#ffffff" stroke="black" points="432.38,-185 313.42,-185 313.42,-149 438.38,-149 438.38,-179 432.38,-185"></polygon>
<polyline fill="none" stroke="black" points="432.38,-185 432.38,-179"></polyline>
<polyline fill="none" stroke="black" points="438.38,-179 432.38,-179"></polyline>
<text xml:space="preserve" text-anchor="middle" x="375.9" y="-162.8" font-family="Helvetica,sans-Serif" font-size="14.00">Log_Sensores.txt</text>
</g>
<!-- Sensor1->LogS -->
<g id="edge7" class="edge">
<title>Sensor1->LogS</title>
<path fill="none" stroke="black" stroke-dasharray="1,5" d="M144.61,-158.57C186.65,-160.11 251.49,-162.48 301.67,-164.32"></path>
<polygon fill="black" stroke="black" points="301.47,-167.82 311.6,-164.68 301.73,-160.82 301.47,-167.82"></polygon>
<text xml:space="preserve" text-anchor="middle" x="253.81" y="-168.25" font-family="Times,serif" font-size="14.00">Log Leitura</text>
</g>
<!-- Sensor2 -->
<g id="node2" class="node">
<title>Sensor2</title>
<polygon fill="#eeeeee" stroke="black" points="144.41,-117.8 56.8,-117.8 56.8,-76.2 144.41,-76.2 144.41,-117.8"></polygon>
<text xml:space="preserve" text-anchor="middle" x="100.61" y="-101.2" font-family="Helvetica,sans-Serif" font-size="14.00">Sensor 002</text>
<text xml:space="preserve" text-anchor="middle" x="100.61" y="-84.4" font-family="Helvetica,sans-Serif" font-size="14.00">(Publish)</text>
</g>
<!-- Sensor2->Broker -->
<g id="edge2" class="edge">
<title>Sensor2->Broker</title>
<path fill="none" stroke="black" d="M144.9,-92.83C165.3,-91.05 189.98,-89.16 212.21,-88.2 244.86,-86.78 281.24,-86.4 311.3,-86.41"></path>
<polygon fill="black" stroke="black" points="310.97,-89.91 320.97,-86.43 310.98,-82.91 310.97,-89.91"></polygon>
<text xml:space="preserve" text-anchor="middle" x="253.81" y="-92.4" font-family="Times,serif" font-size="14.00">sala/002/dados</text>
</g>
<!-- Sensor3 -->
<g id="node3" class="node">
<title>Sensor3</title>
<polygon fill="#eeeeee" stroke="black" points="144.41,-57.8 56.8,-57.8 56.8,-16.2 144.41,-16.2 144.41,-57.8"></polygon>
<text xml:space="preserve" text-anchor="middle" x="100.61" y="-41.2" font-family="Helvetica,sans-Serif" font-size="14.00">Sensor 003</text>
<text xml:space="preserve" text-anchor="middle" x="100.61" y="-24.4" font-family="Helvetica,sans-Serif" font-size="14.00">(Publish)</text>
</g>
<!-- Sensor3->Broker -->
<g id="edge3" class="edge">
<title>Sensor3->Broker</title>
<path fill="none" stroke="black" d="M144.6,-41.71C184.05,-46.4 244,-54.45 295.42,-65.2 300.66,-66.3 306.06,-67.54 311.47,-68.86"></path>
<polygon fill="black" stroke="black" points="310.51,-72.22 321.07,-71.28 312.23,-65.44 310.51,-72.22"></polygon>
<text xml:space="preserve" text-anchor="middle" x="253.81" y="-69.4" font-family="Times,serif" font-size="14.00">sala/003/dados</text>
</g>
<!-- ServidorContexto -->
<g id="node5" class="node">
<title>ServidorContexto</title>
<polygon fill="#a9cce3" stroke="black" points="788.69,-170.2 634.19,-170.2 634.19,-111.8 788.69,-111.8 788.69,-170.2"></polygon>
<text xml:space="preserve" text-anchor="middle" x="711.44" y="-153.6" font-family="Helvetica,sans-Serif" font-size="14.00">Servidor de Contexto</text>
<text xml:space="preserve" text-anchor="middle" x="711.44" y="-136.8" font-family="Helvetica,sans-Serif" font-size="14.00">(Subscriber/Publisher)</text>
<text xml:space="preserve" text-anchor="middle" x="711.44" y="-120" font-family="Helvetica,sans-Serif" font-size="14.00">Python</text>
</g>
<!-- Broker->ServidorContexto -->
<g id="edge4" class="edge">
<title>Broker->ServidorContexto</title>
<path fill="none" stroke="#2e86c1" stroke-dasharray="5,2" d="M429.46,-76.96C475.62,-70.52 543.75,-66.9 598.27,-88.4 608.39,-92.39 607.02,-99.26 616.27,-105 618.83,-106.59 621.47,-108.13 624.18,-109.61"></path>
<polygon fill="#2e86c1" stroke="#2e86c1" points="622.34,-112.6 632.83,-114.08 625.55,-106.38 622.34,-112.6"></polygon>
<text xml:space="preserve" text-anchor="middle" x="527.32" y="-109.4" font-family="Times,serif" font-size="14.00">sala/+/dados</text>
<text xml:space="preserve" text-anchor="middle" x="527.32" y="-92.6" font-family="Times,serif" font-size="14.00">(Assinatura Concorrente)</text>
</g>
<!-- Atuador1 -->
<g id="node6" class="node">
<title>Atuador1</title>
<polygon fill="#eeeeee" stroke="black" points="757.58,-67.8 665.3,-67.8 665.3,-26.2 757.58,-26.2 757.58,-67.8"></polygon>
<text xml:space="preserve" text-anchor="middle" x="711.44" y="-51.2" font-family="Helvetica,sans-Serif" font-size="14.00">Atuador 001</text>
<text xml:space="preserve" text-anchor="middle" x="711.44" y="-34.4" font-family="Helvetica,sans-Serif" font-size="14.00">(Subscribe)</text>
</g>
<!-- Broker->Atuador1 -->
<g id="edge6" class="edge">
<title>Broker->Atuador1</title>
<path fill="none" stroke="#c0392b" d="M429.11,-57.47C437.97,-53.65 447.25,-50.33 456.38,-48.2 522.86,-32.67 601.83,-35.48 653.88,-40.13"></path>
<polygon fill="#c0392b" stroke="#c0392b" points="653.42,-43.61 663.71,-41.07 654.08,-36.64 653.42,-43.61"></polygon>
<text xml:space="preserve" text-anchor="middle" x="527.32" y="-52.4" font-family="Times,serif" font-size="14.00">atuador/001/comando</text>
</g>
<!-- ServidorContexto->Broker -->
<g id="edge5" class="edge">
<title>ServidorContexto->Broker</title>
<path fill="none" stroke="#c0392b" stroke-width="2" d="M633.77,-142C582.79,-141.03 514.74,-136.58 456.38,-122 450.94,-120.64 445.4,-118.94 439.92,-117.02"></path>
<polygon fill="#c0392b" stroke="#c0392b" stroke-width="2" points="442.88,-114.4 432.29,-114.17 440.43,-120.95 442.88,-114.4"></polygon>
<text xml:space="preserve" text-anchor="middle" x="527.32" y="-161.54" font-family="Times,serif" font-size="14.00">atuador/001/comando</text>
<text xml:space="preserve" text-anchor="middle" x="527.32" y="-144.74" font-family="Times,serif" font-size="14.00">(Decisão de Ação)</text>
</g>
<!-- LogD -->
<g id="node8" class="node">
<title>LogD</title>
<polygon fill="#ffffff" stroke="black" points="1036.05,-159 918.65,-159 918.65,-123 1042.05,-123 1042.05,-153 1036.05,-159"></polygon>
<polyline fill="none" stroke="black" points="1036.05,-159 1036.05,-153"></polyline>
<polyline fill="none" stroke="black" points="1042.05,-153 1036.05,-153"></polyline>
<text xml:space="preserve" text-anchor="middle" x="980.35" y="-136.8" font-family="Helvetica,sans-Serif" font-size="14.00">Log_Decisoes.txt</text>
</g>
<!-- ServidorContexto->LogD -->
<g id="edge8" class="edge">
<title>ServidorContexto->LogD</title>
<path fill="none" stroke="black" stroke-dasharray="1,5" d="M788.92,-141C826.2,-141 870.77,-141 907.42,-141"></path>
<polygon fill="black" stroke="black" points="907.01,-144.5 917.01,-141 907.01,-137.5 907.01,-144.5"></polygon>
<text xml:space="preserve" text-anchor="middle" x="861.57" y="-145.2" font-family="Times,serif" font-size="14.00">Log Decisão</text>
</g>
<!-- LogA -->
<g id="node9" class="node">
<title>LogA</title>
<polygon fill="#ffffff" stroke="black" points="1039.17,-65 915.53,-65 915.53,-29 1045.17,-29 1045.17,-59 1039.17,-65"></polygon>
<polyline fill="none" stroke="black" points="1039.17,-65 1039.17,-59"></polyline>
<polyline fill="none" stroke="black" points="1045.17,-59 1039.17,-59"></polyline>
<text xml:space="preserve" text-anchor="middle" x="980.35" y="-42.8" font-family="Helvetica,sans-Serif" font-size="14.00">Log_Atuadores.txt</text>
</g>
<!-- Atuador1->LogA -->
<g id="edge9" class="edge">
<title>Atuador1->LogA</title>
<path fill="none" stroke="black" stroke-dasharray="1,5" d="M758.02,-47C797.98,-47 856.86,-47 903.84,-47"></path>
<polygon fill="black" stroke="black" points="903.69,-50.5 913.69,-47 903.69,-43.5 903.69,-50.5"></polygon>
<text xml:space="preserve" text-anchor="middle" x="861.57" y="-51.2" font-family="Times,serif" font-size="14.00">Log Ação</text>
</g>
</g>
</g><defs><style id="svg-pan-zoom-controls-styles" type="text/css">.svg-
pan-zoom-control { cursor: pointer; fill: black; fill-opacity: 0.333; }
.svg-pan-zoom-control:hover { fill-opacity: 0.8; }
.svg-pan-zoom-control-background { fill: white; fill-opacity: 0.5; }
.svg-pan-zoom-control-background { fill-opacity: 0.8; }</style></defs><g id="svg-pan-zoom-controls" transform="translate(745 658) scale(0.75)" class="svg-pan-zoom-control"><g id="svg-pan-zoom-zoom-in" transform="translate(30.5 5) scale(0.015)" class="svg-pan-zoom-control"><rect x="0" y="0" width="1500" height="1400" class="svg-pan-zoom-control-background"></rect><path d="M1280 576v128q0 26 -19 45t-45 19h-320v320q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-320h-320q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h320v-320q0 -26 19 -45t45 -19h128q26 0 45 19t19 45v320h320q26 0 45 19t19 45zM1536 1120v-960 q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" class="svg-pan-zoom-control-element"></path></g><g id="svg-pan-zoom-reset-pan-zoom" transform="translate(5 35) scale(0.4)" class="svg-pan-zoom-control"><rect x="2" y="2" width="182" height="58" class="svg-pan-zoom-control-background"></rect><path d="M33.051,20.632c-0.742-0.406-1.854-0.609-3.338-0.609h-7.969v9.281h7.769c1.543,0,2.701-0.188,3.473-0.562c1.365-0.656,2.048-1.953,2.048-3.891C35.032,22.757,34.372,21.351,33.051,20.632z" class="svg-pan-zoom-control-element"></path><path d="M170.231,0.5H15.847C7.102,0.5,0.5,5.708,0.5,11.84v38.861C0.5,56.833,7.102,61.5,15.847,61.5h154.384c8.745,0,15.269-4.667,15.269-10.798V11.84C185.5,5.708,178.976,0.5,170.231,0.5z M42.837,48.569h-7.969c-0.219-0.766-0.375-1.383-0.469-1.852c-0.188-0.969-0.289-1.961-0.305-2.977l-0.047-3.211c-0.03-2.203-0.41-3.672-1.142-4.406c-0.732-0.734-2.103-1.102-4.113-1.102h-7.05v13.547h-7.055V14.022h16.524c2.361,0.047,4.178,0.344,5.45,0.891c1.272,0.547,2.351,1.352,3.234,2.414c0.731,0.875,1.31,1.844,1.737,2.906s0.64,2.273,0.64,3.633c0,1.641-0.414,3.254-1.242,4.84s-2.195,2.707-4.102,3.363c1.594,0.641,2.723,1.551,3.387,2.73s0.996,2.98,0.996,5.402v2.32c0,1.578,0.063,2.648,0.19,3.211c0.19,0.891,0.635,1.547,1.333,1.969V48.569z M75.579,48.569h-26.18V14.022h25.336v6.117H56.454v7.336h16.781v6H56.454v8.883h19.125V48.569z M104.497,46.331c-2.44,2.086-5.887,3.129-10.34,3.129c-4.548,0-8.125-1.027-10.731-3.082s-3.909-4.879-3.909-8.473h6.891c0.224,1.578,0.662,2.758,1.316,3.539c1.196,1.422,3.246,2.133,6.15,2.133c1.739,0,3.151-0.188,4.236-0.562c2.058-0.719,3.087-2.055,3.087-4.008c0-1.141-0.504-2.023-1.512-2.648c-1.008-0.609-2.607-1.148-4.796-1.617l-3.74-0.82c-3.676-0.812-6.201-1.695-7.576-2.648c-2.328-1.594-3.492-4.086-3.492-7.477c0-3.094,1.139-5.664,3.417-7.711s5.623-3.07,10.036-3.07c3.685,0,6.829,0.965,9.431,2.895c2.602,1.93,3.966,4.73,4.093,8.402h-6.938c-0.128-2.078-1.057-3.555-2.787-4.43c-1.154-0.578-2.587-0.867-4.301-0.867c-1.907,0-3.428,0.375-4.565,1.125c-1.138,0.75-1.706,1.797-1.706,3.141c0,1.234,0.561,2.156,1.682,2.766c0.721,0.406,2.25,0.883,4.589,1.43l6.063,1.43c2.657,0.625,4.648,1.461,5.975,2.508c2.059,1.625,3.089,3.977,3.089,7.055C108.157,41.624,106.937,44.245,104.497,46.331z M139.61,48.569h-26.18V14.022h25.336v6.117h-18.281v7.336h16.781v6h-16.781v8.883h19.125V48.569z M170.337,20.14h-10.336v28.43h-7.266V20.14h-10.383v-6.117h27.984V20.14z" class="svg-pan-zoom-control-element"></path></g><g id="svg-pan-zoom-zoom-out" transform="translate(30.5 70) scale(0.015)" class="svg-pan-zoom-control"><rect x="0" y="0" width="1500" height="1400" class="svg-pan-zoom-control-background"></rect><path d="M1280 576v128q0 26 -19 45t-45 19h-896q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h896q26 0 45 19t19 45zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5 t84.5 -203.5z" class="svg-pan-zoom-control-element"></path></g></g></svg></a></div>
<div id="status"></div>
<div class="github-fork-ribbon-wrapper right">
<div class="github-fork-ribbon">
<a href="https://github.com/dreampuf/graphvizonline">Fork me on GitHub</a>
</div>
</div>
<script src="Diagrama_Arquitetura_arquivos/ace.js" type="text/javascript" charset="utf-8"></script>
<script src="Diagrama_Arquitetura_arquivos/lz-string.min.js" integrity="sha512-qtX0GLM3qX8rxJN1gyDfcnMFFrKvixfoEOwbBib9VafR5vbChV5LeE5wSI/x+IlCkTY5ZFddFDCCfaVJJNnuKQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="Diagrama_Arquitetura_arquivos/viz-global.js"></script>
<script src="Diagrama_Arquitetura_arquivos/svg-pan-zoom.min.js" type="text/javascript" charset="utf-8"></script>
<script>
const editorElement = document.getElementById('editor');
const reviewElement = document.getElementById('review');
const optionsElement = document.getElementById('options');
const toggleBtn = document.getElementById('toggle-btn');
const splitter = document.getElementById('splitter');
let isCollapsed = false;
let isDragging = false;
let currentSplitPercentage = 50;
// Splitter drag functionality
splitter.addEventListener('mousedown', (e) => {
if (isCollapsed) return;
isDragging = true;
splitter.classList.add('dragging');
document.body.style.cursor = 'col-resize';
// Disable transitions during drag
editorElement.style.transition = 'none';
splitter.style.transition = 'none';
reviewElement.style.transition = 'none';
optionsElement.style.transition = 'none';
e.preventDefault();
});
document.addEventListener('mousemove', (e) => {
if (!isDragging) return;
const windowWidth = window.innerWidth;
const newLeft = e.clientX;
const percentage = (newLeft / windowWidth) * 100;
// Limit the splitter to reasonable bounds (10% to 90%)
if (percentage >= 10 && percentage <= 90) {
currentSplitPercentage = percentage;
updatePanelSizes(percentage);
}
});
document.addEventListener('mouseup', () => {
if (isDragging) {
isDragging = false;
splitter.classList.remove('dragging');
document.body.style.cursor = '';
// Re-enable transitions after drag
editorElement.style.transition = '';
splitter.style.transition = '';
reviewElement.style.transition = '';
optionsElement.style.transition = '';
setTimeout(resizeSVG, 100);
}
});
function updatePanelSizes(percentage) {
if (!isCollapsed) {
editorElement.style.width = `${percentage}%`;
splitter.style.left = `${percentage}%`;
reviewElement.style.left = `calc(${percentage}% + 5px)`;
optionsElement.style.left = `calc(${percentage}% + 5px)`;
}
}
toggleBtn.addEventListener('click', () => {
isCollapsed = !isCollapsed;
if (isCollapsed) {
// Enable transitions for smooth collapse
editorElement.style.transition = 'width 0.3s ease';
splitter.style.transition = 'left 0.3s ease, opacity 0.3s ease';
reviewElement.style.transition = 'left 0.3s ease';
optionsElement.style.transition = 'left 0.3s ease';
editorElement.classList.add('collapsed');
reviewElement.classList.add('expanded');
optionsElement.classList.add('expanded');
toggleBtn.classList.add('collapsed');
splitter.style.opacity = '0';
splitter.style.left = '0';
toggleBtn.innerHTML = '▶';
// Hide splitter after animation
setTimeout(() => {
splitter.style.display = 'none';
}, 300);
} else {
// Position splitter at left edge initially
splitter.style.left = '0';
splitter.style.opacity = '0';
splitter.style.display = 'flex'; // Use flex instead of block to keep dots centered
// Enable transitions for smooth expand
editorElement.style.transition = 'width 0.3s ease';
splitter.style.transition = 'left 0.3s ease, opacity 0.3s ease';
reviewElement.style.transition = 'left 0.3s ease';
optionsElement.style.transition = 'left 0.3s ease';
setTimeout(() => {
editorElement.classList.remove('collapsed');
reviewElement.classList.remove('expanded');
optionsElement.classList.remove('expanded');
toggleBtn.classList.remove('collapsed');
toggleBtn.innerHTML = '◀';
// Restore the split position
updatePanelSizes(currentSplitPercentage);
splitter.style.opacity = '1';
}, 10);
}
setTimeout(resizeSVG, 300);
});
window.addEventListener('resize', resizeSVG);
function resizeSVG() {
const svg = document.querySelector('#review svg');
if (svg) {
const panZoom = svgPanZoom(svg);
panZoom.resize();
panZoom.fit();
panZoom.center();
svg.style.width = '100%';
svg.style.height = '100%';
}
}
(function (document) {
//http://stackoverflow.com/a/10372280/398634
window.URL = window.URL || window.webkitURL;
var el_stetus = document.getElementById("status"),
t_stetus = -1,
reviewer = document.getElementById("review"),
scale = window.devicePixelRatio || 1,
downloadBtn = document.getElementById("download"),
editor = ace.edit("editor"),
lastHD = -1,
worker = null,
parser = new DOMParser(),
showError = null,
formatEl = document.querySelector("#format select"),
engineEl = document.querySelector("#engine select"),
rawEl = document.querySelector("#raw input"),
shareEl = document.querySelector("#share"),
shareURLEl = document.querySelector("#shareurl"),
errorEl = document.querySelector("#error");
function show_status(text, hide) {
hide = hide || 0;
clearTimeout(t_stetus);
el_stetus.innerHTML = text;
if (hide) {
t_stetus = setTimeout(function () {
el_stetus.innerHTML = "";
}, hide);
}
}
function show_error(e) {
console.trace();
show_status("error", 500);
reviewer.classList.remove("working");
reviewer.classList.add("error");
var message = e.message === undefined ? "An error occurred while processing the graph input." : e.message;
while (errorEl.firstChild) {
errorEl.removeChild(errorEl.firstChild);
}
errorEl.appendChild(document.createTextNode(message));
}
function svgXmlToImage(svgXml, callback) {
var pngImage = new Image(), svgImage = new Image();
svgImage.onload = function () {
var canvas = document.createElement("canvas");
canvas.width = svgImage.width * scale;
canvas.height = svgImage.height * scale;
var context = canvas.getContext("2d");
context.drawImage(svgImage, 0, 0, canvas.width, canvas.height);
pngImage.src = canvas.toDataURL("image/png");
pngImage.width = svgImage.width;
pngImage.height = svgImage.height;
if (callback !== undefined) {
callback(null, pngImage);
}
}
svgImage.onerror = function (e) {
if (callback !== undefined) {
callback(e);
}
}
svgImage.src = svgXml;
}
function copyShareURL(e) {
let content = encodeURIComponent(editor.getSession().getDocument().getValue());
const longUrl = new URL(location.href);
longUrl.hash = content;
shareEl.disabled = true;
let n = 0;
let animateId = setInterval(()=> { shareEl.value = "Loading" + ".".repeat(n++%3)}, 300)
// cors for is.gd
fetch("https://api.allorigins.win/get?url=" + encodeURIComponent("https://is.gd/create.php?" + new URLSearchParams({
format: 'simple',
url: longUrl.toString(),
}).toString()))
.then((r) => {
if (r.ok) return r.json()
return new Error("network issues");
})
.then((rs) => {
shareURLEl.style.display = "inline";
shareURLEl.value = rs.contents;
}).catch((err) => {
const compressedContent = LZString.compressToEncodedURIComponent(content);
const compressedUrl = new URL(location.href);
compressedUrl.searchParams.append("compressed", compressedContent);
compressedUrl.hash = "";
shareURLEl.style.display = "inline";
shareURLEl.value = compressedUrl.toString();
}).finally(()=>{
clearInterval(animateId);
shareEl.value = "Share";
shareEl.disabled = false;
})
}
function copyToClipboard(str) {
const el = document.createElement('textarea');
el.value = str;
el.setAttribute('readonly', '');
el.style.position = 'absolute';
el.style.left = '-9999px';
document.body.appendChild(el);
const selected =
document.getSelection().rangeCount > 0
? document.getSelection().getRangeAt(0)
: false;
el.select();
var result = document.execCommand('copy')
document.body.removeChild(el);
if (selected) {
document.getSelection().removeAllRanges();
document.getSelection().addRange(selected);
}
return result;
};
function renderGraph() {
reviewer.classList.add("working");
reviewer.classList.remove("error");
show_status("rendering...");
Viz.instance().then(function (viz) {
let dotContent = editor.getSession().getDocument().getValue();
let options = {
format: formatEl.value,
engine: engineEl.value,
};
let result = null;
if (["svg", "png"].indexOf(formatEl.value) > -1) {
result = viz.renderSVGElement(dotContent, options);
} else {
result = viz.render(dotContent, options);
}
if (result.status !== undefined && result.status != "success") {
show_error(result.errors && result.errors.length > 0 && result.errors[0] || result);
} else {
updateOutput(result);
}
}).catch((err) => {
show_error(err);
}).finally(() => {
reviewer.classList.remove("working");
show_status("done", 500)
});
}
function updateState() {
const updatedUrl = new URL(window.location)
// Hash
const content = encodeURIComponent(editor.getSession().getDocument().getValue());
updatedUrl.hash = content
// Search params
updatedUrl.searchParams.set("engine", engineEl.value)
history.pushState({ "content": content, "engine": engineEl.value }, "", updatedUrl.toString())
}
function updateOutput(result) {
if (formatEl.value === "svg") {
document.querySelector("#raw").classList.remove("disabled");
rawEl.disabled = false;
} else {
document.querySelector("#raw").classList.add("disabled");
rawEl.disabled = true;
}
var text = reviewer.querySelector("#text");
if (text) {
reviewer.removeChild(text);
}
var a = reviewer.querySelector("a");
if (a) {
reviewer.removeChild(a);
}
if (!result) {
return;
}
reviewer.classList.remove("working");
reviewer.classList.remove("error");
if (formatEl.value == "svg" && !rawEl.checked) {
var serializer = new XMLSerializer();
var source = serializer.serializeToString(result);
// https://stackoverflow.com/questions/18925210/download-blob-content-using-specified-charset
//const blob = new Blob(["\ufeff", svg], {type: 'image/svg+xml;charset=utf-8'});
const url = "data:image/svg+xml;charset=utf-8," + encodeURIComponent(source);
downloadBtn.href = url;
downloadBtn.download = "graphviz.svg";
var a = document.createElement("a");
a.appendChild(result);
reviewer.appendChild(a);
svgPanZoom(result, {
zoomEnabled: true,
controlIconsEnabled: true,
fit: true,
center: true,
});
} else if (formatEl.value == "png") {
var serializer = new XMLSerializer();
var source = serializer.serializeToString(result);
let resultWithPNGHeader = "data:image/svg+xml;base64," + btoa(unescape(encodeURIComponent(source)));
svgXmlToImage(resultWithPNGHeader, function (err, image) {
if (err) {
show_error(err)
return
}
image.setAttribute("title", "graphviz");
downloadBtn.href = image.src;
downloadBtn.download = "graphviz.png";
var a = document.createElement("a");
a.appendChild(image);
reviewer.appendChild(a);
})
} else {
var text = document.createElement("div");
text.id = "text";
if (formatEl.value == "svg") {
let serializer = new XMLSerializer();
result = serializer.serializeToString(result);
} else {
result = result.output;
}
text.appendChild(document.createTextNode(result));
reviewer.appendChild(text);
}
updateState()
}
editor.setTheme("ace/theme/twilight");
editor.getSession().setMode("ace/mode/dot");
editor.getSession().on("change", function () {
clearTimeout(lastHD);
lastHD = setTimeout(renderGraph, 1500);
});
window.onpopstate = function (event) {
if (event.state != null && event.state.content != undefined) {
editor.getSession().setValue(decodeURIComponent(event.state.content));
}
};
formatEl.addEventListener("change", renderGraph);
engineEl.addEventListener("change", renderGraph);
rawEl.addEventListener("change", renderGraph);
share.addEventListener("click", copyShareURL);
// Since apparently HTMLCollection does not implement the oh so convenient array functions
HTMLOptionsCollection.prototype.indexOf = function (name) {
for (let i = 0; i < this.length; i++) {
if (this[i].value == name) {
return i;
}
}
return -1;
};
/* parsing from URL sharing */
const params = new URLSearchParams(location.search.substring(1));
if (params.has('engine')) {
const engine = params.get('engine');
const index = engineEl.options.indexOf(engine);
if (index > -1) { // if index exists
engineEl.selectedIndex = index;
} else {
show_error({ message: `invalid engine ${engine} selected` });
}
}
if (params.has('format')) {
const format = params.get('format');
const index = formatEl.options.indexOf(format);
if (index > -1) {
formatEl.selectedIndex = index;
} else {
show_error({ message: `Invalid format ${format} selected` });
}
}
if (params.has("presentation")) {
document.body.classList.add("presentation");
}
if (params.has('raw')) {
editor.getSession().setValue(params.get('raw'));
renderGraph();
} else if (params.has('compressed')) {
const compressed = params.get('compressed');
editor.getSession().setValue(LZString.decompressFromEncodedURIComponent(compressed));
} else if (params.has('url')) {
const url = params.get('url');
let ok = false;
fetch(url)
.then(res => {
ok = res.ok;
return res.text();
})
.then(res => {
if (!ok) {
throw { message: res };