Automatic Code Generation from Nested Petri nets to Event-based Systems on the Telegram Platform
Nested Petri net formalisms is an extension of coloured Petri net formalism that uses Petri Nets as tokens. The formalism allows creating comprehensive models of multi-agent systems, simulating, verifying and analyzing them in a formal and rigorous way. Multi-agent systems are found in many differen...
Main Authors: | , |
---|---|
Format: | Article |
Language: | English |
Published: |
Ivannikov Institute for System Programming of the Russian Academy of Sciences
2018-10-01
|
Series: | Труды Института системного программирования РАН |
Subjects: | |
Online Access: | https://ispranproceedings.elpub.ru/jour/article/view/110 |
id |
doaj-22ae6a49e15c43f1871032bdb6f02e6f |
---|---|
record_format |
Article |
spelling |
doaj-22ae6a49e15c43f1871032bdb6f02e6f2020-11-25T00:44:17Zeng Ivannikov Institute for System Programming of the Russian Academy of SciencesТруды Института системного программирования РАН2079-81562220-64262018-10-01283658410.15514/ISPRAS-2016-28(3)-5110Automatic Code Generation from Nested Petri nets to Event-based Systems on the Telegram PlatformD. I. Samokhvalov0L. W. Dworzanski1Национальный исследовательский университет Высшая школа экономикиНациональный исследовательский университет Высшая школа экономикиNested Petri net formalisms is an extension of coloured Petri net formalism that uses Petri Nets as tokens. The formalism allows creating comprehensive models of multi-agent systems, simulating, verifying and analyzing them in a formal and rigorous way. Multi-agent systems are found in many different fields - from safety critical systems to everyday networks of personal computational devices; and, their presence in the real world in increasing with the increasing number of mobile computational devices. While several methods and tools were developed for modelling and analysis of NP-nets models, the synthesis part of multi-agent systems development via NP-nets is still under active development. The widely used method of automatic generation of target system code from designed and verified formal models ensures obtaining correct systems from correct models. In this paper, we demonstrate how Nested Petri net formalism can be applied to model search-and-rescue coordination systems and automatically generate implementation in the form of the executable code for event-driven systems based on the Telegram platform. We augment the NP-nets models with Action Language annotation, which enables us to link transition firings on the model level to Telegram Bot API calls on the implementation level. The suggested approach is illustrated by the example annotated model of a search and rescue coordination system.https://ispranproceedings.elpub.ru/jour/article/view/110вложенные сети петриtelegram bot apiязык действийсобытийно-управляемые системыкодогенерация |
collection |
DOAJ |
language |
English |
format |
Article |
sources |
DOAJ |
author |
D. I. Samokhvalov L. W. Dworzanski |
spellingShingle |
D. I. Samokhvalov L. W. Dworzanski Automatic Code Generation from Nested Petri nets to Event-based Systems on the Telegram Platform Труды Института системного программирования РАН вложенные сети петри telegram bot api язык действий событийно-управляемые системы кодогенерация |
author_facet |
D. I. Samokhvalov L. W. Dworzanski |
author_sort |
D. I. Samokhvalov |
title |
Automatic Code Generation from Nested Petri nets to Event-based Systems on the Telegram Platform |
title_short |
Automatic Code Generation from Nested Petri nets to Event-based Systems on the Telegram Platform |
title_full |
Automatic Code Generation from Nested Petri nets to Event-based Systems on the Telegram Platform |
title_fullStr |
Automatic Code Generation from Nested Petri nets to Event-based Systems on the Telegram Platform |
title_full_unstemmed |
Automatic Code Generation from Nested Petri nets to Event-based Systems on the Telegram Platform |
title_sort |
automatic code generation from nested petri nets to event-based systems on the telegram platform |
publisher |
Ivannikov Institute for System Programming of the Russian Academy of Sciences |
series |
Труды Института системного программирования РАН |
issn |
2079-8156 2220-6426 |
publishDate |
2018-10-01 |
description |
Nested Petri net formalisms is an extension of coloured Petri net formalism that uses Petri Nets as tokens. The formalism allows creating comprehensive models of multi-agent systems, simulating, verifying and analyzing them in a formal and rigorous way. Multi-agent systems are found in many different fields - from safety critical systems to everyday networks of personal computational devices; and, their presence in the real world in increasing with the increasing number of mobile computational devices. While several methods and tools were developed for modelling and analysis of NP-nets models, the synthesis part of multi-agent systems development via NP-nets is still under active development. The widely used method of automatic generation of target system code from designed and verified formal models ensures obtaining correct systems from correct models. In this paper, we demonstrate how Nested Petri net formalism can be applied to model search-and-rescue coordination systems and automatically generate implementation in the form of the executable code for event-driven systems based on the Telegram platform. We augment the NP-nets models with Action Language annotation, which enables us to link transition firings on the model level to Telegram Bot API calls on the implementation level. The suggested approach is illustrated by the example annotated model of a search and rescue coordination system. |
topic |
вложенные сети петри telegram bot api язык действий событийно-управляемые системы кодогенерация |
url |
https://ispranproceedings.elpub.ru/jour/article/view/110 |
work_keys_str_mv |
AT disamokhvalov automaticcodegenerationfromnestedpetrinetstoeventbasedsystemsonthetelegramplatform AT lwdworzanski automaticcodegenerationfromnestedpetrinetstoeventbasedsystemsonthetelegramplatform |
_version_ |
1725275276381782016 |