Patents
Literature
Patsnap Eureka AI that helps you search prior art, draft patents, and assess FTO risks, powered by patent and scientific literature data.

7 results about "Strategy pattern" patented technology

In computer programming, the strategy pattern (also known as the policy pattern) is a behavioral software design pattern that enables selecting an algorithm at runtime. Instead of implementing a single algorithm directly, code receives run-time instructions as to which in a family of algorithms to use.

Fine configuration method and system based on strategy mode

The invention provides a fine configuration method and system based on a strategy mode, and the method comprises the steps: defining themes used for abstracting entrance traffic, order distribution and other events through a configuration system, and configuring a basic data source and a data processing rule for each theme, wherein the data processing rule supports a user to carry out code development implementation in a basic class of each service line according to service requirements; the system automatically stores theme data to middleware, matches a corresponding theme through a strategy mode after receiving a user request, performs secondary data processing according to a configuration rule and returns a result; the technical effects of flexible configuration mode, quasi-real-time index calculation, support of multi-source data access, high-concurrency scene adaptation and good expansibility in flow fine management are realized, and the service operation demand change can be quickly responded.
Owner:TIANJIN AUTOHOME DATA INFORMATION TECH CO LTD

Policy scheduling method and system, electronic device and storage medium

This application provides a strategy scheduling method, system, electronic device, and storage medium that combines method-level strategy encapsulation with pre-compiled execution, relating to the fields of software architecture and runtime scheduling optimization. The method encapsulates multiple strategy methods with the same predefined commonalities within each strategy category using a small number of methods, changing "class-level" encapsulation to "method-level" encapsulation to reduce the number of strategy classes at the source. It optimizes calls by replacing traditional reflection calls with pre-compiled execution handles and constructs a hierarchical concurrent caching structure, designing a concurrent index layer and a hotspot caching layer. High-frequency strategies are directly retrieved from the hotspot caching layer, and all strategies are distributed across the two caching layers to reduce hash collisions. A hotspot update mechanism maintains the caching of high-frequency strategies in the hotspot caching layer, improving retrieval and scheduling efficiency under high concurrency. Compared to traditional class-level strategy implementation schemes, this method achieves significant performance and resource optimization in scenarios with a large number of strategies and high concurrency scheduling.
Owner:CHENGDU CHENGDIAN YIXING DIGITAL HEALTH SOFTWARE CO LTD

Code automatic generation method, device, equipment, medium and program product

The present disclosure provides a code automatic generation method, which can be applied to the field of artificial intelligence or other technical fields. The method comprises: in response to a request of a target user for initiating code generation, obtaining configuration parameters input by the target user; loading a pre-configured strategy component template, and generating an enumeration class and a strategy interface according to the configuration parameters and the strategy component template; generating at least one strategy implementation class by using the strategy component template based on enumeration values of the enumeration class, wherein the strategy implementation class is used to implement the strategy interface; and integrating the enumeration class, the strategy interface and the strategy implementation class to form a strategy mode code set. The present disclosure also provides a code automatic generation device, equipment, storage medium and program product.
Owner:CHINA CONSTRUCTION BANK +1

Policy scheduling method and system, electronic equipment and storage medium

The invention provides a policy scheduling method and system combining method-level policy encapsulation and pre-compilation execution, electronic equipment and a storage medium, and relates to the technical field of software architecture and operation scheduling optimization. In the method, a small number of policy methods with the same preset generality are encapsulated in each policy large class; class-level packaging is changed into method-level packaging so as to reduce the number of strategy classes from the source, a pre-compiling execution handle is used for replacing traditional reflection calling so as to optimize calling, a layered concurrent cache structure is constructed, a concurrent index layer and a hot spot cache layer are designed, high-frequency strategies are directly retrieved from the hot spot cache layer, full-amount strategies are dispersed in two layers of caches, and therefore the high-frequency strategies can be directly retrieved from the hot spot cache layer. Hash conflicts are reduced, caching of a hotspot cache layer for a high-frequency strategy is kept through a hotspot updating mechanism, and retrieval and scheduling efficiency under high concurrency is improved. Compared with a traditional class-level strategy mode implementation scheme, remarkable performance and resource optimization is achieved in a large-strategy and high-concurrency scheduling scene.
Owner:CHENGDU CHENGDIAN YIXING DIGITAL HEALTH SOFTWARE CO LTD

Management method and system for multi-agent application integrating graph arrangement and expert ability

The invention discloses a multi-agent application management method and system fusing graph arrangement and expert ability, belongs to the technical field of computers, and aims at locating historical experience highly related to a current task target by retrieving a historical task execution sub-graph and a success strategy mode from a coevolution knowledge graph based on graph state differences. Blind search is avoided, and the utilization efficiency and correlation of historical experience are improved. Meanwhile, candidate task flows can be generated and optimized. Reasoning is carried out by taking the historical modes as reference and combining historical efficiency data of the intelligent agent, so that a plurality of candidate task flows can be generated; the multi-scheme generation mechanism not only considers the historical success path, but also integrates the actual performance of the intelligent agent, so that the generated task flow is more diversified and adaptive, and the risk of a single scheme is reduced.
Owner:HANGZHOU WORMWOOD INFORMATION SERVICE CO LTD

Event processing method and device based on strategy mode and medium

The invention discloses an event processing method and device based on a strategy mode and a medium, belongs to the technical field of Internet, and is used for solving the technical problems that a traditional event-driven architecture is rigid in time processing, lack of dynamic routing capability, insufficient in multi-combination support and unbalanced in resource utilization. The method comprises the following steps: performing strategy registration processing on an uploaded strategy packet through a dynamic strategy registration center to obtain an input event; decoding the input event, and extracting a standardized event object based on the key field; performing feature extraction on the event text content in the standardized event object to obtain a multi-dimensional feature vector; performing strategy combination processing on the multi-dimensional feature vectors through a multi-modal routing engine to obtain an optimal strategy combination; and carrying out calculation resource optimization processing of relevant strategy DNA features on the optimal strategy combination to obtain a strategy event processing result.
Owner:INSPUR ZHUOSHU BIG DATA IND DEV CO LTD

A Master Data Management Method and System Based on Strategy Pattern and Rule Engine

The application provides a kind of strategy mode and rule engine-based master data management method and system, related to data management field, including receiving master data and self-adapting flow limiting;Perform double check and calculate priority;Select processing rule set to construct workflow;Based on quality mark dynamic generation distribution rule;Master data is written into message queue and pushed to target system according to weight.The application improves master data processing efficiency and quality through differentiated processing strategy and adaptive data distribution, enhances the reliability and flexibility of data flow.
Owner:北京科杰科技有限公司