In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains the "web agent model consists of which parts", the content of the explanation is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in-depth, together to study and learn "which parts of the web agent model" bar!
structure
Participant
Listed in parentheses are the corresponding classes in the protection agent instance in the previous article.
Proxy (AccessorProxy)
Manage a reference so that the agent can access the entity. The Proxy in the resulting class diagram manages objects of type RealSubject, and Proxy can manage objects of type Subject if possible, so Proxy can be more versatile.
-provides the same interface as the Subject interface so that proxies can be used to replace entities. In other words, nothing seems to have changed from the customer.
-provide additional operations to meet customer needs according to requirements.
Subject (DbAccessor)
-define a common interface between RealSubject and Proxy so that Proxy can be used anywhere you use RealSubject. From the user's point of view, whether it's RealSubject or Proxy, it's the same.
RealSubject (RealAccessor)
-the entity represented by Proxy.
In the actual development, it is possible that the first thing that exists is the Subject that implements the function. When additional requirements arise (memory savings, access protection, etc.), the functionality of Subjec can be transferred to the new class RealSubject, and Subject itself becomes an abstract class. Next, define the Proxy according to the interface of Subject and give it to the user. This can be seen as an example of refactoring.
Collaboration
The agent forwards the request to the agent object at an appropriate time and manner in accordance with its duties.
Thank you for your reading, the above is the content of "what are the components of the web agent model". After the study of this article, I believe you have a deeper understanding of the problem of which parts of the web agent model is composed of, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.