[go: up one dir, main page]

CN119045789B - Improved joint simulation object model development method, device and equipment - Google Patents

Improved joint simulation object model development method, device and equipment Download PDF

Info

Publication number
CN119045789B
CN119045789B CN202411531205.2A CN202411531205A CN119045789B CN 119045789 B CN119045789 B CN 119045789B CN 202411531205 A CN202411531205 A CN 202411531205A CN 119045789 B CN119045789 B CN 119045789B
Authority
CN
China
Prior art keywords
simulation
class
interaction
joint
simulation unit
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
CN202411531205.2A
Other languages
Chinese (zh)
Other versions
CN119045789A (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.)
National University of Defense Technology
Original Assignee
National University of Defense Technology
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 National University of Defense Technology filed Critical National University of Defense Technology
Priority to CN202411531205.2A priority Critical patent/CN119045789B/en
Publication of CN119045789A publication Critical patent/CN119045789A/en
Application granted granted Critical
Publication of CN119045789B publication Critical patent/CN119045789B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • G06F8/24Object-oriented

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application relates to an improved method, device and equipment for developing a joint simulation object model. The method comprises the steps of constructing an object-oriented multi-level combinable joint simulation system, wherein the system consists of a plurality of freely accessed simulation units and the simulation units consist of a plurality of objects with interaction influence, developing and defining each simulation unit in the joint simulation system and the whole joint simulation system based on an HLA (high level architecture) object model template, developing and defining object classes and interaction classes of each simulation unit participating in interaction based on the object model template, and standardizing joint simulation data exchange files and exchange formats among each simulation unit in the joint simulation system. By adopting the method, the standardized and normalized transmission exchange of the public data in the joint simulation system can be realized, the interoperability and reusability of the joint simulation are improved, the complexity of development and maintenance is reduced, and the rapid and standardized development of the joint simulation system is realized.

Description

