Conceptual model construction method, system, equipment and medium
By building a conceptual model and using UML language to clearly represent the emergency command process and system requirements, we can solve the problem of communication and understanding deviations in the development of the emergency command simulation system and improve the development efficiency and quality of the simulation system.
Patent Information
- Application Number
- CN202410735922.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-07
- Publication Date
- 2024-09-17
AI Technical Summary
In the development of emergency command simulation systems, differences in professional backgrounds and knowledge fields between emergency command personnel and software developers lead to miscommunication and understanding, which affects the effectiveness and practicality of the simulation system.
The conceptual model construction method is used to clearly characterize the emergency command process and system requirements through use case diagrams, class diagrams, object diagrams and dynamic behavior models, combined with UML language, reducing communication barriers and improving both parties' understanding of the system structure and functions.
Through the visual conceptual model, communication misunderstandings are reduced, the efficiency and quality of simulation system development are improved, and the simulation system can better meet the needs of emergency command.
Smart Images

Figure CN118657644A
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method, system, device and medium for constructing a conceptual model. Background Art
[0002] In the context of informatization, emergency rescue and emergency disposal have heavy tasks, involving coordination among multiple parties and extremely high timeliness requirements. Emergency command directly determines the overall effect of rescue and disposal, and profoundly affects the process and final result of emergency response. In order to effectively identify and solve problems or weak links in emergency command, emergency command simulation is usually used to achieve this goal by simulating the real command process.
[0003] When conducting emergency command simulation, it is usually necessary to develop a corresponding simulation system. This process must follow the development principles and processes of software engineering, starting with an in-depth analysis of the specific needs of emergency command, and going through multiple stages such as demand verification, system design, system development, and deployment and operation to ensure the effectiveness and practicality of the simulation system. Therefore, it is usually necessary for emergency commanders and software developers to cooperate to complete it, but there are differences in their professional backgrounds and knowledge areas. Emergency commanders usually focus on decision-making and operations in actual emergency scenarios, while software developers focus more on technical implementation and software development, and cannot fully understand the system's functions, business logic, and data flow. This difference may lead to a deviation in understanding between the two parties during communication, which in turn leads to the simulation system being unable to fully meet the actual needs of emergency command, affecting the effectiveness and practicality of the simulation system. Summary of the invention
[0004] Based on the above problems, this application provides a conceptual model construction method, system, equipment and medium to reduce the communication barriers between emergency commanders and software developers, reduce the possibility of ambiguity and misunderstanding during the communication process, and ensure the development quality and progress of the simulation system.
[0005] To solve the above problems, the technical solutions provided in the embodiments of the present application are as follows:
[0006] The first aspect of the present application provides a method for constructing a conceptual model, comprising:
[0007] According to the participant information, task behavior information, and the correspondence between the participant information and the task behavior information, a functional model is constructed in the form of a use case diagram; based on the affiliation between the participants in the participant information, a participant model is constructed in the form of a class diagram; according to the task flow relationship of the task behavior information, an information model is constructed in the form of an object diagram, and the task behavior information is used to characterize the behavior that the participant needs to take when performing the target task;
[0008] Based on the functional model, the participant model and the information model, the relationships between the represented objects and the relationships between the behaviors, a dynamic behavior model is constructed. The dynamic behavior model is constructed by combining the functional model, the participant model and the information model, and is used for communication between emergency command personnel and software developers. It is used to describe how objects dynamically interact at different time points during execution, and the interaction process between objects is represented in the form of a collaboration diagram, and / or, a conceptual model of the task execution process is represented in the form of an activity diagram, the activity diagram is used to represent the control flow from activity to activity, and the collaboration diagram is used to describe the static connection relationship between objects, as well as the order of interaction between objects.
[0009] In a possible implementation, the functional model is constructed in the form of a use case diagram according to the participant information, the task behavior information, and the corresponding relationship between the participant information and the task behavior information, including:
[0010] Determine a participant entity according to the participant information, and determine a use case according to the task behavior information;
[0011] According to the correspondence between the participant information and the task behavior information, the participant entity and the corresponding use case are connected to obtain a functional model in the form of a use case diagram. The functional model is the basis for constructing a dynamic behavior model for emergency command, and is used to characterize the interaction relationship between each participant entity and the task behavior undertaken by the participant entity.
[0012] In a possible implementation, the participant model is constructed in the form of a class diagram based on the affiliation between the participants in the participant information, including:
[0013] Determine a participant entity based on the participant information, and map the participant entity to a class;
[0014] Based on the affiliation between the participants in the participant information, the classes corresponding to the participants are connected to obtain a participant model in the form of a class diagram. The participant model is the basis for constructing a dynamic behavior model for emergency command.
[0015] In a possible implementation, constructing an information model in the form of an object graph according to the task flow relationship of the task behavior information includes:
[0016] Based on the task flow relationship of the task behavior information, determining an information entity, wherein the information entity is used to represent information associated with the task behavior;
[0017] Based on the relationship between information entities in the task behavior information, objects corresponding to the information entities are connected to obtain an information model in the form of an object graph. The information model is the basis for constructing a dynamic behavior model for emergency command.
[0018] In a possible implementation, the constructing of a dynamic behavior model based on the relationship between objects and the relationship between behaviors represented by the function model, the participant model, and the information model includes:
[0019] Determining the interaction relationship and interaction content between participants based on the functional model, the participant model and the information model;
[0020] Based on the interaction relationship and interaction content, the objects corresponding to the participants are connected to obtain a dynamic behavior model in the form of a collaboration diagram. The dynamic behavior model is used to characterize the interaction process between the participants. The dynamic behavior model is a model for emergency command that is constructed by combining the functional model, the participant model and the information model.
[0021] In a possible implementation, the constructing of a dynamic behavior model based on the relationship between objects and the relationship between behaviors represented by the function model, the participant model, and the information model includes:
[0022] Determine the behaviors to be executed and the sequential relationship of the behaviors to be executed based on the function model, the participant model and the information model;
[0023] Based on the behaviors to be executed and the sequential relationship of the behaviors to be executed, a dynamic behavior model in the form of an activity diagram is generated. The dynamic behavior model is used to characterize the task execution process. The dynamic behavior model is a model for emergency command that is constructed by combining the functional model, the participant model and the information model.
[0024] The second aspect of the present application provides a system for constructing a conceptual model, including:
[0025] The first construction unit is used to construct a functional model in the form of a use case diagram based on the participant information, the task behavior information, and the corresponding relationship between the participant information and the task behavior information; construct a participant model in the form of a class diagram based on the affiliation between the participants in the participant information; and construct an information model in the form of an object diagram based on the task flow relationship of the task behavior information, wherein the task behavior information is used to characterize the behavior that the participant needs to take when performing the target task;
[0026] The second construction unit is used to construct a dynamic behavior model based on the relationship between objects and the relationship between behaviors represented by the function model, the participant model and the information model. The dynamic behavior model is constructed by combining the function model, the participant model and the information model, and is used for communication between emergency command personnel and software developers. It is used to describe how objects dynamically interact at different time points during execution, and represents the interaction process between objects in the form of a collaboration diagram, and / or, represents a conceptual model of the task execution process in the form of an activity diagram, wherein the activity diagram is used to represent the control flow from activity to activity, and the collaboration diagram is used to describe the static connection relationship between objects and the order of interaction between objects.
[0027] In a possible implementation, the second construction unit is specifically configured to:
[0028] Determine the behaviors to be executed and the sequential relationship of the behaviors to be executed based on the function model, the participant model and the information model;
[0029] Based on the behaviors to be executed and the sequential relationship of the behaviors to be executed, a dynamic behavior model in the form of an activity diagram is generated. The dynamic behavior model is used to characterize the task execution process. The dynamic behavior model is a model for emergency command that is constructed by combining the functional model, the participant model and the information model.
[0030] The third aspect of the present application provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method for constructing the conceptual model described in the first aspect is implemented.
[0031] The fourth aspect of the present application provides a computer-readable storage medium, in which instructions are stored. When the instructions are executed on a terminal device, the terminal device executes the method for constructing a conceptual model as described in the first aspect.
[0032] Compared with the prior art, this application has the following beneficial effects:
[0033] According to the participant information, task behavior information, and the correspondence between the participant information and the task behavior information, a functional model is constructed in the form of a use case diagram; based on the affiliation between the participants in the participant information, a participant model is constructed in the form of a class diagram; according to the task flow relationship of the task behavior information, an information model is constructed in the form of an object diagram; based on the functional model, the participant model and the information model, a dynamic behavior model representing the interaction process between participants and / or the task execution process is constructed. That is, a conceptual model presented in the form of a collaboration diagram and / or an activity diagram is constructed by using a use case diagram, a class diagram and an object diagram, and the complex emergency command process and system requirements are presented in a graphical manner, so that both emergency command personnel and technical personnel can intuitively understand the structure and function of the system, reducing the communication barriers between the two parties. And through the visual conceptual model, both parties can convey their intentions and ideas more quickly and accurately, reducing the time and cost of communication. Improve the efficiency and quality of the entire simulation system development process. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the technical solutions in this embodiment or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0035] Figure 1 A flowchart of a method for constructing a conceptual model provided in an embodiment of the present application;
[0036] Figure 2 A schematic diagram of a functional model provided for an embodiment of the present application;
[0037] Figure 3 A schematic diagram of a participant model provided for an embodiment of the present application;
[0038] Figure 4 A schematic diagram of an information model provided for an embodiment of the present application;
[0039] Figure 5 A schematic diagram of a control object interaction model provided in an embodiment of the present application;
[0040] Figure 6 A schematic diagram of an activity-to-activity control model provided in an embodiment of the present application;
[0041] Figure 7 A system structure diagram for building a conceptual model provided in an embodiment of the present application. DETAILED DESCRIPTION
[0042] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0043] To facilitate understanding of the technical solutions provided by the embodiments of the present application, the background technology involved in the embodiments of the present application will be described below.
[0044] As mentioned above, in the process of implementing emergency command simulation, there are mainly the following reasons for the communication problems between emergency commanders and software developers. First, there are differences in the professional background and knowledge fields of both parties. Emergency commanders usually focus on decision-making and operations in actual emergency scenarios, while software developers focus more on technical implementation and software development. This difference may lead to a deviation in understanding between the two parties during communication. Secondly, the requirements of emergency command simulation are complex and changeable, involving knowledge and technology in multiple disciplines. Both parties need to discuss and clarify these complex requirements in depth, but there may be disagreements or inaccurate information transmission during the communication process. In addition, the development of emergency command simulation systems usually requires multiple stages, including demand analysis, system design, system development, deployment and operation, etc. Each stage requires close cooperation and communication between the two parties, but in actual operation, due to the different work rhythms and progress of both parties, communication may not be smooth. In summary, in the process of implementing emergency command simulation, there are communication problems between emergency commanders and software developers, which is the result of the combined effect of many factors.
[0045] In order to solve this problem, the embodiments of the present application provide a method, system, device and medium for constructing a conceptual model. In the development process of the simulation software system, the conceptual model provides a basic expression tool for software designers, so that they can have a deeper understanding of the various functions, business logic and data flow of the system. Therefore, the conceptual model plays an efficient connecting role between the emergency command needs and the simulation system, and becomes a communication bridge between emergency command personnel and software designers. The Unified Modeling Language (UML) is an intuitive and easy-to-understand graphical modeling language, and its expression content is easy to understand for business personnel, software designers and developers, and field experts. The present invention is aimed at the field of emergency command and uses UML to construct a corresponding conceptual model.
[0046] It should be noted that the construction method, system, device and medium of the conceptual model provided in the present application can be applied to the field of computer technology. The above is only an example, and the application field of the construction method, system, device and medium of the conceptual model provided in the present application is not limited. In addition, the embodiments of the present application may not limit the execution subject of the construction of the conceptual model. For example, the digital signature generation method of the embodiment of the present application can be applied to data processing devices such as terminal devices or servers. Among them, the terminal device can be an electronic device such as a smart phone, a computer, a personal digital assistant (PDA), a tablet computer, etc. The server can be an independent server, a cloud server or a cluster server composed of multiple servers.
[0047] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0048] The following is an example of an embodiment to illustrate a method for constructing a conceptual model provided by the present application. Figure 1 ,Should Figure 1 A flowchart of a method for constructing a conceptual model provided in an embodiment of the present application, the method comprising:
[0049] S101, constructing a functional model in the form of a use case diagram based on participant information, task behavior information, and the correspondence between the participant information and the task behavior information. Constructing a participant model in the form of a class diagram based on the affiliation between the participants in the participant information; constructing an information model in the form of an object diagram based on the task flow relationship of the task behavior information.
[0050] First, for the functional model, in this embodiment, according to the participant information, task behavior information, and the correspondence between the participant information and the task behavior information, the functional model is constructed in the form of a use case diagram, that is, functional modeling is performed, and the functional model is established in the form of a use case diagram to solve the problem of "what to do". Based on the affiliation between the participants in the participant information, the participant model is constructed in the form of a class diagram; according to the task flow relationship of the task behavior information, the information model is constructed in the form of an object diagram. That is, static modeling is performed, and a system static structure model is established in the form of a class diagram and an object diagram to describe the relationship and operation between classes and objects, and solve the problem of "who will do it".
[0051] Task behavior information is used to characterize the behaviors that participants need to take when performing the target task. Participants are users or other systems that interact with the system. Based on the provided participant information, list all participants that interact with the system. Task behaviors are specific actions or functions that participants interact with the system. Based on the task behavior information, identify the tasks or behaviors that each participant may perform when interacting with the system. Determine which task behaviors each participant has a direct interaction relationship with. In actual application scenarios, this can be done by analyzing the descriptions, contexts, or specific requirements in the participant information and task behavior information.
[0052] In the actual application process, first of all, we can identify the participants and determine the external entities that interact with the system, such as users, other systems or devices. Then, define the use cases and identify the functional requirements of the system. Each functional requirement usually corresponds to one or more use cases. Subsequently, draw a use case diagram to show the interaction between the participants and the use cases, including the use cases triggered by the participants, the inclusion and extension relationship between the use cases, etc. Finally, the constructed use case diagram is obtained, which clearly shows the functions of the system and the interaction between the participants and the system.
[0053] In a possible implementation, the functional model is constructed in the form of a use case diagram according to the participant information, the task behavior information, and the corresponding relationship between the participant information and the task behavior information, including:
[0054] Determine a participant entity according to the participant information, and determine a use case according to the task behavior information;
[0055] According to the correspondence between the participant information and the task behavior information, the participant entity and the corresponding use case are connected to obtain a functional model in the form of a use case diagram. The functional model is used to characterize the interaction relationship between each participant entity and the task behavior undertaken by the participant entity.
[0056] In emergency command, the participant entities involved may be: emergency command organization, government departments, professional emergency forces, social emergency forces, etc.; task behaviors may be: decision-making command, organizational planning, coordination and control, etc. When drawing, the participant entities are represented as different participants. Task behaviors are represented as use cases. Using UML use case diagrams, the participant entities and corresponding use cases are connected through the interaction between entities and behaviors, and the emergency command function is described as follows: Figure 2 As shown, Figure 2 A schematic diagram of the functional model provided for an embodiment of the present application.
[0057] Among them, the emergency command organization is the core of the emergency command system, responsible for decision-making, command, organization planning and coordination control. It works closely with other entities to ensure efficient and orderly emergency response. Government departments play the role of resource coordination, information release and decision-making support in emergency command. Government departments are usually responsible for coordinating resources from all parties, providing decision-making basis, and timely releasing relevant information to the public. Professional emergency forces include professional rescue teams such as fire, medical, and police. They are responsible for executing tasks, on-site disposal and emergency training. In the emergency response process, professional emergency forces are the main force of rescue operations. Social emergency forces include volunteers, social organizations and the general public. They play the role of assisting rescue, information reporting and resource donation in emergency command. The extensive participation of social emergency forces can enhance the effectiveness of emergency response. Through the use case diagram, you can clearly see the interaction between the various entities in the emergency command system and the business behaviors they undertake. This helps developers and emergency personnel better understand the system functions and operation processes, so as to design an emergency command system that better meets actual needs.
[0058] Second, for the participant model in the static structure model, this embodiment constructs the participant model in the form of a class diagram based on the affiliation between the participants in the participant information. The participant model is used to describe the relationship between the organizational entities of the emergency command system. The basic organizational units in the emergency command system are described by the UML class diagram, and the affiliation between the organizational units is represented by the aggregation relationship between the class diagrams. The static organizational structure of the emergency command system is reflected by the establishment of the participant model. The emergency command participant model is as follows: Figure 3 As shown, Figure 3 A schematic diagram of a participant model provided for an embodiment of the present application.
[0059] In a possible implementation, the participant model is constructed in the form of a class diagram based on the affiliation between the participants in the participant information, including:
[0060] Determine a participant entity based on the participant information, and map the participant entity to a class;
[0061] Based on the affiliation between the participants in the participant information, the classes corresponding to the participants are connected to obtain a participant model in the form of a class diagram.
[0062] In UML, class diagram is a graphical representation used to describe the static structure of classes in a system. In the emergency command system, the participant model is used to describe the relationship between different organizational entities, which can be displayed through the UML class diagram. The aggregation relationship in the class diagram can represent the strong dependency between classes, reflecting that object A can contain object B. This structure clearly shows the affiliation between organizational units, which helps to understand and design the organizational structure of the emergency command system.
[0063] Third, for the information model in the static structure model, this embodiment constructs the information model in the form of an object graph based on the task flow relationship of the task behavior information. The information model is a structured representation of the emergency command business process, a representation of the relationship between data objects and entities within the emergency command system, and is used to collect and organize the basic patterns and relationships of shared information data required for database design. It explains the information contained in the business objects processed by the system, that is, the input and output data of activities that perform specific functions and the logical relationship between these data.
[0064] In actual application scenarios, building an object diagram can be done in the following steps: First, identify objects, that is, you need to identify which entities can be used as objects from the task information. These entities may be personnel, equipment, the task itself, resources, etc. Then, determine the attributes, that is, for each object, determine its attributes and their current values. These attributes may be the state, capability, location, etc. of the object. After that, identify the relationship, that is, analyze the relationship between objects in the task information. These relationships may include aggregation, combination, association, dependency, etc. Finally, draw an object diagram, using UML tools or hand-drawing to create an object diagram. In the diagram, objects are represented by rectangles, and the name of the object is written on top of the rectangle. Inside the rectangle, the attributes of the object and their values can be listed. Use lines and arrows to represent the relationship between objects. The type of line (such as solid line, dashed line, with arrows or without arrows) should represent different relationship types according to the UML specification.
[0065] In a possible implementation, constructing an information model in the form of an object graph according to the task flow relationship of the task behavior information includes:
[0066] Based on the task flow relationship of the task behavior information, an information entity is determined, and the information entity is used to represent information that is associated with the task behavior; based on the relationship between the information entities in the task behavior information, the objects corresponding to the information entities are connected to obtain an information model in the form of an object graph.
[0067] Emergency command information model Figure 4 As shown, Figure 4The information model diagram provided for the embodiment of the present application is used to abstract and represent the emergency command business process. It defines the key steps, links and processes in the emergency command process, as well as the logical relationships between these steps and links. This structured representation helps to understand and analyze the emergency command business process and provide guidance for the design and development of the system.
[0068] S102: construct a dynamic behavior model based on the functional model, the participant model and the information model, and the relationships between the objects and the relationships between the behaviors represented.
[0069] That is, dynamic modeling is performed to establish a dynamic behavior model in the form of an activity diagram, which describes the behavior of objects and the interaction between objects from different perspectives to solve the problem of "how to do it". The dynamic behavior model is a conceptual model that represents the interaction process between participants in the form of a collaboration diagram and / or represents the task execution process in the form of an activity diagram.
[0070] The static structural model focuses on describing the system structure and the relationship between them, but cannot reflect how the various objects in the system collaborate to achieve system functions. The role of the dynamic behavior model is to describe how the objects of the system dynamically interact at different time points during execution. The embodiment of this application uses collaboration diagrams and activity diagrams for dynamic modeling to describe the interaction between objects from different perspectives.
[0071] Emergency command generally has three main functions: first, decision-making function, making scientific and reasonable emergency disposal and emergency rescue decisions according to the rapid changes in the emergency situation, effectively formulating and issuing various orders and plans, organizing and coordinating emergency rescue and emergency disposal activities and various guarantees; second, control function, on the basis of timely grasping the development and changes of the emergency situation, uninterruptedly controlling emergency rescue and emergency disposal actions. According to feedback information from all parties, the emergency situation is judged, and the deployment is adjusted in time to make the emergency action consistent with the goal; third, coordination function, coordinating with relevant departments, professional emergency forces, social emergency forces, social organizations, volunteers, etc., to make emergency rescue and emergency disposal actions coordinated.
[0072] In a possible implementation, the constructing of a dynamic behavior model based on the relationship between objects and the relationship between behaviors represented by the function model, the participant model, and the information model includes:
[0073] Based on the functional model, the participant model and the information model, the interaction relationship and interaction content between the participants are determined; based on the interaction relationship and interaction content, the objects corresponding to the participants are connected to obtain a dynamic behavior model in the form of a collaboration diagram, and the dynamic behavior model is used to characterize the interaction process between the participants.
[0074] In actual application scenarios, the construction process can be as follows: First, determine the participants, that is, determine all objects or class instances involved in the interaction. These objects or instances are usually participants in the interaction. Second, identify the interaction, that is, determine what interactions occur between these participants. Interactions may include method calls, message passing, etc. Third, determine the context of the collaboration, that is, determine the context or environment in which the collaboration occurs. This may be a specific use case, scenario, or function. Fourth, create a collaboration diagram, that is, use a UML tool or draw a collaboration diagram manually. Collaboration diagrams usually include participant objects, connections between them (such as message passing), and possible organizational structures (such as groups or packages). Fifth, add objects, that is, add instances of objects or classes as nodes in the collaboration diagram. Usually, each object has a rectangular box representing its instance. Sixth, add messages, that is, use lines with arrows to represent message passing between objects. The starting point of the line is the object that sends the message, and the end point is the object that receives the message. Seventh, define the message content, that is, add labels next to the message line to describe the content of the message. This may include the name of the method called, the parameters passed, etc. Seventh, define the relationship between objects. If there are associations, aggregations, or inheritance relationships between objects, use corresponding lines to represent these relationships in the collaboration diagram. Eighth, add groups or packages. If there are many objects in the collaboration diagram, consider using groups or packages to organize them. Groups or packages are represented by dashed rectangles and contain related objects. In actual application scenarios, verification and refinement can be added according to actual needs: Verify whether the collaboration diagram accurately describes the interactions and collaborations between objects. Refine the collaboration diagram as needed, add more details or adjust the layout to improve readability.
[0075] Collaboration diagrams can not only reflect the static connection relationship between interactive objects, but also the connection relationship between objects is an example of the relationship between classes in the class diagram. At the same time, collaboration diagrams can also describe the order of interaction between objects. The message transmission between objects is expressed by marking messages with message strings on the connections between objects. The arrows of the messages indicate the flow direction of the messages, and the sequence numbers of the messages indicate the order of message transmission. Use UML collaboration diagrams to describe the interaction relationship between emergency command objects, such as the object interaction model of the emergency command system. Figure 5 As shown, Figure 5 The control object interaction model schematic diagram provided for the embodiment of the present application can be used to describe the interactive control relationship between objects.
[0076] In actual application scenarios, collaboration diagrams are used in UML to describe the interactions and collaborations between objects in a system. They show how objects work together from a dynamic perspective. Figure 1 The two diagrams are used together because both describe the interaction between objects, but they focus on different aspects. The collaboration diagram focuses on the organizational structure of the objects involved in the interaction, while the sequence diagram shows the order of messages in the interaction in detail.
[0077] In a possible implementation, the constructing of a dynamic behavior model based on the relationship between objects and the relationship between behaviors represented by the function model, the participant model, and the information model includes:
[0078] Based on the functional model, the participant model and the information model, the behaviors to be executed and the sequential relationship of the behaviors to be executed are determined; based on the behaviors to be executed and the sequential relationship of the behaviors to be executed, a dynamic behavior model in the form of an activity diagram is generated, and the dynamic behavior model is used to characterize the task execution process.
[0079] The elements included in the activity diagram may be: Start node: indicates the starting point of the activity diagram. End node: indicates the end point of the activity diagram. Activity: represents the operation or step to be performed. Decision node: also called judgment node, used to select the next activity to be performed based on conditional judgment. Fork node: used to indicate the start of concurrent activities. Synchronization node: used to indicate the end of concurrent activities, waiting for all branches to complete before continuing execution. Merge node: used to merge multiple branches into a single sequence. Object flow: indicates the transfer of objects between activities. Control flow: indicates the execution order between activities.
[0080] The collaboration diagram shows the control flow from object to object, while the activity diagram shows the control flow from activity to activity. The emergency command process model is the core of the dynamic model of the entire emergency command system. The emergency command process starts from the emergency command organization accepting the task, analyzing the situation, formulating the emergency plan, and finally completing the emergency task and reporting the situation, forming a complete command process. The emergency command process is described by UML activity diagram as follows: Figure 6 As shown, Figure 6 A schematic diagram of an activity-to-activity control model provided in an embodiment of the present application.
[0081] In summary, in the process of implementing emergency command simulation, emergency commanders and software developers use UML (Unified Modeling Language) visual conceptual models for communication, which has the following significant benefits:
[0082] 1. Intuitiveness and comprehensibility: By displaying the structure and behavior of the system in a graphical way, emergency commanders with non-technical backgrounds can also intuitively understand the core concepts, processes, and interactive relationships of the simulation system. This greatly reduces the difficulty of understanding and misunderstandings between the two parties during the communication process.
[0083] 2. Standardization and consistency: As a modeling language widely accepted in the industry, UML has standardized symbols and representation methods. This helps ensure that both parties use unified language and symbols during communication, thereby maintaining consistency in understanding system requirements.
[0084] 3. Identify early problems: Through the UML visual conceptual model, both parties can identify potential design flaws, logical errors or demand conflicts at an early stage. This helps to correct and adjust the system design plan in a timely manner and reduce the cost and risk of later modifications.
[0085] 4. Improve communication efficiency: Through the visual conceptual model, both parties can convey their intentions and ideas more quickly and accurately, reducing the time and cost of communication. This helps to improve the efficiency and quality of the entire simulation system development process.
[0086] In summary, the use of UML visual conceptual models for communication can help strengthen the cooperation and understanding between emergency commanders and software developers, and improve the efficiency and quality of the simulation system development process.
[0087] The above are some specific implementations of the method for constructing the conceptual model provided in the embodiment of the present application. Based on this, the present application also provides a corresponding system for constructing the conceptual model. The system provided in the embodiment of the present application will be introduced from the perspective of functional modularization. Figure 7 A system structure diagram for building a conceptual model provided in an embodiment of the present application.
[0088] The system comprises:
[0089] The first construction unit 110 is used to construct a functional model in the form of a use case diagram based on the participant information, the task behavior information, and the corresponding relationship between the participant information and the task behavior information; construct a participant model in the form of a class diagram based on the affiliation between the participants in the participant information; and construct an information model in the form of an object diagram based on the task flow relationship of the task behavior information, wherein the task behavior information is used to characterize the behavior that the participant needs to take when performing the target task;
[0090] The second construction unit 111 is used to construct a dynamic behavior model based on the relationship between objects and the relationship between behaviors represented by the functional model, the participant model and the information model. The dynamic behavior model is constructed by combining the functional model, the participant model and the information model, and is used for communication between emergency command personnel and software developers. It is used to describe how objects dynamically interact at different time points during execution, and represents the interaction process between objects in the form of a collaboration diagram, and / or, represents a conceptual model of the task execution process in the form of an activity diagram, wherein the activity diagram is used to represent the control flow from activity to activity, and the collaboration diagram is used to describe the static connection relationship between objects and the order of interaction between objects.
[0091] In a possible implementation, the second construction unit is specifically configured to:
[0092] Determining the interaction relationship and interaction content between participants based on the functional model, the participant model and the information model;
[0093] Based on the interaction relationship and interaction content, objects corresponding to the participants are connected to obtain a dynamic behavior model in the form of a collaboration graph, and the dynamic behavior model is used to characterize the interaction process between the participants.
[0094] The embodiments of the present application also provide corresponding devices and computer storage media for implementing the method for constructing the conceptual model provided in the embodiments of the present application.
[0095] The device includes a memory and a processor, the memory is used to store instructions or codes, and the processor is used to execute the instructions or codes so that the device executes the method for constructing a conceptual model described in any embodiment of the present application.
[0096] The computer storage medium stores codes, and when the codes are executed, the device executing the codes implements the method for constructing the conceptual model described in any embodiment of the present application.
[0097] It should be noted that the various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the various embodiments can be referred to each other. For the system or device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.
[0098] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0099] It should be understood that the terms "center", "longitudinal", "lateral", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present invention.
[0100] It should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected" and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0101] It should also be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0102] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0103] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for constructing a conceptual model, characterized in that: include: According to the participant information, task behavior information, and the corresponding relationship between the participant information and task behavior information, a functional model is constructed in the form of a use case diagram; Based on the affiliation between the participants in the participant information, a participant model is constructed in the form of a class diagram; based on the task flow relationship of the task behavior information, an information model is constructed in the form of an object diagram, wherein the task behavior information is used to characterize the behavior that the participant needs to take when performing the target task; Based on the functional model, the participant model and the information model, the relationships between the represented objects and the relationships between the behaviors, a dynamic behavior model is constructed. The dynamic behavior model is constructed by combining the functional model, the participant model and the information model, and is used for communication between emergency command personnel and software developers. It is used to describe how objects dynamically interact at different time points during execution, and the interaction process between objects is represented in the form of a collaboration diagram, and / or, a conceptual model of the task execution process is represented in the form of an activity diagram, the activity diagram is used to represent the control flow from activity to activity, and the collaboration diagram is used to describe the static connection relationship between objects, as well as the order of interaction between objects.
2. The method according to claim 1, characterized in that The functional model is constructed in the form of a use case diagram according to the participant information, the task behavior information, and the corresponding relationship between the participant information and the task behavior information, including: Determine a participant entity according to the participant information, and determine a use case according to the task behavior information; According to the correspondence between the participant information and the task behavior information, the participant entity and the corresponding use case are connected to obtain a functional model in the form of a use case diagram. The functional model is the basis for constructing a dynamic behavior model for emergency command, and is used to characterize the interaction relationship between each participant entity and the task behavior undertaken by the participant entity.
3. The method according to claim 1, characterized in that The participant model is constructed in the form of a class diagram based on the affiliation between the participants in the participant information, including: Determine a participant entity based on the participant information, and map the participant entity to a class; Based on the affiliation between the participants in the participant information, the classes corresponding to the participants are connected to obtain a participant model in the form of a class diagram. The participant model is the basis for constructing a dynamic behavior model for emergency command.
4. The method according to claim 1, characterized in that The information model is constructed in the form of an object graph according to the task flow relationship of the task behavior information, including: Based on the task flow relationship of the task behavior information, determining an information entity, wherein the information entity is used to represent information associated with the task behavior; Based on the relationship between information entities in the task behavior information, objects corresponding to the information entities are connected to obtain an information model in the form of an object graph. The information model is the basis for constructing a dynamic behavior model for emergency command.
5. The method according to claim 1, characterized in that The constructing of a dynamic behavior model based on the relationship between objects and the relationship between behaviors represented by the function model, the participant model and the information model includes: Determining the interaction relationship and interaction content between participants based on the functional model, the participant model and the information model; Based on the interaction relationship and interaction content, the objects corresponding to the participants are connected to obtain a dynamic behavior model in the form of a collaboration diagram. The dynamic behavior model is used to characterize the interaction process between the participants. The dynamic behavior model is a model for emergency command that is constructed by combining the functional model, the participant model and the information model.
6. The method according to claim 1, characterized in that The constructing of a dynamic behavior model based on the relationship between objects and the relationship between behaviors represented by the function model, the participant model and the information model includes: Determine the behaviors to be executed and the sequential relationship of the behaviors to be executed based on the function model, the participant model and the information model; Based on the behaviors to be executed and the sequential relationship of the behaviors to be executed, a dynamic behavior model in the form of an activity diagram is generated. The dynamic behavior model is used to characterize the task execution process. The dynamic behavior model is a model for emergency command that is constructed by combining the functional model, the participant model and the information model.
7. A system for constructing a conceptual model, characterized in that: The system comprises: The first construction unit is used to construct a functional model in the form of a use case diagram based on the participant information, the task behavior information, and the corresponding relationship between the participant information and the task behavior information; construct a participant model in the form of a class diagram based on the affiliation between the participants in the participant information; and construct an information model in the form of an object diagram based on the task flow relationship of the task behavior information, wherein the task behavior information is used to characterize the behavior that the participant needs to take when performing the target task; The second construction unit is used to construct a dynamic behavior model based on the relationship between objects and the relationship between behaviors represented by the function model, the participant model and the information model. The dynamic behavior model is constructed by combining the function model, the participant model and the information model, and is used for communication between emergency command personnel and software developers. It is used to describe how objects dynamically interact at different time points during execution, and represents the interaction process between objects in the form of a collaboration diagram, and / or, represents a conceptual model of the task execution process in the form of an activity diagram, wherein the activity diagram is used to represent the control flow from activity to activity, and the collaboration diagram is used to describe the static connection relationship between objects and the order of interaction between objects.
8. The system according to claim 7, characterized in that The second construction unit is specifically used to: Determine the behaviors to be executed and the sequential relationship of the behaviors to be executed based on the function model, the participant model and the information model; Based on the behaviors to be executed and the sequential relationship of the behaviors to be executed, a dynamic behavior model in the form of an activity diagram is generated. The dynamic behavior model is used to characterize the task execution process. The dynamic behavior model is a model for emergency command that is constructed by combining the functional model, the participant model and the information model.
9. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method for constructing a conceptual model as described in any one of claims 1 to 6 is implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when the instructions are executed on a terminal device, the terminal device executes the method for constructing a conceptual model as described in any one of claims 1 to 6.
