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
|
%global _empty_manifest_terminate_build 0
Name: python-agentMET4FOF
Version: 0.13.2
Release: 1
Summary: A software package for the integration of metrological input into an agent-based system for the consideration of measurement uncertainty in current industrial manufacturing processes.
License: GNU Lesser General Public License v3 (LGPLv3)
URL: https://github.com/bangxiangyong/agentMET4FOF
Source0: https://mirrors.nju.edu.cn/pypi/web/packages/71/41/fe10c86d99bb09467cd6a39eccfe8c181bda0b918da8777f2533ff358486/agentMET4FOF-0.13.2.tar.gz
BuildArch: noarch
Requires: python3-numpy
Requires: python3-scipy
Requires: python3-matplotlib
Requires: python3-pandas
Requires: python3-osbrain
Requires: python3-dash
Requires: python3-dash-cytoscape
Requires: python3-networkx
Requires: python3-plotly
Requires: python3-time-series-buffer
Requires: python3-time-series-metadata
Requires: python3-mpld3
Requires: python3-mesa
Requires: python3-multiprocess
Requires: python3-visdcc
Requires: python3-notebook
Requires: python3-PyDynamic
%description
<img src="https://www.ptb.de/empir2018/fileadmin/documents/empir/Met4FoF/images/AM4FoF_Logo.svg" alt="agentMET4FOF logo">
<p align="center">
<!-- CircleCI Tests -->
<a href="https://circleci.com/gh/Met4FoF/agentMET4FOF"><img alt="CircleCI pipeline
status badge" src="https://circleci.com/gh/Met4FoF/agentMET4FOF.svg?style=shield"></a>
<!-- ReadTheDocs Documentation -->
<a href="https://agentmet4fof.readthedocs.io/">
<img src="https://readthedocs.org/projects/agentmet4fof/badge/?version=latest" alt="ReadTheDocs badge">
</a>
<!-- CodeCov(erage) -->
<a href="https://codecov.io/gh/Met4FoF/agentMET4FOF">
<img src="https://codecov.io/gh/Met4FoF/agentMET4FOF/branch/master/graph/badge.svg?token=ofAPdSudLy" alt="CodeCov badge"/>
</a>
<!-- PyPI Version -->
<a href="https://pypi.org/project/agentmet4fof">
<img src="https://img.shields.io/pypi/v/agentmet4fof.svg?label=release&color=blue&style=flat-square" alt="pypi">
</a>
<!-- PyPI License -->
<a href="https://www.gnu.org/licenses/lgpl-3.0.en.html">
<img alt="PyPI - license badge"
src="https://img.shields.io/pypi/l/agentMET4FOF?color=bright">
</a>
<!-- Zenodo DOI -->
<a href="https://doi.org/10.5281/zenodo.4560343">
<img src="https://zenodo.org/badge/DOI/10.5281/zenodo.4560343.svg" alt="DOI"></a>
<!-- Contributor Covenant -->
<a href="https://github.com/Met4FoF/agentMET4FOF/blob/develop/CODE_OF_CONDUCT.md">
<img src="https://img.shields.io/badge/Contributor%20Covenant-2.0-4baaaa.svg" alt="Contributor Covenant"></a>
<!-- Docker Hub -->
<a href="https://hub.docker.com/r/met4fof/agentmet4fof">
<img src="https://img.shields.io/docker/pulls/met4fof/agentmet4fof.svg" alt="Docker Hub badge"></a>
</p>
# Multi-Agent System for IIoT
<p align="justify">
agentMET4FOF is an implementation of a multi-agent system for agent-based
analysis and processing of both static data sets and data streams with IIoT
applications in mind. More on the motivation that drives the project can be found
in the section <!--suppress HtmlUnknownAnchorTarget --><a href="#about">About</a>.
</p>
### Key facts
- [FOSS project](#contributing)
- allows to
- quickly set up and run a [metrologically enabled multi-agent system](#about)
- [handle both static data sets and online data streams](#tutorials)
- [consider measurement uncertainties as well as metadata with the provided message system](#tutorials)
- [installable as a Python package or ready-to-deploy Docker image](#installation)
- comes bundled with [several introductary and advanced tutorials](#tutorials)
- accompanied by [several use cases with close-to-industry IIoT applications in
our GitHub organisation](https://github.com/Met4FoF?q=agentMET4FOF&type=&language=&sort=)
- comprehensive and ever-growing [documentation](#documentation-and-screencasts)
## Table of content
- [💫 Quickstart](#quickstart)
- [💬 About](#about)
- [📈 The agentMET4FOF dashboard](#the-agentmet4fof-dashboard)
- [🤓 Tutorials](#tutorials)
- [📖 Documentation and screencasts](#documentation-and-screencasts)
- [💻 Installation](#installation)
- [🐝 Contributing](#contributing)
- [💨 Coming soon](#coming-soon)
- [🖋 Citation](#citation)
- [💎 Acknowledgement](#acknowledgement)
- [⚠ Disclaimer](#disclaimer)
- [© License](#license)
## 💫Quickstart
agentMET4FOF comes bundled with several [tutorials](#tutorials) to get you started
as quick as possible. In your Python console execute the following to run the first
tutorial.
```python
>>> from agentMET4FOF_tutorials.tutorial_1_generator_agent import demonstrate_generator_agent_use
>>> generator_agent_network = demonstrate_generator_agent_use()
```
```shell
Starting NameServer...
Broadcast server running on 0.0.0.0:9091
NS running on 127.0.0.1:3333 (127.0.0.1)
URI = PYRO:Pyro.NameServer@127.0.0.1:3333
|----------------------------------------------------------|
| |
| Your agent network is starting up. Open your browser and |
| visit the agentMET4FOF dashboard on http://0.0.0.0:8050/ |
| |
|----------------------------------------------------------|
INFO [2021-02-05 18:12:52.277759] (SineGeneratorAgent_1): INITIALIZED
INFO [2021-02-05 18:12:52.302862] (MonitorAgent_1): INITIALIZED
[2021-02-05 18:12:52.324078] (SineGeneratorAgent_1): Connected output module: MonitorAgent_1
SET STATE: Running
[...]
```
```python
>>> generator_agent_network.shutdown()
0
NS shut down.
```
## 💬About
<p align="justify">
Sensor deployments in industrial applications usually form networks in all sorts of
environments. This requires a flexible framework for the implementation of the
corresponding data analysis. An excellent way to represent such networks is a
multi-agent system (MAS), where independent software modules (agents) encapsulate
properties and functionalities. agentMET4FOF is an interactive and flexible open-source
implementation of such a MAS. The software engineering process is driven by several
industry-oriented use cases with the aim of enabling IIoT applications. This leads
to a framework that is specialized in representing heterogeneous sensor networks.
</p>
<p align="justify">
A special emphasis is put on supporting metrological treatment of sensor streaming
data. This includes the consideration of measurement uncertainties during data analysis
and processing as well as propagating metadata alongside the data itself.
</p>
<p align="justify">
One of the many questions that drive us in the project is:
</p>
<p align="justify">
<blockquote>
How can metrological input be incorporated into an agent-based system for addressing
uncertainty of machine learning in future manufacturing?
</blockquote>
### Features
Some notable features of agentMET4FOF include :
- Modular agent classes for metrological data streams and analytics
- A built-in buffering mechanism to decouple transmission, processing and visualization
of data
- Easy connection among software agents to send and receive data
- Choose backends between:
- [_Osbrain_](https://osbrain.readthedocs.io/en/stable/) for simulating as well as
handling real distributed systems running Python connected via a TCP network, and
- [_Mesa_](https://mesa.readthedocs.io/en/stable/) for local simulations of
distributed systems, debugging and more high-performance execution
- Interactive and customisable dashboard from the get-go to:
- Visualize and change agent-network topologies
- Visualize groups of cooperative agents as _Coalitions_
- View and change the agents' parameters
- View the agents' outputs as plotly or matplotlib plots or generate and embed your
own images
- Generic streams and agents that can be used as starting points in simulations
- A sine generator with an associated agent
- A generator for a sine signal with jitter dynamically or with fixed length
- A white noise agent
- A metrologically enabled sine generator agent which also handles measurement uncertainties
## 📈The agentMET4FOF dashboard
agentMET4FOF comes bundled with our so called _dashboard_. It is an optional component
of every agent network and provides a web browser based view. You can
observe the state of your agents, modify the connections between them and even add
more pre-made agents to your network all during run-time. The address to your
dashboard is printed to the console on every launch of an agent network.
The following image is close to what you will find in your browser on execution of
tutorial 2. For details on the tutorials visit our
[video tutorial series](#video-tutorial-series).

## 🤓Tutorials
As mentioned above, agentMET4FOF comes bundled with several [tutorials
](https://agentmet4fof.readthedocs.io/en/latest/tutorials.html) to
get you started as quick as possible. You will find tutorials on how to set up:
- [a simple pipeline to plot a signal](https://agentmet4fof.readthedocs.io/en/latest/agentMET4FOF_tutorials/tutorial_1_generator_agent.html)
- [a simple pipeline with signal postprocessing](https://agentmet4fof.readthedocs.io/en/latest/agentMET4FOF_tutorials/tutorial_2_math_agent.html)
- [an advanced pipeline with multichannel signals](https://agentmet4fof.readthedocs.io/en/latest/agentMET4FOF_tutorials/tutorial_3_multi_channel.html)
- [a simple metrological datastream](https://agentmet4fof.readthedocs.io/en/latest/agentMET4FOF_tutorials/tutorial_4_metrological_streams.html)
- [pipelines to determine redundancy in sensor networks](https://agentmet4fof.readthedocs.io/en/latest/tutorials.html#working-with-signals-carrying-redundant-information)
- [a pipeline to reduce noise and jitter in sensor readings](https://agentmet4fof.readthedocs.io/en/latest/tutorials.html#reducing-noise-and-jitter-in-signals)
… and [more](https://agentmet4fof.readthedocs.io/en/latest/tutorials.html)!
## 📖Documentation and screencasts
Extended
[documentation can be found on ReadTheDocs](https://agentmet4fof.readthedocs.io).
### Screencast series
Additionally, we provide some
[screencasts based on agentMET4FOF 0.4.1 on the project homepage
](https://www.ptb.de/empir2018/met4fof/information-communication/video-portal/)
in the section _Tutorials for the multi-agent system agentMET4FOF_.
You can self-register on the linked page and get started immediately. The video series
begins with our motivation for creating agentMET4FOF, guide you through the
installation of Python and other recommended software until you execute the tutorials
on your machine.
### Live online tutorial during early development
In an early development stage we held a live online tutorial based on
[agentMET4FOF 0.1.0](https://github.com/Met4FoF/agentMET4FOF/releases/0.1.0/)
which you can [download](https://github.com/Met4FoF/agentMET4FOF/releases/download/0.1.0/Met4FoF.MAS.webinar.mp4).
If questions arise, or you feel something is missing, reach out to
[us](https://github.com/Met4FoF/agentMET4FOF/graphs/contributors).
## 💻Installation
There are different ways to run agentMET4FOF. Either:
1. you [install Python](https://www.python.org/downloads/) and our package
[agentMET4FOF](https://pypi.org/project/agentMET4FOF/) in a virtual Python
environment on your computer, or
2. you [install Docker](https://docs.docker.com/get-docker/), [start agentMET4FOF in
a container](https://agentmet4fof.readthedocs.io/en/latest/INSTALL.html#start-a-container-from-the-image)
and [visit the Jupyter Notebook server and the agentMET4FOF dashboard directly in
your browser](https://agentmet4fof.readthedocs.io/en/latest/INSTALL.html#start-a-container-from-the-image-for-local-use)
or even [deploy it over a proper webserver](https://agentmet4fof.readthedocs.io/en/latest/INSTALL.html#deploy-the-containerized-agents-via-a-webserver).
In the [video tutorials series](#video-tutorial-series)
we guide you through every step of option 1. More detailed instructions on both
options you can find in the [installation
section of the docs](https://agentmet4fof.readthedocs.io/en/latest/INSTALL.html).
## 🐝Contributing
Whenever you are involved with agentMET4FOF, please respect our [Code of Conduct
](https://github.com/Met4FoF/agentMET4FOF/blob/develop/CODE_OF_CONDUCT.md).
If you want to contribute back to the project, after reading our Code of Conduct,
take a look at our open developments in the [project board
](https://github.com/Met4FoF/agentMET4FOF/projects/1), [pull requests
](https://github.com/Met4FoF/agentMET4FOF/pulls) and search [the issues
](https://github.com/Met4FoF/agentMET4FOF/issues). If you find something similar to
your ideas or troubles, let us know by leaving a comment or remark. If you have
something new to tell us, feel free to open a feature request or bug report in the
issues. If you want to contribute code or improve our documentation, please check our
[contributing guide](https://agentmet4fof.readthedocs.io/en/latest/CONTRIBUTING.html).
## 💨Coming soon
- Improved handling of metadata
- More advanced signal processing
For a comprehensive overview of current development activities and upcoming tasks,
take a look at the [project board](https://github.com/Met4FoF/agentMET4FOF/projects/1),
[issues](https://github.com/Met4FoF/agentMET4FOF/issues) and
[pull requests](https://github.com/Met4FoF/agentMET4FOF/pulls).
## 🖋Citation
If you publish results obtained with the help of agentMET4FOF, please cite the linked
[
](https://doi.org/10.5281/zenodo.4560343).
## 💎Acknowledgement
This work was part of the Joint Research Project [Metrology for the Factory of the
Future (Met4FoF), project number 17IND12](https://www.ptb.de/empir2018/met4fof/home/)
of the European Metrology Programme for Innovation and Research (EMPIR). The
[EMPIR](http://msu.euramet.org) is jointly funded by the EMPIR participating
countries within EURAMET and the European Union.
## ⚠Disclaimer
This software is developed as a joint effort of several project partners namely:
- [Institute for Manufacturing of the University of Cambridge (IfM)
](https://www.ifm.eng.cam.ac.uk/)
- [Physikalisch-Technische Bundesanstalt (PTB)](https://www.ptb.de/)
- [Van Swinden Laboratory (VSL)](https://www.vsl.nl/en/)
- [National Physics Laboratory (NPL)](https://www.npl.co.uk/)
under the lead of IfM. The software is made available "as is" free of cost. The
authors and their institutions assume no responsibility whatsoever for its use by
other parties, and makes no guarantees, expressed or implied, about its quality,
reliability, safety, suitability or any other characteristic. In no event will the
authors be liable for any direct, indirect or consequential damage arising in
connection with the use of this software.
## ©License
agentMET4FOF is distributed under the
[LGPLv3 license](https://github.com/Met4FoF/agentMET4FOF/blob/develop/license.md).
%package -n python3-agentMET4FOF
Summary: A software package for the integration of metrological input into an agent-based system for the consideration of measurement uncertainty in current industrial manufacturing processes.
Provides: python-agentMET4FOF
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pip
%description -n python3-agentMET4FOF
<img src="https://www.ptb.de/empir2018/fileadmin/documents/empir/Met4FoF/images/AM4FoF_Logo.svg" alt="agentMET4FOF logo">
<p align="center">
<!-- CircleCI Tests -->
<a href="https://circleci.com/gh/Met4FoF/agentMET4FOF"><img alt="CircleCI pipeline
status badge" src="https://circleci.com/gh/Met4FoF/agentMET4FOF.svg?style=shield"></a>
<!-- ReadTheDocs Documentation -->
<a href="https://agentmet4fof.readthedocs.io/">
<img src="https://readthedocs.org/projects/agentmet4fof/badge/?version=latest" alt="ReadTheDocs badge">
</a>
<!-- CodeCov(erage) -->
<a href="https://codecov.io/gh/Met4FoF/agentMET4FOF">
<img src="https://codecov.io/gh/Met4FoF/agentMET4FOF/branch/master/graph/badge.svg?token=ofAPdSudLy" alt="CodeCov badge"/>
</a>
<!-- PyPI Version -->
<a href="https://pypi.org/project/agentmet4fof">
<img src="https://img.shields.io/pypi/v/agentmet4fof.svg?label=release&color=blue&style=flat-square" alt="pypi">
</a>
<!-- PyPI License -->
<a href="https://www.gnu.org/licenses/lgpl-3.0.en.html">
<img alt="PyPI - license badge"
src="https://img.shields.io/pypi/l/agentMET4FOF?color=bright">
</a>
<!-- Zenodo DOI -->
<a href="https://doi.org/10.5281/zenodo.4560343">
<img src="https://zenodo.org/badge/DOI/10.5281/zenodo.4560343.svg" alt="DOI"></a>
<!-- Contributor Covenant -->
<a href="https://github.com/Met4FoF/agentMET4FOF/blob/develop/CODE_OF_CONDUCT.md">
<img src="https://img.shields.io/badge/Contributor%20Covenant-2.0-4baaaa.svg" alt="Contributor Covenant"></a>
<!-- Docker Hub -->
<a href="https://hub.docker.com/r/met4fof/agentmet4fof">
<img src="https://img.shields.io/docker/pulls/met4fof/agentmet4fof.svg" alt="Docker Hub badge"></a>
</p>
# Multi-Agent System for IIoT
<p align="justify">
agentMET4FOF is an implementation of a multi-agent system for agent-based
analysis and processing of both static data sets and data streams with IIoT
applications in mind. More on the motivation that drives the project can be found
in the section <!--suppress HtmlUnknownAnchorTarget --><a href="#about">About</a>.
</p>
### Key facts
- [FOSS project](#contributing)
- allows to
- quickly set up and run a [metrologically enabled multi-agent system](#about)
- [handle both static data sets and online data streams](#tutorials)
- [consider measurement uncertainties as well as metadata with the provided message system](#tutorials)
- [installable as a Python package or ready-to-deploy Docker image](#installation)
- comes bundled with [several introductary and advanced tutorials](#tutorials)
- accompanied by [several use cases with close-to-industry IIoT applications in
our GitHub organisation](https://github.com/Met4FoF?q=agentMET4FOF&type=&language=&sort=)
- comprehensive and ever-growing [documentation](#documentation-and-screencasts)
## Table of content
- [💫 Quickstart](#quickstart)
- [💬 About](#about)
- [📈 The agentMET4FOF dashboard](#the-agentmet4fof-dashboard)
- [🤓 Tutorials](#tutorials)
- [📖 Documentation and screencasts](#documentation-and-screencasts)
- [💻 Installation](#installation)
- [🐝 Contributing](#contributing)
- [💨 Coming soon](#coming-soon)
- [🖋 Citation](#citation)
- [💎 Acknowledgement](#acknowledgement)
- [⚠ Disclaimer](#disclaimer)
- [© License](#license)
## 💫Quickstart
agentMET4FOF comes bundled with several [tutorials](#tutorials) to get you started
as quick as possible. In your Python console execute the following to run the first
tutorial.
```python
>>> from agentMET4FOF_tutorials.tutorial_1_generator_agent import demonstrate_generator_agent_use
>>> generator_agent_network = demonstrate_generator_agent_use()
```
```shell
Starting NameServer...
Broadcast server running on 0.0.0.0:9091
NS running on 127.0.0.1:3333 (127.0.0.1)
URI = PYRO:Pyro.NameServer@127.0.0.1:3333
|----------------------------------------------------------|
| |
| Your agent network is starting up. Open your browser and |
| visit the agentMET4FOF dashboard on http://0.0.0.0:8050/ |
| |
|----------------------------------------------------------|
INFO [2021-02-05 18:12:52.277759] (SineGeneratorAgent_1): INITIALIZED
INFO [2021-02-05 18:12:52.302862] (MonitorAgent_1): INITIALIZED
[2021-02-05 18:12:52.324078] (SineGeneratorAgent_1): Connected output module: MonitorAgent_1
SET STATE: Running
[...]
```
```python
>>> generator_agent_network.shutdown()
0
NS shut down.
```
## 💬About
<p align="justify">
Sensor deployments in industrial applications usually form networks in all sorts of
environments. This requires a flexible framework for the implementation of the
corresponding data analysis. An excellent way to represent such networks is a
multi-agent system (MAS), where independent software modules (agents) encapsulate
properties and functionalities. agentMET4FOF is an interactive and flexible open-source
implementation of such a MAS. The software engineering process is driven by several
industry-oriented use cases with the aim of enabling IIoT applications. This leads
to a framework that is specialized in representing heterogeneous sensor networks.
</p>
<p align="justify">
A special emphasis is put on supporting metrological treatment of sensor streaming
data. This includes the consideration of measurement uncertainties during data analysis
and processing as well as propagating metadata alongside the data itself.
</p>
<p align="justify">
One of the many questions that drive us in the project is:
</p>
<p align="justify">
<blockquote>
How can metrological input be incorporated into an agent-based system for addressing
uncertainty of machine learning in future manufacturing?
</blockquote>
### Features
Some notable features of agentMET4FOF include :
- Modular agent classes for metrological data streams and analytics
- A built-in buffering mechanism to decouple transmission, processing and visualization
of data
- Easy connection among software agents to send and receive data
- Choose backends between:
- [_Osbrain_](https://osbrain.readthedocs.io/en/stable/) for simulating as well as
handling real distributed systems running Python connected via a TCP network, and
- [_Mesa_](https://mesa.readthedocs.io/en/stable/) for local simulations of
distributed systems, debugging and more high-performance execution
- Interactive and customisable dashboard from the get-go to:
- Visualize and change agent-network topologies
- Visualize groups of cooperative agents as _Coalitions_
- View and change the agents' parameters
- View the agents' outputs as plotly or matplotlib plots or generate and embed your
own images
- Generic streams and agents that can be used as starting points in simulations
- A sine generator with an associated agent
- A generator for a sine signal with jitter dynamically or with fixed length
- A white noise agent
- A metrologically enabled sine generator agent which also handles measurement uncertainties
## 📈The agentMET4FOF dashboard
agentMET4FOF comes bundled with our so called _dashboard_. It is an optional component
of every agent network and provides a web browser based view. You can
observe the state of your agents, modify the connections between them and even add
more pre-made agents to your network all during run-time. The address to your
dashboard is printed to the console on every launch of an agent network.
The following image is close to what you will find in your browser on execution of
tutorial 2. For details on the tutorials visit our
[video tutorial series](#video-tutorial-series).

## 🤓Tutorials
As mentioned above, agentMET4FOF comes bundled with several [tutorials
](https://agentmet4fof.readthedocs.io/en/latest/tutorials.html) to
get you started as quick as possible. You will find tutorials on how to set up:
- [a simple pipeline to plot a signal](https://agentmet4fof.readthedocs.io/en/latest/agentMET4FOF_tutorials/tutorial_1_generator_agent.html)
- [a simple pipeline with signal postprocessing](https://agentmet4fof.readthedocs.io/en/latest/agentMET4FOF_tutorials/tutorial_2_math_agent.html)
- [an advanced pipeline with multichannel signals](https://agentmet4fof.readthedocs.io/en/latest/agentMET4FOF_tutorials/tutorial_3_multi_channel.html)
- [a simple metrological datastream](https://agentmet4fof.readthedocs.io/en/latest/agentMET4FOF_tutorials/tutorial_4_metrological_streams.html)
- [pipelines to determine redundancy in sensor networks](https://agentmet4fof.readthedocs.io/en/latest/tutorials.html#working-with-signals-carrying-redundant-information)
- [a pipeline to reduce noise and jitter in sensor readings](https://agentmet4fof.readthedocs.io/en/latest/tutorials.html#reducing-noise-and-jitter-in-signals)
… and [more](https://agentmet4fof.readthedocs.io/en/latest/tutorials.html)!
## 📖Documentation and screencasts
Extended
[documentation can be found on ReadTheDocs](https://agentmet4fof.readthedocs.io).
### Screencast series
Additionally, we provide some
[screencasts based on agentMET4FOF 0.4.1 on the project homepage
](https://www.ptb.de/empir2018/met4fof/information-communication/video-portal/)
in the section _Tutorials for the multi-agent system agentMET4FOF_.
You can self-register on the linked page and get started immediately. The video series
begins with our motivation for creating agentMET4FOF, guide you through the
installation of Python and other recommended software until you execute the tutorials
on your machine.
### Live online tutorial during early development
In an early development stage we held a live online tutorial based on
[agentMET4FOF 0.1.0](https://github.com/Met4FoF/agentMET4FOF/releases/0.1.0/)
which you can [download](https://github.com/Met4FoF/agentMET4FOF/releases/download/0.1.0/Met4FoF.MAS.webinar.mp4).
If questions arise, or you feel something is missing, reach out to
[us](https://github.com/Met4FoF/agentMET4FOF/graphs/contributors).
## 💻Installation
There are different ways to run agentMET4FOF. Either:
1. you [install Python](https://www.python.org/downloads/) and our package
[agentMET4FOF](https://pypi.org/project/agentMET4FOF/) in a virtual Python
environment on your computer, or
2. you [install Docker](https://docs.docker.com/get-docker/), [start agentMET4FOF in
a container](https://agentmet4fof.readthedocs.io/en/latest/INSTALL.html#start-a-container-from-the-image)
and [visit the Jupyter Notebook server and the agentMET4FOF dashboard directly in
your browser](https://agentmet4fof.readthedocs.io/en/latest/INSTALL.html#start-a-container-from-the-image-for-local-use)
or even [deploy it over a proper webserver](https://agentmet4fof.readthedocs.io/en/latest/INSTALL.html#deploy-the-containerized-agents-via-a-webserver).
In the [video tutorials series](#video-tutorial-series)
we guide you through every step of option 1. More detailed instructions on both
options you can find in the [installation
section of the docs](https://agentmet4fof.readthedocs.io/en/latest/INSTALL.html).
## 🐝Contributing
Whenever you are involved with agentMET4FOF, please respect our [Code of Conduct
](https://github.com/Met4FoF/agentMET4FOF/blob/develop/CODE_OF_CONDUCT.md).
If you want to contribute back to the project, after reading our Code of Conduct,
take a look at our open developments in the [project board
](https://github.com/Met4FoF/agentMET4FOF/projects/1), [pull requests
](https://github.com/Met4FoF/agentMET4FOF/pulls) and search [the issues
](https://github.com/Met4FoF/agentMET4FOF/issues). If you find something similar to
your ideas or troubles, let us know by leaving a comment or remark. If you have
something new to tell us, feel free to open a feature request or bug report in the
issues. If you want to contribute code or improve our documentation, please check our
[contributing guide](https://agentmet4fof.readthedocs.io/en/latest/CONTRIBUTING.html).
## 💨Coming soon
- Improved handling of metadata
- More advanced signal processing
For a comprehensive overview of current development activities and upcoming tasks,
take a look at the [project board](https://github.com/Met4FoF/agentMET4FOF/projects/1),
[issues](https://github.com/Met4FoF/agentMET4FOF/issues) and
[pull requests](https://github.com/Met4FoF/agentMET4FOF/pulls).
## 🖋Citation
If you publish results obtained with the help of agentMET4FOF, please cite the linked
[
](https://doi.org/10.5281/zenodo.4560343).
## 💎Acknowledgement
This work was part of the Joint Research Project [Metrology for the Factory of the
Future (Met4FoF), project number 17IND12](https://www.ptb.de/empir2018/met4fof/home/)
of the European Metrology Programme for Innovation and Research (EMPIR). The
[EMPIR](http://msu.euramet.org) is jointly funded by the EMPIR participating
countries within EURAMET and the European Union.
## ⚠Disclaimer
This software is developed as a joint effort of several project partners namely:
- [Institute for Manufacturing of the University of Cambridge (IfM)
](https://www.ifm.eng.cam.ac.uk/)
- [Physikalisch-Technische Bundesanstalt (PTB)](https://www.ptb.de/)
- [Van Swinden Laboratory (VSL)](https://www.vsl.nl/en/)
- [National Physics Laboratory (NPL)](https://www.npl.co.uk/)
under the lead of IfM. The software is made available "as is" free of cost. The
authors and their institutions assume no responsibility whatsoever for its use by
other parties, and makes no guarantees, expressed or implied, about its quality,
reliability, safety, suitability or any other characteristic. In no event will the
authors be liable for any direct, indirect or consequential damage arising in
connection with the use of this software.
## ©License
agentMET4FOF is distributed under the
[LGPLv3 license](https://github.com/Met4FoF/agentMET4FOF/blob/develop/license.md).
%package help
Summary: Development documents and examples for agentMET4FOF
Provides: python3-agentMET4FOF-doc
%description help
<img src="https://www.ptb.de/empir2018/fileadmin/documents/empir/Met4FoF/images/AM4FoF_Logo.svg" alt="agentMET4FOF logo">
<p align="center">
<!-- CircleCI Tests -->
<a href="https://circleci.com/gh/Met4FoF/agentMET4FOF"><img alt="CircleCI pipeline
status badge" src="https://circleci.com/gh/Met4FoF/agentMET4FOF.svg?style=shield"></a>
<!-- ReadTheDocs Documentation -->
<a href="https://agentmet4fof.readthedocs.io/">
<img src="https://readthedocs.org/projects/agentmet4fof/badge/?version=latest" alt="ReadTheDocs badge">
</a>
<!-- CodeCov(erage) -->
<a href="https://codecov.io/gh/Met4FoF/agentMET4FOF">
<img src="https://codecov.io/gh/Met4FoF/agentMET4FOF/branch/master/graph/badge.svg?token=ofAPdSudLy" alt="CodeCov badge"/>
</a>
<!-- PyPI Version -->
<a href="https://pypi.org/project/agentmet4fof">
<img src="https://img.shields.io/pypi/v/agentmet4fof.svg?label=release&color=blue&style=flat-square" alt="pypi">
</a>
<!-- PyPI License -->
<a href="https://www.gnu.org/licenses/lgpl-3.0.en.html">
<img alt="PyPI - license badge"
src="https://img.shields.io/pypi/l/agentMET4FOF?color=bright">
</a>
<!-- Zenodo DOI -->
<a href="https://doi.org/10.5281/zenodo.4560343">
<img src="https://zenodo.org/badge/DOI/10.5281/zenodo.4560343.svg" alt="DOI"></a>
<!-- Contributor Covenant -->
<a href="https://github.com/Met4FoF/agentMET4FOF/blob/develop/CODE_OF_CONDUCT.md">
<img src="https://img.shields.io/badge/Contributor%20Covenant-2.0-4baaaa.svg" alt="Contributor Covenant"></a>
<!-- Docker Hub -->
<a href="https://hub.docker.com/r/met4fof/agentmet4fof">
<img src="https://img.shields.io/docker/pulls/met4fof/agentmet4fof.svg" alt="Docker Hub badge"></a>
</p>
# Multi-Agent System for IIoT
<p align="justify">
agentMET4FOF is an implementation of a multi-agent system for agent-based
analysis and processing of both static data sets and data streams with IIoT
applications in mind. More on the motivation that drives the project can be found
in the section <!--suppress HtmlUnknownAnchorTarget --><a href="#about">About</a>.
</p>
### Key facts
- [FOSS project](#contributing)
- allows to
- quickly set up and run a [metrologically enabled multi-agent system](#about)
- [handle both static data sets and online data streams](#tutorials)
- [consider measurement uncertainties as well as metadata with the provided message system](#tutorials)
- [installable as a Python package or ready-to-deploy Docker image](#installation)
- comes bundled with [several introductary and advanced tutorials](#tutorials)
- accompanied by [several use cases with close-to-industry IIoT applications in
our GitHub organisation](https://github.com/Met4FoF?q=agentMET4FOF&type=&language=&sort=)
- comprehensive and ever-growing [documentation](#documentation-and-screencasts)
## Table of content
- [💫 Quickstart](#quickstart)
- [💬 About](#about)
- [📈 The agentMET4FOF dashboard](#the-agentmet4fof-dashboard)
- [🤓 Tutorials](#tutorials)
- [📖 Documentation and screencasts](#documentation-and-screencasts)
- [💻 Installation](#installation)
- [🐝 Contributing](#contributing)
- [💨 Coming soon](#coming-soon)
- [🖋 Citation](#citation)
- [💎 Acknowledgement](#acknowledgement)
- [⚠ Disclaimer](#disclaimer)
- [© License](#license)
## 💫Quickstart
agentMET4FOF comes bundled with several [tutorials](#tutorials) to get you started
as quick as possible. In your Python console execute the following to run the first
tutorial.
```python
>>> from agentMET4FOF_tutorials.tutorial_1_generator_agent import demonstrate_generator_agent_use
>>> generator_agent_network = demonstrate_generator_agent_use()
```
```shell
Starting NameServer...
Broadcast server running on 0.0.0.0:9091
NS running on 127.0.0.1:3333 (127.0.0.1)
URI = PYRO:Pyro.NameServer@127.0.0.1:3333
|----------------------------------------------------------|
| |
| Your agent network is starting up. Open your browser and |
| visit the agentMET4FOF dashboard on http://0.0.0.0:8050/ |
| |
|----------------------------------------------------------|
INFO [2021-02-05 18:12:52.277759] (SineGeneratorAgent_1): INITIALIZED
INFO [2021-02-05 18:12:52.302862] (MonitorAgent_1): INITIALIZED
[2021-02-05 18:12:52.324078] (SineGeneratorAgent_1): Connected output module: MonitorAgent_1
SET STATE: Running
[...]
```
```python
>>> generator_agent_network.shutdown()
0
NS shut down.
```
## 💬About
<p align="justify">
Sensor deployments in industrial applications usually form networks in all sorts of
environments. This requires a flexible framework for the implementation of the
corresponding data analysis. An excellent way to represent such networks is a
multi-agent system (MAS), where independent software modules (agents) encapsulate
properties and functionalities. agentMET4FOF is an interactive and flexible open-source
implementation of such a MAS. The software engineering process is driven by several
industry-oriented use cases with the aim of enabling IIoT applications. This leads
to a framework that is specialized in representing heterogeneous sensor networks.
</p>
<p align="justify">
A special emphasis is put on supporting metrological treatment of sensor streaming
data. This includes the consideration of measurement uncertainties during data analysis
and processing as well as propagating metadata alongside the data itself.
</p>
<p align="justify">
One of the many questions that drive us in the project is:
</p>
<p align="justify">
<blockquote>
How can metrological input be incorporated into an agent-based system for addressing
uncertainty of machine learning in future manufacturing?
</blockquote>
### Features
Some notable features of agentMET4FOF include :
- Modular agent classes for metrological data streams and analytics
- A built-in buffering mechanism to decouple transmission, processing and visualization
of data
- Easy connection among software agents to send and receive data
- Choose backends between:
- [_Osbrain_](https://osbrain.readthedocs.io/en/stable/) for simulating as well as
handling real distributed systems running Python connected via a TCP network, and
- [_Mesa_](https://mesa.readthedocs.io/en/stable/) for local simulations of
distributed systems, debugging and more high-performance execution
- Interactive and customisable dashboard from the get-go to:
- Visualize and change agent-network topologies
- Visualize groups of cooperative agents as _Coalitions_
- View and change the agents' parameters
- View the agents' outputs as plotly or matplotlib plots or generate and embed your
own images
- Generic streams and agents that can be used as starting points in simulations
- A sine generator with an associated agent
- A generator for a sine signal with jitter dynamically or with fixed length
- A white noise agent
- A metrologically enabled sine generator agent which also handles measurement uncertainties
## 📈The agentMET4FOF dashboard
agentMET4FOF comes bundled with our so called _dashboard_. It is an optional component
of every agent network and provides a web browser based view. You can
observe the state of your agents, modify the connections between them and even add
more pre-made agents to your network all during run-time. The address to your
dashboard is printed to the console on every launch of an agent network.
The following image is close to what you will find in your browser on execution of
tutorial 2. For details on the tutorials visit our
[video tutorial series](#video-tutorial-series).

## 🤓Tutorials
As mentioned above, agentMET4FOF comes bundled with several [tutorials
](https://agentmet4fof.readthedocs.io/en/latest/tutorials.html) to
get you started as quick as possible. You will find tutorials on how to set up:
- [a simple pipeline to plot a signal](https://agentmet4fof.readthedocs.io/en/latest/agentMET4FOF_tutorials/tutorial_1_generator_agent.html)
- [a simple pipeline with signal postprocessing](https://agentmet4fof.readthedocs.io/en/latest/agentMET4FOF_tutorials/tutorial_2_math_agent.html)
- [an advanced pipeline with multichannel signals](https://agentmet4fof.readthedocs.io/en/latest/agentMET4FOF_tutorials/tutorial_3_multi_channel.html)
- [a simple metrological datastream](https://agentmet4fof.readthedocs.io/en/latest/agentMET4FOF_tutorials/tutorial_4_metrological_streams.html)
- [pipelines to determine redundancy in sensor networks](https://agentmet4fof.readthedocs.io/en/latest/tutorials.html#working-with-signals-carrying-redundant-information)
- [a pipeline to reduce noise and jitter in sensor readings](https://agentmet4fof.readthedocs.io/en/latest/tutorials.html#reducing-noise-and-jitter-in-signals)
… and [more](https://agentmet4fof.readthedocs.io/en/latest/tutorials.html)!
## 📖Documentation and screencasts
Extended
[documentation can be found on ReadTheDocs](https://agentmet4fof.readthedocs.io).
### Screencast series
Additionally, we provide some
[screencasts based on agentMET4FOF 0.4.1 on the project homepage
](https://www.ptb.de/empir2018/met4fof/information-communication/video-portal/)
in the section _Tutorials for the multi-agent system agentMET4FOF_.
You can self-register on the linked page and get started immediately. The video series
begins with our motivation for creating agentMET4FOF, guide you through the
installation of Python and other recommended software until you execute the tutorials
on your machine.
### Live online tutorial during early development
In an early development stage we held a live online tutorial based on
[agentMET4FOF 0.1.0](https://github.com/Met4FoF/agentMET4FOF/releases/0.1.0/)
which you can [download](https://github.com/Met4FoF/agentMET4FOF/releases/download/0.1.0/Met4FoF.MAS.webinar.mp4).
If questions arise, or you feel something is missing, reach out to
[us](https://github.com/Met4FoF/agentMET4FOF/graphs/contributors).
## 💻Installation
There are different ways to run agentMET4FOF. Either:
1. you [install Python](https://www.python.org/downloads/) and our package
[agentMET4FOF](https://pypi.org/project/agentMET4FOF/) in a virtual Python
environment on your computer, or
2. you [install Docker](https://docs.docker.com/get-docker/), [start agentMET4FOF in
a container](https://agentmet4fof.readthedocs.io/en/latest/INSTALL.html#start-a-container-from-the-image)
and [visit the Jupyter Notebook server and the agentMET4FOF dashboard directly in
your browser](https://agentmet4fof.readthedocs.io/en/latest/INSTALL.html#start-a-container-from-the-image-for-local-use)
or even [deploy it over a proper webserver](https://agentmet4fof.readthedocs.io/en/latest/INSTALL.html#deploy-the-containerized-agents-via-a-webserver).
In the [video tutorials series](#video-tutorial-series)
we guide you through every step of option 1. More detailed instructions on both
options you can find in the [installation
section of the docs](https://agentmet4fof.readthedocs.io/en/latest/INSTALL.html).
## 🐝Contributing
Whenever you are involved with agentMET4FOF, please respect our [Code of Conduct
](https://github.com/Met4FoF/agentMET4FOF/blob/develop/CODE_OF_CONDUCT.md).
If you want to contribute back to the project, after reading our Code of Conduct,
take a look at our open developments in the [project board
](https://github.com/Met4FoF/agentMET4FOF/projects/1), [pull requests
](https://github.com/Met4FoF/agentMET4FOF/pulls) and search [the issues
](https://github.com/Met4FoF/agentMET4FOF/issues). If you find something similar to
your ideas or troubles, let us know by leaving a comment or remark. If you have
something new to tell us, feel free to open a feature request or bug report in the
issues. If you want to contribute code or improve our documentation, please check our
[contributing guide](https://agentmet4fof.readthedocs.io/en/latest/CONTRIBUTING.html).
## 💨Coming soon
- Improved handling of metadata
- More advanced signal processing
For a comprehensive overview of current development activities and upcoming tasks,
take a look at the [project board](https://github.com/Met4FoF/agentMET4FOF/projects/1),
[issues](https://github.com/Met4FoF/agentMET4FOF/issues) and
[pull requests](https://github.com/Met4FoF/agentMET4FOF/pulls).
## 🖋Citation
If you publish results obtained with the help of agentMET4FOF, please cite the linked
[
](https://doi.org/10.5281/zenodo.4560343).
## 💎Acknowledgement
This work was part of the Joint Research Project [Metrology for the Factory of the
Future (Met4FoF), project number 17IND12](https://www.ptb.de/empir2018/met4fof/home/)
of the European Metrology Programme for Innovation and Research (EMPIR). The
[EMPIR](http://msu.euramet.org) is jointly funded by the EMPIR participating
countries within EURAMET and the European Union.
## ⚠Disclaimer
This software is developed as a joint effort of several project partners namely:
- [Institute for Manufacturing of the University of Cambridge (IfM)
](https://www.ifm.eng.cam.ac.uk/)
- [Physikalisch-Technische Bundesanstalt (PTB)](https://www.ptb.de/)
- [Van Swinden Laboratory (VSL)](https://www.vsl.nl/en/)
- [National Physics Laboratory (NPL)](https://www.npl.co.uk/)
under the lead of IfM. The software is made available "as is" free of cost. The
authors and their institutions assume no responsibility whatsoever for its use by
other parties, and makes no guarantees, expressed or implied, about its quality,
reliability, safety, suitability or any other characteristic. In no event will the
authors be liable for any direct, indirect or consequential damage arising in
connection with the use of this software.
## ©License
agentMET4FOF is distributed under the
[LGPLv3 license](https://github.com/Met4FoF/agentMET4FOF/blob/develop/license.md).
%prep
%autosetup -n agentMET4FOF-0.13.2
%build
%py3_build
%install
%py3_install
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
pushd %{buildroot}
if [ -d usr/lib ]; then
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/lib64 ]; then
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/bin ]; then
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/sbin ]; then
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
fi
touch doclist.lst
if [ -d usr/share/man ]; then
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
fi
popd
mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst .
%files -n python3-agentMET4FOF -f filelist.lst
%dir %{python3_sitelib}/*
%files help -f doclist.lst
%{_docdir}/*
%changelog
* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 0.13.2-1
- Package Spec generated
|