Integrating rules into object-oriented programming systems
    3.
    发明授权
    Integrating rules into object-oriented programming systems 失效
    将规则集成到面向对象的编程系统中

    公开(公告)号:US5768480A

    公开(公告)日:1998-06-16

    申请号:US327336

    申请日:1994-10-21

    IPC分类号: G06F9/44 G06N5/04 G06F15/18

    CPC分类号: G06F8/315 G06N5/046

    摘要: Techniques for integrating rules into imperative object-oriented languages such as C++. C++ is extended to permit definition of rules as members of classes. When a rule is defined as a member of a class, a preprocessor receives the declaration of the rule's class and of any other class involved in the rule and generates additional data members and member functions for the classes. The additional members of the classes permit a complete implementation of the rule. No additional rule interpreter or decision network is required. The rule definition defines collections of objects linked by interobject pointers to which the rule applies. A rule is evaluated only if there is a change in a value mentioned in the rule in an object belonging to a collection of objects for the rule. The rule's condition is a sequence of bindings and tests. The bindings define a path through a collections of objects to which the rule applies, and the path is followed during evaluation. The rules thus implement access-limited logic.

    摘要翻译: 将规则集成到诸如C ++的强制性面向对象语言中的技术。 扩展C ++以允许将规则定义为类的成员。 当规则被定义为类的成员时,预处理程序将接收规则类和规则中涉及的任何其他类的声明,并为类生成附加的数据成员和成员函数。 这些课程的其他成员可以完全实施该规则。 不需要额外的规则解释器或决策网络。 规则定义定义了应用规则的对象指针链接的对象集合。 只有属性属于规则对象集合的对象中规则中提到的值发生更改时,才会评估规则。 规则的条件是绑定和测试的顺序。 绑定定义通过规则应用于的对象集合的路径,并且在评估期间遵循路径。 因此,规则实施了访问限制逻辑。