首页> 外文期刊>Journal of logic and computation >Combining transactions and automatic repairs
【24h】

Combining transactions and automatic repairs

机译:结合交易和自动修复

获取原文
获取原文并翻译 | 示例
           

摘要

External Transaction Logic (εTR) is an extension of logic programming useful to reason about the behaviour of agents that have to operate in a transactional way, in a two-fold environment: an internal knowledge base defining the agent's internal knowledge and rules of behaviour, and an external world where it executes actions and interacts with other entities. Actions performed by the agent in the external world may fail, e.g. because their preconditions are not met, or because they violate some norm of the external environment. The failure to execute some action should lead, in the internal knowledge base, to its complete rollback, following the standard ACID transaction model used e.g. in databases. Since it is impossible to rollback external actions performed in the outside world, external consistency must be achieved by executing compensating operations (or repairs) that revert the effects of the initial executed actions. In εTR, repairs are stated explicitly in the program. With it, every performed external action is explicitly associated with its corresponding compensation or repair. Such user-defined repairs provide no guarantee to revert the effects of the original action. In this article, we define how εTR can be extended to automatically calculate compensations in case of failure. For this, we start by explaining how the semantics of Action Languages can be used to model the external domain of εTR., and how we can use it to reason about the reversals of actions.
机译:外部交易逻辑(εTR)是逻辑编程的扩展,可用于在以下两种环境中推断必须以事务方式运行的代理的行为:内部知识库,用于定义代理的内部知识和行为规则,以及执行动作并与其他实体互动的外部世界。代理在外部世界中执行的操作可能会失败,例如因为不满足其先决条件,或者因为它们违反了某些外部环境规范。在内部知识库中,无法执行某些操作应导致其完全回滚,遵循使用的标准ACID交易模型,例如:在数据库中。由于不可能回退在外部世界中执行的外部动作,因此必须通过执行补偿操作(或修复)来恢复外部效果,补偿操作(或维修)可以恢复最初执行的动作的效果。在εTR中,维修在程序中明确说明。有了它,每个执行的外部动作都将与其相应的补偿或维修明确关联。这些用户定义的维修不能保证恢复原始操作的效果。在本文中,我们定义了如何扩展εTR以便在发生故障时自动计算补偿。为此,我们首先说明如何使用动作语言的语义来建模εTR。的外部域,以及如何使用它来推理动作的逆转。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号