Improved joint simulation object model development method, device and equipment
Technical Field
The present application relates to the field of computer simulation technologies, and in particular, to an improved method, apparatus, and device for developing a joint simulation object model.
Background
The computer simulation technology is a comprehensive technology which takes a computer as a tool, takes a basic theory and technology of a similar principle, an information technology and various related application fields as a basis, establishes a model of a system according to the purpose of system experiments, and dynamically operates the model under different conditions. Currently, computer simulation has become an important means of analysis, research, testing, evaluation, development and skill training of a particularly complex large system of systems, and has been widely applied to important fields of various industries.
Along with development of simulation methodologies and computer technologies, simulation applications have been greatly developed in breadth and depth, and in order to cope with different computing problems and different simulation occasions, especially development of open complex giant system simulation, modeling and simulation technologies has been developed towards distributed, interactive, open and standardized, componentized and integrated trend, so as to solve the problems of interoperability and reusability among various simulation models and simulation systems, the distributed simulation system needs to define a common data exchange model for a plurality of simulation nodes, so as to describe key information such as names, compositions and types of transmission data, and realize consistent understanding and unified standardization processing of transmission data for all simulation nodes based on the key information.
However, most of the existing methods adopt the form of custom structure or array to define the exchanged data, have poor interoperability and reusability, are time-consuming to develop and maintain, have high cost, and lack standardized construction guidance and data verification mechanisms.
Disclosure of Invention
Based on the foregoing, there is a need to provide an improved method, apparatus and device for developing a co-simulation object model.
An improved joint simulation object model development method, the method comprising:
constructing an object-oriented multi-level combinable joint simulation system, wherein the joint simulation system consists of a plurality of freely accessed simulation units, the simulation units are accessed into the joint simulation system through specific simulation agent interfaces and are communicated with other accessed simulation units, and the simulation units consist of a plurality of objects affected by interaction;
developing and defining each simulation unit in the joint simulation system and the whole joint simulation system based on the object model template of the HLA;
developing and defining each simulation unit in the combined simulation system comprises developing and defining object classes and interaction classes of each simulation unit participating in interaction based on an object model template to obtain multi-level definitions of the object classes and multi-level definitions of the interaction classes;
The method comprises the steps of constructing a simulation unit object model corresponding to each simulation unit based on multi-level definition of an object class and multi-level definition of an interaction class, developing and defining a joint simulation data exchange file and an exchange format among the simulation units according to an object model template, and providing the simulation unit object model to store and transmit data in the joint simulation system according to the defined joint simulation data standard exchange file and the standard exchange format.
In one embodiment, the whole joint simulation system can be added into other joint simulation systems as a member or combined with other joint simulation systems to participate in larger joint simulation, and when added or combined, the common data model file of the joint simulation system and the common data model file of other joint simulation systems form a larger common data model file.
In one embodiment, developing and defining the object class and the interaction class of each simulation unit participating in interaction based on the object model template to obtain a multi-level definition of the object class and a multi-level definition of the interaction class, including:
Developing and defining object classes of each simulation unit participating in interaction based on an object model template to obtain multi-level definition of the object classes described by adopting an object class structure table, wherein the object class structure table comprises object class names, inheritance relations among the object classes and ordering and publishing capability attributes of the object classes;
and developing and defining the interactive class of each simulation unit participating in the interaction based on the object model template to obtain multi-level definition of the interactive class described by adopting an interactive class structure table, wherein the interactive class structure table comprises the names of the interactive classes, inheritance relations among the interactive classes and the initiating and perception capability attributes of the interactive classes.
In one embodiment, in the object class structure table and the interactive class structure table, the root class is recorded in the leftmost column of the structure table, the sub-classes are sequentially recorded from left to right in each column until the leaf sub-class, and the column number of the structure table is equal to the number of layers of the object class or interactive class structure.
In one embodiment, the object class names and the interaction class names are each composed of letters, numbers and underlines, and begin with letters, and each object class name and each interaction class name is globally unique throughout the object model template.
In one embodiment, in the object class structure table, ordering and publishing capability attributes of each object class are respectively represented by P, S, N, wherein P represents that a simulation unit for publishing the object class has the capability of simulating the behavior of the object class, S represents that a simulation unit for ordering the object class has the capability of utilizing the object class information, and N represents that the object class cannot be published by the simulation unit or ordered by the simulation unit;
In the interactive class structure table, the initiating and perception capability attributes of each interactive class are respectively I and I The method comprises the steps of performing representation, wherein I represents can be initiated, and the simulation unit has the capability of initializing and sending out an interaction instance; The representation is perceivable, meaning that the simulation unit has the ability to subscribe to the interaction class and to utilize interaction instance information, but does not have the ability to operate on objects affected by the interaction instance.
In one embodiment, constructing a simulation unit object model corresponding to each simulation unit based on a multi-level definition of an object class and a multi-level definition of an interaction class, developing and defining a joint simulation data exchange file and an exchange format between each simulation unit according to an object model template, and providing the simulation unit object model to store and transmit data in the joint simulation system according to the defined joint simulation data standard exchange file and standard exchange format, wherein the method comprises the following steps:
Constructing a simulation unit object model corresponding to each simulation unit based on the multi-level definition of the object class and the multi-level definition of the interaction class, wherein the simulation unit object model is used for describing the object class, the object class attribute, the interaction class and the interaction class parameter information which are externally published or required to be ordered by the simulation unit;
Developing and defining a joint simulation data exchange file and an exchange format among all simulation units according to an object model template to obtain a joint simulation data standard exchange file and an exchange format, and prescribing that a simulation unit object model is in a joint simulation system and data storage and transmission are carried out according to the joint simulation data standard exchange file and the standard exchange format, wherein the joint simulation data standard exchange file is composed of user-defined data types, interest spaces, object classes, interaction classes and simulation units, and the joint simulation data standard exchange format is an extensible markup language xml format.
An improved joint simulation object model development apparatus, the apparatus comprising:
The system comprises a joint simulation system construction module, a simulation system management module and a simulation system management module, wherein the joint simulation system construction module is used for constructing an object-oriented multi-level combinable joint simulation system, the joint simulation system is composed of a plurality of freely accessed simulation units, the simulation units are accessed into the joint simulation system through a specific simulation agent interface and are communicated with other accessed simulation units, and the simulation units are composed of a plurality of objects which are interacted with each other;
The system comprises an object model development definition module, an object model development definition module and a simulation unit object model development definition module, wherein the object model development definition module is used for carrying out development definition on each simulation unit in a joint simulation system and the whole joint simulation system based on an object model template, the development definition on each simulation unit in the joint simulation system comprises carrying out development definition on object classes and interaction classes of each simulation unit participating in interaction based on the object model template to obtain multi-level definitions of the object classes and multi-level definitions of the interaction classes, the development definition on the whole joint simulation system comprises the steps of constructing a simulation unit object model corresponding to each simulation unit based on the multi-level definitions of the object classes and the multi-level definitions of the interaction classes, carrying out development definition on joint simulation data exchange files and exchange formats among the simulation units according to the object model template, and defining the joint simulation data standard exchange files and standard exchange formats to store and transmit data of the simulation unit object models in the joint simulation system.
A computer device comprising a memory storing a computer program and a processor which when executing the computer program performs the steps of:
constructing an object-oriented multi-level combinable joint simulation system, wherein the joint simulation system consists of a plurality of freely accessed simulation units, the simulation units are accessed into the joint simulation system through specific simulation agent interfaces and are communicated with other accessed simulation units, and the simulation units consist of a plurality of objects affected by interaction;
developing and defining each simulation unit in the joint simulation system and the whole joint simulation system based on the object model template of the HLA;
developing and defining each simulation unit in the combined simulation system comprises developing and defining object classes and interaction classes of each simulation unit participating in interaction based on an object model template to obtain multi-level definitions of the object classes and multi-level definitions of the interaction classes;
The method comprises the steps of constructing a simulation unit object model corresponding to each simulation unit based on multi-level definition of an object class and multi-level definition of an interaction class, developing and defining a joint simulation data exchange file and an exchange format among the simulation units according to an object model template, and providing the simulation unit object model to store and transmit data in the joint simulation system according to the defined joint simulation data standard exchange file and the standard exchange format.
According to the improved method, device and equipment for developing the joint simulation object model, under the hierarchical structure of the built object-oriented multi-level combinable joint simulation system, the object model template is adopted to develop and define each simulation unit and the whole joint simulation system in the joint simulation system, wherein the multi-level definition of the object class and the multi-level definition of the interaction class are obtained through developing and defining the object class and the interaction class of each simulation unit participating in interaction, the object class structure and the interaction class structure with rich hierarchy can improve the flexibility of the simulation unit in the future to participate in other joint simulations, in addition, through developing and defining the joint simulation data exchange file and exchange format among the simulation units in the whole joint simulation system, the standardized and normalized transmission exchange of common data in the joint simulation system can be realized, the interoperability and reusability of the joint simulation are improved, the complexity of development and maintenance is reduced, and the quick and standardized development of the joint simulation system can be realized.
Drawings
FIG. 1 is a flow diagram of an improved method of developing a co-simulated object model in accordance with one embodiment;
FIG. 2 is a schematic diagram of a joint simulation system in one embodiment;
FIG. 3 is a schematic diagram of a standard exchange format of joint simulation data in one embodiment;
fig. 4 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
In one embodiment, as shown in FIG. 1, an improved joint simulation object model development method is provided, comprising the steps of:
Step S1, constructing an object-oriented multi-level combinable joint simulation system, wherein the joint simulation system is composed of a plurality of freely accessed simulation units, the simulation units are accessed into the joint simulation system through a specific simulation agent interface and are communicated with other accessed simulation units, and the simulation units are composed of a plurality of objects affected by interaction.
The object-oriented multi-level combinable joint simulation system is shown in fig. 2, and the joint simulation system is a set of distributed simulation systems based on achieving a specific simulation purpose, wherein a simulation unit can be defined as a simulation application or some other application program participating in joint simulation, and can be of various types, such as a simulation simulator, and objects contained in the simulation unit are basic elements of the joint simulation system.
Specifically, the simulation unit contains the following information:
The simulation unit basic information comprises names, versions and descriptions of the simulation units and whether interest management and setting for interest management are used or not;
the time control information comprises a propulsion mode, and the propulsion mode is selected based on time step propulsion and event propulsion. If the time step advancing mode is adopted, the time advancing step and the look-ahead quantity are set, and the unit time strategy is selected by four modes of time control time limitation mode, time control non-time limitation mode, non-time control time limitation mode and non-time control non-time limitation mode.
QoS (quality of service) management information, which is used for setting various thresholds of the simulation unit in the joint simulation process, and mainly comprises four aspects of robustness, consistency, responsiveness and efficiency. The robustness has three parameters of maximum collapse times, heart beat frequency unsatisfied times and heart beat delay unsatisfied times. The consistency is mainly provided with three parameters of a warning level inconsistency number, a critical level inconsistency number and an overrun level inconsistency number. The responsiveness mainly has three parameters of warning level delay times, critical level delay times and overrun level delay times. The efficiency is mainly composed of six parameters including simulation advancing time, reflection executing time, updating executing time, number of unsatisfied warning level, number of unsatisfied critical level and number of unsatisfied overrun level.
Further, the whole joint simulation system can be added into other joint simulation systems as a member or combined with other joint simulation systems to participate in larger joint simulation, and when the joint simulation system is added or combined, the public data model file of the joint simulation system and the public data model file of the other joint simulation systems form a larger public data model file.
And S2, developing and defining each simulation unit in the joint simulation system and the whole joint simulation system based on the object model template of the HLA.
The object model template of HLA (high-level architecture) is taken as an important component part of the simulation architecture, and defines a set of parts for describing the joint simulation object model. In order to achieve the purpose of interoperation among the joint simulation systems and improving the reusability of the simulation systems and components thereof, the application adopts an object model template to describe each simulation unit in the joint simulation systems and the system and various data and related information to be exchanged in the operation of the simulation systems.
The design of the object model template makes it only focus on the requirements and capabilities necessary for the joint simulation system and the simulation units to exchange information, for the simulation units it only describes the external common interfaces, i.e. the object classes and interaction classes that participate in the interaction in the joint simulation system, while for the whole joint simulation system it describes the exchange of information between the simulation units.
In a co-simulation system, an object typically represents an entity of the real world, is fully defined by attributes identifying its features, and information exchange is achieved by passing these attribute values between simulation units during operation of the co-simulation system.
The specific implementation process of the step S2 is as follows:
Firstly, developing and defining each simulation unit in the combined simulation system, wherein the developing and defining of the object class and the interaction class of each simulation unit participating in interaction is carried out based on an object model template, and the multi-level definition of the object class and the multi-level definition of the interaction class are obtained.
The object model template is used for developing and defining object classes of all simulation units participating in interaction to obtain multi-level definition of the object classes described by adopting an object class structure table, wherein the object class structure table comprises object class names, inheritance relations among all object classes and ordering and publishing capability attributes of the object classes.
The object class structure table is used for describing inheritance relations among object classes in the joint simulation system or the simulation unit. The direct relation between the class and the subclass is represented by a method comprising related class names in adjacent columns in the structure table. The indirect relationship between class and subclass is obtained from the direct relationship through inheritance transitivity, for example, A is the superclass of B, B is the superclass of C, and A is the superclass of C. In addition, the superclass and the subclass are also in a reciprocal relationship, for example, A is the superclass of B, and B is the subclass of A. Subclasses are specializations of superclasses, inherit the properties of superclasses, and may add some additional properties depending on the particular situation. An object is declared as an instance of an object class, and is also an exported instance of all superclasses of the object class. There is at most only one direct superclass for the object class, and there may be no subclass.
In the object class structure table, the root class is recorded in the leftmost column of the object class structure table, the subclasses of the object class are sequentially recorded from left to right until the leaf subclasses, and the column number of the object class structure table is equal to the layer number of the object class structure. The object class name consists of letters, numbers and underlining, beginning with letters, is globally unique in the full joint simulation, and must also be globally unique when connected with its superclass by point symbols. The name of the object class must be followed by a bracket to indicate the ordering and publishing capability attribute of each object class, and the ordering and publishing capability attribute of each object class is respectively represented by P, S, N, where P represents that a simulation unit for publishing the object class has the capability of simulating the behavior of the object class, S represents that a simulation unit for ordering the object class has the capability of utilizing the information of the object class, and N represents that the object class cannot be published or ordered by the simulation unit.
An object class identified as N is typically used to represent several abstract classes that have common characteristics, cannot be instantiated, and are typically unpublishable. When objects of several specific object classes all have common properties, setting up an abstract class helps to simplify ordering of the objects.
The simulation unit may order classes of any level in the object class hierarchy. By ordering all the attributes of a given object class, the simulation unit will receive updated values for the attributes of all instances of that object class and its subclasses. The hierarchy of object classes provides a convenient means for the simulation unit to order multiple objects. The description of the attributes is simplified, and the attributes common to several classes can be defined once in the superclass, so that the management of the attributes is simplified.
For joint simulation, the object class structure is a protocol about object class division in the whole joint simulation system, and reflects the object class and the hierarchical structure thereof determined between each simulation unit for realizing the joint simulation execution target. The object class structure table of the simulation unit is an announcement of the object class supported by the simulation member, and informs the developer what the unit can publish and what can be ordered.
The rich-hierarchy object class structure can provide flexibility for the simulation units to participate in the execution of other joint simulations in the future, but for joint simulations, the structure and hierarchy of the object class should be determined according to the order requirements of all the simulation units participating in the joint simulation execution. If a series of object classes of a specific entity are included in the object model of the joint simulation, he can well meet the ordering requirements of the simulation units in some simulation systems, but if the simulation units need to order the object information at a higher level of abstraction, some object classes must be added to the object class structure table, so if a simulation unit has the ability to order the object information at a certain level of abstraction, then the object classes at that level of abstraction must be added to the object class structure table of the joint simulation.
The method comprises the steps of developing and defining interaction classes of interaction of each simulation unit based on an object model template to obtain multi-level definition of the interaction classes described by an interaction class structure table, wherein the interaction class structure table comprises interaction class names, inheritance relations among the interaction classes and initiating and perception capability attributes of the interaction classes.
In the joint simulation system, the interaction class refers to an explicit action generated by one or more objects in a simulation unit and capable of influencing the objects in the simulation unit. And the interaction class structure table describes class and subclass relationships of the interaction instance as the object class structure table describes the hierarchical relationship of the object class. In the interactive class structure table, the interactive class hierarchy structure is composed of inheritance relations of different interactive classes.
In the interactive structure table, the root class is recorded in the leftmost column of the interactive structure table, the subclasses of the interactive class are sequentially recorded from left to right until the leaf subclasses, and the column number of the interactive structure table is equal to the layer number of the interactive structure. The interaction class names are also composed of letters, numbers, underlines, beginning with letters, and each interaction class name is globally unique throughout the object model template. And each interaction class in the interaction class structure table must also indicate its originating and perceiving capability attributes. The initiating and sensing ability attribute of each interaction class adopts I and perception ability attribute respectivelyThe method comprises the steps of performing representation, wherein I represents can be initiated, and the simulation unit has the capability of initializing and sending out an interaction instance; The representation is perceivable, meaning that the simulation unit has the ability to subscribe to the interaction class and to utilize interaction instance information, but does not have the ability to operate on objects affected by the interaction instance. In a joint simulation system, at least one simulation unit should be able to initialize and send each interaction class, and at least one simulation unit should be able to perceive it.
In a joint simulation system, the hierarchy of interaction classes is mainly used for supporting subscription to interaction classes with inheritance, and when a simulation unit subscribes to a certain interaction class, the simulation unit receives all interaction instances belonging to the interaction class and subclasses thereof in the joint simulation execution process.
The interaction parameters may be used to record various information reflecting the characteristics of the interaction instance, such as the name of the class of recorded objects, the properties of the objects, etc., from which the object receiving the interaction instance will determine its impact. The identifier of the interaction parameter and some details related to it are recorded in the parameter table of the object model template. As the attribute of the object class can be inherited downwards, the parameter of the interactive class can also be inherited downwards through the hierarchical structure of the interactive class, and the inherited mechanism and principle of the interactive class are consistent with the inherited mechanism and principle of the attribute of the object class.
The interaction instance is an important factor in the interoperability of the simulation systems, and the different simulation units receiving the interaction instance should process the interaction instance in a consistent manner to ensure interoperability between the different simulation systems. In addition, in the system simulation process, in order to support the order of the interaction classes, all the interaction classes possibly occurring in the process of performing the joint simulation again have to be recorded in the object model template.
Secondly, developing and defining the whole combined simulation system comprises the steps of constructing a simulation unit object model corresponding to each simulation unit based on the multi-level definition of the object class and the multi-level definition of the interaction class, developing and defining the combined simulation data exchange file and exchange format among the simulation units according to an object model template, and providing the simulation unit object model to store and transmit data in the combined simulation system according to the defined combined simulation data standard exchange file and standard exchange format.
Specifically, a simulation unit object model corresponding to each simulation unit is built based on multi-level definition of the object class and multi-level definition of the interaction class, and the simulation unit object model is used for describing the object class, object class attribute, interaction class and interaction class parameter information of the simulation unit which are published or ordered externally. Reflecting the capabilities that the simulation units have when participating in joint simulation runs.
And developing and defining a joint simulation data exchange file and an exchange format among all simulation units according to an object model template to obtain a joint simulation data standard exchange file and an exchange format, and prescribing that a simulation unit object model is in a joint simulation system and data storage and transmission are carried out according to the joint simulation data standard exchange file and the standard exchange format, wherein the joint simulation data standard exchange file is composed of user-defined data types, interest spaces, object classes, interaction classes and simulation units, and the joint simulation data standard exchange format is an extensible markup language xml format.
The joint simulation requires that each simulation unit has a simulation unit object model describing object classes, object class attributes and interaction classes published or ordered by the simulation unit in the joint simulation, but specific interaction data may not be required to be described. The co-simulation requires that the simulation units must also be normalized in accordance with the format specified by the co-simulation object model template.
The data exchange format of the co-simulation object model template is a standard file exchange format stored and transferred between different co-simulation developers. Compared with the existing mainstream adopting extended BNF (Barcus-Van) definition, some structures are added to process repeated and optional elements, the format has strong specialization, great learning difficulty and certain limitation in application, and is quite complex and extremely inconvenient in terms of organization structure and analysis or modification. Based on the above, in order to ensure the definition of the data exchange format to be unambiguous, the application defines the joint simulation data standard exchange format among all simulation units as an extensible markup language xml format according to the object model template, provides a standard and widely accepted format for a simulation developer, and can be transmitted and used in different systems.
Specifically, the joint simulation data standard exchange format is shown in fig. 3, where the joint simulation data standard exchange file is composed of UserDefineDataTypeList (user-defined data type), INTERESTINGDEFINELIST (interest space), exerciseUnit (simulation unit), CLASSLIST (object class), interactionList (interaction class), and other parts, and the simulation unit is further composed of child nodes such as a time-pushing type (TIMEADVANCETYPE), a simulation unit service quality policy (UnitQos), an object class list, and an interaction class list.
It should be understood that, although the steps in the flowchart of fig. 1 are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in fig. 1 may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor do the order in which the sub-steps or stages are performed necessarily performed in sequence, but may be performed alternately or alternately with at least a portion of other steps or sub-steps of other steps.
In one embodiment, an improved joint simulation object model development apparatus is provided, comprising:
The system comprises a joint simulation system construction module, a simulation system management module and a simulation system management module, wherein the joint simulation system construction module is used for constructing an object-oriented multi-level combinable joint simulation system, the joint simulation system is composed of a plurality of freely accessed simulation units, the simulation units are accessed into the joint simulation system through a specific simulation agent interface and are communicated with other accessed simulation units, and the simulation units are composed of a plurality of objects which are interacted with each other;
The system comprises an object model development definition module, an object model development definition module and a simulation unit object model development definition module, wherein the object model development definition module is used for carrying out development definition on each simulation unit in a joint simulation system and the whole joint simulation system based on an object model template, the development definition on each simulation unit in the joint simulation system comprises carrying out development definition on object classes and interaction classes of each simulation unit participating in interaction based on the object model template to obtain multi-level definitions of the object classes and multi-level definitions of the interaction classes, the development definition on the whole joint simulation system comprises the steps of constructing a simulation unit object model corresponding to each simulation unit based on the multi-level definitions of the object classes and the multi-level definitions of the interaction classes, carrying out development definition on joint simulation data exchange files and exchange formats among the simulation units according to the object model template, and defining the joint simulation data standard exchange files and standard exchange formats to store and transmit data of the simulation unit object models in the joint simulation system.
For specific limitations on the improved co-simulation object model development apparatus, reference may be made to the above limitations on the improved co-simulation object model development method, and no further description is given here. The above-described various modules in the improved joint simulation object model development apparatus may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a terminal, and the internal structure of which may be as shown in fig. 4. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program, when executed by a processor, implements an improved method of joint simulation object model development. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be keys, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by persons skilled in the art that the architecture shown in fig. 4 is merely a block diagram of some of the architecture relevant to the present inventive arrangements and is not limiting as to the computer device to which the present inventive arrangements are applicable, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, a computer device is provided comprising a memory storing a computer program and a processor that when executing the computer program performs the steps of:
constructing an object-oriented multi-level combinable joint simulation system, wherein the joint simulation system consists of a plurality of freely accessed simulation units, the simulation units are accessed into the joint simulation system through specific simulation agent interfaces and are communicated with other accessed simulation units, and the simulation units consist of a plurality of objects affected by interaction;
developing and defining each simulation unit in the joint simulation system and the whole joint simulation system based on the object model template of the HLA;
developing and defining each simulation unit in the combined simulation system comprises developing and defining object classes and interaction classes of each simulation unit participating in interaction based on an object model template to obtain multi-level definitions of the object classes and multi-level definitions of the interaction classes;
The method comprises the steps of constructing a simulation unit object model corresponding to each simulation unit based on multi-level definition of an object class and multi-level definition of an interaction class, developing and defining a joint simulation data exchange file and an exchange format among the simulation units according to an object model template, and providing the simulation unit object model to store and transmit data in the joint simulation system according to the defined joint simulation data standard exchange file and the standard exchange format.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples merely represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the present application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of the application should be assessed as that of the appended claims.

