Self-adaptive software systems continuously adapt in response to internal and external changes in their execution environment, captured as contexts. The COP paradigm posits a technique for the development of self-adaptive systems, capturing their main characteristics with specialized programming language constructs. COP adaptations are specified as independent modules composed in and out of the base system as contexts are activated and deactivated in response to sensed circumstances from the surrounding environment. However, the definition of adaptations, their contexts and associated specialized behavior, need to be specified at design time. In complex CPS this is intractable due to new unpredicted operating conditions. We propose Auto-COP, a new technique to enable generation of adaptations at run time. Auto-COP uses RL options to build action sequences, based on the previous instances of the system execution. Options are explored in interaction with the environment, and the most suitable options for each context are used to generate adaptations exploiting COP. To validate Auto-COP, we present two case studies exhibiting different system characteristics and application domains: a driving assistant and a robot delivery system. We present examples of Auto-COP code generated at run time, to illustrate the types of circumstances (contexts) requiring adaptation, and the corresponding generated adaptations for each context. We confirm that the generated adaptations exhibit correct system behavior measured by domain-specific performance metrics, while reducing the number of required execution/actuation steps by a factor of two showing that the adaptations are regularly selected by the running system as adaptive behavior is more appropriate than the execution of primitive actions.
翻译:适应性软件系统不断适应其执行环境的内部和外部变化,并将其作为背景加以捕捉。缔约方会议范式为开发自我适应系统提供了一种技术,通过专门的编程语言结构捕捉其主要特点。由于环境因周围环境的感知环境而启动和停止运行,因此COP的适应性被指定为基础系统内外的独立模块。然而,适应性的定义、其背景和相关的专业行为需要在设计时加以具体规定。在复杂的CPS中,由于新的未预知的操作条件,这种技术难以操作。我们提出了Auto-COP,这是一种在运行时能够生成适应的新技术。Auto-COP使用RL选项,根据系统执行的以往实例建立行动序列。在与环境的互动中探索各种选择,并且利用每种环境的最合适选项来生成适应性应用缔约方会议。为了验证Auto-COP,我们提出了两个案例研究,显示不同的系统特性和应用领域:驱动助理和机器人交付系统。我们介绍了自动COP在运行时生成的一种新技术,用以在运行时生成生成适应性适应性适应性生成的新的技术。Autoal-COP选项用于建立行动序列序列序列序列序列序列序列,同时确认所生成的适应性调整性环境的适应性环境,同时通过演示所生成的系统生成的调整性调整性环境的适应性演算。我们所生成的系统所生成的演算的系统所生成的适应性环境,通过测量性环境的调整性环境所生成的调整性环境所生成的演算。