Product inference engine, singleton fuzzifier and center average defuzzifier were used to calculate outputs.
用乘积推理机、单值模糊器和中心平均解模糊化来计算输出。
As I discuss the singleton, keep the above implementations in mind, although many of those phenomena can occur for any implementation of the singleton.
本文讨论的主题是单例模式,请将上述实现方式牢记于心,因为接下来的现象可能出现在任何一种实现方式中。
A singleton bean is a singleton in the context of the owning container.
Singletonbean是一个在所属容器上下文中的单例对象。
No singleton stateless session bean.
没有单独的无状态会话bean。
The default scope is singleton.
默认范围是singleton。
Hence, SignalTranslator adopts a singleton design pattern.
因此,SignalTranslator采用了singleton设计模式。
You can access methods on singleton objects similar to how you would call static methods.
您可以像调用静态方法一样访问单例对象的方法。
Remember that object denotes a singleton in Scala.
还记得吗,object表示 Scala中的一个单例。
This has the added benefit of separating singleton code from the class code leaving the flexibility to use several instances of the class or using the class as a singleton.
这样分离出单例结构的代码,将有利于保持按单例模式使用类或不按单例模式使用类的灵活性。
Both UI components and the Application object (which is a singleton) can receive system events.
UI组件和应用对象(这是一个单例)都能收到系统事件。
One of the things we are working on is support for clustered singleton services.
我们正在做的一件事是支持集群的单例服务。
This method in turn creates the container (which ACTS as a singleton) and registers components and their parameters.
这个方法然后再创建容器(充当单体)并注册组件和组件的参数。
When copies of the singleton class run in multiple VMs, an instance is created for each machine.
当单例类的副本运行于多个虚拟机中时,每个虚拟机都会为其创建一个实例对象。
So if you serialize one singleton twice, the two serialized objects take on separate identities.
所以如果两次序列化一个单例对象,这两个序列化得到的对象会持有两个不同的标识。
This is demonstrated using the ExceptionHandler class, which again adopts a singleton design pattern.
使用exceptionhandler类可以展示这一点,该类也采用了singleton设计模式。
With some implementations of the singleton, you allow writers of subclasses to override methods polymorphically, something not possible with static methods.
最后,在单例模式的一些实现方式中,单例类的子类能够动态地重载方法,这是静态方法所不能办到的。
Next, UnitsConverter is also a singleton as it is defined using the object keyword.
接下来,UnitsConverter也是一个单例模式,因为它是使用object关键词定义的。
The constructor of BookWebApp gets the singleton instance of the book service implementation object.
BookWebApp的构造函数获取这个图书服务实现对象的singleton实例。
This is a Scala singleton because it USES the object declaration instead of a class declaration.
这是一个Scala单例(singleton),因为它使用对象声明,而不是类声明。
Listing 4 shows a version of the singleton that USES a method instead of an attribute to specify the appropriate class.
清单4显示了使用方法而非属性来指定适当类的单例。
Implement it using a centralized configuration singleton, which you can configure with a properties file.
使用一个集中的配置singleton来实现它,对于这个singleton,可以使用一个属性文件进行配置。
Wherever there are singleton lookup in the legacy codebase, a small change is made to lookup the same component via the service locator instead.
凡是在遗留代码集中出现单件查找的地方,稍加修改即可换用服务定位器来查找同样的组件。
What seems even more perplexing is why there isn't a singleton version of a stateless session bean.
使我感到更为疑惑的是为什么这里不存在无状态会话bean的单独版本。
We made our database a singleton in order to limit the database class to only one instance.
我们将数据库当作一个单实例对象,以将database类限制为1个实例。
In this article, I've presented some ways that the multiple singleton might emerge. If you've discovered any others, I'd be interested in hearing about them.
这篇文章中,讲解了几种会产生多个单例对象的情况,如果你发现了其他的情况,我非常乐意听到它们。
The only other method (set in italics) in the class is used to get a reference to the singleton and to create it if it is not yet instantiated.
该类中仅剩的另一个方法(用斜体标识)用于获取该单件的一个引用,如果尚未实例化则创建它。
With singletons implemented as single instances instead of static class members, you can initialize the singleton lazily, creating it only when it is first used.
由于单例对象作为实例存在而不是类的静态成员,所以你能够惰性地初始化单例对象,即只需要在第一次用它的时候才去创建它。
It is often seen as an antidote for many of the problems that using Singleton brings in its wake (and, as an aside, Singleton was one pattern we did _not_ include in the book :->).
它常常被视为使用Singleton之后带来的许多问题的解毒剂(并且,作为题外话,Singleton是我们没有包含在本书中的一个模式:->)。
Instead, Scala supports a singleton object construct to support those cases where exactly one instance of a type is needed.
相反,Scala支持单例模式,可以应用于那些一种类型只有一个实例的情况。
Instead, Scala supports a singleton object construct to support those cases where exactly one instance of a type is needed.
相反,Scala支持单例模式,可以应用于那些一种类型只有一个实例的情况。
应用推荐