CN104268346A - Implementation method for simulation application of visual integrated environment on basis of object class interaction diagrams - Google Patents

Implementation method for simulation application of visual integrated environment on basis of object class interaction diagrams Download PDF

Info

Publication number
CN104268346A
CN104268346A CN201410519286.4A CN201410519286A CN104268346A CN 104268346 A CN104268346 A CN 104268346A CN 201410519286 A CN201410519286 A CN 201410519286A CN 104268346 A CN104268346 A CN 104268346A
Authority
CN
China
Prior art keywords
simulation
scheduling
pel
application
model
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410519286.4A
Other languages
Chinese (zh)
Other versions
CN104268346B (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 CN201410519286.4A priority Critical patent/CN104268346B/en
Publication of CN104268346A publication Critical patent/CN104268346A/en
Application granted granted Critical
Publication of CN104268346B publication Critical patent/CN104268346B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses an implementation method for simulation application of a visual integrated environment on the basis of object class interaction diagrams. The method includes the steps: (1) setting a simulation object meta model and a simulation interaction meta model; (2) setting up an interaction component management module used for providing interaction operation component graphic primitives of interaction dispatch events and dispatch interaction, and the graphic primitives are used for connection of simulation objects and expression of interactive relationship of the simulation objects; (3) setting up a simulation object model management module; (4) setting up a simulation application assembly module; (5) setting up a simulation application code generation module, wherein the simulation application code generation module subjects related simulation object description files and simulation interaction information description files to data fusion according to the object class interaction diagrams so as to obtain a simulation application description file according to which simulation application codes are generated aiming at specific simulation engines. The implementation method for simulation application of the visual integrated environment on the basis of object class interaction diagrams has the advantages of simple principles, simplicity and convenience in operation, easiness in popularization and application and the like.

Description

The implementation method of the visual the integration environment of a kind of Simulation Application based on object class interaction figure
Technical field
The present invention is mainly concerned with modeling and simulation technology field, refers in particular to the implementation method of the visual the integration environment of a kind of Simulation Application based on object class interaction figure.
Background technology
At present, scale complex system often comprises numerous entity, and inter-entity usually also exists again complicated " alternately ", and therefore, large scale emulation application system development can be divided into two stages: (1) builds the entity that simulation object comes the simulating reality world; (2) integrated emulation object carrys out the entity interaction in the simulating reality world.
When simulation object class has built, traditional Simulation Application integrated usually needs has used universal programming language hand-coding code to realize.This mode technical threshold is high, poor intuition, integrated efficiency are low, and application structure is dumb, redjustment and modification difficulty, is difficult to meet that Simulation Application is frequently revised, efficiently integrated actual requirement.The visual integrated technology of Simulation Application then station has arrived the level higher than universal programming language, it is by completely graphical for the Integrated Development process of Simulation Application, for the integrated personnel of Simulation Application provide Integrated Development module efficiently directly perceived, and realize the automatic conversion of graphical application model to specific program language, application developer is made not need to understand the specific implementation details of emulation platform and simulation object, and main attention is concentrated in the structure of interactive relation between object class, can greatly reduce application and development threshold, improve application integration efficiency.
Current, existing multiple patterned Simulation Application integrated technology, such as constitutional diagram, occurrence diagram, activity diagram, process interaction figure etc., these technology have good modeling characteristic, are widely used in the every field of simulation modeling.But they are not all the simple mappings of real world, developer namely can not be made to observe Simulation Application " one has on the level of physical meaning ".These technology are applied in the modeling of " basic integration module " has good effect, and be applied to basic module to application integrated time, because basic module is not reusing of object hierarchy, cause application integration difficulty, have impact on the integrated efficiency of application.Such as, Viskit, by improving occurrence diagram, pays close attention to integrated to coupling model of atomic model, does not relate to the integrated of Simulation Application level; Simulink has good visual modeling characteristic, can by carrying out the integrated of completion system to carrying out line between basic module with configuration, but it mainly applies to Control System Imitation, be not suitable for the integrated of the scale complex system Simulation Application with multi-object interaction feature.
Summary of the invention
The technical problem to be solved in the present invention is just: the technical matters existed for prior art, the invention provides the visual the integration environment of the Simulation Application based on the object class interaction figure implementation method that a kind of principle is simple, easy and simple to handle, easily apply.
For solving the problems of the technologies described above, the present invention by the following technical solutions:
The visual the integration environment implementation method of Simulation Application based on object class interaction figure, the steps include:
(1) simulation object meta-model and simulation interactive meta model are set;
(2) build mutual component management module, described mutual component management module is used to provide scheduling events and the mutual two kinds of interactive operation component pels of scheduling, and described pel is for connecting the interactive relation between simulation object, expression simulation object;
(3) simulation object model management module is built: traversal simulation object model resource file folder automatically, imports simulation object model management module, and load simulation object model pel on simulation object model resource management panel by simulation object model;
(4) Simulation Application Knockdown block is built: the object model pel in simulation object model management module is deployed to application assembling district with pulling mode by the support of described Simulation Application Knockdown block, and support that the mutual component pel of use represents the interactive relation between simulation object, form object class interaction figure, generate simulation interactive information description document;
(5) Simulation Application code generation module is built: Simulation Application code generation module is according to object class interaction figure, involved simulation object description document and simulation interactive information description document are carried out data fusion, obtain Simulation Application description document, and then generate Simulation Application code according to this file for concrete simulation engine.
As a further improvement on the present invention: in described step (1), simulation object meta-model comprises the information describing simulation object and must comprise, mainly comprise property set, event set, mutual collection and sets of ports, be respectively used to organize the attribute of simulation object, simulated events, alternative events and port; Simulated events, alternative events all include input parameter collection and computation model collection, and these set relate to the internal processing logic of event/mutual; Described simulated events, alternative events all with port association, they by port for other object references or call the event of other objects/mutual.
As a further improvement on the present invention: in described step (1), Simulation Application interactive information meta-model comprises the information describing Simulation Application interactive relation and must comprise, and described information comprises the set such as simulation object collection, scheduling events collection and the mutual collection of scheduling.
As a further improvement on the present invention: the concrete steps of described step (2) are:
(2.1) the interactive operation component pel display panel of mutual component management module is built;
(2.2) on interactive operation component pel display panel, scheduling events pel is loaded;
(2.3) do you judge that scheduling events pel loads successfully? if not, then go to step (2.6);
(2.4) on interactive operation component pel display panel, the mutual pel of scheduling is loaded;
(2.5) do you judge that the mutual pel of scheduling loads successfully? if so, go to step (2.7); If not, then go to step (2.6);
(2.6) prompting emulation pel loads unsuccessfully, exits;
(2.7) simulation object function package pel panel has built.
As a further improvement on the present invention: the concrete steps of described step (3) are:
(3.1) the simulation object model resource panel that simulation object model management module is corresponding is built;
(3.2) establishment has loaded simulation object model list LoadedList, is initially sky;
(3.3) create simulation object model list TobeLoadList to be loaded, be initially all simulation object model file folders in simulation object model resource file folder;
(3.4) do you judge that TobeLoadList is empty? if it is empty, then go to step (3.8);
(3.5) from TobeLoadList, choose a simulation object model file folder, resolve the simulation object model description document in this file, the data content of simulation object model description document determined by simulation object meta model;
(3.6) in simulation object model resource panel, simulation object model pel is shown;
(3.7) this simulation object model is rejected from TobeLoadList, join in LoadedList, go to step (3.4);
(3.8) Simulation Calculation resource management module has built.Simulation Calculation refers to that the computer program of simulated system, process or function realizes.
As a further improvement on the present invention: the concrete steps of described step (4) are:
(4.1) Simulation Application visual assembly panel is built;
(4.2) scheduling events visual configuration panel is built, support to eject scheduling events visual configuration panel by double-clicking scheduling events pel, support, to the visual configuration of scheduling event information, to comprise source/destination object class, source/target port, simulation time, schedulable condition and input parameter;
(4.3) scheduling interactive visual configured board is built, support to eject scheduling interactive visual configured board by double-clicking the mutual pel of scheduling, support, to the visual configuration of scheduling interactive information, to comprise source/destination object class, source/target port, simulation time, schedulable condition and input parameter.
As a further improvement on the present invention: the concrete steps of described step (5) are:
(5.1) analysis object interaction figure, generate simulation interactive information description document, the data content of simulation interactive information description document determined by Simulation Application interactive information meta-model;
(5.2) resolve simulation interactive information description document and simulation object description document, by object interaction information insertion in the event/mutual list of simulation object, obtain Simulation Application descriptor SimAppInfo;
(5.3) Simulation Application description document SimAppInfo is scanned, for each simulation object class generates source code;
(5.4) all simulation object classes are articulated in principal function, terminate.
Compared with prior art, the invention has the advantages that:
1, method of the present invention after application, farthest can break away from the constraint of concrete simulating scenes and emulation platform on the one hand, take into full account the characteristic that analogue system multiple entity is mutual, make application development tool have good versatility; On the other hand, the performance history of instrument, tightly around the integrating process of Simulation Application, not only makes the performance history of instrument visual and clear, is conducive to the realization of instrument " function " simultaneously.
2, method of the present invention after application, in the process that the Simulation Application integration tool realized according to the present invention apply at integrated emulation, there is following advantage: one is that application developer can on a natural level more directly perceived, with the patterned way integrated emulation be more readily understood application, and do not need to understand concrete emulation platform using method and simulation object realize details; Two is that developer does not need hand-coding code, the exploitation threshold reducing application and the probability of makeing mistakes; Three is the Simulation Application flexible structures built, and is convenient to application developer and changes according to demand and adjust Simulation Application, revise and upgrade.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of the inventive method.
Fig. 2 is the schematic diagram representing simulation object meta model in the present invention with class figure.
Fig. 3 is the schematic diagram representing Simulation Application interactive information meta-model in the present invention with class figure.
Fig. 4 is the schematic flow sheet of the mutual component management module construction provided in the present invention.
Fig. 5 is the schematic flow sheet of the simulation object model management module construction provided in the present invention.
Fig. 6 is the schematic flow sheet that the Simulation Application Knockdown block provided in the present invention builds.
Fig. 7 is the schematic flow sheet of code construction flow process in the Simulation Application code generation module provided in the present invention.
Fig. 8 is the schematic flow sheet that the analysis object interaction figure provided in the present invention generates simulation interactive information description document.
Fig. 9 is the schematic flow sheet being generated Simulation Application descriptor file by simulation interactive information description document and simulation object description document provided in the present invention.
The algorithm flow that by Simulation Application description document generated source code of Figure 10 for providing in the present invention.
Figure 11 is the principle schematic of the present invention in embody rule example.
Embodiment
Below with reference to Figure of description and specific embodiment, the present invention is described in further details.
As shown in Figure 1, the visual the integration environment implementation method of a kind of Simulation Application based on object class interaction figure of the present invention, concrete steps are:
(1) simulation object meta-model and simulation interactive meta model are set; Simulation object refers to by the expression of simulation system object in middle analogue system.In view of when the present invention works towards this level of class, convenient will not distinguish object class and object below for composing a piece of writing.
As shown in Figure 2, the present invention represents simulation object meta-model with class figure, this simulation object meta-model defines the information describing simulation object and must comprise, mainly comprise property set, event set, mutual collection and sets of ports, be respectively used to organize the attribute of simulation object, simulated events, alternative events and port.Simulated events, alternative events all include input parameter collection and computation model collection, and these set relate to the internal processing logic of event/mutual.Simulated events, alternative events all with port association, they by port for other object references or call the event of other objects/mutual.Simulated events refers to and is produced by a simulation object (source simulation object), passes to the data of another simulation object (target simulator object); After postponing through certain simulation time, target simulator object will process accordingly to data.The event transfer that simulation object (source simulation object) produces by scheduling events is to the activity of target simulator object.Simulation interactive (or being called for short mutual) refers to and is produced by a simulation object (source simulation object), passes to the data of some other simulation objects; After postponing through certain simulation time, target simulator object will process accordingly to data.Scheduling is the activity passing to target simulator object alternately produced by simulation object (source simulation object) alternately.
As shown in Figure 3, the present invention represents Simulation Application interactive information meta-model with class figure, this Simulation Application interactive information meta-model defines the information describing Simulation Application interactive relation and must comprise, and mainly comprises the set such as simulation object collection, scheduling events collection and the mutual collection of scheduling.For an embody rule example of this Simulation Application interactive information meta-model, these set respectively correspondence participate in all simulation objects of emulation, and scheduling events and scheduling are alternately.Scheduling events and the mutual key distinction of scheduling are that scheduling events clearly must define the sending object of this event and receive object, and scheduling then has the reception object of uncertain number alternately.Schedulable condition represents the condition triggering scheduling this event/mutual, simulation time represents this event/mutual processed simulation time, input parameter represents the data sending to this event/I-goal simulation object, and port is used for recording dispatching or receives the event of this event/mutual/mutual.
(2) build mutual component management module, described mutual component management module is used to provide scheduling events and the mutual two kinds of interactive operation component pels of scheduling, and these pels are for connecting the interactive relation between simulation object, expression simulation object.Pel refers to the icon for a certain categorical data of Visualization.
As shown in Figure 4, in embody rule example, its concrete steps are:
(2.1) the interactive operation component pel display panel of mutual component management module is built;
(2.2) on interactive operation component pel display panel, scheduling events pel is loaded;
(2.3) do you judge that scheduling events pel loads successfully? if not, then go to step (2.6);
(2.4) on interactive operation component pel display panel, the mutual pel of scheduling is loaded;
(2.5) do you judge that the mutual pel of scheduling loads successfully? if so, go to step (2.7); If not, then go to step (2.6);
(2.6) prompting emulation pel loads unsuccessfully, exits;
(2.7) simulation object function package pel panel has built.
(3) simulation object model management module is built: traversal simulation object model resource file folder automatically, imports simulation object model management module, and load simulation object model pel on simulation object model resource management panel by simulation object model.In preferred embodiment, it can also be made further to support to use mouse to select and drag operation simulation object model pel, for simulation object visual assembly provides necessary simulation object model resource.
As shown in Figure 5, in embody rule example, its concrete steps are:
(3.1) the simulation object model resource panel that simulation object model management module is corresponding is built;
(3.2) establishment has loaded simulation object model list LoadedList, is initially sky;
(3.3) create simulation object model list TobeLoadList to be loaded, be initially all simulation object model file folders in simulation object model resource file folder;
(3.4) do you judge that TobeLoadList is empty? if it is empty, then go to step (3.8);
(3.5) from TobeLoadList, choose a simulation object model file folder, resolve the simulation object model description document in this file, the data content of simulation object model description document determined by simulation object meta model;
(3.6) in simulation object model resource panel, simulation object model pel is shown;
(3.7) this simulation object model is rejected from TobeLoadList, join in LoadedList, go to step (3.4);
(3.8) Simulation Calculation refers to that the computer program of simulated system, process or function realizes.
(4) Simulation Application Knockdown block is built: described Simulation Application Knockdown block is supported, in " pulling " mode, the object model pel in simulation object model management module is deployed to application assembling district, and support that the mutual component pel of use represents the interactive relation between simulation object, form object class interaction figure, generate simulation interactive information description document.
As shown in Figure 6, in embody rule example, its concrete steps are:
(4.1) Simulation Application visual assembly panel is built.This panel is supported, in " pulling " mode, simulation object in simulation object model resource panel is deployed to application assembling district, and pulls mutual component into connect each simulation object from interactive operation component pel display panel, forms object class interaction figure;
(4.2) scheduling events visual configuration panel is built, support to eject scheduling events visual configuration panel by double-clicking scheduling events pel, support, to the visual configuration of scheduling event information, to comprise source/destination object class, source/target port, simulation time, schedulable condition and input parameter;
(4.3) scheduling interactive visual configured board is built, support to eject scheduling interactive visual configured board by double-clicking the mutual pel of scheduling, support, to the visual configuration of scheduling interactive information, to comprise source/destination object class, source/target port, simulation time, schedulable condition and input parameter;
(5) Simulation Application code generation module is built: Simulation Application code generation module is according to object class interaction figure, involved simulation object description document and simulation interactive information description document are carried out data fusion, obtain Simulation Application description document, and then generate Simulation Application code according to this file for concrete simulation engine.
As shown in Figure 7, in embody rule example, its concrete steps are:
(5.1) analysis object interaction figure, generate simulation interactive information description document, the data content of simulation interactive information description document determined by Simulation Application interactive information meta-model, idiographic flow as shown in Figure 8:
(5.1.1) data structure of storage emulation interactive information is set up;
(5.1.2) set up pel list glist, this list comprises all pels on Simulation Application visual assembly panel;
(5.1.3) do you judge that glist is empty? if not, go to step (5.1.16);
(5.1.4) choose pel from glist, and this pel is deleted from glist;
(5.1.5) do you judge that selected pel belongs to mutual component pel? if not, go to step (5.1. 3);
(5.1.6) judge whether it is scheduling events pel? if not, go to step (5.1.11);
(5.1.7) source object class and the destination object class of scheduling events is obtained;
(5.1.8) source port and the target port of scheduling events is obtained;
(5.1.9) schedulable condition of scheduling events, simulation time and input parameter is obtained;
(5.1.10) generate the record of a scheduling events information, go to step (5.1.15);
(5.1.11) the source object class mutual with scheduling and destination object class is obtained;
(5.1.12) source port mutual with scheduling and target port is obtained;
(5.1.13) scheduling mutual schedulable condition, simulation time and input parameter is obtained;
(5.1.14) generate the record of a scheduling interactive information, go to step (5.1.15);
(5.1.15) by generated scheduling events/intersection record stored in simulation interactive information data structure, go to step (5.1.13);
(5.1.16) by the content write simulation interactive information description document in simulation interactive information data structure, terminate.
(5.2) resolve simulation interactive information description document and simulation object description document, by object interaction information insertion in the event/mutual list of simulation object, obtain Simulation Application descriptor SimAppInfo, concrete steps as shown in Figure 9:
(5.2.1) an empty Simulation Application descriptor data structure SimAppInfo is founded;
(5.2.2) create simulation object list TobeLoadObjList to be loaded, be initially the simulation object set in simulation interactive information description document, create simulation object model list ObjList, be initially sky;
(5.2.3) do you judge that TobeLoadObjList is empty? if it is empty, then go to step (5.2.6);
(5.2.4) from TobeLoadObjList, choose a simulation object, resolve the simulation object model description document corresponding to this simulation object, set up the record of this simulation object information;
(5.2.5) this simulation object is rejected from TobeLoadObjList, and record is joined in ObjList, go to step (5.2.3) and judge that TobeLoadObjList is empty? if it is empty, then go to step (5.2.6);
(5.2.6) ObjList is joined in SimAppInfo;
(5.2.7) create scheduling events list TobeLoadEventsList to be loaded, be initially the scheduling events set in simulation interactive information description document;
(5.2.8) do you judge that TobeLoadEventsList is empty? if it is empty, then go to step (5.2.11);
(5.2.9) from TobeLoadEventsList, choose a scheduling events, obtain the source simulation object of this event of scheduling, this scheduling events is joined in its scheduling events list in SimAppInfo;
(5.2.10) this scheduling events is rejected from TobeLoadEventsList, go to step (5.2.8);
(5.2.11) create the mutual list TobeLoadInteractionsList of scheduling to be loaded, the scheduling be initially in simulation interactive information description document is gathered alternately;
(5.2.12) do you judge that TobeLoadInteractionsList is empty? if it is empty, then go to step (5.2.15);
(5.2.13) from TobeLoadInteractionsList, choose a scheduling mutual, obtain this mutual source simulation object of scheduling, this scheduling is joined alternately it in SimAppInfo and dispatch in mutual list;
(5.2.14) this scheduling is rejected from TobeLoadInteractionsList alternately, go to step (5.2.12);
(5.2.15) terminate.
(5.3) scanning Simulation Application description document SimAppInfo, is that each simulation object class generates source code, concrete steps as shown in Figure 10:
(5.3.1) ObjNameList is created, the name of all simulation objects in record SimAppInfo;
(5.3.2) do you judge that whether ObjNameList is not for empty? if it is empty, then go to step (5.4);
(5.3.3) from ObjNameList, choose a simulation object name, set up a class according to this name;
(5.3.4) the simulation object entry in SimAppInfo corresponding to ObjName is resolved;
(5.3.5) be the attribute of class by the best property of attribute mapping of simulation object;
(5.3.6) be the member function of class by the event/interactive map of simulation object, turn (5.3.2);
It is following four steps of this process need of member function of class by the event/interactive map of simulation object: input input parameter being mapped as member function; Computation model is joined in member function successively; From scheduling events list, be that current event/mutual all scheduling events join in member function successively by input port; From the mutual list of scheduling, searching input port is that current event/mutual all scheduling join in member function alternately successively.
(5.4) all simulation object classes are articulated in principal function, terminate.
The present invention achieves the visual the integration environment of Simulation Application based on object interaction figure by implementation step (1) ~ (5).As from the foregoing, Simulation Application the integration environment implementation method proposed by the invention is by supporting should to be used for based on the visual means integrated emulation of object class interaction figure realizing; It adopts visualized graphs to represent the method combined with digitized description, realizes simulation object model and the integrated visable representation of Simulation Application and digitized processing simultaneously.On the one hand, what be presented to user is patterned simulation object model and Simulation Application model completely, on the other hand, what be supplied to computer disposal is digitized information, not only facilitate the storage of model, transfer and edit again, and be beneficial to directly generation can the Simulation Application source code of Complied executing.
In order to understand the present invention better, further illustrated, namely for the visual integrating process of traffic system simulation below in conjunction with an embody rule embodiment of the present invention.This traffic system comprises vehicle, the three kinds of simulation objects in region and Public Security Department.In simulation process, vehicle moves in different regions according to traffic congestion, control situation and the target of oneself, and region is all vehicle publicity information in one's respective area termly, and its control situation then controls by Public Security Department.This system can be used for assessing different traffic control strategy affects situation to urban transportation.Concrete steps are:
(1) building mutual component management module, scheduling events is provided, dispatch mutual two kinds of mutual component pels, for connecting simulation object to assemble Simulation Application, supporting that performing mouse to mutual component pel selects and drag operation, as shown in upper module in Figure 11.
(2) building simulation object model management module, some available simulation object model pels are provided, for building Simulation Application, supporting that performing mouse to simulation object model pel selects and drag operation.Such as, in Figure 11 shown in the module of left side, there are vehicle, three the simulation object model pels in region and Public Security Department.
(3) Simulation Application Knockdown block is built, support, in " pulling " mode, simulation object in true object model administration module is deployed to application assembling panel, and add mutual component to connect each simulation object, form object class interaction figure, and generate interactive information description document.Such as, in Figure 11 shown in the module of lower right side, vehicle, the three kinds of simulation objects in region and Public Security Department have all been deployed to application assembling panel, and scheduling events and scheduling simultaneously has been added into alternately and has been connected all kinds of simulation object.Vehicle can enter and leave event to enter to the subdispatch at its place and leave a region, region can as required to all vehicle in one's respective area send congestion information or traffic control mutual.Public Security Department is unobstructed to maintain traffic to specific region by maneuver traffic Admin Events.
(4) build Simulation Application code generation module, the object interaction figure assembled in Simulation Application visual assembly panel is automatically converted to Simulation Application source code by this module.
Below be only the preferred embodiment of the present invention, protection scope of the present invention be not only confined to above-described embodiment, all technical schemes belonged under thinking of the present invention all belong to protection scope of the present invention.It should be pointed out that for those skilled in the art, some improvements and modifications without departing from the principles of the present invention, should be considered as protection scope of the present invention.

Claims (7)

1., based on the visual the integration environment implementation method of Simulation Application of object class interaction figure, it is characterized in that, step is:
(1) simulation object meta-model and simulation interactive meta model are set;
(2) build mutual component management module, described mutual component management module is used to provide scheduling events and the mutual two kinds of interactive operation component pels of scheduling, and described pel is for connecting the interactive relation between simulation object, expression simulation object;
(3) simulation object model management module is built: traversal simulation object model resource file folder automatically, imports simulation object model management module, and load simulation object model pel on simulation object model resource management panel by simulation object model;
(4) Simulation Application Knockdown block is built: the object model pel in simulation object model management module is deployed to application assembling district with pulling mode by the support of described Simulation Application Knockdown block, and support that the mutual component pel of use represents the interactive relation between simulation object, form object class interaction figure, generate simulation interactive information description document;
(5) Simulation Application code generation module is built: Simulation Application code generation module is according to object class interaction figure, involved simulation object description document and simulation interactive information description document are carried out data fusion, obtain Simulation Application description document, and then generate Simulation Application code according to this file for concrete simulation engine.
2. the visual the integration environment implementation method of the Simulation Application based on object class interaction figure according to claim 1, it is characterized in that, in described step (1), simulation object meta-model comprises the information describing simulation object and must comprise, mainly comprise property set, event set, mutual collection and sets of ports, be respectively used to organize the attribute of simulation object, simulated events, alternative events and port; Simulated events, alternative events all include input parameter collection and computation model collection, and these set relate to the internal processing logic of event/mutual; Described simulated events, alternative events all with port association, they by port for other object references or call the event of other objects/mutual.
3. the visual the integration environment implementation method of the Simulation Application based on object class interaction figure according to claim 2, it is characterized in that, in described step (1), Simulation Application interactive information meta-model comprises the information describing Simulation Application interactive relation and must comprise, and described information comprises the set such as simulation object collection, scheduling events collection and the mutual collection of scheduling.
4. the visual the integration environment of the Simulation Application based on the object class interaction figure implementation method according to claim 1 or 2 or 3, it is characterized in that, the concrete steps of described step (2) are:
(2.1) the interactive operation component pel display panel of mutual component management module is built;
(2.2) on interactive operation component pel display panel, scheduling events pel is loaded;
(2.3) do you judge that scheduling events pel loads successfully? if not, then go to step (2.6);
(2.4) on interactive operation component pel display panel, the mutual pel of scheduling is loaded;
(2.5) do you judge that the mutual pel of scheduling loads successfully? if so, go to step (2.7); If not, then go to step (2.6);
(2.6) prompting emulation pel loads unsuccessfully, exits;
(2.7) simulation object function package pel panel has built.
5. the visual the integration environment of the Simulation Application based on the object class interaction figure implementation method according to claim 1 or 2 or 3, it is characterized in that, the concrete steps of described step (3) are:
(3.1) the simulation object model resource panel that simulation object model management module is corresponding is built;
(3.2) establishment has loaded simulation object model list LoadedList, is initially sky;
(3.3) create simulation object model list TobeLoadList to be loaded, be initially all simulation object model file folders in simulation object model resource file folder;
(3.4) do you judge whether TobeLoadList is empty, if it is empty? then go to step (3.8);
(3.5) from TobeLoadList, choose a simulation object model file folder, resolve the simulation object model description document in this file, the data content of simulation object model description document determined by simulation object meta model;
(3.6) in simulation object model resource panel, simulation object model pel is shown;
(3.7) this simulation object model is rejected from TobeLoadList, join in LoadedList, go to step (3.4);
(3.8) Simulation Calculation resource management module has built; Simulation Calculation refers to that the computer program of simulated system, process or function realizes.
6. the visual the integration environment of the Simulation Application based on the object class interaction figure implementation method according to claim 1 or 2 or 3, it is characterized in that, the concrete steps of described step (4) are:
(4.1) Simulation Application visual assembly panel is built;
(4.2) scheduling events visual configuration panel is built, support to eject scheduling events visual configuration panel by double-clicking scheduling events pel, support, to the visual configuration of scheduling event information, to comprise source/destination object class, source/target port, simulation time, schedulable condition and input parameter;
(4.3) scheduling interactive visual configured board is built, support to eject scheduling interactive visual configured board by double-clicking the mutual pel of scheduling, support, to the visual configuration of scheduling interactive information, to comprise source/destination object class, source/target port, simulation time, schedulable condition and input parameter.
7. the visual the integration environment of the Simulation Application based on the object class interaction figure implementation method according to claim 1 or 2 or 3, it is characterized in that, the concrete steps of described step (5) are:
(5.1) analysis object interaction figure, generate simulation interactive information description document, the data content of simulation interactive information description document determined by Simulation Application interactive information meta-model;
(5.2) resolve simulation interactive information description document and simulation object description document, by object interaction information insertion in the event/mutual list of simulation object, obtain Simulation Application descriptor SimAppInfo;
(5.3) scan Simulation Application description document SimAppInfo and generate source code;
(5.4) all simulation object classes are articulated in principal function, terminate.
CN201410519286.4A 2014-09-30 2014-09-30 A kind of implementation method of the Simulation Application visualization the integration environment based on object class interaction figure Active CN104268346B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410519286.4A CN104268346B (en) 2014-09-30 2014-09-30 A kind of implementation method of the Simulation Application visualization the integration environment based on object class interaction figure

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410519286.4A CN104268346B (en) 2014-09-30 2014-09-30 A kind of implementation method of the Simulation Application visualization the integration environment based on object class interaction figure

Publications (2)

Publication Number Publication Date
CN104268346A true CN104268346A (en) 2015-01-07
CN104268346B CN104268346B (en) 2018-06-22

Family

ID=52159867

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410519286.4A Active CN104268346B (en) 2014-09-30 2014-09-30 A kind of implementation method of the Simulation Application visualization the integration environment based on object class interaction figure

Country Status (1)

Country Link
CN (1) CN104268346B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105069205A (en) * 2015-07-24 2015-11-18 江苏省公用信息有限公司 Method for realizing visual development environment of simulation object based on port encapsulation
CN106777450A (en) * 2016-11-04 2017-05-31 中软信息系统工程有限公司 A kind of model for supporting built-up pattern is described and generation method
CN107657150A (en) * 2017-09-07 2018-02-02 北京荣之联科技股份有限公司 One kind visualization analysis of biological information instrument generation method and device
CN109684779A (en) * 2019-02-15 2019-04-26 湖南高至科技有限公司 A kind of simulation model assembly method based on view
CN110765592A (en) * 2019-10-09 2020-02-07 成都天和讯达科技有限公司 Simulation model, design method thereof, information updating method, device and storage medium
CN113254157A (en) * 2021-06-04 2021-08-13 北京世冠金洋科技发展有限公司 Batch simulation control method and device and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002269158A (en) * 2001-03-13 2002-09-20 Canon Inc Device and method for supporting design, recording medium and program
CN101546348A (en) * 2009-04-13 2009-09-30 苏州同元软控信息技术有限公司 Model base icon display method based on physical modeling language
CN102184280A (en) * 2011-04-27 2011-09-14 广西电力工业勘察设计研究院 Drawing and model integrated visual integration design method
CN103400013A (en) * 2013-08-14 2013-11-20 中国人民解放军国防科学技术大学 Reusable simulation model and development and using method thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002269158A (en) * 2001-03-13 2002-09-20 Canon Inc Device and method for supporting design, recording medium and program
CN101546348A (en) * 2009-04-13 2009-09-30 苏州同元软控信息技术有限公司 Model base icon display method based on physical modeling language
CN102184280A (en) * 2011-04-27 2011-09-14 广西电力工业勘察设计研究院 Drawing and model integrated visual integration design method
CN103400013A (en) * 2013-08-14 2013-11-20 中国人民解放军国防科学技术大学 Reusable simulation model and development and using method thereof

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
FENG ZHU等: ""Reusable Component Model Development Approach for Parallel and Distributed Simulation"", 《THE SCIENTIFIC WORLD JOURNAL》 *
朱峰: ""基于YH-SUPE的并行离散事件仿真组件调试技术研究"", 《中国优秀硕士学位论文全文数据库信息科技辑》 *
解海涛等: ""并行离散事件仿真集成开发环境的设计与实现"", 《系统仿真学报》 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105069205A (en) * 2015-07-24 2015-11-18 江苏省公用信息有限公司 Method for realizing visual development environment of simulation object based on port encapsulation
CN106777450A (en) * 2016-11-04 2017-05-31 中软信息系统工程有限公司 A kind of model for supporting built-up pattern is described and generation method
CN107657150A (en) * 2017-09-07 2018-02-02 北京荣之联科技股份有限公司 One kind visualization analysis of biological information instrument generation method and device
CN109684779A (en) * 2019-02-15 2019-04-26 湖南高至科技有限公司 A kind of simulation model assembly method based on view
CN110765592A (en) * 2019-10-09 2020-02-07 成都天和讯达科技有限公司 Simulation model, design method thereof, information updating method, device and storage medium
CN110765592B (en) * 2019-10-09 2023-08-25 成都天和讯达科技有限公司 Simulation model, design method and information updating method thereof, equipment and storage medium
CN113254157A (en) * 2021-06-04 2021-08-13 北京世冠金洋科技发展有限公司 Batch simulation control method and device and electronic equipment
CN113254157B (en) * 2021-06-04 2023-07-28 北京世冠金洋科技发展有限公司 Batch simulation control method and device and electronic equipment

Also Published As

Publication number Publication date
CN104268346B (en) 2018-06-22

Similar Documents

Publication Publication Date Title
CN104268346A (en) Implementation method for simulation application of visual integrated environment on basis of object class interaction diagrams
CN109977182B (en) City information system based on CIM
CN101539861B (en) Tool for graphical design and verification of general workflow
CN104331530B (en) A kind of electronic warfare Scene Simulation Platform and method of work based on XML descriptions
CN113010160B (en) Smart city scene modeling method based on SysML
CN104268002A (en) Simulation object visual development environment implementation method based on port encapsulation
CN115062463B (en) Modeling system based on demonstration structure modeling language
CN104616134A (en) Statement analysis report pushing method and device
CN111142845A (en) Model-based task system demand development method
CN112069580A (en) Digital delivery method, platform, system, equipment and medium for pumped storage power station
CN106096145A (en) A kind of complication system mathematics library based on state space and analysis environments
CN115756407A (en) Meta-universe service development method based on scene-behavior fusion and model driving
CN106951593A (en) A kind of method and apparatus for the configuration file for generating protection supervisory equipment
CN110599116A (en) Power grid decentralized collaborative design method and system based on cloud data center
Krämer et al. Domain-Specific Languages For Agile Urban Policy Modelling.
WO2021020356A1 (en) Data interpretation device, method and program, data integration device, method and program, and digital city construction system
CN102411498A (en) Method for realizing data model and graphical designer
CN107103133A (en) A kind of visual non-full Runway operation scheme Simulation & evaluation system and method
CN114707429B (en) EAR-based executable modeling method, apparatus, computer device and medium
CN110764750A (en) Energy economy simulation system development method based on individual model
CN102870090A (en) Process entity graphs
CN111291444B (en) Modeling method, device, equipment and storage medium for aircraft assembly
CN106446382A (en) Domain-entity oriented graphic modeling and analyzing environment and implementation method thereof
CN112202861A (en) Hydropower engineering method management application system based on BIM
CN112347443A (en) Anti-theft management method used in software development process

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant