Choreographies prescribe the rendez-vous synchronisation of messages in a system of communicating finite state machines. Such a system is called realisable, if the traces of the prescribed communication coincide with those of the asynchronous system of peers, where the communication channels either use FIFO queues or multiset mailboxes. In a recent article realisability was characterised by two necessary conditions that together are sufficient. A simple consequence is that realisability in the presence of a choreography becomes decidable. In this article we extend this work by generalising choreographies to control-state choreographies, which enable parallelism. We redefine P2P systems on grounds of control-state machines and show that a control-state choreography is equivalent to the rendez-vous compositions of its peers and that language-synchronisability coincides with synchronisability. These results are used to characterise realisability of control-state choreographies. As for the case of FSM-based choreographies we prove two necessary conditions: a sequence condition and a choice condition. Then we also show that these two conditions together are sufficient for the realisability of control-state choreographies.
翻译:编程中将信息在一定的状态机器通信系统中的正中同步化。 如果指定通信的痕迹与对等器的不同步系统相吻合, 则这种系统被称为可实现。 在最近的一篇文章中, 通信频道使用 FIFO 队列或多元集邮箱。 可实现性具有两个必要条件的特征, 这些必要条件是足够一致的。 一个简单的结果是, 舞蹈的出现具有真实性, 可以分层。 在文章中, 我们通过将流行的合编扩展至控制状态的编队, 从而能够实现平行化。 我们根据控制状态机器重新定义 P2P 系统, 并表明控制状态的合制与对等器的复交构成相当, 语言同步性与同步性相吻合。 这些结果被用来描述控制状态的可变性。 至于基于FSM的合编程, 我们证明两种必要条件是: 序列状况和可选择性。 之后, 我们还要显示这些条件是足够的真实性控制状态。