This application claims priority to Chinese Patent Application No. 202210739333.0, filed on Jun. 28, 2022, the contents of which are hereby incorporated by reference.
The present application belongs to the technical field of simulation entity modeling, and particularly relates to a method and a system for modularized modeling of equipment entities in simulation field based on meta-model.
Recent years have seen a booming development of simulation technology in the military field, as well as a qualitative progress in the military training quality; however, such technology hasn't been successfully applied in securing logistics-equipment, and the demand for information construction of logistics-equipment is not well matched. Modeling is the foundation of simulation, and solid modeling is what should be solved first in applying simulation technology in the field of logistics-equipment security. Currently, the modeling of the logistics-equipment security simulation entities is not guided by a systematic methodology, resulting in a tight coupling of data, rules and algorithms in the model, and the model is confined to certain specific requirements with limited applicability; also, there is no unified standard protocol for the modeling process, and each unit acts blindly to duplicate modeling, which consumes a lot of human and material resources. Generally speaking, the existing approaches are inefficient in modeling and fail to meet the realistic needs of logistics-equipment security simulation, thus affecting the application of logistics-equipment security simulation technology.
Conventionally most of the logistics-equipment security simulation entity modeling adopts object-oriented modeling technology, following a modeling idea of abstracting the model data with the simulation object as the center, which is close to the learning approach of human understanding the world; this conventional object-oriented modeling approach is easy for people to understand and operate, but the entity data is not well abstracted in accordance with its functional attributes, and may easily lead to a class explosion. A modularized modeling approach uses module-oriented modeling technology to disassemble the object into different modules according to its attribute characteristics, and a module is encapsulated by its inherent functional attributes or the attributes of the task it undertakes. Module modeling provides better classification of entity data, object disassembly and encapsulation, and improves model reusability.
The present application provides a method and a system for modularized modeling of equipment entities in simulation field based on meta-model; according to the present application, logistics-equipment security simulation entity models are divided into three types of modules: physical attribute, behavior attribute and task reliability attribute, and each module model is described based on meta-model; after a simulation experiment is designed, required modules are then bound and assembled into a complete solid model.
To achieve the above objectives, the present application provides the following technical schemes:
Optionally, the attribute modeling includes physical attribute modeling of simulation entity, behavior attribute modeling of simulation entity, and task reliability modeling.
Optionally, the physical attribute modeling of simulation entity includes attribute types of basic types and compound types;
Optionally, a method of the behavior attribute modeling of simulation entity includes: modeling entity behavior through a behavior tree, generating behavior modules, and constructing an event model for behavior to interact among entities with an event mechanism.
Optionally, a method of the task reliability modeling includes: modeling a reliability of equipment task execution through a reliability block diagram algorithm, and generating entity model task reliability module.
Optionally, a method of the simulation entity model binding processing includes:
Optionally, a method of instantiating the simulation entity model includes: inputting the simulation entity model into an instantiation factory, outputting an entity instance by a cloning method, and managing the entity instance with an instance manager to complete a modeling process, then loading the entity instance onto a simulation engine, and running to output simulation results.
The present application also provides a system for modularized modeling of equipment entities in simulation field based on meta-model, including:
Optionally, the attribute modeling of simulation entity of the module to be tested in the simulation entity attribute modeling module includes: simulation entity physical attribute modeling, simulation entity behavior attribute modeling and task reliability modeling.
Optionally, a method of the simulation entity behavior attribute modeling in the simulation entity attribute modeling module includes: modeling entity behavior through a behavior tree, generating behavior modules, and constructing an event model for behavior to interact among entities with an event mechanism.
The application achieves the advantages that: a method and a system for modularized modeling of equipment entities in simulation field based on meta-model are provided in the present application, where the meta-model is described by extensible markup language (XML) and user-defined attribute structure is supported, the model is separated from the code to facilitate model modification and expansion as well as code maintenance; the model structure is simple and is applicable to heterogeneous platform simulation after converted by model adapter; entity physical attributes, behavior attributes and task reliability attributes can be independently modeled under the idea of modularized modeling, and the number of modules can be well expanded as required; the model modules can be flexibly configured according to the different tasks performed by the equipment to improve modeling efficiency and avoid duplicate modeling. The meta-model representation protocol of simulation entities and the modeling idea of modularized modeling, disassembly and aggregation designed in this application underpin the extensive application scenarios in the field of simulation; it is applicable in military, transportation, production and other simulation modeling fields, and the low-level duplicate construction is avoided and the resource sharing and reuse in the field of simulation is promoted.
For a clearer illustration of the technical schemes of the present application, the drawings below are briefly described for use in the embodiments, and it is obvious that the drawings in the following description are only some of the embodiments of the present application, and that other drawings may be obtained on the basis of these drawings without creative labor for those of ordinary skill in the art.
The following is a clear and complete description of the technical solutions in the embodiments of this application in conjunction with the accompanying drawings in the embodiments of this application. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. Based on the embodiments in this application, all other embodiments obtained by a person of ordinary skill in the art without making creative labor shall fall within the protection of this application.
In order to make the above-mentioned objectives, features and advantages of this application more obvious and understandable, the application is described in further detail below in conjunction with the accompanying drawings and specific embodiments.
the failure rate of system is:
and a mean time between failure (MTBF) of the system is:
MTBFS=1/Σi=1nλi(t)
RBD is used in this implementation primarily to calculate whether a component affects system availability when it is not available; as shown in
Thus, the entire process of modularized modeling of equipment entities in simulation field based on meta-model is realized; in this way, it is feasible to loosely couple the simulation entity models with high generality.
According to the present application, the equipment entities are divided into three types of modules, including physical attributes, behavior attributes and task reliability attributes. Each module is represented based on a meta-model, composed of a description of metadata structure and semantics, the metadata is an abstract representation of the model and can be well reused in the field of simulation modeling. The modeling process of each module is loosely coupled, and the metadata of entity physical module contains a variety of basic data types and user-defined data types with good scalability; entity behavior module is expressed flexibly by behavior tree or state machine, etc.; entity task reliability module is modeled by EBD; after the simulation experiment is completed, the different modules are integrated to establish a complete entity model according to the different tasks performed by the entity, and the model is scalable and highly reusable with separated data, rules and algorithms.
The above described embodiments only describe the preferred way of this application, not to limit the scope of this application. Without departing from the spirit of the design of this application, all kinds of deformations and improvements made to the technical solution of this application by a person of ordinary skill in the art shall fall within the scope of protection determined by the claims of this application.
Number | Date | Country | Kind |
---|---|---|---|
202210739333.0 | Jun 2022 | CN | national |