Classic application architecture best practices recommend that each of these logic types be contained in a separate layer, as shown in Figure 1.
典型的应用程序架构最佳实践推荐这些逻辑类型分别包含在不同的层中,如图1所示。
Listing 1 shows an example ASP file that provides both view and control logic.
清单1显示了一个示例ASP文件,提供了视图和控制逻辑。
As illustrated, the conversion logic is externalized in a specific XSL file, instead of tweaking with other application logic as shown in Figure 1.
可以看出,转换逻辑在一个特定的XSL文件中得以具体化,而不是像图1那样,与其他应用程序逻辑纠缠不清。
The JDBC code in Listing 1 includes no transaction logic, yet it persists the trade order in the TRADE table in the database.
清单1中的JDBC代码没有包含任何事务逻辑,它只是在数据库中保存TRADE表中的交易订单。
Table 1 offers a comparison of the logic flow of the two methods, and illustrates what happens on specific lines in Listings 1 and 2.
表1提供了对两种方法的逻辑流程的比较,并演示了清单1和清单2的特定行中发生的事情。
The UNION logic then moves to the next leg, corresponding to Europe and Asia in turn, and repeats steps 1 through 4.
然后,UNION逻辑转移到下一个分支,依次对应于欧洲和亚洲,并重复步骤1到步骤4。
Figure 1 is a sequence diagram that describes how the framework will process business logic.
图1是一个时序图,描述框架将如何处理业务逻辑。
Note that the simple methods in Listing 1 can be called from other classes, such as our business delegates, to perform validation logic as needed.
可以从诸如业务委派等其它类上调用清单1中的简单方法,以按需执行验证逻辑。
The sequence diagram of Figure 1 is simpler than that for the basic course of action because the logic of an alternate course is typically simpler.
图1的序列图要比基本行动过程的序列图简单,因为备选过程的逻辑通常更简单些。
The activity diagram in Figure 1 depicts the business logic for how someone new to the university would enroll for the first time.
图1中的活动图描述了大学新生第一次将如何办理入学的商业逻辑。
A single worker thread might be able to push one logic CPU to 100% utilization in the LPAR, so the total thread number is set to number of the CPUs minus 1.
单个工作线程也许就能迫使LPAR中的一个逻辑CPU达到100%的利用率,因此将总线程数量设置为CPU数量减1。
By the same unflinching logic, Germany, Italy, Japan, Russia and Spain will not see out the next millennium. Even China has only 1, 500 years left.
按同样的逻辑,德国、意大利、日本、俄罗斯和西班牙将挨不到下个千年,即便是中国也只剩1500年了。
Next, as shown in Listing 1, you add the code to deliver the Atom feeds in this execute method of the generated business logic.
接下来,如清单1所示,在这个生成的业务逻辑的execute方法中添加代码来交付Atomfeed。
This consolidation of logic is characteristic of a Model 1 architecture (see Resources), which is the easiest way to develop simple Web applications.
这种逻辑合并是Model1架构的一个特征(查看参考资料),这是开发简单Web 应用程序最轻松的方法。
The client API (shown in Listing 1) provides methods for all of the functions that a business logic must supply, as identified above, except for contacting a third party Web service.
如前所述,客户端API(图1所示)提供了所有业务逻辑必须提供的功能,除了与第三方Web服务联系。
The rest of the logic, to find and call the main() method of the target class, is the same as the Listing 1 Run code.
该逻辑的其余部分(即查找和调用目标类的main()方法)与清单1 中的Run 代码相同。
As a result, you see lots of tests for things that are easy to test (equals and toString tend to pop out; see Listing 1), and the real logic of the unit under test is ignored.
结果,您会看到对容易测试(equals和toString往往很突出,参见清单1)的内容进行多次的测试,而被测单元的真正逻辑却被忽略了。
This entire request cycle is termed the Apache Wink logic flow, as shown in Figure 1.
整个请求周期被称为ApacheWink逻辑流,见图1。
As shown in Figure 1, the first four Web services contain only the data base functions, while the last two primarily use business logic to achieve the goal of sending a bill to the intended retailer.
如图1所示,前四种Web服务仅包含基本功能的数据,而最后两个主要使用业务逻辑来达到向零售商发送帐单的目的。
As you probably remember from Part 1, the form auto-saving should not interfere with the application logic.
也许您还记得,在第1部分中,表单的自动保存不应该干扰应用程序逻辑。
In Part 1 of the series, I showed how to execute the business logic of web services to get the proprietary Enterprise application Integration (EAI) applications to talk to one another.
在这个系列的第1部分中,我展示了如何执行Web服务的业务逻辑来使专有的企业应用程序集成(Enterprise Application Integration,EAI)应用程序可以交互。
This essay deals with these questions:1)Are there any differences between truth and logic truth ?
本文讨论了以下几个问题:(1 )“逻辑真”是否是真的一个子类?。
In view of 120-1 air brake fault characteristics, it used fault tree analytic method union logic code way to establish knowledge rule-set.
针对120-1空气制动机的故障特点,本文利用故障树分析法结合逻辑编码的方式建立知识规则集。
To construct the system of mathematical dialectical logic, we must first understand correctly the following theoretical issues: 1.
为了建构数理辩证逻辑系统,必须首先正确理解如下几个理论问题:1。
There are two short points among these research: 1) fail to distinguish children's answering between logic reasoning and daily knowledge.
这些研究中存在两个重要不足:(1)未能区分儿童是依据逻辑推理回答问题,还是依据日常知识经验或知觉判断回答问题。
A hardware debugging tool that can be used to capture the logic levels (0 or 1) of dozens, or even hundreds, of electrical signals in real-time.
一种硬件调试工具,能捕获实时电信号的许多逻辑电平(0或1),逻辑分析仪在调试硬件问题和复杂的处理外设交互时相当有用。
It consists of an 8-bit 6502 CPU (without support for decimal mode, also known as BCD), DMA transfer unit, pseudo audio processing unit, 1/12 clock divider, and a bit of logic for address decoding.
他由一个8位6502CPU(不支持整数模式,也被称为BCD),DMA传输单元,伪音频处理单元,1/12时钟分频器,以及1位逻辑单位的地址译码。
This is accomplished using Boolean logic, the logic of the digital Numbers 0 and 1.
这种使用的0和1的数字逻辑是采用布尔逻辑完成。
This is accomplished using Boolean logic, the logic of the digital Numbers 0 and 1.
这种使用的0和1的数字逻辑是采用布尔逻辑完成。
应用推荐