The analysis of cyber-physical systems (CPS) is challenging due to the large state space and the continuous changes occurring in their constituent parts. Design practices favor modularity to help reducing this 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 an interaction between a pair of components. In this paper, we propose a specification of 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 by modeling a coordination of robots moving on a shared field. We show that our system of robots can be coordinated by a protocol in order to exhibit a desired emerging behavior. We use an implementation of our framework in Maude to give practical results.
翻译:网络物理系统(CPS)的分析具有挑战性,因为国家空间很大,其组成部分不断发生变化。设计做法倾向于模块化,以帮助减少这一复杂性。在先前的一项工作中,我们为CPS提出了一个独立的语义模型,将网络和物理方面作为离散观测的流,最终形成一个组成部分的行为。这种语义模型是分解和构成的,每个组成操作器的代数模型是一对组成部分之间的相互作用。在本文中,我们提议了作为重写系统的组件的规格。该规格是可操作的,可执行的,我们研究其语义学条件,作为组成的组成部分。我们通过在共享领域对机器人进行协调的模型展示我们的框架。我们表明,我们的机器人系统可以通过协议加以协调,以展示一种理想的新兴行为。我们在莫德使用我们的框架来提供实际的结果。