Claims (8)

1. An improved method for developing a joint simulation object model, the method comprising:
constructing an object-oriented multi-level combinable joint simulation system, wherein the joint simulation system consists of a plurality of freely accessed simulation units, the simulation units are accessed into the joint simulation system through a specific simulation proxy interface and are communicated with other accessed simulation units, and the simulation units consist of a plurality of objects affected by interaction;
Developing and defining each simulation unit in the joint simulation system and the whole joint simulation system based on an object model template of HLA;
developing and defining each simulation unit in the joint simulation system comprises developing and defining object classes and interaction classes of each simulation unit participating in interaction based on an object model template to obtain multi-level definitions of the object classes and multi-level definitions of the interaction classes;
constructing a simulation unit object model corresponding to each simulation unit based on the multi-level definition of the object class and the multi-level definition of the interaction class, developing and defining a joint simulation data exchange file and an exchange format among the simulation units according to an object model template, and prescribing that the simulation unit object model stores and transmits data in the joint simulation system according to the defined joint simulation data standard exchange file and standard exchange format;
The method comprises the steps of constructing a simulation unit object model corresponding to each simulation unit based on multi-level definition of an object class and multi-level definition of an interaction class, developing and defining a joint simulation data exchange file and an exchange format among the simulation units according to an object model template, and providing that the simulation unit object model stores and transmits data in the joint simulation system according to the defined joint simulation data standard exchange file and the standard exchange format, and comprises the following steps:
Constructing a simulation unit object model corresponding to each simulation unit based on the multi-level definition of the object class and the multi-level definition of the interaction class, wherein the simulation unit object model is used for describing the object class, the object class attribute, the interaction class and the interaction class parameter information which are externally published or ordered by the simulation unit;
Developing and defining a joint simulation data exchange file and an exchange format among all simulation units according to an object model template to obtain a joint simulation data standard exchange file and an exchange format, and prescribing that an object model of the simulation unit is in the joint simulation system and data storage and transmission are carried out according to the joint simulation data standard exchange file and the standard exchange format, wherein the joint simulation data standard exchange file consists of user-defined data types, interest spaces, object types, interaction types and simulation units, and the joint simulation data standard exchange format is an extensible markup language xml format;
The simulation unit consists of a time pushing type (TIMEADVANCETYPE), a simulation unit service quality strategy (UnitQos), an object class list and an interaction class list;
the simulation unit also contains the following information:
the simulation unit basic information comprises names, versions, descriptions and settings of whether interest management and interest management use of the simulation unit;
the time control information comprises a propulsion mode, wherein the propulsion mode is selected based on a time step and an event propulsion mode, the time step propulsion mode is set with a time propulsion step and a look-ahead amount, and the selection of the unit time strategy is selected by four modes of time control time limitation mode, time control non-time limitation mode, non-time control time limitation mode and non-time control non-time limitation mode;
QoS (quality of service) management information, various thresholds used for setting a simulation unit to participate in a joint simulation process, including four settings of robustness, consistency, response and efficiency, wherein the robustness comprises three parameters including maximum collapse times, heart beat frequency unsatisfied times and heart beat delay unsatisfied times, the consistency comprises three parameters including warning level inconsistent numbers, critical level inconsistent numbers and overrun level inconsistent numbers, the response comprises three parameters including warning level delay times, critical level delay times and overrun level delay times, and the efficiency comprises six parameters including simulation advancing time, reflection executing time, update executing time, warning level unsatisfied times, critical level unsatisfied times and overrun level unsatisfied times.
2. The method of claim 1, wherein the co-simulation system as a whole can be added as a member to other co-simulation systems or combined with other co-simulation systems to participate in a larger co-simulation, and wherein the common data model files of the co-simulation systems and the common data model files of other co-simulation systems are combined into a larger common data model file when added or combined.
3. The method of claim 1, wherein developing and defining the object class and the interaction class of each simulation unit participating in the interaction based on the object model template to obtain a multi-level definition of the object class and a multi-level definition of the interaction class, comprises:
Developing and defining object classes of each simulation unit participating in interaction based on an object model template to obtain multi-level definition of the object classes described by adopting an object class structure table, wherein the object class structure table comprises object class names, inheritance relations among the object classes and ordering and publishing capability attributes of the object classes;
and developing and defining the interaction class of each simulation unit participating in the interaction based on the object model template to obtain multi-level definition of the interaction class described by adopting an interaction class structure table, wherein the interaction class structure table comprises interaction class names, inheritance relations among the interaction classes and initiating and perception capability attributes of the interaction classes.
4. A method according to claim 3, characterized in that in the object class structure table and the interactive class structure table, the root class is recorded in the leftmost column of the structure table, the columns from left to right sequentially record the sub-classes up to the leaf sub-classes, and the column number of the structure table is equal to the number of layers of the object class or interactive class structure.
5. A method according to claim 3, wherein the object class names and the interaction class names are each composed of letters, numbers and underlining and each begin with a letter, each object class name and each interaction class name being globally unique throughout the object model template.
6. The method of claim 3, wherein in the object class structure table, ordering and publishing capability attributes of each object class are represented by P, S, N, wherein P represents that a simulation unit for publishing the object class has the capability of simulating the behavior of the object class, S represents that a simulation unit for ordering the object class has the capability of utilizing the object class information, and N represents that the object class cannot be published by the simulation unit or ordered by the simulation unit;
In the interactive class structure table, the initiating and perception capability attributes of each interactive class are respectively I and I The method comprises the steps of performing representation, wherein I represents can be initiated, and the simulation unit has the capability of initializing and sending out an interaction instance; The representation is perceivable, meaning that the simulation unit has the ability to subscribe to the interaction class and to utilize interaction instance information, but does not have the ability to operate on objects affected by the interaction instance.
7. An improved joint simulation object model development apparatus, the apparatus comprising:
The system comprises a joint simulation system construction module, a simulation system management module and a simulation system management module, wherein the joint simulation system construction module is used for constructing an object-oriented multi-level combinable joint simulation system, the joint simulation system is composed of a plurality of freely accessed simulation units, the simulation units are accessed into the joint simulation system through a specific simulation agent interface and are communicated with other accessed simulation units, and the simulation units are composed of a plurality of objects affected by interaction;
The system comprises an object model development definition module, an object model development definition module and a simulation unit development definition module, wherein the object model development definition module is used for developing and defining each simulation unit in the joint simulation system and the whole joint simulation system based on an object model template, the development definition of each simulation unit in the joint simulation system comprises the development definition of object classes and interaction classes of each simulation unit participating in interaction based on the object model template to obtain multi-level definitions of the object classes and multi-level definitions of the interaction classes;
The method comprises the steps of constructing a simulation unit object model corresponding to each simulation unit based on multi-level definition of an object class and multi-level definition of an interaction class, developing and defining a joint simulation data exchange file and an exchange format among the simulation units according to an object model template, and providing that the simulation unit object model stores and transmits data in the joint simulation system according to the defined joint simulation data standard exchange file and the standard exchange format, and comprises the following steps:
Constructing a simulation unit object model corresponding to each simulation unit based on the multi-level definition of the object class and the multi-level definition of the interaction class, wherein the simulation unit object model is used for describing the object class, the object class attribute, the interaction class and the interaction class parameter information which are externally published or ordered by the simulation unit;
Developing and defining a joint simulation data exchange file and an exchange format among all simulation units according to an object model template to obtain a joint simulation data standard exchange file and an exchange format, and prescribing that an object model of the simulation unit is in the joint simulation system and data storage and transmission are carried out according to the joint simulation data standard exchange file and the standard exchange format, wherein the joint simulation data standard exchange file consists of user-defined data types, interest spaces, object types, interaction types and simulation units, and the joint simulation data standard exchange format is an extensible markup language xml format;
The simulation unit consists of a time pushing type (TIMEADVANCETYPE), a simulation unit service quality strategy (UnitQos), an object class list and an interaction class list;
the simulation unit also contains the following information:
the simulation unit basic information comprises names, versions, descriptions and settings of whether interest management and interest management use of the simulation unit;
the time control information comprises a propulsion mode, wherein the propulsion mode is selected based on a time step and an event propulsion mode, the time step propulsion mode is set with a time propulsion step and a look-ahead amount, and the selection of the unit time strategy is selected by four modes of time control time limitation mode, time control non-time limitation mode, non-time control time limitation mode and non-time control non-time limitation mode;
QoS (quality of service) management information, various thresholds used for setting a simulation unit to participate in a joint simulation process, including four settings of robustness, consistency, response and efficiency, wherein the robustness comprises three parameters including maximum collapse times, heart beat frequency unsatisfied times and heart beat delay unsatisfied times, the consistency comprises three parameters including warning level inconsistent numbers, critical level inconsistent numbers and overrun level inconsistent numbers, the response comprises three parameters including warning level delay times, critical level delay times and overrun level delay times, and the efficiency comprises six parameters including simulation advancing time, reflection executing time, update executing time, warning level unsatisfied times, critical level unsatisfied times and overrun level unsatisfied times.
8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 6 when the computer program is executed.
CN202411531205.2A 2024-10-30 2024-10-30 Improved joint simulation object model development method, device and equipment Active CN119045789B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202411531205.2A CN119045789B (en) 2024-10-30 2024-10-30 Improved joint simulation object model development method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202411531205.2A CN119045789B (en) 2024-10-30 2024-10-30 Improved joint simulation object model development method, device and equipment

