In the world of programming, this pattern is best illustrated by such constructs as switch-case and if-then-else blocks.
在程序中,通过构造诸如 switch-case和 if-then-else 之类的程序块来阐明这种模式是如何实现。
Moreover, even though both requester and provider use JMS as the transport protocol in this case, one of them could switch to a different protocol without affecting the other.
而且,尽管在这种情况下请求者和提供者都使用JMS作为传输协议,但任意一方都可以在不影响另一方的情况下切换到其他协议。
In the end, they cannot easily discontinue using the application and switch to another if they don't like how it's working, as is the case with websites.
最后,如同网站的案例一样,如果用户不喜欢某一应用程序的工作方式,他们并不能轻易停止使用并切换到另一个应用程序。
And the reboot operation is the classic case of a box with a big red switch on the side; the problem is how to push the switch.
而重启操作这一经典例子,就是在机器旁边有一个红色的大开关,问题是如何按这个开关。
One such use case is when you need to switch to another theme template using an URL.
此类用例之一是需要使用URL切换到另一个主题模板时。
Logic statements like WHILE and SWITCH that allow flexible business processes that can change process flow based on the specific case.
像WHILE和SWITCH这样的逻辑语句,提供了灵活的业务流程,可以根据特定的情况改变流程。
Case 4: Having EXPRESS mode without RAW table, and showing a message log switch.
用例4:使用不带raw表的EXPRESS模式,并展示一个消息日志切换。
This switch case calls tcp_drop , which checks the state of the socket.
此切换实例调用tcp _ drop以检查套接字的状态。
The switch case in the tcp_usrreq function checks for the binding of a local port with the socket.
tcp_usrreq函数中的切换实例检查套接字与本地端口的绑定。
You can switch the case of the alpha character underneath your cursor in vi the tilde key (~).
在vi中,可以切换游标下的字母字符的大小写,方法是按escape,然后按波浪号键(~)。
The solution in this case was to switch to memcache and to stop using state on any app server they had.
此处的解决方案是切换到memcache并在所有应用服务器上不再使用状态。
Within the switch statement of the tcp_usrreq function, the case for PRU_LISTEN checks if the socket is bound to the port.
在tcp_usrreq函数的切换语句中,PRU_LISTEN的实例检查套接字是否绑定到端口。
When executing the script containing getopt, named opttest, using a valid argument of -x-or --xxxxx, getopt recognizes the switch and executes the code within the case switch
在执行包含getopt(称为opttest)的脚本时,如果在 -x 或 --xxxxx 中使用有效的参数,getopt 会识别出开关并执行 case 开关中的代码
Let's make the computer of the future-an enormous graphics card mounted into a case, carefully seated into a tiny motherboard that consists of some USB ports and a connector for the power switch.
想象我们未来的电脑变成——一块巨大的显卡装在一个箱子里,小心地放在一块小小的主板上,上面只有几个USB接口和一个电源插口。
In our case, we created a solution with the following switch pairs: (1, 9) (2, 3) (4, 7).
在我们的示例中,创建的解决方案采用下面的交换机配对:(1,9)(2,3)(4,7)。
It automatically picks the best-possible mirror and can dynamically switch mirrors in case of failure.
它会自动选择最佳的镜像,并且在失败时会动态地切换镜像。
Link aggregation provides a mechanism for routing traffic across multiple switches in the case of a network failure of a switch.
链路聚合提供了跨多个交换机路由通信流的机制,有助于防止交换机造成的网络故障。
In the dressing room at half time you feel that they don't switch off at 2-0. That was not always the case.
半场在更衣室里你能感觉到他们并不满足于2比0的比分,以前可不是这样的。
In this case, you have to switch to formula feeding.
在这种情况下,您有切换到公式喂养。
The case for that switch has not yet been made and fortunately there is still a lot of common sense out there.
这种交换还没有发生,幸运的是仍然有许多普通的道理。
Now switch to a use case that involves the demographic data of a person's eye color.
现在看一下有关眼睛颜色的人口数据用例。
A sample make file to build the switch-load file to use in this case could look like.
构建在本案例中使用的开关加载文件的示例制做文件类似于。
Unlike other switch statements, Bash's case runs one set of statements only.
与其他的switch语句不同的是,Bash的case仅运行一组语句。
Put new switch assembly (F) into gear case with actuating arms against quadrant gear.
用靠在伞形齿轮上的驱动臂将新的开关总成(F)放置进齿轮箱。
Although it isn't the optimal solution, multiple elif statements can be used to mimic the switch case statement present in some other languages.
尽管它不是最优的解决方案,但是多个elif语句可以用于模拟其他一些语言中的switch case语句。
The use of switch/case also enables compiler optimization by using a jump table implementation.
使用switch/case也可以通过使用跳转表实现进行编译器优化。
It would be tempting in this case to re-use the IDs teoma and yahoo later in the switch/case/toggle mechanism, but that will not work because those names refer to the instance data.
在本例后面的switch/case/toggle机制中重用teoma和yahoo这两个ID会是个不小的诱惑,但是由于它们的名称都引用了实例数据所以并不能正常运行。
Another similar frequent request is to allow non-constant expressions to appear as case labels of switch statements.
另一个类似的频繁请求是允许非常量表达式显示为switch语句的case标签。
The events are sent as numeric codes, so you can use a simple case-switch.
事件将作为数值代码被发送,因此您可以使用一个简单case - switch。
We experimented with different uses for pattern matching, a powerful improvement on the familiar case-switch statement.
我们实验了不同的模式匹配,作为对我们熟悉的case-switch 指令的一种强大增强。
应用推荐