A constraint is a numeric or geometric relationship between objects. Constraints have a declarative nature. Constraints are a natural way for describing relationships between objects. Combining constraint systems and object-oriented programming (OOP) appears hard. All existing systems implicitly compromise the encapsulation principle of OOP. This paper proposes a mechanism that provides for constraints in an object-oriented environment. Constraints are triggered by messages that are being sent to objects. Constraints are resolved through local propagation of known state. We claim that this is the most practical technique in a concurrent or parallel object environment. No compromise has been made to the OOP paradigm. Therefore a truly object-oriented approach to constraint programming is the result.展开▼
机译: A I>约束是对象之间的数字或几何关系。约束具有声明性。约束是描述对象之间关系的自然方法。将约束系统和面向对象编程(OOP)结合起来似乎很困难。所有现有系统都隐式地损害了OOP的封装原理。本文提出了一种在面向对象的环境中提供约束的机制。约束是由发送到对象的消息触发的。约束是通过已知状态的局部传播来解决的。我们声称这是在并发或并行对象环境中最实用的技术。没有对OOP范式做出任何妥协。因此,结果是一种真正的面向对象的约束编程方法。 I>
展开▼