The rule shown in Listing 10 has one conditional element that references a Machine object.
清单10中显示的规则有一个引用Machine对象的条件元素。
This reference is then used in the consequence part of the rule to assign tests to the Machine object.
然后,在规则的结果块使用该引用,将测试分配给Machine对象。
Without this reference assignment, there would be no way to assign a tests due date to the Machine object.
如果不分配这个引用,那么就无法将测试到期日期分配给Machine对象。
Therefore, this rule's conditional element checks whether the value of the type property (of the Machine object) is Type1.
因此,该规则的条件元素检查(Machine对象的)type属性是否为Type1。
Whenever this element evaluates to true, it assigns a reference to the Machine object that is then used in the consequence part of the rule.
当这个元素等于true 时,它将一个引用分配给Machine对象,而后者将在规则的结果块被用到。
Whenever this element evaluates to true, it assigns a reference to the Machine object that is then used in the consequence part of the rule.
当这个元素等于true 时,它将一个引用分配给Machine对象,而后者将在规则的结果块被用到。
应用推荐