根据其定义,实例方法涉及对象状态。
Instance methods, almost by definition, involve object state.
而它们时常也会涉及易变的对象状态。
场景3:不适当的对象状态。
有时必须跨流程组件调用来保持业务对象状态。
Sometimes it is necessary to keep business object states across process component invocations.
它也是有效的存储对象状态的互联网应用。
It is also effective for storing object state of Internet applications.
summarize函数访问属性来提供对象状态的简述。
The summarize function accesses properties to provide a short overview of the state of the object.
一个对象状态的变化可能就会影响另一个对象。
在数据流上下文中,分析师识别对象类型,并思考改变对象状态的事件。
In the context of data flow, an analyst identifies object types, and thinks about events that change the state of objects.
同样,在回放期间,如果并不能确保相同的对象状态,那么确认点将会失败。
Also, during playback, if the same object state is not ensured, then the verification point will fail.
允许按任意顺序设置属性,即便这样做会导致出现暂时无效的对象状态也如此。
Do allow properties to be set in any order even if this results in a temporary invalid object state.
他们也应该按照对象类型、事件、对象状态的变化,以及触发和控制事件的业务规则进行思考。
They should also think in terms of object types, events, changes to the state of the objects, and business rules that trigger and control events.
指出问题的实质是对象状态数据模型、对象模拟模型和对象分析处理模型的综合表达与处理。
It is shown that the integrated expression and the processes of the object state model, the object simulative model and the object analytic model are key issues for integration.
本文不涉及分布式计算情况下的数据同步、数据锁、多线程下对象状态同步和超长事务等问题。
The synchronization and data lock in distribute enviroment, and long transaction and concurrency in multi-thread enviroment are not our concerns in this article.
在缺乏同步的情况下,可能会遇到某个对象引用的更新值(由另一个线程写入)和该对象状态的旧值同时存在。
In the absence of synchronization, it is possible to see an up-to-date value for an object reference that was written by another thread and still see stale values for that object's state.
类是面向对象测试的基本单元,类测试一般分为基于数据流的测试方法和基于对象状态的测试方法。
Class is the basic unit in object-oriented test. Generally, class test can be divided into the testing way based on data flow and the testing way based on object states.
方面还有用新的、更精细的方式修改对象状态和行为的能力,从而引起了对维护系统完整性、健壮性、甚至整体理解的担心。
Aspects also have the ability to modify object state and behavior in new, more fine-grained ways, raising worries about maintaining system integrity, robustness, and even comprehension.
要补救前面提到的反模式,您可以“隐藏暴露的实例变量,并且提供公开暴露的增变方法和访问方法,适用于访问对象状态”。
To remedy the previously mentioned anti-pattern, you can "hide the exposed instance variables and provide publicly exposed mutator and accessor methods as appropriate to access the object state."
在执行测试之后,您可以利用VerificationPoint Comparator来分析区别,或者如果对象性能改变了,就更新基线(期望的对象状态)。
After a test executes, you can use the Verification Point Comparator to analyze differences, or to update the baseline (expected object state) if the behavior of the object changes.
即使在对象更新它们状态的情况下,也应该谨慎地考虑对象实例化。
Even in the case when objects update their state, object instantiation should be carefully considered.
您可以在规则文件中添加断点,以便在规则执行期间的特定时刻检查对象的状态。
You can add breakpoints to your rules file, which lets you inspect the state of the objects at specific moments during rule execution.
对静态方法的测试也不支持,因为它们不影响对象的状态。
Tests on static methods also are not supported because they don't affect object state.
当集群的对象的状态发生变化时,每个集群成员将发布两个更新。
Each cluster member will publish two updates when one of its objects changes state.
对技术人员来说,同一事件序列反映了代表业务实体对象的状态变化。
For technologists, the same series of events reflects the change in state for object representing the main business entity.
最后,我为每个对象调用状态函数。
Finally, I call the status functions for each of the objects.
全局变量是非事务性状态对象。
图1显示了每行代码执行后各对象的状态。
Figure 1 shows the state of the objects after each line of code executes.
此示例应用程序按照对象缓存与状态处理所述演示对象缓存和JSR168 状态处理概念的应用。
This sample application illustrates object caching and the exploitation of JSR168 state handling concepts, as discussed in Object caching and state handling.
对于删除操作,将记录删除前数据对象的全部状态。
Deletions record the entire state of the DataObject before it was deleted.
一个不可变对象的状态在其构造完成之后就不可改变,换句话说,构造函数是唯一一个您可以改变对象的状态的地方。
An immutable object's state cannot change after construction. In other words, the constructor is the only way you can mutate the object's state.
但纯粹的OO对象不仅有状态,还要有行为。
Pure OO objects on the contrary should be able to combine behavior and state.
应用推荐