CN109213883B - Disaster model group service chain arranging method and device, terminal and storage medium - Google Patents

Disaster model group service chain arranging method and device, terminal and storage medium Download PDF

Info

Publication number
CN109213883B
CN109213883B CN201810962291.0A CN201810962291A CN109213883B CN 109213883 B CN109213883 B CN 109213883B CN 201810962291 A CN201810962291 A CN 201810962291A CN 109213883 B CN109213883 B CN 109213883B
Authority
CN
China
Prior art keywords
disaster
model group
service chain
group service
disaster model
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
Application number
CN201810962291.0A
Other languages
Chinese (zh)
Other versions
CN109213883A (en
Inventor
王飞
刘彬彬
郑晓翠
郑亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Graduate School Tsinghua University
Original Assignee
Shenzhen Graduate School Tsinghua University
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shenzhen Graduate School Tsinghua University filed Critical Shenzhen Graduate School Tsinghua University
Priority to CN201810962291.0A priority Critical patent/CN109213883B/en
Publication of CN109213883A publication Critical patent/CN109213883A/en
Application granted granted Critical
Publication of CN109213883B publication Critical patent/CN109213883B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0639Performance analysis of employees; Performance analysis of enterprise or organisation operations
    • G06Q10/06393Score-carding, benchmarking or key performance indicator [KPI] analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/04Forecasting or optimisation specially adapted for administrative or management purposes, e.g. linear programming or "cutting stock problem"
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/26Government or public services

Landscapes

  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Engineering & Computer Science (AREA)
  • Strategic Management (AREA)
  • Economics (AREA)
  • Tourism & Hospitality (AREA)
  • Development Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Marketing (AREA)
  • Educational Administration (AREA)
  • Physics & Mathematics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • General Physics & Mathematics (AREA)
  • Game Theory and Decision Science (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Primary Health Care (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides a method for arranging a disaster model group service chain, which comprises the steps of extracting request information input by a user to obtain disaster keywords and disaster model index constraints; selecting an initial node of a disaster model group service chain; constructing an abstract disaster model group service chain; acquiring a disaster model service group, and filtering the disaster model service group based on disaster model index constraint; constructing a specific disaster model group service chain, and checking the correctness of the specific disaster model group service chain; acquiring the priority order of a specific disaster model group service chain according to the QoS general index, and dynamically adjusting the specific disaster model group service chain according to the calling state; and releasing the specific disaster model group service chain. The embodiment of the invention also provides a disaster model group service chain arranging device, a terminal and a storage medium.

Description

Disaster model group service chain arranging method and device, terminal and storage medium
Technical Field
The invention belongs to the technical field of disaster model application, and particularly relates to a disaster model group service chain arrangement method, a disaster model group service chain arrangement device, a terminal and a storage medium.
Background
This section is intended to provide a background or context to the embodiments of the invention that are recited in the claims. The description herein is not admitted to be prior art by inclusion in this section.
With the progress of disaster simulation technology and the acquirability of a large amount of original data, the disaster model plays an important role in disaster information analysis in the emergency management process. Complex relations between disasters often require comprehensive calling of various disaster models, for example, after an earthquake disaster occurs, besides calling earthquake model analysis, calling earthquake secondary and derivative disaster models such as landslides and debris flows for analysis, obtaining multi-aspect disaster situation prediction information by using the disaster relations, and taking corresponding emergency measures for areas where secondary derivative disaster possibly occurs. However, the distributed environment and heterogeneous data problems of the disaster model restrict the joint calling of the disaster model, how to intelligently arrange various disaster models, realize the comprehensive calling of disaster model groups, provide various disaster information for specific disasters, and are a scientific problem to be solved urgently in the field of disaster model application.
Disclosure of Invention
In view of the above, it is necessary to provide a method and an apparatus for arranging a disaster model group service chain, a terminal, and a storage medium, which can intelligently arrange various disaster models and realize comprehensive invocation of a disaster model group.
An embodiment of the present invention provides a method for arranging a disaster model group service chain, where the method includes:
extracting request information input by a user to obtain disaster keywords and disaster model index constraints;
inquiring a disaster chain rule database according to the disaster keywords, and selecting an initial node of a disaster model group service chain;
constructing an abstract disaster model group service chain according to the initial node of the disaster model group service chain;
respectively establishing disaster model service groups with the same functions as the nodes according to the abstract disaster model group service chain and the node sequence, and filtering the disaster model service groups based on the disaster model index constraint to obtain candidate disaster model service groups;
performing QoS index sequencing on the candidate disaster model service group, and removing inferior services;
constructing a specific disaster model group service chain according to the filtered candidate disaster model service group, and checking the correctness of the specific disaster model group service chain;
acquiring the priority order of the specific disaster model group service chains in the specific disaster model group service chains according to the QoS general indexes, and dynamically adjusting the specific disaster model group service chains according to the calling state;
and releasing the specific disaster model group service chain.
Further, in the method for arranging a disaster model group service chain provided in the embodiment of the present invention, the selecting an initial node of the disaster model group service chain includes:
judging whether the disaster keywords are positioned in the same disaster chain or not;
if the judgment result is negative, respectively taking different disaster keywords as initial nodes of different disaster model service chains;
and if so, judging whether two or more disaster keywords exist and are cyclic nodes in the same cyclic structure of the disaster chain.
Further, in the method for organizing a disaster model group service chain according to an embodiment of the present invention, after determining whether two or more disaster keywords are simultaneously cyclic nodes in the same cyclic structure of the disaster chain, the method includes:
if the judgment result is yes, and the positions of two or more disaster keywords on the disaster chain are arranged in front of other disaster keyword nodes, taking the first-mentioned disaster keyword in the request information input by the user as an initial node of the disaster model service chain in the two or more disaster keywords;
if the judgment result is yes, two or more disaster keywords are not arranged in front of other disaster keyword nodes at the positions of the disaster chain, and the disaster keywords arranged at the front part of the disaster chain are used as initial nodes of a disaster model service chain;
and if the judgment result is negative, taking the disaster keywords arranged in the front of the disaster chain as initial nodes of the disaster model service chain.
Further, in the method for arranging a disaster model group service chain according to an embodiment of the present invention, the constructing an abstract disaster model group service chain according to an initial node of the disaster model group service chain includes:
extracting a disaster chain taking the initial node of the disaster model service chain as an initial node;
judging whether a circulating structure exists on the disaster chain of the primary node;
if the judgment result is negative, constructing an abstract disaster model group service chain by respectively corresponding each node on the disaster chain of the initial node to each node in the abstract disaster model group service chain;
if the judgment result is yes, besides constructing a first abstract disaster model group service chain which is the same as each node of the disaster chain as the main chain, constructing a second abstract disaster model group service chain as an auxiliary chain according to the cycle structure.
Further, in the method for orchestrating a disaster model group service chain according to an embodiment of the present invention, the obtaining, according to the QoS general indicator, a priority order of a specific disaster model group service chain in the specific disaster model group service chain includes:
analyzing a link structure of the specific disaster model group service chain;
determining a QoS general index value of the specific disaster model group service chain according to operation rules of four different link structures of sequence, parallel, selection and circulation;
and giving different weights to the QoS general index values to obtain the arrangement sequence of the specific disaster model group service chain.
Further, in the method for orchestrating a disaster model group service chain according to an embodiment of the present invention, the issuing of the specific disaster model group service chain includes:
describing the specific disaster model group service chain based on the expanded WSDL;
packaging the specific disaster model group service chain into WPS service by using a programming language;
and deploying the specific disaster model group service chain on a server, and registering and releasing the specific disaster model group service chain in a service registration center.
In another aspect, an embodiment of the present invention further provides a disaster model group service chain arrangement device, where the disaster model group service chain arrangement device includes:
the semantic extraction module is used for extracting request information input by a user to obtain disaster keywords and disaster model index constraints;
the service chain initial node selection module is used for inquiring the disaster chain rule database according to the disaster keywords and selecting initial nodes of the disaster model group service chain;
the system comprises an abstract disaster model group service chain construction module, a disaster model group service chain setting module and a disaster model group service chain setting module, wherein the abstract disaster model group service chain construction module is used for constructing an abstract disaster model group service chain according to an initial node of the disaster model group service chain;
the candidate disaster model service filtering module is used for respectively establishing disaster model service groups with the same functions as the nodes according to the abstract disaster model group service chain and the node sequence, and filtering the disaster model service groups based on the disaster model index constraint to obtain candidate disaster model service groups;
performing QoS index sequencing on the candidate disaster model service group, and removing inferior services;
the specific model group service chain construction and verification module is used for constructing a specific disaster model group service chain according to the filtered candidate disaster model service group and verifying the correctness of the specific model group service chain;
the optimization selection and adjustment module is used for acquiring the priority sequence of a specific disaster model group service chain in the specific disaster model group service chain according to the QoS general index and dynamically adjusting the specific disaster model group service chain according to the calling state;
and the network publishing module is used for publishing the specific disaster model group service chain.
In another aspect, an embodiment of the present invention further provides a terminal apparatus, where the terminal apparatus includes a processor, and the processor is configured to implement the steps of the disaster model group service chain arrangement method according to any one of the above embodiments when executing a computer program stored in a memory.
Still another aspect of the embodiments of the present invention provides a storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the disaster model group service chain orchestration method described above.
The embodiment of the invention provides a disaster model group service chain arranging method, a disaster model group service chain arranging device, a terminal device and a storage medium, wherein request information input by a user is extracted to obtain disaster keywords and disaster model index constraints; selecting an initial node of a disaster model group service chain; constructing an abstract disaster model group service chain; acquiring a disaster model service group according to the abstract disaster model group service chain, and filtering the disaster model service group based on the disaster model index constraint; constructing a specific disaster model group service chain, and checking the correctness of the specific disaster model group service chain; acquiring the priority order of the specific disaster model group service chains in the specific disaster model group service chains according to the QoS general indexes, and dynamically adjusting the specific disaster model group service chains according to the calling state; and releasing the specific disaster model group service chain. The embodiment of the invention can support the mutual operation of multi-platform disaster model service based on the network, can support the intelligent construction of the disaster model group service chain based on the disaster chain rule, can carry out optimization selection under multiple targets of the disaster model group service chain, and dynamically adjusts the model group service chain in the execution process. The embodiment of the invention establishes a systematic method from service chain construction to release, has high universality, can be suitable for any disaster model group management system, and has lower complexity of arrangement mode and reduced dependence on manpower.
Drawings
The present invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
Fig. 1 is a flowchart of a disaster model group service chain arrangement method according to an embodiment of the present invention.
Fig. 2(a) is a schematic diagram of a disaster chain rule with a cyclic structure.
Fig. 2(b) is a diagram illustrating the main chain construction of an abstract service chain under the guidance of disaster chain rules with a loop structure.
Fig. 2(c) is an exemplary diagram of secondary chain construction of an abstract service chain under the guidance of disaster chain rules with a cyclic structure.
Fig. 3 is a schematic diagram of an equivalent service chain form according to an embodiment of the present invention.
Fig. 4 is a schematic diagram of a disaster model group management system according to an embodiment of the present invention.
Fig. 5 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Fig. 6 is a diagram of exemplary functional blocks of the terminal shown in fig. 5.
Description of the main elements
Terminal device 1
Memory device 10
Display screen 20
Processor with a memory having a plurality of memory cells 30
Disaster model group service chain arranging device 100
Semantic extraction module 11
Service chain initial node selection module 12
Abstract disaster model group service chain construction module 13
Candidate disaster model service filtering module 14
Concrete model group service chain construction and verification module 15
Optimized selection and adjustment module 16
Disaster model group network publishing module 17
Detailed Description
So that the manner in which the above recited objects, features and advantages of embodiments of the present invention can be understood in detail, a more particular description of the invention, briefly summarized above, may be had by reference to the embodiments thereof which are illustrated in the appended drawings. In addition, the features of the embodiments of the present application may be combined with each other without conflict.
In the following description, numerous specific details are set forth to provide a thorough understanding of embodiments of the invention, and the described embodiments are merely a subset of embodiments of the invention, rather than a complete embodiment. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without any creative effort belong to the protection scope of the embodiments of the present invention.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which embodiments of the present invention belong. The terminology used herein in the description of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the embodiments of the invention.
Fig. 1 is a flowchart of a disaster model group service chain arrangement method according to an embodiment of the present invention. As shown in fig. 1, the disaster model group service chaining method may include the following steps:
s101: and extracting request information input by a user to obtain disaster keywords and disaster model index constraints.
In the present embodiment, the disaster type and the disaster model index constraint are extracted from the request information input by the user, and the intelligent conversion from the unstructured voice information to the structured input information is completed to acquire the disaster keyword and the disaster model index constraint.
S102: and querying a disaster chain rule database according to the disaster keywords, and selecting an initial node of a disaster model group service chain.
In this embodiment, the querying a disaster chain rule database according to the disaster keyword, and selecting an initial node of a disaster model group service chain may include: querying a disaster chain rule database by using the extracted disaster keywords as query keywords, and determining whether the disaster keywords are located in the same disaster chain (that is, determining whether the disaster keywords have a primary disaster and a secondary disaster relationship, for example, an earthquake as a primary disaster may cause secondary disasters such as landslide and debris flow); if the judgment result is negative, respectively taking different disaster keywords as initial nodes of different service chains; and if so, judging whether the disaster keywords are cyclic nodes in the same cyclic structure of the disaster chain at the same time. The determining whether the disaster keyword is a circulation node of the disaster chain at the same time may include: if the judgment result is yes, and the positions of two or more disaster keywords on the disaster chain are arranged in front of other disaster keyword nodes, taking the disaster keyword which is the first-mentioned disaster keyword in the user reporting information as an initial node in the two or more disaster keywords; if the judgment result is yes, two or more disaster keywords are not arranged in front of other disaster keyword nodes at the positions of the disaster chain, and the disaster keywords arranged at the front part of the disaster chain are used as initial nodes of a service chain;
and if the judgment result is negative, taking the disaster keywords arranged at the front part of the disaster chain as the initial nodes of the service chain. It can be understood that if the initial node is m, it means that m disaster model group service chains are finally constructed.
S103: and constructing an abstract disaster model group service chain according to the initial node of the disaster model group service chain.
In this embodiment, the constructing an abstract disaster model group service chain according to the initial node of the disaster model group service chain may include: extracting a disaster chain taking the initial node of the disaster model service chain as an initial node; judging whether a circulating structure exists on the disaster chain of the primary node; if the judgment result is negative, constructing an abstract disaster model group service chain by respectively corresponding each node on the disaster chain of the initial node to each node in the abstract disaster model group service chain; if the judgment result is yes, besides constructing a first abstract disaster model group service chain which is the same as each node of the disaster chain as the main chain, constructing a second abstract disaster model group service chain as an auxiliary chain according to the cycle structure. Fig. 2(a) is a schematic diagram of a disaster chain rule with a loop structure, fig. 2(b) is an exemplary diagram of a main chain construction of an abstract service chain under the guidance of the disaster chain rule with the loop structure, and fig. 2(c) is an exemplary diagram of an auxiliary chain construction of the abstract service chain under the guidance of the disaster chain rule with the loop structure. It will be appreciated that when the service chain executes, the execution operations of the secondary chain are initiated once the input data run determines that loop analysis needs to be performed.
S104: and acquiring a disaster model service group according to the abstract disaster model group service chain, and filtering the disaster model service group based on the disaster model index constraint.
In this embodiment, the acquiring a disaster model service group according to the abstract disaster model group service chain may include: and aiming at each established abstract model service chain, respectively establishing a disaster model service group with the same function as the node according to the sequence of the node, discovering candidate disaster model services from a service registration center of a model group management system, and registering and releasing the disaster model service group and the candidate services in a disaster model service group metadata center.
The filtering the candidate disaster model service group based on the disaster model indicator constraints may include: and (4) according to the extracted disaster model indexes, restricting and inquiring a disaster model service group metadata center, and screening to obtain a candidate disaster model service group meeting the conditions. And performing QoS index sequencing on the candidate disaster model service groups in each type of disaster model service group corresponding to each node, and removing inferior services. The inferior service is considered as a poor service if a disaster model service with all QoS indexes better than or equal to that of the service exists in a certain candidate disaster model service group.
S105: and constructing a specific disaster model group service chain according to the filtered candidate disaster model service group, and checking the correctness of the specific disaster model group service chain.
In this embodiment, the constructing a specific disaster model group service chain according to the filtered candidate disaster model service group, and checking the correctness of the specific disaster model group service chain may include: and selecting a concrete disaster model group service chain with actual execution capacity, which is formed by a disaster model service, from the candidate disaster model service group corresponding to each node by taking the abstract service chain as a criterion. Assume that there are n nodes, S, in the abstract service chaini(i ═ 1,2, 3.. times.n) represents the number of candidate disaster model services corresponding to the ith node in the abstract service chain, and then the number of candidate disaster model services can be obtained in total
Figure GDA0002507759170000091
SiA specific disaster model group service chain. And checking the correctness of the specific disaster model group service chain according to the abstract disaster model group service chain structure. Specifically, the service chain structure is represented by an adjacency matrix, and it can be checked whether or not the adjacency matrices of the abstract disaster model group service chain and the concrete disaster model group service chain are consistent.
S106: and acquiring the priority order of the specific disaster model group service chain in the specific disaster model group service chain according to the QoS general index, and dynamically adjusting the specific disaster model group service chain according to the calling state.
In this embodiment, the order of the specific disaster model group service chains may be obtained, and the first specific disaster model group service chain may be preferentially called; and if the specific disaster model group service chain has link disconnection, analyzing the reason of the link disconnection, and dynamically adjusting the specific disaster model group service chain according to the reason of the link disconnection. The obtaining of the priority order of the specific disaster model group service chain in the specific disaster model group service chain according to the QoS general indicator may include: analyzing a link structure of the specific disaster model group service chain; determining a QoS general index value of the specific disaster model group service chain according to the operation rules of the four link structures of sequence, parallel, selection and circulation; and giving different weights to the QoS general index values to obtain the arrangement sequence of the specific disaster model group service chain. The reasons for the link disconnection may include: in the first case, it is determined that some disaster model services cannot be activated according to user input characteristics (such as geographic elements) to cause link disconnection; or, in the second case, service chain outages due to the failure of certain disaster model services.
For the first case, when the activation parameter of a specific disaster model service is determined to be 0 after the user inputs the model operation parameter, it indicates that the area parameter cannot trigger the disaster of the next node, and therefore, it is necessary to automatically delete the non-activated node and its related subsequent nodes in the abstract disaster model group service chain and regenerate the abstract disaster model group service chain and the corresponding specific disaster model group service chain.
And aiming at the second situation, automatically comparing the QoS of each specific service chain of the two schemes which are executed from the initial node and executed from the failed node, selecting the specific disaster model group service chain with the highest QoS value from each scheme for comparison, and finally selecting the specific model group service chain with the higher QoS as a replacement scheme.
S107: and releasing the specific disaster model group service chain.
In this embodiment, the issuing the specific disaster model group service chain may include: describing the specific disaster model group service chain based on the expanded WSDL (for example, adding a label < behavior > describing service behaviors in a service description document, specifying a transmission object and a transmission state of a service node in the < behavior > label, and setting a conversion function to complete transmission between the node and the node); packaging the specific disaster model group service chain into a standard WPS service by using a programming language; and deploying the specific disaster model group service chain on a server, and registering and releasing the specific disaster model group service chain in a service registration center.
Taking a specific embodiment as an example, the received request information input by the user is: x month and X day in X year, earthquake occurs in Shenzhen (longitude: XXX latitude: XXX) region, landslide phenomenon occurs in nearby mountain, disaster crisis occurs, and disaster prediction information such as earthquake influence range and the like needs to be obtained within 15 minutes. Firstly, semantic extraction operation is carried out on disaster types and disaster model QoS index requirements, information which is closely related to disasters is intelligently analyzed and reported by using a natural language processing method, intelligent reasoning assistance is carried out by using a knowledge graph, related disaster basic elements and QoS index constraints are deduced, intelligent conversion from unstructured language information to structured input information is completed, and finally, two disaster keywords of 'earthquake' and 'landslide' are extracted, and two model index constraints of corresponding time T <900s and earthquake influence range prediction in QoS indexes are extracted.
And inquiring a disaster chain rule database, judging whether the earthquake and landslide nodes are in the same disaster chain, wherein the inquiry result shows that the earthquake and the landslide nodes are in the same disaster chain, and the earthquake and landslide nodes are not cyclic nodes at the same time, so that the earthquake of the front-sequence node is taken as an initial node of a service chain.
And (3) extracting an earthquake disaster chain from the disaster chain rule by taking the earthquake node as a query key word, discovering all candidate earthquake, landslide, debris flow and ground settlement disaster model services from a service registry of the model group management system, respectively establishing all candidate services in an earthquake model service group, a landslide model service group, a debris flow model service group and a ground settlement model service group according to the disaster type of each node, and performing QoS index sequencing to remove inferior services.
The 'earthquake' model abstract service chain is provided with four nodes of 'earthquake', 'landslide', 'debris flow' and 'ground settlement', three candidate 'earthquake' model services are arranged in an earthquake model service group, two candidate 'landslide' model services are arranged in a 'landslide' model service group, two candidate 'debris flow' model services are arranged in a 'debris flow' model service group, one candidate 'ground settlement' model service is arranged in a 'ground settlement' model service group, one disaster model service is selected from the four disaster model service groups each time to form a specific disaster model group service chain, and 3 x 2 x 1 x 12 can be obtained in total.
And detecting whether the structure of each specific disaster model group service chain is consistent with that of the abstract disaster model group service chain. Specifically, the adjacency matrix is used for representing the service chain structure, and whether the adjacency matrixes of the abstract service chain and the concrete service chain are consistent or not is detected.
Figure GDA0002507759170000111
A is an adjacent matrix of the seismic model abstract service chain, and whether the adjacent matrix of the concrete seismic model service chain is also A is checked.
Fig. 3 is a schematic diagram of an equivalent service chain form according to an embodiment of the present invention. Analyzing the structure of the seismic model service chain can obtain an equivalent service chain form as shown in fig. 3:
analyzing the equivalent service chain, the earthquake and landslide model service respectively runs once, the debris flow model service runs twice, and the ground settlement model runs three times, so that the calculation formula of each index element in the earthquake service chain can be obtained by calculation and simplification according to the formula:
R=R1{1-{1-R2[1-(1-R3R4)(1-R4)]}(1-R3R4)}
A=A1{1-{1-A2[1-(1-A3A4)(1-A4)]}(1-A3A4)}
T=T1+T2+T3+T4
TP=MIN(A,B,C,D)
Figure GDA0002507759170000121
C=C1+C2+2C3+3C4
using an analytic hierarchy process, referring to expert opinions in the field, and then giving the weight values of all indexes, the final calculation formula is as follows:
Q=w1R+w2A+w3T+w4TP+w5RP+w6C
and selecting a concrete disaster model group service chain with the highest QoS value to be preferentially bound with the abstract disaster model group service chain to execute calling.
Due to the disaster characteristics of the disaster model service, the following situations are designed during the execution and the specific disaster model group service chain needs to be dynamically adjusted:
1. judging that a link is disconnected due to the fact that part of disaster model services cannot be activated according to user input features (geographic elements and the like);
2. service chain outages due to service failures in some disaster models.
The module can dynamically adjust the specific disaster model group service chain according to different link disconnection reasons.
For the first case, when the activation parameter of a specific disaster model service is determined to be 0 after the user inputs the model operation parameter, it indicates that the area parameter cannot trigger the disaster of the next node, so that the inactive node and its related subsequent nodes are automatically deleted from the abstract disaster model group service chain, and the abstract disaster model group service chain and the corresponding specific disaster model group service chain are regenerated.
Aiming at the second situation, the invention comprehensively compares the QoS index values of each chain under the conditions that the analysis is executed from the initial node of the service chain and the analysis is executed from the failure node according to the QoS index, and selects the optimal scheme to dynamically adjust the service chain of the specific disaster model group.
The transmission object is determined according to the structure of the service chain, and a conversion function is set to convert the output of one node into the input of the next node. For example: adding < behavior > tags in the WSDL document, wherein the lower secondary tags are < objectservice >, < state > tags, the < objectservice > tags are provided with < objecturl >, and other services transfer the access addresses of the target objects, the < state > tags are used for defining the transmission state of the services, and the next service is activated through the change of the service state. And packaging the WSDL document into a standard WPS service by using a script language according to the content of the WSDL document in the service chain. And deploying the new service chain on the server and registering and publishing the new service chain in the service registry.
The embodiment of the invention provides a disaster model group service chain arranging method, which comprises the steps of extracting request information input by a user to obtain disaster keywords and disaster model index constraints; selecting an initial node of a disaster model group service chain by inquiring a disaster chain rule database; constructing an abstract disaster model group service chain according to the initial node of the disaster model group service chain; acquiring a disaster model service group according to the abstract disaster model group service chain, and filtering the disaster model service group based on the disaster model index constraint; constructing a specific disaster model group service chain according to the candidate disaster model service group, and checking the correctness of the specific disaster model group service chain; acquiring the priority order of the specific disaster model group service chains in the specific disaster model group service chains according to the QoS general indexes, and dynamically adjusting the specific disaster model group service chains according to the calling state; and releasing the specific disaster model group service chain. The embodiment of the invention can support the mutual operation of multi-platform disaster model service based on the network, can support the intelligent construction of the disaster model group service chain based on the disaster chain rule, can carry out optimization selection under multiple targets of the disaster model group service chain, and dynamically adjusts the model group service chain in the execution process. The embodiment of the invention establishes a systematic method from service chain construction to release, has high universality, can be suitable for any disaster model group management system, and has lower complexity of arrangement mode and reduced dependence on manpower.
Fig. 4 is a schematic view of a disaster model group management system according to an embodiment of the present invention, and as shown in fig. 4, the disaster model group management system may include: the disaster prevention system comprises a user input module, a resource management module, a disaster model group service chain arrangement module, an engine execution module and a service registration center. The user input module can comprise a disaster model service requirement input module and a disaster model service specific parameter input module. The resource management module may include a disaster model service group metadata center, a disaster chain rule database, and a service chain archive. The disaster model group service chain arrangement module can comprise a specific disaster model group service chain construction module, an optimization selection and adjustment module and a disaster model group network release module. The engine execution module includes a call and execution service. The specific disaster model group service chain construction module can comprise a semantic extraction module, a service chain initial node selection module, an abstract disaster model group service chain construction module, a candidate disaster model service filtering module and a specific model group service chain construction and verification module. The optimization selection and adjustment module can comprise a specific disaster model group service chain dynamic adjustment module and a specific model service chain sequencing module based on QoS indexes. The disaster model group network publishing module can comprise a model service chain description language module, a disaster model group service chain packaging module and a new service chain deployment and publishing module.
The specific operation flow of the disaster model group management system may include: the method comprises the steps that a user input module inputs disaster model service requirements to a specific disaster model group service chain construction module according to request information input by a common user, the specific disaster model group service chain construction module is processed by a semantic extraction module, a service chain initial node selection module, an abstract disaster model group service chain construction module, a candidate disaster model service group filtering module and a specific model group service chain construction and verification module in sequence, processed information is transmitted to an optimization selection and dynamic adjustment module, the optimization selection and dynamic adjustment module can be processed by a specific model service chain sequencing module based on QoS indexes to obtain the priority sequence of specific disaster model group service chains in the specific disaster model group service chain, the sequenced information is transmitted to a disaster model group network publishing module, and the disaster model group network publishing module is sequentially processed by a specific service chain description language module, A disaster model group service chain encapsulation module and a new service chain deployment and release module, wherein the specific disaster model group service chain processed by the disaster model group service chain arrangement module is transmitted to a service registration center to obtain the specific parameter input of the disaster model service, the user input module transmits the specific parameter input of the disaster model service to an engine execution module for service calling and execution, during the execution process, through optimizing the specific disaster model group service chain dynamic adjustment module in the selection and dynamic adjustment module, dynamically adjusting the specific disaster model group service chain according to the calling state, sequentially passing the adjusted specific disaster model group service chain through a disaster model group network release module, a service registration center, a disaster model service specific parameter input module and an engine execution module in a user input module, and sending the specific disaster model group service chain to the user through the disaster model group management system by the engine module.
An embodiment of the present invention further provides a terminal device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the disaster model group service chain arrangement method described in any of the above embodiments when executing the program.
Fig. 5 is a schematic configuration diagram of a terminal according to an embodiment of the present invention, and as shown in fig. 5, the terminal 1 includes a memory 10, and the disaster model group service chaining apparatus 100 is stored in the memory 10. The terminal 1 may be a mobile phone, a tablet computer, a personal digital assistant, or other terminals with an application display function. The disaster model group service chain arrangement device 100 may extract request information input by a user to obtain disaster keywords and disaster model index constraints; selecting an initial node of a disaster model group service chain by inquiring a disaster chain rule database; constructing an abstract disaster model group service chain according to the initial node of the disaster model group service chain; acquiring a disaster model service group according to the abstract disaster model group service chain, and filtering the disaster model service group based on the disaster model index constraint; constructing a specific disaster model group service chain according to the candidate disaster model service group, and checking the correctness of the specific disaster model group service chain; acquiring the priority order of the specific disaster model group service chains in the specific disaster model group service chains according to the QoS general indexes, and dynamically adjusting the specific disaster model group service chains according to the calling state; and releasing the specific disaster model group service chain. Therefore, various disaster models can be intelligently arranged, and comprehensive calling of disaster model groups is realized.
In this embodiment, the terminal 1 may further include a display 20 and a processor 30. The memory 10 and the display screen 20 can be electrically connected with the processor 30 respectively.
The memory 10 may be of different types of memory devices for storing various types of data. For example, the memory or internal memory of the terminal 1 may be used, or a memory Card that can be externally connected to the terminal 1, such as a flash memory, an SM Card (Smart Media Card), an SD Card (Secure Digital Card), and the like. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device. The memory 10 is used for storing various types of data, for example, various types of application programs (Applications) installed in the terminal 1, data set and acquired by applying the disaster model group service chaining method described above, and the like.
A display 20 is mounted to the terminal 1 for displaying information.
The processor 30 is configured to execute the disaster model group service chain arrangement method and various types of software installed in the terminal 1, such as an operating system and application display software. The processor 30 includes, but is not limited to, a Central Processing Unit (CPU), a Micro Controller Unit (MCU), and the like for interpreting computer instructions and processing data in computer software.
The disaster model group service chaining apparatus 100 may comprise one or more modules stored in the memory 10 of the terminal 1 and configured to be executed by one or more processors (in this embodiment, one processor 30) to implement the embodiments of the present invention. For example, referring to fig. 6, the disaster model group service chain arrangement apparatus 100 may include a semantic extraction module 11, a service chain initial node selection module 12, an abstract disaster model group service chain construction 13, a candidate disaster model service group filtering module 14, a concrete model group service chain construction and verification module 15, an optimization selection and adjustment module 16, and a disaster model group network publishing module 17. The modules referred to in the embodiments of the present invention may be program segments that perform a specific function, and are more suitable than programs for describing the execution process of software in a processor.
It is understood that, corresponding to the embodiments of the disaster model group service chaining method, the terminal 1 may include some or all of the functional modules shown in fig. 6, and the functions of the modules will be described in detail below. It should be noted that the same noun and its specific explanation in the above embodiments of the disaster model group service chaining method can also be applied to the following functional introduction of each module. For brevity and to avoid repetition, further description is omitted.
The semantic extraction module 11 may be configured to extract request information input by a user, and obtain a disaster keyword and a disaster model index constraint.
The service chain initial node selection module 12 may be configured to query the disaster chain rule database according to the disaster keyword, and select an initial node of the disaster model group service chain.
The abstract disaster model group service chain construction module 13 may be configured to construct an abstract disaster model group service chain according to an initial node of the disaster model group service chain.
The candidate disaster model service filtering module 14 may be configured to obtain a candidate disaster model service group according to the abstract disaster model group service chain, and filter the candidate disaster model service group based on the disaster model index constraint.
The specific model group service chain construction and verification module 15 may be configured to construct a specific disaster model group service chain according to the filtered candidate disaster model service group, and verify correctness of the specific model group service chain.
The optimization selection and adjustment module 16 may be configured to obtain a priority order of a specific disaster model group service chain in the specific disaster model group service chain according to the QoS general index, and dynamically adjust the specific disaster model group service chain according to a call state.
The disaster model group network publishing module 17 may be configured to publish the specific disaster model group service chain.
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the disaster model group service chain arrangement method in any one of the above embodiments.
The disaster model group service chaining apparatus/terminal/computer device integrated module/unit may be stored in a computer readable storage medium if it is implemented in the form of a software functional unit and sold or used as a separate product. Based on such understanding, all or part of the flow in the method according to the above embodiments may be implemented by a computer program, which may be stored in a computer-readable storage medium and used by a processor to implement the steps of the above method embodiments. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable storage medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like.
The Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. The general-purpose processor may be a microprocessor, or the processor may be any conventional processor, and the processor is a control center of the disaster model group service chaining apparatus/terminal, and various interfaces and lines are used to connect various parts of the entire disaster model group service chaining apparatus/terminal.
The memory is used for storing the computer program and/or the module, and the processor realizes various functions of the disaster model group service chain orchestration device/terminal by running or executing the computer program and/or the module stored in the memory and calling data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
Although the embodiments of the present invention have been described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that various changes may be made and equivalents may be substituted without departing from the spirit and scope of the embodiments of the present invention.

Claims (9)

1. A method for orchestrating disaster model group service chains, the method comprising:
extracting request information input by a user to obtain disaster keywords and disaster model index constraints;
inquiring a disaster chain rule database according to the disaster keywords, and selecting an initial node of a disaster model group service chain;
constructing an abstract disaster model group service chain according to the initial node of the disaster model group service chain;
respectively establishing disaster model service groups with the same functions as the nodes according to the abstract disaster model group service chain and the node sequence, and filtering the disaster model service groups based on the disaster model index constraint to obtain candidate disaster model service groups;
performing QoS index sequencing on the candidate disaster model service group, and removing inferior services;
constructing a specific disaster model group service chain according to the filtered candidate disaster model service group, and checking the correctness of the specific disaster model group service chain;
acquiring the priority order of the specific disaster model group service chains in the specific disaster model group service chains according to the QoS indexes, and dynamically adjusting the specific disaster model group service chains according to the calling state;
and releasing the specific disaster model group service chain.
2. The method according to claim 1, wherein selecting an initial node of a disaster model group service chain comprises:
judging whether the disaster keywords are positioned in the same disaster chain or not;
if the judgment result is negative, respectively taking different disaster keywords as initial nodes of different disaster model service chains;
and if so, judging whether two or more disaster keywords exist and are cyclic nodes in the same cyclic structure of the disaster chain.
3. The disaster model group service chain orchestration method according to claim 2, wherein after the determining whether two or more disaster keywords are present at the same time as a loop node in the same loop structure of the disaster chain, the method comprises:
if the judgment result is yes, and the positions of two or more disaster keywords on the disaster chain are arranged in front of other disaster keyword nodes, taking the first-mentioned disaster keyword in the request information input by the user as an initial node of the disaster model service chain in the two or more disaster keywords;
if the judgment result is yes, two or more disaster keywords are not arranged in front of other disaster keyword nodes at the positions of the disaster chain, and the disaster keywords arranged at the front part of the disaster chain are used as initial nodes of a disaster model service chain;
and if the judgment result is negative, taking the disaster keywords arranged in the front of the disaster chain as initial nodes of the disaster model service chain.
4. The disaster model group service chain orchestration method according to claim 1, wherein the constructing an abstract disaster model group service chain from initial nodes of the disaster model group service chain comprises:
extracting a disaster chain taking the initial node of the disaster model service chain as an initial node;
judging whether a circulating structure exists on the disaster chain of the primary node;
if the judgment result is negative, constructing an abstract disaster model group service chain by respectively corresponding each node on the disaster chain of the initial node to each node in the abstract disaster model group service chain;
if the judgment result is yes, besides constructing a first abstract disaster model group service chain which is the same as each node of the disaster chain as the main chain, constructing a second abstract disaster model group service chain as an auxiliary chain according to the cycle structure.
5. The disaster model group service chain orchestration method according to claim 1, wherein the obtaining a priority order of a specific disaster model group service chain in the specific disaster model group service chain according to a QoS indicator comprises:
analyzing a link structure of the specific disaster model group service chain;
determining the QoS index value of the specific disaster model group service chain according to the operation rules of four different link structures of sequence, parallel, selection and circulation;
and giving different weights to the QoS index values to obtain the arrangement sequence of the specific disaster model group service chains.
6. The disaster model group service chaining method as claimed in claim 1, wherein said publishing said particular disaster model group service chain comprises:
describing the specific disaster model group service chain based on the expanded WSDL;
packaging the specific disaster model group service chain into WPS service by using a programming language;
and deploying the specific disaster model group service chain on a server, and registering and releasing the specific disaster model group service chain in a service registration center.
7. A disaster model group service chain orchestration device, the disaster model group service chain orchestration device comprising:
the semantic extraction module is used for extracting request information input by a user to obtain disaster keywords and disaster model index constraints;
the service chain initial node selection module is used for inquiring the disaster chain rule database according to the disaster keywords and selecting initial nodes of the disaster model group service chain;
the system comprises an abstract disaster model group service chain construction module, a disaster model group service chain setting module and a disaster model group service chain setting module, wherein the abstract disaster model group service chain construction module is used for constructing an abstract disaster model group service chain according to an initial node of the disaster model group service chain;
the candidate disaster model service filtering module is used for respectively establishing disaster model service groups with the same functions as the nodes according to the abstract disaster model group service chain and the node sequence, and filtering the disaster model service groups based on the disaster model index constraint to obtain candidate disaster model service groups;
performing QoS index sequencing on the candidate disaster model service group, and removing inferior services;
the specific model group service chain construction and verification module is used for constructing a specific disaster model group service chain according to the filtered candidate disaster model service group and verifying the correctness of the specific model group service chain;
the optimization selection and adjustment module is used for acquiring the priority order of the specific disaster model group service chain in the specific disaster model group service chain according to the QoS index and dynamically adjusting the specific disaster model group service chain according to the calling state;
and the disaster model group network publishing module is used for publishing the specific disaster model group service chain.
8. A terminal device, characterized in that the terminal device comprises a processor for implementing the steps of the disaster model group service chaining method as claimed in any one of claims 1-6 when executing a computer program stored in a memory.
9. A storage medium having stored thereon a computer program, wherein the computer program, when being executed by a processor, is adapted to carry out the steps of the disaster model group service chaining method as claimed in any one of the claims 1-6.
CN201810962291.0A 2018-08-22 2018-08-22 Disaster model group service chain arranging method and device, terminal and storage medium Active CN109213883B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810962291.0A CN109213883B (en) 2018-08-22 2018-08-22 Disaster model group service chain arranging method and device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810962291.0A CN109213883B (en) 2018-08-22 2018-08-22 Disaster model group service chain arranging method and device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN109213883A CN109213883A (en) 2019-01-15
CN109213883B true CN109213883B (en) 2020-08-21

Family

ID=64989012

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810962291.0A Active CN109213883B (en) 2018-08-22 2018-08-22 Disaster model group service chain arranging method and device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN109213883B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110334907A (en) * 2019-06-03 2019-10-15 武汉大学 A kind of calamity emergency task combined method based on workflow
CN111626568B (en) * 2020-05-06 2024-02-20 厦门理工学院 Knowledge base construction method and knowledge search method and system in natural disaster field

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011093492A1 (en) * 2010-02-01 2011-08-04 日本電気株式会社 Event distribution system, event distribution network, event distribution node, event distribution method, and computer-readable storage medium
CN104217257A (en) * 2014-09-12 2014-12-17 福建师范大学 Integrated risk calculating method of disaster chain
CN107679221B (en) * 2017-10-19 2021-03-16 武汉大学 Time-space data acquisition and service combination scheme generation method for disaster reduction task

Also Published As

Publication number Publication date
CN109213883A (en) 2019-01-15

Similar Documents

Publication Publication Date Title
CN108804618B (en) Database configuration method, device, computer equipment and storage medium
CN111752799A (en) Service link tracking method, device, equipment and storage medium
CN108959385B (en) Database deployment method, device, computer equipment and storage medium
CN110457175B (en) Service data processing method and device, electronic equipment and medium
CN109213883B (en) Disaster model group service chain arranging method and device, terminal and storage medium
CN112764920A (en) Edge application deployment method, device, equipment and storage medium
CN114676205A (en) Event information processing method and device
CN107995062B (en) RPC-based traffic management integrated platform remote service real-time processing method and system
CN103778223B (en) Pervasive word-reciting system based on cloud platform and construction method thereof
CN113792008A (en) Method and device for acquiring network topology structure, electronic equipment and storage medium
CN103425684A (en) Method and device for database operation
CN115952185B (en) Data processing method and device, equipment and storage medium
CN112363838A (en) Data processing method and device, storage medium and electronic device
CN106959903A (en) Trap instruction Trap processing method and processing device
CN110058995A (en) A kind of the data library test method and system of the interference of avoidable type of database
KR102188132B1 (en) System for loading and processing data and method thereof
CN111884932B (en) Link determining method, device, equipment and computer readable storage medium
CN112486481B (en) Multi-module layered architecture implementation method and device, electronic equipment and medium
CN114936269A (en) Document searching platform, searching method, device, electronic equipment and storage medium
CN113326064A (en) Method for dividing business logic module, electronic equipment and storage medium
CN111158654A (en) Algorithm calling method, device, server and storage medium
CN113568630A (en) Method, system and equipment for updating algorithm
CN117539962B (en) Data processing method, device, computer equipment and storage medium
CN114679471B (en) Data matching method based on cloud service processing
CN117149396B (en) Cluster fault transfer method and device, 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