Rather than having each object maintain its own validation, you merely encode the correct validation rule for each object.
您只要为每个对象编码正确的验证规则,而不是让每个对象维护自己的验证。
That same object is the one used in this rule.
这正是这个规则中使用的对象。
It can handle dependencies, such as the rule that if a source file is modified, its corresponding object file must be regenerated by recompiling the source.
它可以处理相关性,例如有这样的规则:如果源文件被修改,那么必须通过重新编译该源文件来重新生成其对应的目标文件。
In the rule set, you have already created two business object variables.
在规则集中,您已经创建两个业务对象变量。
Each p: : RD grammar becomes an object blessed into the p: : RD class, with each rule in the grammar as a method you can use to cause actions to happen.
每个P:RD语法成为P: rd类中的一个对象,语法中的每一个规则都可以作为用来执行动作的方法。
When a rule runs, the rules engine must find an instance of the application object.
当运行一条规则时,规则引擎必须找到该应用程序对象的一个实例。
To maintain the integrity of objects with different lifetimes, you must follow one rule when referencing objects: an object may not reference another object with a shorter lifetime.
要维护具有不同生存期的对象的完整性,在引用这些对象时必须遵守一条规则:一个对象可能不能引用另一个具有更短生存期(与自身比较)的对象。
When an object is removed from the working memory, any conditional elements (of any rule) that had a reference to this object cannot be evaluated now.
当从工作内存中移除对象之后,引用该对象的(属于任何规则的)任何条件元素将不被求值。
The basic rule is: if you allow someone to click on a link, you have to add an object to the browser history so the Back button will work as expected.
基本规则是:如果允许别人单击链接,就必须在浏览器历史中增加一个对象,以便后退按钮能够正常工作。
Because the object no longer exists as part of the knowledge, the rule has no chance of being fired.
因为对象不再作为知识的一部分存在,所以规则没有启动的机会。
It is generally up to the code calling the rule to make sure that the object exists on the session at the expected key.
通常,调用规则的代码需要确保会话中存在对应于预期键的对象。
The import operation follows this unwritten rule; it either populates a line of text (to Object Text attribute) or a heading (to Object Heading attribute).
导入的操作遵循该不成文的规则;它不会实现一行文本(为ObjectText属性)或者一个标题(为 ObjectHeading 属性)。
The rule shown in Listing 10 has one conditional element that references a Machine object.
清单10中显示的规则有一个引用Machine对象的条件元素。
The reason is that the condition for firing Rule 2 that was once true is not true anymore because it references an object (objectB) that is no longer part of the knowledge.
原因在于曾经为真值的用于启动Rule2的条件不再为真,因为它引用了一个不再是知识的一部分的对象(objectB)。
Each TStaffRole (child) class aggregates a verb object that represents the authorization rule.
每个TStaffRole(子)类都聚合一个表示授权规则的谓词对象。
Note that this combines with the "everything is an object" rule to create some powerful — but easy-to-explain — code opportunities.
这条规则与“一切都是对象”规则结合起来,可以实现功能强大(但很简单)的代码。
All rule projects most likely reference a common project that encapsulates the application Business Object Model (BOM), as shown in Figure 4.
所有规则项目都很可能引用一个封装应用程序BusinessObjectModel (BOM)的公共项目,如图4所示。
When the SelfInitializingApplicationObject interface is implemented and if the object is not found when the rule runs, the rules engine will try to instantiate that object.
在实现了SelfInitializingApplicationObject接口的情况下,如果当规则运行时没有找到应用程序对象,那么规则引擎将尝试实例化该对象。
The MailRule object contains lists for the actions, conditions, and exceptions contained in the Mail Rule document.
MailRule对象包含了(MailRule文档中的)操作、条件和异常的列表。
As a general rule, it's almost always safer to go with the Templates object.
一般地,使用Templates对象通常更安全。
You can see that the separation of concern rule is obeyed, as every component handles an isolated call to retrieve its related object.
您可以看见它们都遵守了分离关注点原则,因为每个组件处理一个单独的调用来检索相关的对象。
The exception to this rule could be a log salvage operation where already saved logical logs are backed up again with the same object name, thereby inactivating the previous version.
不过这条规则也有一个惟一的例外,那就是日志抢救操作,这种操作再次用相同的对象名称来备份已经被保存的逻辑日志,从而使得前一个版本进入不活动状态。
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对象,而后者将在规则的结果块被用到。
Sends the request to the ILOG JRules rule engine for execution, and an IlrSessionResponse object is returned with the evaluation response.
发送请求到ILOGJRules规则引擎中执行,然后返回一个包含评估响应的IlrSessionResponse对象。
This reference is then used in the consequence part of the rule to assign tests to the Machine object.
然后,在规则的结果块使用该引用,将测试分配给Machine对象。
Peek follows the same rule, but the object isn't removed.
peek与此类似,只是不移除栈中的对象。
In the second tutorial (Part 3), you build a more complex custom object which makes Web service calls to get data used in the rule.
在第二个教程(第3部分)中,您将构建一个比较复杂的自定义对象,该对象将进行Web服务调用以获取规则中使用的数据。
Because all of these (actions, conditions, and exceptions) come from the Mail Rule document, the objects are initialized with a document object.
因为所有的操作、条件和异常都来自于MailRule文档,所以使用Document对象来初始化对象。
The inertial object with uncertain coefficient is a class of difficult object, in this paper, an method of control based on the experiment rule for the Si-Mo Furnace is developed.
变惯性系数惯性对象是一类较难控制的对象,例如文中所述硅钼炉的温度控制问题,作者采用经验规则控制方法解决了这类对象的有效控制问题。
How to use Object Names to coordinate nested fields when evaluating WebSphere TX map Rules. The map rule that contains the functional map call is shown below?
在计算映射规则时如何使用对象名协同嵌套的字段一节将描述这种行为。
应用推荐