Scenario 3: Improper object state.
场景3:不适当的对象状态。
More often than not, they involve mutable object state.
而它们时常也会涉及易变的对象状态。
Instance methods, almost by definition, involve object state.
根据其定义,实例方法涉及对象状态。
Deserializes an object state graph from serialized form.
将序列化形式的物件状态图还原序列化。
It is also effective for storing object state of Internet applications.
它也是有效的存储对象状态的互联网应用。
Shows how to manage graphics object state and nested graphics containers.
示范如何管理图形物件状态和巢状图形容器。
Tests on static methods also are not supported because they don't affect object state.
对静态方法的测试也不支持,因为它们不影响对象的状态。
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.
允许按任意顺序设置属性,即便这样做会导致出现暂时无效的对象状态也如此。
Figure 2 is an object state diagram of the six phases of the JSF lifecycle, including validation and event handling.
图2是JSF生命周期的第五个阶段的一个对象状态图,包括时间有效性验证和处理。
The idea, methods of class testing, such as service-based, OSD-based (Object State Diagram), flow graph-based and specification-based, are discussed.
文章从基于服务的、基于对象动态测试模型的、基于流图的以及基于规约的四个方面论述了类测试的思想和方法。
Method: Call the setter or command which affects the object state. Call the getter to verify that state. If you can't see this state see to "Piercing an Interface".
方法:如某些设置子或命令会影响了对象的状态,当调用他们时,应调用属性获取子来验证状态。
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.
在执行测试之后,您可以利用VerificationPoint Comparator来分析区别,或者如果对象性能改变了,就更新基线(期望的对象状态)。
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.
指出问题的实质是对象状态数据模型、对象模拟模型和对象分析处理模型的综合表达与处理。
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."
要补救前面提到的反模式,您可以“隐藏暴露的实例变量,并且提供公开暴露的增变方法和访问方法,适用于访问对象状态”。
From mathematical model of target tracking, Performance of target tracking is impacted by three main factors of object state transition model, filtering algorithm and object modeling technique.
由目标跟踪的数学模型得出,影响目标跟踪性能的三个主要因素为目标状态转移模型、滤波算法和目标建模技术。
The theory method of multi-sensor data fusion is studied deep. And more, the estimate theory of data fusion is applied concretely to the theodolite with the aim of prognosticating the object state.
深入研究了多传感器数据融合的理论方法,并实验研究了数据融合的估计理论在光电经纬仪中的应用,目的是实现对目标状态的预测。
A heavy object, like a football player moving at a high speed, has a lot of momentum—that is, once he is moving, it is hard to change his state of motion.
一个重物有很大的动量,也就是说,比如一位高速移动的足球运动员一旦运动起来,就很难改变运动状态。
They are properties of the object prototype, but unlike the state variables, they have default values as shown in Listing 17.
它们是对象原型的属性,但是与状态变量不同,它们具有清单17所示的默认值。
If you haven't provided a no-argument one, this is your last chance to add some state to the object!
如果您没有提供一个无参数构造函数的话,那么这是您给对象添加一些状态的最后机会!
The information in this file becomes the expected state of the object during subsequent builds.
此文件中的信息成为随后的构造过程中对象的期望状态。
The code in Listing 8 does the same thing as the original code, but the logic for handling states has been put into one object for each state.
清单8中的代码完成的工作与初始代码相同,但是用于处理状态的逻辑已经被放入每个状态的一个对象中。
If you have an immutable object, you must set whatever state it will contain in the constructor.
如果您有一个不可变对象,则必须要在构造函数中设置该对象将包含的任何状态。
If a response is received, the request object registers a ready state of 4.
如果接收到一个响应,那么请求对象会注册为就绪状态4。
Transitions can be either manual or automatic, which means that when a state is reached, the transition occurs immediately and the object moves into the next state.
转换可以手动完成,也可以自动完成,这就意味着,一旦达到某种状态,就会立即发生转换,对象也会转至下一种个状态。
Even in the case when objects update their state, object instantiation should be carefully considered.
即使在对象更新它们状态的情况下,也应该谨慎地考虑对象实例化。
The object must be in the same state during playback for proper comparison with the baseline.
对象在回放期间必须是同一状态,以便与基线进行比较。
For technologists, the same series of events reflects the change in state for object representing the main business entity.
对技术人员来说,同一事件序列反映了代表业务实体对象的状态变化。
For technologists, the same series of events reflects the change in state for object representing the main business entity.
对技术人员来说,同一事件序列反映了代表业务实体对象的状态变化。
应用推荐