An easy way to follow the Single Responsibility Principle is to constantly ask yourself whether every method and operation of a class is directly related to the name of that class.
遵循单一责任原则的最简单办法就是不断地问自己是不是这个类的每一个方法和操作都与这个类的名称直接相关。
You can think of a port as an interface and an operation as a method to be called on a particular object.
你可以把端口看作一个接口,而把操作看作对一个特定对象所调用的方法。
Summary: as we determined last week, UML activity diagrams document the logic of a single operation or method, a single use case, or the flow of logic of a business process.
简介:正如我们上周已确定的那样,UML活动图记录单个操作或方法的逻辑、单个用例或商业过程的逻辑流程。
The OmniFind connector calls a validateLogon() method at the beginning of each operation, which uses checkOECredentials() to verify that you have established valid credentials.
OmniFind连接器在每个操作的开头调用validateLogon()方法,这个方法使用checkOECredentials()检查是否建立了有效的凭证。
Next, a valid destination for the drag operation is defined by passing a component to a DropTarget object or by calling the new setDropTarget() method of Component.
下一步,拖动操作的有效目的地可通过向DropTarget对象传送一个组件或者调用Component 的新的setDropTarget()方法来定义。
A combination of URI and HTTP method defines what operation will occur. The REST interface provides the following HTTP methods.
URI和HTTP方法共同定义将要发生的操作。
The successful deployment and operation of the Japanese IKAROS and NASA's NanoSail-D solar sails have demonstrated a key method for getting around in space, without having to use any propellant.
日本的伊卡洛斯飞船和NASA的纳米帆-D太阳帆的成功发射和展开,已经展示了一个不用任何发动机就可以在太空中徘徊的关键方法。
Or, in the case of a non-applicable method, it becomes a null operation.
或者,在不适用的方法的情况下,成为空操作。
For example, an operation to view a resource is implemented using the GET method of the HTTP interface.
举例来说,查看资源的操作可以使用HTTP接口的GET方法实现。
Each method will be triggered by a different HTTP operation, as listed in Table 1, which shows the mapping of the HTTP operations, URIs, and methods.
正如表1中所列出的,每个方法将由不同的HTTP操作触发,该表展示了HTTP操作与URIs以及方法之间的映射。
The Project Explorer view shows a list of the parts of the OrderProcessor provider and a method (behavior) for each provided operation.
ProjectExplorer视图显示了OrderProcessor提供者各个部分的列表,以及每一个被提供的操作的方法(行为)。
You can do a similar operation to test whether a value is in the list of data values returned by calling the values method.
可以使用相似的操作检查某个值是否在调用values方法所返回的数据值列表中。
The Project Explorer view in Figure 7 shows a list of the parts of the OrderProcessor provider and a method (behavior) for each provided operation.
图7中的Project Explorer视图显示了OrderProcessor提供商部分的列表以及每一个提供的操作的方法(行为)。
Using 40kg of scrap iron, they ran a prototype experiment which showed that the method worked. Then the full-scale treatment facility came into operation.
五年之前他与同济大学的马教授合作,用了四十公斤废铁屑做了一个小试(小规模实验)证明这个方法有效果。
A field's hook method is named _set_ [field name] , and it gets called whenever a value is about to be set for that field, whether as part of a create operation or an update operation.
字段的钩子方法命名为_ set _ [fieldname],不管是作为create操作还是update操作的一部分,每当要为该字段设置一个值时,都会调用该方法。
A tracking estimation method of network equivalent parameters of facing nodes is researched with the variation of operation point.
该文研究了面向节点,随运行工况变动跟踪估计电网等值参数的方法。
A similar refactoring of a Web method also needs to be applied in cases where an update operation is supported over HTTP GET, as shown in Listing 4.
当支持通过HTTP GET执行更新操作时,也需要应用类似的Web方法重构,如清单4所示。
You can use the fail method to force a test case to fail, for example if you want to force a timeout of an operation.
您可以利用fail方法强迫这个测试用例失败,例如您想要迫使一个操作暂停。
The application of fuzzy prediction control to ATO system not only enriches the theory of fuzzy prediction control, but also offers a new method for train operation with high quality.
将模糊预测控制应用于列车自动驾驶系统,既充实了模糊预测控制理论,又为实现列车运行过程的高品质控制提供了一种新方法。
Conclusions image navigation system treatment on traumatic cerebrospinal rhino rhea is a safe and effective method and valid nursing is the critical link of success operation.
结论经导航系统鼻内镜治疗外伤性脑脊液鼻漏是一种安全、有效的方法,术前及术后的有效护理是手术成功的重要环节。
The edit document process is similar in operation, using a different URL, and using the POST method of HttpConnect to save the data from the Doc portlet.
编辑文档的过程是相似的,但是要使用不同的URL,并使用HttpConnect 的POST方法保存来自Docportlet的数据。
It achieves space chaos of an image with a pseudo-random sequence generated by linear congruential method, and achieves gray chaos by XOR operation.
该算法利用线性同余模型产生伪随机序列以对图像进行空间置乱,采用异或操作实现图像的灰度变换。
This paper puts forward a kind of view dependent LOD model simplification method based on face deletion operation.
文章提出了一种基于面删除操作的视相关LOD模型简化方法。
Economic operation of power transformers and power lines mainly include economic operation, is a practical method of saving.
电网经济运行主要包括变压器及其电力线路的经济运行,是一项实用性强的节电方法。
Instead, it overrides a method associated with a particular portlet mode. Portlets have four modes of operation.
而是覆盖与特定的portlet模式相关联的方法。
The method, system, and computer program receive a process variable signal associated with operation of a valve.
所述方法、系统和计算机程序接收与阀门操作关联的过程变量信号。
Objective: To make a definite pathologic diagnosis of spine lesions by the use of ct guided percutaneous biopsy before operation, and evaluate the effects of this method.
目的:探讨脊柱肿瘤术前采用CT监测下经皮穿刺活检获得病理诊断的方法,评价其在脊柱肿瘤诊疗中的作用。
Objective: To make a definite pathologic diagnosis of spine lesions by the use of ct guided percutaneous biopsy before operation, and evaluate the effects of this method.
目的:探讨脊柱肿瘤术前采用CT监测下经皮穿刺活检获得病理诊断的方法,评价其在脊柱肿瘤诊疗中的作用。
应用推荐