arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2205.00221cs.SE
收藏

Petri网迫使我们说什么:行为组合方法的比较

What Petri Net Obliges Us to Say: Comparing Approaches for Behavior Composition

Achiya Elyasaf, Tom Yaacov, Gera Weiss

AI总结:

本文指出Petri网在组合多个需求时会导致过度指定和错误模型,提出用行为编程建模以避免该问题,并给出BP与PN双向转换的语义和工具。

摘要:

我们识别并展示了Petri网(PN)在指定反应式系统组合行为方面的一个弱点。具体而言,我们展示了当在一个PN模型中指定多个需求时,建模者被迫指定组合这些需求的机制。这在许多情况下导致了过度指定和不正确的模型。我们展示了某些执行路径如何被遗漏,以及某些路径如何被无意生成。为支持这一论断,我们分析了文献中的PN模型,识别了组合机制,并展示了它们对模型正确性的影响。为解决这一问题,我们提出使用行为编程(BP)来建模系统行为,BP是一种为无缝集成独立需求而设计的软件开发和建模范式。具体而言,我们展示了BP的语义(其定义了如何将场景交织到单一模型中)如何能够避免过度指定。此外,虽然BP保持与PN相同的数学性质,但它提供了动态更改模型的手段,从而提高了规格说明的敏捷性。我们通过分析模型、其生成的执行路径以及规格说明过程,在定量和定性度量上比较了BP和PN。最后,虽然BP有工具支持,允许对模型应用形式化方法和推理技术,但它缺乏PN工具和算法的历史积累。为解决这一问题,我们提出了用于将BP模型转换为PN以及反向转换的语义和一个工具。

英文摘要:

We identify and demonstrate a weakness of Petri Nets (PN) in specifying composite behavior of reactive systems. Specifically, we show how, when specifying multiple requirements in one PN model, modelers are obliged to specify mechanisms for combining these requirements. This yields, in many cases, over-specification and incorrect models. We demonstrate how some execution paths are missed, and some are generated unintentionally. To support this claim, we analyze PN models from the literature, identify the combination mechanisms, and demonstrate their effect on the correctness of the model. To address this problem, we propose to model the system behavior using behavioral programming (BP), a software development and modeling paradigm designed for seamless integration of independent requirements. Specifically, we demonstrate how the semantics of BP, which define how to interweave scenarios into a single model, allow avoiding the over-specification. Additionally, while BP maintains the same mathematical properties as PN, it provides means for changing the model dynamically, thus increasing the agility of the specification. We compare BP and PN in quantitative and qualitative measures by analyzing the models, their generated execution paths, and the specification process. Finally, while BP is supported by tools that allow for applying formal methods and reasoning techniques to the model, it lacks the legacy of PN tools and algorithms. To address this issue, we propose semantics and a tool for translating BP models to PN and vice versa.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