Mixing Constraints and Objects: a Case Study in Automatic Harmonization
Mixing Constraints and Objects: a Case Study in Automatic Harmonization
复制标题
混合约束和对象:自动协调的案例研究
DOI:
--
复制
发表时间:
2007
期刊:
影响因子:
--
通讯作者:
F. Pachet
中科院分区:
文献类型:
--
作者:
F. Pachet
We propose an extension of Smalltalk with f ini te-domain constraint sat isfact ion mechanisms. Our system, called BackTalk, allows the definition of constraints over arbitrary Smalltalk objects, and implements efficient algorithms for constraints satisfaction. We exemplify the use of BackTalk on a problem known to be complex, automatic harmonization. We outline several previous attempts to solve the problem with similar mechanisms, and stress on their inefficiencies, mainly the lack of structure of domain objects. We propose to solve the problem by a combination of constraints and objects that fully benefits from object structures. This is achieved in practice by separating the constraint satisfaction process in two steps. By comparison, our system yields excellent results, both in term of efficiency and readability. We discuss the generality of our approach to problems involving numerous and heterogeneous object structures. Key-words: constraints, finite-domain constraint satisfaction, embedded constraint systems, automatic harmonization. 1. Yet an other object + constraint