Publications (2)

Publication Number Publication Date
CN119045789A CN119045789A (en) 2024-11-29
CN119045789B true CN119045789B (en) 2025-02-11

Family

ID=93585472

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202411531205.2A Active CN119045789B (en) 2024-10-30 2024-10-30 Improved joint simulation object model development method, device and equipment

Country Status (1)

Country Link
CN (1) CN119045789B (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7805284B2 (en) * 2007-10-04 2010-09-28 Hitachi, Ltd. Simulation model defining system for generating a simulation program for a simulator simulating a behavior of economy or society regarded as a system of phenomena and events
CN102609248B (en) * 2011-12-28 2014-11-05 方伟 Integrated avionics system modeling and simulation platform based on MDA (model driven architecture)
CN105225566B (en) * 2015-09-06 2018-04-10 国家电网公司 A kind of electric network emergency drills visual simulating deduction system
CN115562892B (en) * 2022-12-02 2023-03-24 北京卓翼智能科技有限公司 A Redis-based simulation system time management method and system, device and equipment
CN117609508A (en) * 2023-11-16 2024-02-27 西南交通大学 A method for constructing and applying knowledge graphs for complex product design verification

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
HLA仿真程序设计综述;石剑琛, 汪厚祥, 李卉;舰船电子工程;20030820(第04期);第12-16、46页 *

Also Published As

Publication number Publication date
CN119045789A (en) 2024-11-29

Similar Documents

Publication Publication Date Title
Debbabi et al. Verification and validation in systems engineering: assessing UML/SysML design models
US7203929B1 (en) Design data validation tool for use in enterprise architecture modeling
US8869103B2 (en) Using intermediate representations to verify computer-executable code generated from a model
US8856726B2 (en) Verification of computer-executable code generated from a slice of a model
Keller et al. Software specification and design: A disciplined approach for real-time systems
JP7350923B2 (en) Deep learning framework operator registration method, equipment, device and storage medium
David Validating simulations
US8869100B1 (en) Data objects for model-based design
US10666744B2 (en) Managing discovery and selection of service interface specifications
CN105159670A (en) Universal cockpit display control system software development framework
Goldsack et al. Formal methods and object technology
Bonaventura et al. Graphical modeling and simulation of discrete-event systems with CD++ Builder
CN117908876A (en) Method, device and equipment for generating system page under complex authority scene in government or enterprise informatization field based on model driving
Di Natale et al. An MDA approach for the generation of communication adapters integrating SW and FW components from Simulink
US20040004612A1 (en) Method and system for processing graphics simulation data
CN119045789B (en) Improved joint simulation object model development method, device and equipment
Troya et al. Specification and simulation of queuing network models using domain-specific languages
Design et al. MIT Architecture
Graf et al. Correct development of embedded systems
Cavarra et al. A framework to simulate UML models: moving from a semi-formal to a formal environment
Radeski et al. Component-based development extensions to HLA
France et al. Metarole-based modeling language (RBML) specification V1
Young et al. The javatime approach to mixed hardware-software system design
Keren et al. MDA approach for maintenance of business applications
Raistrick Model‐Based Code Generation

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