The analysis of cyber-physical systems (CPS) is challenging due to the large state space and the continuous changes occurring in its parts. Design practices favor modularity to help reducing the complexity. In a previous work, we proposed a discrete semantic model for CPS that captures both cyber and physical aspects as streams of discrete observations, which ultimately form the behavior of a component. This semantic model is denotational and compositional, where each composition operator algebraically models the interaction between a pair of components. In this paper, we propose a specification of some components as rewrite systems. The specification is operational and executable, and we study conditions for its semantics as components to be compositional. We demonstrate our framework on modeling a coordination of robots moving on a shared field. We show that the system of robots can be coordinated by a protocol in order to exhibit emerging behavior. We use an implementation of our framework in Maude to give some practical results.
翻译:网络物理系统(CPS)的分析具有挑战性,因为国家空间辽阔,其各部分不断发生变化。设计做法倾向于模块化,以帮助降低复杂性。在先前的一项工作中,我们为CPS提出了一个独立的语义模型,将网络和物理方面都作为离散观测的流体,最终形成一个组成部分的行为。这种语义模型具有分解性和构成性,每个组成操作者对一对组成部分之间的相互作用进行代谢性模型。在本文件中,我们建议对某些组成部分的规格作为重写系统加以说明。该规格是可操作的,可执行的,我们研究其语义性条件作为构成的组成部分。我们展示了我们关于机器人在共享领域进行协调的模型框架。我们展示了机器人系统可以通过协议加以协调,以展示新出现的行为。我们在Maude运用了我们的框架来提供一些实际结果。