CN113986508B - Business flow network decomposition method, system, equipment and medium based on PN machine model - Google Patents
Business flow network decomposition method, system, equipment and medium based on PN machine model Download PDFInfo
- Publication number
- CN113986508B CN113986508B CN202111282943.4A CN202111282943A CN113986508B CN 113986508 B CN113986508 B CN 113986508B CN 202111282943 A CN202111282943 A CN 202111282943A CN 113986508 B CN113986508 B CN 113986508B
- Authority
- CN
- China
- Prior art keywords
- transition
- current
- subnet
- current transition
- business
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5061—Partitioning or combining of resources
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/48—Program initiating; Program switching, e.g. by interrupt
- G06F9/4806—Task transfer initiation or dispatching
- G06F9/4843—Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Description
技术领域Technical Field
本发明属于互联业务处理技术领域,涉及一种分解方法和系统,特别是涉及一种基于PN机模型的业务流网分解方法、系统、设备及介质。The present invention belongs to the technical field of interconnected business processing, and relates to a decomposition method and system, and in particular to a business flow network decomposition method, system, equipment and medium based on a PN machine model.
背景技术Background technique
信息技术是当今世界经济和社会发展的重要驱动力,推动了全球产业结构转型和优化升级,带来了人类生产生活方式的深刻变化。通信、网络等新技术的飞速发展,极大地拓展了信息服务业的发展空间,也带来了新的挑战。一方面,随着业务变得越来越复杂,高耦合的业务处理系统越来越难以扩展与维护,需要将业务流网络进行分解以降低系统的耦合性。另一方面,由于互联业务难以预测并具有短时突发特性,这对业务系统的处理速度提出了很高的要求,因此需要深度挖掘业务处理系统中的并发性,通过业务流网络分解来提高业务处理的并发性以提高系统的处理速度。但是,业务流网络分解是一个复杂度内归问题,目前的工程上都是采用基于经验的分解方法,分解的有效性很大程度上依赖于开发人员的经验,效果难以保证。Information technology is an important driving force for economic and social development in the world today. It has promoted the transformation and optimization and upgrading of the global industrial structure and brought about profound changes in human production and lifestyle. The rapid development of new technologies such as communications and networks has greatly expanded the development space of the information service industry and also brought new challenges. On the one hand, as the business becomes more and more complex, the highly coupled business processing system is becoming more and more difficult to expand and maintain. It is necessary to decompose the business flow network to reduce the coupling of the system. On the other hand, since the interconnected business is difficult to predict and has short-term burst characteristics, this puts high demands on the processing speed of the business system. Therefore, it is necessary to deeply explore the concurrency in the business processing system and improve the concurrency of business processing by decomposing the business flow network to improve the processing speed of the system. However, the decomposition of the business flow network is a complexity internalization problem. At present, the decomposition method based on experience is adopted in engineering. The effectiveness of the decomposition depends largely on the experience of developers, and the effect is difficult to guarantee.
因此,如何提供一种基于PN机模型的业务流网分解方法、系统、设备及介质,以解决现有技术分解的有效性很大程度上依赖于开发人员的经验,效果难以保证等缺陷,实已成为本领域技术人家亟待解决的技术问题。Therefore, how to provide a business flow network decomposition method, system, equipment and medium based on the PN machine model to solve the defects of the existing technology that the effectiveness of decomposition depends largely on the experience of developers and the effect is difficult to guarantee has become a technical problem that needs to be urgently solved by technical people in this field.
发明内容Summary of the invention
鉴于以上所述现有技术的缺点,本发明的目的在于提供一种基于PN机模型的业务流网分解方法、系统、设备及介质,用于解决现有技术分解的有效性很大程度上依赖于开发人员的经验,效果难以保证的问题。In view of the above-mentioned shortcomings of the prior art, the purpose of the present invention is to provide a business flow network decomposition method, system, device and medium based on the PN machine model, which is used to solve the problem that the effectiveness of the decomposition of the prior art depends largely on the experience of the developers and the effect is difficult to guarantee.
为实现上述目的及其他相关目的,本发明一方面提供一种基于PN机模型的业务流网分解方法,包括:构建一业务流网的PN模型,并将所述PN模型中所有变迁放置于未分解子网的变迁集合中;所述变迁为PN模型的数据处理状态;每一变迁都设置有表示层号和每一层内遍号的下标;从所述未分解子网的变迁集合中选取下标最小的变迁作为初始变迁,以未分解子网的变迁集合的变迁作为当前变迁,通过同步处理当前变迁的前置和后置,查找当前变迁的前置和后置之间的相关性,以构建并发执行的业务子网。To achieve the above-mentioned purpose and other related purposes, the present invention provides a business flow network decomposition method based on a PN machine model, including: constructing a PN model of a business flow network, and placing all transitions in the PN model in a transition set of an undecomposed subnet; the transition is a data processing state of the PN model; each transition is provided with a subscript representing a layer number and a traversal number within each layer; selecting the transition with the smallest subscript from the transition set of the undecomposed subnet as the initial transition, and taking the transition of the transition set of the undecomposed subnet as the current transition, by synchronously processing the predecessor and successor of the current transition, finding the correlation between the predecessor and successor of the current transition, so as to construct a concurrently executed business subnet.
于本发明的一实施例中,所述通过同步处理当前变迁的前置和后置,查找当前变迁的前置和后置之间的相关性,以构建并发执行的业务子网的步骤包括:判断当前变迁的前置和后置的状态数是否相等且一一对应;若是,则将当前变迁与其前置和后置并入到用于为所述当前变迁分配的当前业务子网;若否,则继续判断当前变迁的前置和后置的数量是否相同;若是,则转入将当前变迁与其前置和后置并入到用于为所述当前变迁分配的当前业务子网的步骤;若否,继续判断当前变迁的前置的数量是否大于后置的数量;若是,处理所述当前变迁的后置的数量,并构建未分配的业务子网;若否,则处理所述当前变迁的前置的数量,并构建未分配的业务子网。In one embodiment of the present invention, the step of synchronously processing the predecessor and successor of the current transition, finding the correlation between the predecessor and successor of the current transition, and constructing a concurrently executed business subnet includes: determining whether the number of states of the predecessor and successor of the current transition are equal and one-to-one corresponding; if so, merging the current transition and its predecessor and successor into the current business subnet allocated for the current transition; if not, continuing to determine whether the number of predecessors and successors of the current transition is the same; if so, proceeding to the step of merging the current transition and its predecessor and successor into the current business subnet allocated for the current transition; if not, continuing to determine whether the number of predecessors of the current transition is greater than the number of successors; if so, processing the number of successors of the current transition and constructing an unallocated business subnet; if not, processing the number of predecessors of the current transition and constructing an unallocated business subnet.
于本发明的一实施例中,处理所述当前变迁的后置的数量的步骤包括:增加当前变迁的后置的虚拟个数,使当前变迁的后置的数量与前置的数量一致。In one embodiment of the present invention, the step of processing the number of successors of the current transition includes: increasing the virtual number of successors of the current transition so that the number of successors of the current transition is consistent with the number of predecessors.
于本发明的一实施例中,构建未分配的业务子网的步骤包括:将当前变迁进行拆分,为拆分后的每个变迁分配一对前置和后置,将拆分后的变迁的层号下标与当前变迁的层号下标一致的变迁放入未分配的业务子网;当前变迁的拆分个数与当前变迁的后置的增加个数相同。In one embodiment of the present invention, the step of constructing an unallocated business subnet includes: splitting the current transition, assigning a pair of prefix and postfix to each of the split transitions, and placing the transitions whose layer number subscripts of the split transitions are consistent with the layer number subscripts of the current transitions into the unallocated business subnet; the number of splits of the current transition is the same as the number of added postfixes of the current transition.
于本发明的一实施例中,处理所述当前变迁的前置的数量的步骤包括:增加当前变迁的前置的虚拟个数,使当前变迁的前置的数量与后置的数量一致。In one embodiment of the present invention, the step of processing the number of predecessors of the current transition includes: increasing the virtual number of predecessors of the current transition so that the number of predecessors and the number of successors of the current transition are consistent.
于本发明的一实施例中,构建未分配的业务子网的步骤还包括:将当前变迁进行拆分,为拆分后的每个变迁分配一对前置和后置,将拆分后的变迁的层号下标与当前变迁的层号下标一致的变迁放入未分配的业务子网;当前变迁的拆分个数与当前变迁的前置的增加个数相同。In one embodiment of the present invention, the step of constructing an unallocated business subnet also includes: splitting the current transition, assigning a pair of prefix and postfix to each of the split transitions, and placing the transitions whose layer number subscripts of the split transitions are consistent with the layer number subscripts of the current transitions into the unallocated business subnet; the number of splits of the current transition is the same as the number of added prefixes of the current transition.
于本发明的一实施例中,将当前变迁与其前置和后置并入到用于为所述当前变迁分配的当前业务子网的步骤后,所述基于PN机模型的业务流网分解方法还包括:判断当前业务子网是否已遍历结束,若遍历结束,则继续判断未分解子网的变迁集合是否都已分配业务子网;若是,结束业务流网分解;若否,则返回从所述未分解子网的变迁集合中选取下标最小的变迁作为初始变迁,以未分解子网的变迁集合的变迁作为当前变迁的步骤;若未遍历结束,则将当前变迁的后续变迁作为当前变迁,转入通过同步处理当前变迁的前置和后置,查找当前变迁的前置和后置之间的相关性,以构建并发执行的业务子网的步骤。In one embodiment of the present invention, after the current transition and its predecessor and successor are incorporated into the step of allocating the current business subnet for the current transition, the business flow network decomposition method based on the PN machine model also includes: determining whether the current business subnet has been traversed to completion; if so, continuing to determine whether the transition set of the undecomposed subnet has been allocated a business subnet; if so, terminating the business flow network decomposition; if not, returning to the step of selecting the transition with the smallest subscript from the transition set of the undecomposed subnet as the initial transition, and using the transition of the transition set of the undecomposed subnet as the current transition; if the traversal has not been completed, using the subsequent transition of the current transition as the current transition, and entering the step of synchronously processing the predecessor and successor of the current transition, finding the correlation between the predecessor and successor of the current transition, so as to construct a business subnet for concurrent execution.
本发明另一方面提供一种基于PN机模型的业务流网分解系统,包括:预处理模块,用于构建一业务流网的PN模型,并将所述PN模型中所有变迁放置于未分解子网的变迁集合中;所述变迁为PN模型的数据处理状态;每一变迁都设置有表示层号和每一层内遍号的下标;分解模块,用于从所述未分解子网的变迁集合中选取下标最小的变迁作为初始变迁,以未分解子网的变迁集合的变迁作为当前变迁,通过同步处理当前变迁的前置和后置,查找当前变迁的前置和后置之间的相关性,以构建并发执行的业务子网。On the other hand, the present invention provides a business flow network decomposition system based on a PN machine model, including: a preprocessing module, used to construct a PN model of a business flow network, and place all transitions in the PN model in a transition set of an undecomposed subnet; the transition is a data processing state of the PN model; each transition is provided with a subscript representing a layer number and a traversal number within each layer; a decomposition module, used to select the transition with the smallest subscript from the transition set of the undecomposed subnet as the initial transition, and use the transition of the transition set of the undecomposed subnet as the current transition, by synchronously processing the predecessor and successor of the current transition, finding the correlation between the predecessor and successor of the current transition, so as to construct a concurrently executed business subnet.
本发明又一方面提供一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现所述基于PN机模型的业务流网分解方法。Another aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the service flow network decomposition method based on the PN machine model.
本发明最后一方面提供一种基于PN机模型的业务流网分解设备,包括:处理器及存储器;所述存储器用于存储计算机程序,所述处理器用于执行所述存储器存储的计算机程序,以使所述设备执行所述基于PN机模型的业务流网分解方法。The last aspect of the present invention provides a business flow network decomposition device based on the PN machine model, including: a processor and a memory; the memory is used to store computer programs, and the processor is used to execute the computer programs stored in the memory, so that the device executes the business flow network decomposition method based on the PN machine model.
如上所述,本发明所述的基于PN机模型的业务流网分解方法、系统、设备及介质,具有以下有益效果:As described above, the service flow network decomposition method, system, device and medium based on the PN machine model of the present invention have the following beneficial effects:
第一,通过本发明构建网络并发系统的PN机模型,充分发掘并发系统中的行为相关性关系。First, by constructing a PN machine model of a network concurrent system through the present invention, the behavior correlation relationship in the concurrent system is fully explored.
第二,通过本发明流网同步合法发射序列判定的多项式算法,解决针对一般网类发射序列判定的高算法复杂性(NP-完全问题)。Secondly, the polynomial algorithm for determining the legal transmission sequence of the flow network synchronization of the present invention solves the high algorithm complexity (NP-complete problem) of determining the transmission sequence of general networks.
第三,通过本发明输出不可再分的元级子网,从而实现复杂业务流的并发解耦,提高业务系统的并发性。Thirdly, the present invention outputs indivisible meta-level subnets, thereby achieving concurrent decoupling of complex business flows and improving the concurrency of the business system.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1A显示为本发明的所应用的PN模型的示例图。FIG. 1A is a diagram showing an example of a PN model applied in the present invention.
图1B显示为本发明的对PN模型分解的业务子网示例图。FIG. 1B is a diagram showing an example of a service subnet decomposed from a PN model according to the present invention.
图2显示为本发明的基于PN机模型的业务流网分解方法于一实施例中的流程示意图。FIG. 2 is a schematic flow chart showing a method for decomposing a business flow network based on a PN machine model in one embodiment of the present invention.
图3显示为本发明的基于PN机模型的业务流网分解方法中S22于一实施例中的流程示意图。FIG. 3 is a flow chart showing S22 in an embodiment of the service flow network decomposition method based on the PN machine model of the present invention.
图4显示为本发明的S225的实施示例图。FIG. 4 is a diagram showing an implementation example of S225 of the present invention.
图5显示为本发明的基于PN机模型的业务流网分解系统于一实施例中的原理结构示意图。FIG. 5 is a schematic diagram showing the principle structure of a service flow network decomposition system based on a PN machine model in one embodiment of the present invention.
元件标号说明Component number description
5 基于PN机模型的业务流网分解系统5 Business flow network decomposition system based on PN machine model
51 预处理模块51 Preprocessing module
52 分解模块52 Decomposition Module
S21~S22 步骤Steps S21 to S22
S221~S229 步骤Steps S221 to S229
具体实施方式Detailed ways
以下通过特定的具体实例说明本发明的实施方式,本领域技术人员可由本说明书所揭露的内容轻易地了解本发明的其他优点与功效。本发明还可以通过另外不同的具体实施方式加以实施或应用,本说明书中的各项细节也可以基于不同观点与应用,在没有背离本发明的精神下进行各种修饰或改变。需说明的是,在不冲突的情况下,以下实施例及实施例中的特征可以相互组合。The following describes the embodiments of the present invention by specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.
需要说明的是,以下实施例中所提供的图示仅以示意方式说明本发明的基本构想,遂图式中仅显示与本发明中有关的组件而非按照实际实施时的组件数目、形状及尺寸绘制,其实际实施时各组件的型态、数量及比例可为一种随意的改变,且其组件布局型态也可能更为复杂。It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present invention, and thus the drawings only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.
本发明所述基于PN机模型的业务流网分解方法、系统、设备及介质的技术原理如下:The technical principles of the business flow network decomposition method, system, device and medium based on the PN machine model of the present invention are as follows:
利用业务之间的语义关系,构建业务流网的PN机模型,通过PN机的流网同步合法发射序列判定的多项式算法对业务流网进行分解,可以使分解后的业务处理网络具有最大的并发能力。By using the semantic relationship between services, a PN machine model of the service flow network is constructed. The service flow network is decomposed through a polynomial algorithm for determining the legal transmission sequence of the PN machine's flow network synchronization, so that the decomposed service processing network can have the maximum concurrency capability.
实施例一Embodiment 1
本实施例提供一种基于PN机模型的业务流网分解方法,包括:This embodiment provides a service flow network decomposition method based on a PN machine model, including:
构建一业务流网的PN模型,并将所述PN模型中所有变迁放置于未分解子网的变迁集合中;所述变迁为PN模型的数据处理状态;每一变迁都设置有表示层号和每一层内遍号的下标;A PN model of a service flow network is constructed, and all transitions in the PN model are placed in a transition set of an undecomposed subnet; the transition is a data processing state of the PN model; each transition is provided with a subscript indicating a layer number and a traversal number within each layer;
从所述未分解子网的变迁集合中选取下标最小的变迁作为初始变迁,以未分解子网的变迁集合的变迁作为当前变迁,通过同步处理当前变迁的前置和后置,查找当前变迁的前置和后置之间的相关性,以构建并发执行的业务子网。The transition with the smallest index is selected from the transition set of the undecomposed subnet as the initial transition, and the transition of the transition set of the undecomposed subnet is used as the current transition. The predecessor and successor of the current transition are synchronously processed to find the correlation between the predecessor and successor of the current transition, so as to construct a concurrently executed business subnet.
以下将结合图示对本实施例所提供的基于PN机模型的业务流网分解方法进行详细描述。本实施例所述基于PN机模型的业务流网分解方法用于将如图1A所示基于PN机模型的业务流网进行同步分解,获取到如图1B所示的多个业务子网。分解方法就是下面的分解步骤(S21-S29)The following will describe in detail the service flow network decomposition method based on the PN machine model provided by this embodiment in conjunction with the diagram. The service flow network decomposition method based on the PN machine model described in this embodiment is used to synchronously decompose the service flow network based on the PN machine model as shown in FIG1A to obtain multiple service subnets as shown in FIG1B. The decomposition method is the following decomposition steps (S21-S29)
请参阅图2,显示为基于PN机模型的业务流网分解方法于一实施例中的流程示意图。如图2所示,所述基于PN机模型的业务流网分解方法具体包括以下步骤:Please refer to Figure 2, which is a flow chart of a method for decomposing a business flow network based on a PN machine model in one embodiment. As shown in Figure 2, the method for decomposing a business flow network based on a PN machine model specifically includes the following steps:
S21,构建一业务流网的PN模型,选择PN模型的输入变迁为T00,将其作为初始变迁,进行广度优先遍历整个PN模型,将所述PN模型中所有变迁放置于未分解子网的变迁集合中;所述变迁为PN模型的数据处理状态;每一变迁都设置有表示层号和每一层内遍号的下标。S21, construct a PN model of a business flow network, select the input transition of the PN model as T 00 , take it as the initial transition, perform breadth-first traversal of the entire PN model, and place all transitions in the PN model in the transition set of the undecomposed subnet; the transition is the data processing state of the PN model; each transition is set with a subscript representing the layer number and the traversal number within each layer.
在本实施例中,利用业务之间的语义关系,通过参考PN系统建模,并发程序建模等方法构建所述PN模型。In this embodiment, the semantic relationship between services is utilized to construct the PN model by referring to PN system modeling, concurrent program modeling and other methods.
S22,从所述未分解子网的变迁集合中选取下标最小的变迁作为初始变迁,以未分解子网的变迁集合的变迁作为当前变迁,通过同步处理当前变迁的前置和后置,查找当前变迁的前置和后置之间的相关性,以构建并发执行的业务子网。S22, select the transition with the smallest index from the transition set of the undecomposed subnet as the initial transition, use the transition of the transition set of the undecomposed subnet as the current transition, synchronously process the predecessor and successor of the current transition, find the correlation between the predecessor and successor of the current transition, so as to build a concurrently executed business subnet.
请参阅图3,显示为S22于一实施例中的流程示意图。如图3所示,所述S22具体包括以下步骤:Please refer to FIG3 , which is a schematic diagram of the process of S22 in one embodiment. As shown in FIG3 , S22 specifically includes the following steps:
S221,判断当前变迁的前置和后置的状态数是否相等(即PN图中当前节点的输入连接数与输出连接数是否相等)若是,则执行S222,若否,则执行S223。S221, determine whether the number of states before and after the current transition is equal (that is, whether the number of input connections and the number of output connections of the current node in the PN graph are equal). If so, execute S222, if not, execute S223.
S222,当当前变迁的前置和后置的状态数,不相等且非一一对应时,继续判断当前变迁的前置和后置的数量是否相同,若是,则执行S225;若否,则执行S223。在本实施例中,因为,只有变迁前后一致才能将业务子网拆分成完全独立的数个网络。所以,此处还需要再继续判断当前变迁的前置的数量是否大于后置的数量。S222, when the states of the preceding and following states of the current transition are not equal and do not correspond one to one, continue to determine whether the states of the preceding and following states of the current transition are the same, if so, execute S225; if not, execute S223. In this embodiment, since the service subnet can be split into several completely independent networks only if the transitions are consistent, it is necessary to further determine whether the state of the preceding and following states of the current transition is greater than the state of the following states.
S223,当当前变迁的前置和后置的数量不相等时,继续判断当前变迁的前置的数量是否大于后置的数量;若是,则执行S224。若否,则执行S225。S223, when the number of predecessors and successors of the current transition is not equal, continue to determine whether the number of predecessors of the current transition is greater than the number of successors; if so, execute S224. If not, execute S225.
S224,当当前变迁的前置的数量大于后置的数量时,处理所述当前变迁的后置的数量,并构建未分配的业务子网。S224: When the number of predecessors of the current transition is greater than the number of successors, process the number of successors of the current transition and construct an unallocated service subnet.
在本实施例中,所述S224包括:In this embodiment, the S224 includes:
增加当前变迁的后置的虚拟个数,使当前变迁的后置的数量与前置的数量一致。Increase the virtual number of the post-transition of the current transition so that the number of the post-transition of the current transition is consistent with the number of the pre-transition.
在本实施例中,针对增加当前变迁的后置的虚拟个数后,构建未分配的业务子网的步骤包括:In this embodiment, after increasing the number of virtual post-transitions of the current transition, the steps of constructing an unallocated service subnet include:
将当前变迁进行拆分,为拆分后的每个变迁分配一对前置和后置,将拆分后的变迁的层号下标与当前变迁的层号下标一致的变迁放入未分配的业务子网;当前变迁的拆分个数与当前变迁的后置的增加个数相同,例如,虚拟增加了k个后置,则将当前变迁拆分成k个变迁。The current transition is split, and a pair of prefix and postfix is assigned to each of the split transitions. The transitions whose layer number subscripts after the split are consistent with the layer number subscripts of the current transition are placed in the unallocated business subnet. The number of splits of the current transition is the same as the number of postfixes added to the current transition. For example, if k postfixes are virtually added, the current transition is split into k transitions.
S225,当当前变迁的前置的数量小于后置的数量时,则处理所述当前变迁的前置的数量,并构建未分配的业务子网。S225, when the number of preceding transitions of the current transition is less than the number of following transitions, the number of preceding transitions of the current transition is processed, and an unallocated service subnet is constructed.
在本实施例中,所述S225包括:In this embodiment, the S225 includes:
增加当前变迁的前置的虚拟个数,使当前变迁的前置的数量与后置的数量一致。Increase the virtual number of the predecessors of the current transition so that the number of predecessors and successors of the current transition is consistent.
请参阅图4,显示为S225的实施示例图。如图4所示,当前变迁的前期数量为1,小于后置数量2,那么需为当前变迁的前置增加虚拟个数1,使其与后置的数量一致。Please refer to Figure 4, which shows an implementation example of S225. As shown in Figure 4, the pre-transition quantity of the current transition is 1, which is less than the post-transition quantity 2, so the pre-transition of the current transition needs to increase the virtual quantity 1 to make it consistent with the post-transition quantity.
在本实施例中,针对增加当前变迁的前置的虚拟个数后,构建未分配的业务子网的步骤包括:In this embodiment, after increasing the number of virtual pre-positions of the current transition, the step of constructing an unallocated service subnet includes:
将当前变迁进行拆分,为拆分后的每个变迁分配一对前置和后置,将拆分后的变迁的层号下标与当前变迁的层号下标一致的变迁放入未分配的业务子网;当前变迁的拆分个数与当前变迁的前置的增加个数相同。Split the current transition, assign a pair of prefix and suffix to each of the split transitions, and put the transitions whose layer number subscripts after the split transitions are consistent with the layer number subscripts of the current transitions into the unallocated business subnet; the number of splits of the current transition is the same as the number of additions to the prefix of the current transition.
S226,将当前变迁与其前置和后置并入到用于为所述当前变迁分配的当前业务子网,当前业务子网记作SubPNt。S226: merge the current transition and its predecessor and successor into the current service subnet allocated for the current transition, and the current service subnet is recorded as SubPN t .
S227,判断当前业务子网是否已遍历结束,若遍历结束,则执行S228。若未遍历结束,则执行S230。S227, determine whether the current service subnet has been traversed, if the traversal is completed, execute S228. If the traversal is not completed, execute S230.
S228,判断未分解子网的变迁集合是否都已分配业务子网;若是,结束业务流网分解;若否,则返回S21,即返回从所述未分解子网的变迁集合中选取下标最小的变迁作为初始变迁,以未分解子网的变迁集合的变迁作为当前变迁的步骤。S228, determine whether the transition set of the undecomposed subnet has been allocated a business subnet; if so, end the business flow network decomposition; if not, return to S21, that is, return to the step of selecting the transition with the smallest index from the transition set of the undecomposed subnet as the initial transition, and using the transition of the transition set of the undecomposed subnet as the current transition.
S229,若未遍历结束,则将当前变迁的后续变迁作为当前变迁,并转入通过同步处理当前变迁的前置和后置,查找当前变迁的前置和后置之间的相关性,以构建并发执行的业务子网的步骤,即返回S221。S229, if the traversal is not completed, the subsequent transition of the current transition is taken as the current transition, and the step of synchronously processing the predecessor and successor of the current transition, finding the correlation between the predecessor and successor of the current transition, and building a concurrently executed business subnet is entered, that is, returning to S221.
本实施例所述基于PN机模型的业务流网分解方法具有以下有益效果:The service flow network decomposition method based on the PN machine model described in this embodiment has the following beneficial effects:
第一,通过构建网络并发系统的PN机模型,充分发掘并发系统中的行为相关性关系。First, by constructing a PN machine model of a network concurrent system, the behavioral correlation relationships in the concurrent system are fully explored.
第二,通过流网同步合法发射序列判定的多项式算法,解决针对一般网类发射序列判定的高算法复杂性(NP-完全问题)。Secondly, the high algorithmic complexity (NP-complete problem) of determining the emission sequence of general networks is solved through the polynomial algorithm for determining the legal emission sequence of flow network synchronization.
第三,通过本方法输出不可再分的元级子网,从而实现复杂业务流的并发解耦,提高业务系统的并发性。Third, this method outputs indivisible meta-level subnets, thereby achieving concurrent decoupling of complex business flows and improving the concurrency of the business system.
本实施例还提供一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如图2所述的方法。This embodiment further provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the method shown in FIG. 2 is implemented.
在任何可能的技术细节结合层面,本申请可以是系统、方法和/或计算机程序产品。计算机程序产品可以包括计算机可读存储介质,其上载有用于使处理器实现本申请的各个方面的计算机可读程序指令。At any possible level of technical detail combination, the present application may be a system, method and/or computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present application.
计算机可读存储介质可以是可以保持和存储由指令执行设备使用的指令的有形设备。计算机可读存储介质例如可以是(但不限于)电存储设备、磁存储设备、光存储设备、电磁存储设备、半导体存储设备或者上述的任意合适的组合。计算机可读存储介质的更具体的例子(非穷举的列表)包括:便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、静态随机存取存储器(SRAM)、便携式压缩盘只读存储器(CD-ROM)、数字多功能盘(DVD)、记忆棒、软盘、机械编码设备、例如其上存储有指令的打孔卡或凹槽内凸起结构、以及上述的任意合适的组合。这里所使用的计算机可读存储介质不被解释为瞬时信号本身,诸如无线电波或者其他自由传播的电磁波、通过波导或其他传输媒介传播的电磁波(例如,通过光纤电缆的光脉冲)、或者通过电线传输的电信号。Computer readable storage medium can be a tangible device that can hold and store instructions used by an instruction execution device. Computer readable storage medium can be, for example, (but not limited to) an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination thereof. More specific examples (non-exhaustive list) of computer readable storage medium include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, for example, a punch card or a convex structure in a groove on which instructions are stored, and any suitable combination thereof. The computer readable storage medium used here is not interpreted as a transient signal itself, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagated by a waveguide or other transmission medium (for example, a light pulse by an optical fiber cable), or an electrical signal transmitted by a wire.
这里所描述的计算机可读程序可以从计算机可读存储介质下载到各个计算/处理设备,或者通过网络、例如因特网、局域网、广域网和/或无线网下载到外部计算机或外部存储设备。网络可以包括铜传输电缆、光纤传输、无线传输、路由器、防火墙、交换机、网关计算机和/或边缘服务器。每个计算/处理设备中的网络适配卡或者网络接口从网络接收计算机可读程序指令,并转发该计算机可读程序指令,以供存储在各个计算/处理设备中的计算机可读存储介质中。用于执行本申请操作的计算机程序指令可以是汇编指令、指令集架构(ISA)指令、机器指令、机器相关指令、微代码、固件指令、状态设置数据、集成电路配置数据或者以一种或多种编程语言的任意组合编写的源代码或目标代码,所述编程语言包括面向对象的编程语言—诸如Smalltalk、C++等,以及过程式编程语言—诸如“C”语言或类似的编程语言。计算机可读程序指令可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络—包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。在一些实施例中,通过利用计算机可读程序指令的状态信息来个性化定制电子电路,例如可编程逻辑电路、现场可编程门阵列(FPGA)或可编程逻辑阵列(PLA),该电子电路可以执行计算机可读程序指令,从而实现本申请的各个方面。The computer-readable program described herein can be downloaded from a computer-readable storage medium to each computing/processing device, or downloaded to an external computer or external storage device through a network, such as the Internet, a local area network, a wide area network, and/or a wireless network. The network can include copper transmission cables, optical fiber transmission, wireless transmission, routers, firewalls, switches, gateway computers, and/or edge servers. The network adapter card or network interface in each computing/processing device receives a computer-readable program instruction from the network, and forwards the computer-readable program instruction for storage in a computer-readable storage medium in each computing/processing device. The computer program instruction for performing the operation of this application can be an assembly instruction, an instruction set architecture (ISA) instruction, a machine instruction, a machine-related instruction, a microcode, a firmware instruction, a state setting data, an integrated circuit configuration data, or a source code or object code written in any combination of one or more programming languages, wherein the programming language includes an object-oriented programming language, such as Smalltalk, C++, etc., and a procedural programming language, such as "C" language or similar programming language. Computer readable program instructions can be executed completely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (e.g., using an Internet service provider to connect through the Internet). In certain embodiments, by using the state information of computer readable program instructions to customize electronic circuits, such as programmable logic circuits, field programmable gate arrays (FPGAs) or programmable logic arrays (PLAs), the electronic circuits can execute computer readable program instructions, thereby realizing various aspects of the present application.
实施例二Embodiment 2
本实施例提供一种基于PN机模型的业务流网分解系统,包括:This embodiment provides a service flow network decomposition system based on a PN machine model, including:
预处理模块,用于构建一业务流网的PN模型,并将所述PN模型中所有变迁放置于未分解子网的变迁集合中;所述变迁为PN模型的数据处理状态;每一变迁都设置有表示层号和每一层内遍号的下标;A preprocessing module is used to construct a PN model of a service flow network and place all transitions in the PN model in a transition set of an undecomposed subnet; the transition is a data processing state of the PN model; each transition is provided with a subscript indicating a layer number and a traversal number within each layer;
分解模块,用于从所述未分解子网的变迁集合中选取下标最小的变迁作为初始变迁,以未分解子网的变迁集合的变迁作为当前变迁,通过同步处理当前变迁的前置和后置,查找当前变迁的前置和后置之间的相关性,以构建并发执行的业务子网。The decomposition module is used to select the transition with the smallest index from the transition set of the undecomposed subnet as the initial transition, use the transition of the transition set of the undecomposed subnet as the current transition, synchronously process the predecessor and successor of the current transition, find the correlation between the predecessor and successor of the current transition, so as to build a business subnet for concurrent execution.
以下将结合图示对本实施例所提供的基于PN机模型的业务流网分解系统进行详细描述。请参阅图5,显示为基于PN机模型的业务流网分解系统于一实施例中的原理结构示意图。如图5所示,所述基于PN机模型的业务流网分解系统5包括预处理模块51和分解模块52。The following will describe in detail the business flow network decomposition system based on the PN machine model provided by this embodiment in conjunction with the diagram. Please refer to FIG5, which is a schematic diagram of the principle structure of the business flow network decomposition system based on the PN machine model in one embodiment. As shown in FIG5, the business flow network decomposition system based on the PN machine model 5 includes a preprocessing module 51 and a decomposition module 52.
所述预处理模块51用于构建一业务流网的PN模型,选择PN模型的输入变迁为T00,将其作为初始变迁,进行广度优先遍历整个PN模型,将所述PN模型中所有变迁放置于未分解子网的变迁集合中;所述变迁为PN模型的数据处理状态;每一变迁都设置有表示层号和每一层内遍号的下标。The preprocessing module 51 is used to construct a PN model of a business flow network, select the input transition of the PN model as T 00 , use it as the initial transition, perform breadth-first traversal of the entire PN model, and place all transitions in the PN model in the transition set of the undecomposed subnet; the transition is the data processing state of the PN model; each transition is provided with a subscript representing the layer number and the traversal number within each layer.
在本实施例中,所述预处理模块51利用业务之间的语义关系,通过参考PN系统建模,并发程序建模等方法构建所述PN模型。In this embodiment, the pre-processing module 51 utilizes the semantic relationship between services to construct the PN model by referring to PN system modeling, concurrent program modeling and other methods.
所述分解模块52从所述未分解子网的变迁集合中选取下标最小的变迁作为初始变迁,以未分解子网的变迁集合的变迁作为当前变迁,通过同步处理当前变迁的前置和后置,查找当前变迁的前置和后置之间的相关性,以构建并发执行的业务子网。The decomposition module 52 selects the transition with the smallest index from the transition set of the undecomposed subnet as the initial transition, takes the transition of the transition set of the undecomposed subnet as the current transition, and synchronously processes the predecessor and successor of the current transition to find the correlation between the predecessor and successor of the current transition to construct a concurrently executed business subnet.
具体地,所述分解模块52判断当前变迁的前置和后置的状态数是否相等且一一对应;若是,则将当前变迁与其前置和后置并入到用于为所述当前变迁分配的当前业务子网;若否,则继续判断当前变迁的前置和后置的数量是否相同;若是,则将当前变迁与其前置和后置并入到用于为所述当前变迁分配的当前业务子网的步骤;若否,继续判断当前变迁的前置的数量是否大于后置的数量;若是,处理所述当前变迁的后置的数量,并构建未分配的业务子网;若否,则处理所述当前变迁的前置的数量,并构建未分配的业务子网。Specifically, the decomposition module 52 determines whether the number of states of the predecessor and the successor of the current transition is equal and one-to-one corresponding; if so, the current transition and its predecessor and successor are merged into the current business subnet allocated to the current transition; if not, continue to determine whether the number of predecessors and successors of the current transition is the same; if so, merge the current transition and its predecessor and successor into the step of allocating the current business subnet to the current transition; if not, continue to determine whether the number of predecessors of the current transition is greater than the number of successors; if so, process the number of successors of the current transition and construct an unallocated business subnet; if not, process the number of predecessors of the current transition and construct an unallocated business subnet.
在本实施例中,所述分解模块52通过增加当前变迁的后置的虚拟个数,使当前变迁的后置的数量与前置的数量一致,并将当前变迁进行拆分,为拆分后的每个变迁分配一对前置和后置,将拆分后的变迁的层号下标与当前变迁的层号下标一致的变迁放入未分配的业务子网;当前变迁的拆分个数与当前变迁的后置的增加个数相同来处理所述当前变迁的后置的数量,并构建未分配的业务子网来处理所述当前变迁的后置的数量,并构建未分配的业务子网In this embodiment, the decomposition module 52 increases the virtual number of the postpositions of the current transition so that the number of the postpositions of the current transition is consistent with the number of the prepositions, splits the current transition, allocates a pair of prepositions and postpositions to each of the split transitions, and puts the transitions whose layer number subscripts of the split transitions are consistent with the layer number subscripts of the current transitions into unallocated service subnets; the number of splits of the current transition is the same as the number of increases of the postpositions of the current transition to process the number of the postpositions of the current transition, and constructs an unallocated service subnet to process the number of the postpositions of the current transition, and constructs an unallocated service subnet
在本实施例中,所述分解模块52通过增加当前变迁的前置的虚拟个数,使当前变迁的前置的数量与后置的数量一致,并将当前变迁进行拆分,为拆分后的每个变迁分配一对前置和后置,将拆分后的变迁的层号下标与当前变迁的层号下标一致的变迁放入未分配的业务子网;当前变迁的拆分个数与当前变迁的前置的增加个数相同来处理所述当前变迁的前置的数量,构建未分配的业务子网。In this embodiment, the decomposition module 52 increases the virtual number of the predecessors of the current transition to make the number of predecessors of the current transition consistent with the number of successors, splits the current transition, assigns a pair of predecessors and successors to each of the split transitions, and puts the transitions whose layer number subscripts after the split are consistent with the layer number subscripts of the current transition into an unallocated business subnet; the number of splits of the current transition is the same as the number of increases in the predecessors of the current transition to process the number of predecessors of the current transition and construct an unallocated business subnet.
当所述分解模块52将当前变迁进行拆分,为拆分后的每个变迁分配一对前置和后置,将拆分后的变迁的层号下标与当前变迁的层号下标一致的变迁放入未分配的业务子网后,将当前变迁与其前置和后置并入到用于为所述当前变迁分配的当前业务子网,当前业务子网记作SubPNt。When the decomposition module 52 splits the current transition, a pair of preamble and postamble is allocated to each of the split transitions, and the transitions whose layer number subscripts of the split transitions are consistent with the layer number subscripts of the current transition are placed in an unallocated service subnet, the current transition and its preamble and postamble are merged into the current service subnet allocated for the current transition, and the current service subnet is recorded as SubPN t .
所述分解模块52还用于判断当前业务子网是否已遍历结束,若遍历结束,则判断未分解子网的变迁集合是否都已分配业务子网;若是,结束业务流网分解;若否,则调用所述预处理模块51从所述未分解子网的变迁集合中选取下标最小的变迁作为初始变迁,以未分解子网的变迁集合的变迁作为当前变迁的步骤。若未遍历结束,则将当前变迁的后续变迁作为当前变迁,并继续通过同步处理当前变迁的前置和后置,查找当前变迁的前置和后置之间的相关性,以构建并发执行的业务子网。The decomposition module 52 is also used to determine whether the current business subnet has been traversed to completion. If the traversal is completed, it is determined whether the transition set of the undecomposed subnet has been assigned to the business subnet; if so, the business flow network decomposition is terminated; if not, the preprocessing module 51 is called to select the transition with the smallest index from the transition set of the undecomposed subnet as the initial transition, and the transition of the transition set of the undecomposed subnet is used as the step of the current transition. If the traversal is not completed, the subsequent transition of the current transition is used as the current transition, and the predecessor and successor of the current transition are continuously processed synchronously to find the correlation between the predecessor and successor of the current transition, so as to construct a concurrently executed business subnet.
需要说明的是,应理解以上系统的各个模块的划分仅仅是一种逻辑功能的划分,实际实现时可以全部或部分集成到一个物理实体上,也可以物理上分开。且这些模块可以全部以软件通过处理元件调用的形式实现,也可以全部以硬件的形式实现,还可以部分模块通过处理元件调用软件的形式实现,部分模块通过硬件的形式实现。例如:x模块可以为单独设立的处理元件,也可以集成在上述系统的某一个芯片中实现。此外,x模块也可以以程序代码的形式存储于上述系统的存储器中,由上述系统的某一个处理元件调用并执行以上x模块的功能。其它模块的实现与之类似。这些模块全部或部分可以集成在一起,也可以独立实现。这里所述的处理元件可以是一种集成电路,具有信号的处理能力。在实现过程中,上述方法的各步骤或以上各个模块可以通过处理器元件中的硬件的集成逻辑电路或者软件形式的指令完成。以上这些模块可以是被配置成实施以上方法的一个或多个集成电路,例如:一个或多个特定集成电路(Application Specific Integrated Circuit,简称ASIC),一个或多个微处理器(Digital Singnal Processor,简称DSP),一个或者多个现场可编程门阵列(Field Programmable Gate Array,简称FPGA)等。当以上某个模块通过处理元件调度程序代码的形式实现时,该处理元件可以是通用处理器,如中央处理器(CentralProcessing Unit,简称CPU)或其它可以调用程序代码的处理器。这些模块可以集成在一起,以片上系统(System-on-a-chip,简称SOC)的形式实现。It should be noted that it should be understood that the division of the various modules of the above system is only a division of logical functions. In actual implementation, they can be fully or partially integrated into one physical entity, or they can be physically separated. And these modules can all be implemented in the form of software called by processing elements, or they can all be implemented in the form of hardware, or some modules can be implemented in the form of software called by processing elements, and some modules can be implemented in the form of hardware. For example: the x module can be a separately established processing element, or it can be integrated in a certain chip of the above system. In addition, the x module can also be stored in the memory of the above system in the form of program code, and called and executed by a certain processing element of the above system. The implementation of other modules is similar. These modules can be fully or partially integrated together, or they can be implemented independently. The processing element described here can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each module above can be completed by an integrated logic circuit of hardware in the processor element or instructions in the form of software. The above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASIC), one or more digital singnal processors (DSP), one or more field programmable gate arrays (FPGA), etc. When a module is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call program code. These modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
实施例三Embodiment 3
本实施例提供一种基于PN机模型的业务流网分解设备,包括:处理器、存储器、收发器、通信接口或/和系统总线;存储器和通信接口通过系统总线与处理器和收发器连接并完成相互间的通信,存储器用于存储计算机程序,通信接口用于和其他设备进行通信,处理器和收发器用于运行计算机程序,使基于PN机模型的业务流网分解设备执行如实施例一所述基于PN机模型的业务流网分解方法的各个步骤。The present embodiment provides a business flow network decomposition device based on a PN machine model, comprising: a processor, a memory, a transceiver, a communication interface and/or a system bus; the memory and the communication interface are connected to the processor and the transceiver through the system bus and complete mutual communication, the memory is used to store computer programs, the communication interface is used to communicate with other devices, the processor and the transceiver are used to run computer programs, so that the business flow network decomposition device based on the PN machine model executes the various steps of the business flow network decomposition method based on the PN machine model as described in Example 1.
上述提到的系统总线可以是外设部件互连标准(Peripheral ComponentInterconnect,简称PCI)总线或扩展工业标准结构(Extended Industry StandardArchitecture,简称EISA)总线等。该系统总线可以分为地址总线、数据总线、控制总线等。为便于表示,图中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。通信接口用于实现数据库访问装置与其他设备(如客户端、读写库和只读库)之间的通信。存储器可能包含随机存取存储器(Random Access Memory,简称RAM),也可能还包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。The system bus mentioned above can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The system bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus. The communication interface is used to realize the communication between the database access device and other devices (such as clients, read-write libraries, and read-only libraries). The memory may include random access memory (RAM), and may also include non-volatile memory, such as at least one disk storage.
上述的处理器可以是通用处理器,包括中央处理器(Central Processing Unit,简称CPU)、网络处理器(Network Processor,简称NP)等;还可以是数字信号处理器(Digital Signal Processing,简称DSP)、专用集成电路(Application SpecificIntegrated Circuit,简称ASIC)、现场可编程门阵列(Field Programmable Gate Array,简称FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
本发明所述的基于PN机模型的业务流网分解方法的保护范围不限于本实施例列举的步骤执行顺序,凡是根据本发明的原理所做的现有技术的步骤增减、步骤替换所实现的方案都包括在本发明的保护范围内。The protection scope of the business flow network decomposition method based on the PN machine model described in the present invention is not limited to the execution order of the steps listed in this embodiment. All solutions implemented by adding, reducing or replacing steps in the prior art based on the principles of the present invention are included in the protection scope of the present invention.
本发明还提供一种基于PN机模型的业务流网分解系统,所述基于PN机模型的业务流网分解系统可以实现本发明所述的基于PN机模型的业务流网分解方法,但本发明所述的基于PN机模型的业务流网分解方法的实现装置包括但不限于本实施例列举的基于PN机模型的业务流网分解系统的结构,凡是根据本发明的原理所做的现有技术的结构变形和替换,都包括在本发明的保护范围内。The present invention also provides a business flow network decomposition system based on a PN machine model, and the business flow network decomposition system based on a PN machine model can implement the business flow network decomposition method based on a PN machine model described in the present invention, but the implementation device of the business flow network decomposition method based on a PN machine model described in the present invention includes but is not limited to the structure of the business flow network decomposition system based on a PN machine model listed in this embodiment. All structural deformations and replacements of the prior art made according to the principles of the present invention are included in the protection scope of the present invention.
综上所述,本发明所述基于PN机模型的业务流网分解方法、系统、设备及介质具有以下有益效果:In summary, the service flow network decomposition method, system, device and medium based on the PN machine model of the present invention have the following beneficial effects:
第一,通过本发明构建网络并发系统的PN机模型,充分发掘并发系统中的行为相关性关系。First, by constructing a PN machine model of a network concurrent system through the present invention, the behavior correlation relationship in the concurrent system is fully explored.
第二,通过本发明流网同步合法发射序列判定的多项式算法,解决针对一般网类发射序列判定的高算法复杂性(NP-完全问题)。Secondly, the polynomial algorithm for determining the legal transmission sequence of the flow network synchronization of the present invention solves the high algorithm complexity (NP-complete problem) of determining the transmission sequence of general networks.
第三,通过本发明输出不可再分的元级子网,从而实现复杂业务流的并发解耦,提高业务系统的并发性。本发明有效克服了现有技术中的种种缺点而具高度产业利用价值。Third, the present invention outputs indivisible meta-level subnets, thereby achieving concurrent decoupling of complex business flows and improving the concurrency of business systems. The present invention effectively overcomes various shortcomings in the prior art and has high industrial utilization value.
上述实施例仅例示性说明本发明的原理及其功效,而非用于限制本发明。任何熟悉此技术的人士皆可在不违背本发明的精神及范畴下,对上述实施例进行修饰或改变。因此,举凡所属技术领域中具有通常知识者在未脱离本发明所揭示的精神与技术思想下所完成的一切等效修饰或改变,仍应由本发明的权利要求所涵盖。The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the art may modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed by the present invention shall still be covered by the claims of the present invention.
Claims (9)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111282943.4A CN113986508B (en) | 2021-11-01 | 2021-11-01 | Business flow network decomposition method, system, equipment and medium based on PN machine model |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111282943.4A CN113986508B (en) | 2021-11-01 | 2021-11-01 | Business flow network decomposition method, system, equipment and medium based on PN machine model |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN113986508A CN113986508A (en) | 2022-01-28 |
| CN113986508B true CN113986508B (en) | 2024-06-18 |
Family
ID=79745357
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202111282943.4A Active CN113986508B (en) | 2021-11-01 | 2021-11-01 | Business flow network decomposition method, system, equipment and medium based on PN machine model |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN113986508B (en) |
Family Cites Families (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7093231B2 (en) * | 2003-05-06 | 2006-08-15 | David H. Alderson | Grammer for regular expressions |
| CN101776995B (en) * | 2010-01-04 | 2013-02-13 | 北京航空航天大学 | Self-adaptive combined service optimization method and device |
| CN106250240B (en) * | 2016-08-02 | 2019-03-15 | 北京科技大学 | A task optimization scheduling method |
| CN110348693B (en) * | 2019-06-13 | 2022-09-09 | 南京理工大学 | Multi-robot rapid task scheduling method based on multi-core computing |
| CN110673745B (en) * | 2019-08-30 | 2023-03-21 | 联想(北京)有限公司 | Information processing method, first electronic equipment and computer readable storage medium |
| US11016810B1 (en) * | 2019-11-26 | 2021-05-25 | Mythic, Inc. | Tile subsystem and method for automated data flow and data processing within an integrated circuit architecture |
| CN112818692B (en) * | 2021-02-03 | 2024-05-28 | 招商银行股份有限公司 | Named entity recognition and processing method, named entity recognition and processing device, named entity recognition and processing equipment and readable storage medium |
| CN113342495B (en) * | 2021-06-24 | 2023-11-24 | 北京杰成合力科技有限公司 | Cross-tissue multi-instance sub-process model mining method and system |
-
2021
- 2021-11-01 CN CN202111282943.4A patent/CN113986508B/en active Active
Non-Patent Citations (2)
| Title |
|---|
| "Multiagent System-Based Integrated Design of Security Control and Economic Dispatch for Interconnected Microgrid Systems";Zhijun Zhang;《IEEE Transactions on Systems, Man and Cybernetics: Systems》;20200722;第51卷(第4期);第2101-2112页 * |
| "基于Petri网的电商平台用户访问行为相似度分析及应用";潘丽桦;《中国优秀硕士学位论文全文数据库 信息科技辑》;20190215(第2019年02期);第I138-7页 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN113986508A (en) | 2022-01-28 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN112507735B (en) | Training method, device and electronic device for machine translation model | |
| CN114202027B (en) | Method for generating execution configuration information, method and device for model training | |
| CN112270413B (en) | Operator merging method, device, electronic equipment and storage medium | |
| CN114897664B (en) | Graph model deployment method and device, GPU and storage medium | |
| WO2024155432A1 (en) | Schema-aware encoding of natural language | |
| CN114330735A (en) | Methods, electronic devices and computer program products for processing machine learning models | |
| CN115049068A (en) | Model processing method and device, storage medium and electronic equipment | |
| CN117742996A (en) | Communication optimization method and device for calculation, electronic equipment and storage medium | |
| US11132408B2 (en) | Knowledge-graph based question correction | |
| CN115617420B (en) | Application program generation method, device, equipment and storage medium | |
| CN118350325B (en) | Method for optimizing digital logic circuit, computer device and storage medium | |
| CN113986508B (en) | Business flow network decomposition method, system, equipment and medium based on PN machine model | |
| CN118656221B (en) | Microservice merging method, device, equipment and storage medium | |
| CN114020469A (en) | Edge node-based multi-task learning method, device, medium and equipment | |
| CN117857896A (en) | Video generation method, device, equipment and storage medium | |
| CN113691403B (en) | Topology node configuration method, related device and computer program product | |
| CN117371434A (en) | Training method of demand recognition model, demand recognition method and device | |
| CN113807056B (en) | A document name serial number error correction method, device and equipment | |
| CN116341663A (en) | Extension method, device, equipment and medium of deep learning reasoning framework | |
| CN112783574B (en) | Application development method, device, equipment and storage medium | |
| CN117009625A (en) | Data query method, device, apparatus and storage medium | |
| CN114896244A (en) | Method, apparatus, apparatus, and computer-readable medium for configuring database tables | |
| CN114546475A (en) | Service system management method and device | |
| CN115759233B (en) | Model training method, graph data processing device and electronic equipment | |
| CN117172206B (en) | Test case generation method and device, electronic equipment and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |