CN104268346B - A kind of implementation method of the Simulation Application visualization the integration environment based on object class interaction figure - Google Patents

A kind of implementation method of the Simulation Application visualization the integration environment based on object class interaction figure Download PDF

Info

Publication number
CN104268346B
CN104268346B CN201410519286.4A CN201410519286A CN104268346B CN 104268346 B CN104268346 B CN 104268346B CN 201410519286 A CN201410519286 A CN 201410519286A CN 104268346 B CN104268346 B CN 104268346B
Authority
CN
China
Prior art keywords
simulation
interaction
model
interactive
pel
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
CN201410519286.4A
Other languages
Chinese (zh)
Other versions
CN104268346A (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 a kind of Simulation Applications based on object class interaction figure to visualize the integration environment implementation method, and step is:(1)Simulation object meta-model and simulation interactive meta model are set;(2)Structure interaction component management module, for providing scheduling events and scheduling two kinds of interactive operation component pels of interaction, the pel is used to connect the interactive relation between simulation object, expression simulation object the interactive component management module;(3)Build simulation object model management module;(4)Build Simulation Application assembling module;(5)Build Simulation Application code generation module:Simulation Application code generation module is according to object class interaction figure, involved simulation object is described into file and simulation interactive information describes file and carries out data fusion, it obtains Simulation Application and describes file, and then Simulation Application code is generated for specific simulation engine according to this document.The present invention has many advantages, such as simple, easy to operate, the easy popularization and application of principle.

Description

A kind of realization of the Simulation Application visualization the integration environment based on object class interaction figure Method
Technical field
Present invention relates generally to modeling and simulation technology fields, refer in particular to a kind of Simulation Application based on object class interaction figure Visualize the implementation method of the integration environment.
Background technology
At present, scale complex system usually contains numerous entities, usually " is handed over there is complicated again between entity Mutually ", therefore, large scale emulation application system development can be divided into two stages:(1)Simulation object is built to simulate real world Entity;(2)Integrated emulation object simulates the entity interaction of real world.
In the case where simulation object class structure is completed, traditional Simulation Application, which integrates, to be usually required to set using general program Language hand-coding code is counted to realize.This mode technical threshold height, poor intuition, integrated efficiency are low, and application structure is ineffective Living, redjustment and modification are difficult, it is difficult to meet the actual requirement that Simulation Application is frequently changed, efficiently integrated.And Simulation Application visualizes Integrated technology has then been stood level more higher than universal programming language, it is by the Integrated Development process complete graph of Simulation Application Shape integrates personnel for Simulation Application and provides intuitive efficient Integrated Development module, and realizes graphical application model to specific The automatic conversion of program language so that application developer is not required to it is to be understood that the specific implementation of emulation platform and simulation object is thin Section, and main attention is concentrated between object class in the structure of interactive relation, application and development threshold can be substantially reduced, improving should With integrated efficiency.
Currently, there are many patterned Simulation Application integrated technologies, such as state diagram, occurrence diagram, activity diagram, process friendship Mutually figure etc., these technologies have good modeling characteristic, are widely used in the every field of simulation modeling.But they It is not the simple mapping of real world, i.e., cannot makes developer in " one has on the level of physical meaning " observation emulation Using.These technologies be applied to " basic integration module " modeling in have good effect, and applied to basic module to answer When integrated, since basic module is not the reuse of object hierarchy, causes application integration difficult, affect the collection effect of application Rate.For example, Viskit, by improving occurrence diagram, concern atom model to coupling model integrates, without reference to Simulation Application layer Secondary is integrated;Simulink has good visual modeling characteristic, can be by carrying out line and configuration between basic module The integrated of system is completed, but it mainly applies to Control System Imitation, be not suitable for multipair extensive as interaction feature Complication system Simulation Application integrates.
Invention content
The technical problem to be solved in the present invention is that:For technical problem of the existing technology, the present invention provides one The kind principle visualization the integration environment of the Simulation Application based on object class interaction figure that is simple, easy to operate, easily promoting and applying is realized Method.
In order to solve the above technical problems, the present invention uses following technical scheme:
A kind of Simulation Application visualization the integration environment implementation method based on object class interaction figure, step are:
(1)Simulation object meta-model and simulation interactive meta model are set;
(2)Structure interaction component management module, the interactive component management module is used for providing scheduling events and scheduling is handed over Mutual two kinds of interactive operations component pel, the pel are used to connect the interactive relation between simulation object, expression simulation object;
(3)Build simulation object model management module:Automatic traversal simulation object model resource file, by simulation object Model imports simulation object model management module, and simulation object illustraton of model is loaded on simulation object model resource management-plane Member;
(4)Build Simulation Application assembling module:Simulation Application assembling module is supported simulation object with pulling mode Object model pel in model management module is deployed to using assembling area, and supports to represent to emulate using interaction component pel Interactive relation between object, forms object class interaction figure, and generation simulation interactive information describes file;
(5)Build Simulation Application code generation module:Simulation Application code generation module is according to object class interaction figure, by institute The simulation object being related to describes file and simulation interactive information describes file and carries out data fusion, obtains Simulation Application description text Part, and then Simulation Application code is generated for specific simulation engine according to this document.
As a further improvement on the present invention:The step(1)In, simulation object meta-model includes description simulation object institute The information that must be included mainly including property set, event set, interaction collection and port collection, is respectively used to the category of tissue simulation object Property, simulated events, alternative events and port;Simulated events, alternative events all include input parameter collection and computation model collection, this A little set are related to the internal processing logic of event/interaction;All with port association, they pass through for the simulated events, alternative events Port is for other object references or calls event/interactions of other objects.
As a further improvement on the present invention:The step(1)In, it is imitative that Simulation Application interactive information meta-model includes description The true information that must be included using interactive relation, described information include simulation object collection, scheduling events collection and scheduling interaction collection Deng set.
As a further improvement on the present invention:The step(2)The specific steps are:
(2.1)The interactive operation component pel display panel of structure interaction component management module;
(2.2)Scheduling events pel is loaded on interactive operation component pel display panel;
(2.3)Judge whether scheduling events pel loads successIf it is not, it then goes to step(2.6);
(2.4)The loading scheduling interaction pel on interactive operation component pel display panel;
(2.5)Judge whether scheduling interaction pel loads successIf so, it goes to step(2.7);If it is not, it then goes to step (2.6);
(2.6)Prompting emulation pel loading failure, is exited;
(2.7)Simulation object function package pel panel structure is completed.
As a further improvement on the present invention:The step(3)The specific steps are:
(3.1)Build the corresponding simulation object model resource panel of simulation object model management module;
(3.2)Establishment has loaded simulation object model list LoadedList, is initially empty;
(3.3)Simulation object model list TobeLoadList to be loaded is created, is initially simulation object model resource text All simulation object model files folder in part folder;
(3.4)Judge whether TobeLoadList is emptyIf it is empty, then it goes to step(3.8);
(3.5)A simulation object model file folder is chosen from TobeLoadList, parses the emulation in this document folder Object model describes file, and the data content that simulation object model describes file is determined by simulation object meta model;
(3.6)Simulation object model pel is shown in simulation object model resource panel;
(3.7)The simulation object model from TobeLoadList is rejected, is added in LoadedList, goes to step (3.4);
(3.8)Simulation Calculation resource management module structure is completed.Simulation Calculation refers to simulated system, mistake The computer program of journey or function is realized.
As a further improvement on the present invention:The step(4)The specific steps are:
(4.1)Build Simulation Application visual assembly panel;
(4.2)Scheduling events visual configuration panel is built, supports to pop up scheduling events by double-clicking scheduling events pel Visual configuration panel, support to dispatch event information visual configuration, including source/target object class, source/target port, Simulation time, schedulable condition and input parameter;
(4.3)Structure scheduling interactive visual configured board is supported by double-clicking scheduling interaction pel pop-up scheduling interaction Visual configuration panel, support to dispatch interactive information visual configuration, including source/target object class, source/target port, Simulation time, schedulable condition and input parameter.
As a further improvement on the present invention:The step(5)The specific steps are:
(5.1)Analysis object interaction figure, generation simulation interactive information describe file, and simulation interactive information describes the number of file It is determined according to content by Simulation Application interactive information meta-model;
(5.2)Parsing simulation interactive information describes file and simulation object describes file, and object interaction information is embedded into In the event of simulation object/interaction list, Simulation Application description information SimAppInfo is obtained;
(5.3)Scanning Simulation Application describes file SimAppInfo, and source code is generated for each simulation object class;
(5.4)All simulation object classes are articulated in principal function, are terminated.
Compared with prior art, the advantage of the invention is that:
1st, on the one hand method of the invention can farthest break away from specific simulating scenes and emulation platform after application Constraint, fully consider analogue system multiple entity interaction characteristic so that application development tool have good versatility;It is another Aspect, the development process of tool close around Simulation Application integrating process, not only so that the development process of tool is visual and clear, Be conducive to the realization of tool " function " simultaneously.
2nd, method of the invention is after application, and the Simulation Application integration tool realized according to the present invention is in integrated emulation application During have the following advantages:First, application developer can be on a more intuitive naturally level, to be more easy to The patterned way integrated emulation application of understanding, the reality without understanding specific emulation platform application method and simulation object Existing details;Second is that developer does not need to hand-coding code, the exploitation threshold of application and the probability of error are reduced;Third, structure The Simulation Application flexible structure built, convenient for application developer changes and Simulation Application is adjusted, change and is risen according to demand Grade.
Description of the drawings
Fig. 1 is the flow diagram of the method for the present invention.
Fig. 2 is the schematic diagram for representing simulation object meta model in the present invention with class figure.
Fig. 3 is the schematic diagram for representing Simulation Application interactive information meta-model in the present invention with class figure.
Fig. 4 is the flow diagram of the interaction component management module construction provided in the present invention.
Fig. 5 is the flow diagram of the simulation object model management module construction provided in the present invention.
Fig. 6 is the flow diagram of the Simulation Application assembling module construction provided in the present invention.
Fig. 7 is the flow diagram of code construction flow in Simulation Application code generation module provided in the present invention.
Fig. 8 is that the analysis object interaction figure provided in the present invention generates the flow signal that simulation interactive information describes file Figure.
Fig. 9 be provided in the present invention file is described by simulation interactive information and simulation object describes file generated emulation Using the flow diagram of descriptor file.
Figure 10 is the algorithm flow that file generated source code is described by Simulation Application provided in the present invention.
Figure 11 is principle schematic of the present invention in concrete application example.
Specific embodiment
The present invention is described in further details below with reference to Figure of description and specific embodiment.
As shown in Figure 1, a kind of Simulation Application visualization the integration environment realization side based on object class interaction figure of the present invention Method, the specific steps are:
(1)Simulation object meta-model and simulation interactive meta model are set;Simulation object refers to be modeled system object Expression in middle analogue system.In view of towards this level of class during present invention work, will not differentiate between below pair for style of writing is convenient As class and object.
As shown in Fig. 2, the present invention represents simulation object meta-model with class figure, it is imitative which defines description The information that true object must include mainly including property set, event set, interaction collection and port collection, is respectively used to tissue emulation Attribute, simulated events, alternative events and the port of object.Simulated events, alternative events all include input parameter collection and calculating Models Sets, these set are related to the internal processing logic of event/interaction.Simulated events, alternative events all with port association, they Event/interactions of other objects for other object references or is called by port.Simulated events refer to by a simulation object (Source simulation object)It generates, passes to another simulation object(Target simulator object)Data;When by certain emulation Between postpone after, target simulator object will be handled data accordingly.Scheduling events are by simulation object(Source simulation object)Production Raw event passes to the activity of target simulator object.Simulation interactive(Or referred to as interaction)Refer to by a simulation object(It imitates in source True object)It generates, passes to the data of other several simulation objects;After postponing by certain simulation time, target simulator Object will be handled data accordingly.It is by simulation object to dispatch interaction(Source simulation object)The interaction of generation passes to mesh Mark the activity of simulation object.
As shown in figure 3, the present invention represents Simulation Application interactive information meta-model with class figure, Simulation Application interactive information member Model defines the information that description Simulation Application interactive relation must include, and mainly includes simulation object collection, scheduling events collection The set such as collection are interacted with scheduling.For a concrete application example of the Simulation Application interactive information meta-model, these set point All simulation objects of emulation Dui Ying not be participated in, scheduling events and scheduling interact.Scheduling events and the main distinction of scheduling interaction It is that scheduling events must explicitly define the sending object of the event and receive object, and dispatching interaction then has connecing for uncertain number Receive object.Schedulable condition represents that the condition of the event/interaction is dispatched in triggering, and simulation time represents that the event/interaction is processed Simulation time, input parameter expression are sent to the data of the event/I-goal simulation object, and port is for recording dispatching or connects Receive event/interaction of the event/interaction.
(2)Structure interaction component management module, the interactive component management module is used for providing scheduling events and scheduling is handed over Mutual two kinds of interactive operations component pel, these pels are used to connect the interactive relation between simulation object, expression simulation object.Figure Member refers to for the icon of a certain categorical data of Visualization.
As shown in figure 4, in concrete application example, the specific steps are:
(2.1)The interactive operation component pel display panel of structure interaction component management module;
(2.2)Scheduling events pel is loaded on interactive operation component pel display panel;
(2.3)Judge whether scheduling events pel loads successIf it is not, it then goes to step(2.6);
(2.4)The loading scheduling interaction pel on interactive operation component pel display panel;
(2.5)Judge whether scheduling interaction pel loads successIf so, it goes to step(2.7);If it is not, it then goes to step (2.6);
(2.6)Prompting emulation pel loading failure, is exited;
(2.7)Simulation object function package pel panel structure is completed.
(3)Build simulation object model management module:Automatic traversal simulation object model resource file, by simulation object Model imports simulation object model management module, and simulation object illustraton of model is loaded on simulation object model resource management-plane Member.In the preferred embodiment, can also further make its support using mouse to simulation object model pel carry out selection with Drag operation provides necessary simulation object model resource for simulation object visual assembly.
As shown in figure 5, in concrete application example, the specific steps are:
(3.1)Build the corresponding simulation object model resource panel of simulation object model management module;
(3.2)Establishment has loaded simulation object model list LoadedList, is initially empty;
(3.3)Simulation object model list TobeLoadList to be loaded is created, is initially simulation object model resource text All simulation object model files folder in part folder;
(3.4)Judge whether TobeLoadList is emptyIf it is empty, then it goes to step(3.8);
(3.5)A simulation object model file folder is chosen from TobeLoadList, parses the emulation in this document folder Object model describes file, and the data content that simulation object model describes file is determined by simulation object meta model;
(3.6)Simulation object model pel is shown in simulation object model resource panel;
(3.7)The simulation object model from TobeLoadList is rejected, is added in LoadedList, goes to step (3.4);
(3.8)Simulation Calculation refers to that the computer program of simulated system, process or function is realized.
(4)Build Simulation Application assembling module:The Simulation Application assembling module is supported emulation pair in a manner of " dragging " As the object model pel in model management module is deployed to using assembling area, and supports to represent imitative using interaction component pel Interactive relation between true object, forms object class interaction figure, and generation simulation interactive information describes file.
As shown in fig. 6, in concrete application example, the specific steps are:
(4.1)Build Simulation Application visual assembly panel.The panel is supported simulation object model in a manner of " dragging " Simulation object is deployed to using assembling area in resource panel, and is dragged in interactive component from interactive operation component pel display panel To connect each simulation object, composition object class interaction figure;
(4.2)Scheduling events visual configuration panel is built, supports to pop up scheduling events by double-clicking scheduling events pel Visual configuration panel, support to dispatch event information visual configuration, including source/target object class, source/target port, Simulation time, schedulable condition and input parameter;
(4.3)Structure scheduling interactive visual configured board is supported by double-clicking scheduling interaction pel pop-up scheduling interaction Visual configuration panel, support to dispatch interactive information visual configuration, including source/target object class, source/target port, Simulation time, schedulable condition and input parameter;
(5)Build Simulation Application code generation module:Simulation Application code generation module is according to object class interaction figure, by institute The simulation object being related to describes file and simulation interactive information describes file and carries out data fusion, obtains Simulation Application description text Part, and then Simulation Application code is generated for specific simulation engine according to this document.
As shown in fig. 7, in concrete application example, the specific steps are:
(5.1)Analysis object interaction figure, generation simulation interactive information describe file, and simulation interactive information describes the number of file Determine that idiographic flow is as shown in Figure 8 by Simulation Application interactive information meta-model according to content:
(5.1.1)Establish the data structure of storage simulation interactive information;
(5.1.2)Primitive list glist is established, which includes all figures on Simulation Application visual assembly panel Member;
(5.1.3)Judge whether glist is emptyIf it is not, it goes to step(5.1.16);
(5.1.4)Pel is chosen, and the pel is deleted from glist from glist;
(5.1.5)Whether pel selected by judgement belongs to interactive component pelIf it is not, it goes to step(5.1. 3);
(5.1.6)Judge whether it is scheduling events pelIf it is not, it goes to step(5.1.11);
(5.1.7)Obtain the source object class of scheduling events and target object class;
(5.1.8)Obtain the source port and target port of scheduling events;
(5.1.9)Obtain schedulable condition, simulation time and the input parameter of scheduling events;
(5.1.10)The record of a scheduling events information is generated, is gone to step(5.1.15);
(5.1.11)It obtains with dispatching the source object class interacted and target object class;
(5.1.12)It obtains with dispatching the source port and target port that interact;
(5.1.13)Obtain schedulable condition, simulation time and the input parameter of scheduling interaction;
(5.1.14)The record of one scheduling interactive information of generation, goes to step(5.1.15);
(5.1.15)By the scheduling events generated/intersection record deposit simulation interactive information data structure, go to step (5.1.13);
(5.1.16)Content write-in simulation interactive information in simulation interactive information data structure is described in file, is tied Beam.
(5.2)Parsing simulation interactive information describes file and simulation object describes file, and object interaction information is embedded into In the event of simulation object/interaction list, Simulation Application description information SimAppInfo is obtained, specific steps are as shown in Figure 9:
(5.2.1)Found an empty Simulation Application description information data structure SimAppInfo;
(5.2.2)Simulation object list TobeLoadObjList to be loaded is created, is initially simulation interactive information description text Simulation object set in part creates simulation object model list ObjList, is initially empty;
(5.2.3)Judge whether TobeLoadObjList is emptyIf it is empty, then it goes to step(5.2.6);
(5.2.4)A simulation object is chosen from TobeLoadObjList, parses the emulation corresponding to the simulation object Object model describes file, establishes the record of the simulation object information;
(5.2.5)The simulation object from TobeLoadObjList is rejected, and record is added in ObjList, turns step Suddenly(5.2.3)Judge whether TobeLoadObjList is emptyIf it is empty, then it goes to step(5.2.6);
(5.2.6)ObjList is added in SimAppInfo;
(5.2.7)Scheduling events list TobeLoadEventsList to be loaded is created, simulation interactive information is initially and retouches State the scheduling events set in file;
(5.2.8)Judge whether TobeLoadEventsList is emptyIf it is empty, then it goes to step(5.2.11);
(5.2.9)A scheduling events are chosen from TobeLoadEventsList, obtain the source emulation for dispatching the event The scheduling events are added in its scheduling events list by object in SimAppInfo;
(5.2.10)The scheduling events from TobeLoadEventsList are rejected, are gone to step(5.2.8);
(5.2.11)Scheduling interaction list TobeLoadInteractionsList to be loaded is created, is initially simulation interactive Information describes the scheduling interaction set in file;
(5.2.12)Judge whether TobeLoadInteractionsList is emptyIf it is empty, then it goes to step(5.2.15);
(5.2.13)A scheduling interaction is chosen from TobeLoadInteractionsList, obtains and dispatches the interaction Scheduling interaction is added in its scheduling interaction list by source simulation object in SimAppInfo;
(5.2.14)The scheduling interaction from TobeLoadInteractionsList is rejected, is gone to step(5.2.12);
(5.2.15)Terminate.
(5.3)Scanning Simulation Application describes file SimAppInfo, and source code is generated for each simulation object class, specific to walk It is rapid as shown in Figure 10:
(5.3.1)ObjNameList is created, records the name of all simulation objects in SimAppInfo;
(5.3.2)Judge ObjNameList whether not for skyIf it is empty, then it goes to step(5.4);
(5.3.3)A simulation object name is chosen from ObjNameList, a class is established according to the name;
(5.3.4)Parse the simulation object entry corresponding to ObjName in SimAppInfo;
(5.3.5)The attribute of simulation object is mapped as to the attribute of class;
(5.3.6)By the member function that event/interactive map of simulation object is class, turn(5.3.2);
By event/interactive map of simulation object, for the member function of class, this process needs following four steps:It will be defeated Enter the input that parameter is mapped as member function;Computation model is added sequentially in member function;It, will from scheduling events list Input port is added sequentially to for all scheduling events of current event/interaction in member function;From scheduling interaction list, look into All scheduling interaction that input port is current event/interaction is looked for be added sequentially in member function.
(5.4)All simulation object classes are articulated in principal function, are terminated.
The present invention passes through implementation steps(1)~(5)Realize the Simulation Application visualization collection cyclization based on object interaction figure Border.From the foregoing, it will be observed that Simulation Application the integration environment implementation method proposed by the invention is by supporting to interact to be based on object class The visual means integrated emulation application of figure is realized;It uses the side that visualized graphs represent and digitized description is combined Method, while realize visable representation and digitized processing that simulation object model and Simulation Application integrate.On the one hand, it is presented to use Family is complete patterned simulation object model and Simulation Application model, and on the other hand, be supplied to computer disposal is Digitized information not only facilitates the storage of model, transfer to be conducive to directly generate the emulation of compileable execution with editing again Application source code.
For a better understanding of the present invention, come institute furtherly with reference to a concrete application embodiment of the invention It is bright, i.e., by taking traffic system simulation visualizes integrating process as an example.The traffic system includes three kinds of vehicle, region and Public Security Department Simulation object.In simulation process, vehicle is moved according to traffic congestion, control situation and the target of oneself in different regions, Region regularly all vehicle publicity information into one's respective area, and its control situation is then controlled by Public Security Department.The system can For assessing influence situation of the different traffic control strategies to urban transportation.The specific steps are:
(1)Structure interaction component management module provides scheduling events, scheduling two kinds of interactive component pels of interaction, for even Simulation object is connect to assemble Simulation Application, supports to perform mouse selection and drag operation to interaction component pel, in Figure 11 Shown in square module.
(2)Simulation object model management module is built, several available simulation object model pels are provided, it is imitative for building True application is supported to perform simulation object model pel mouse selection and drag operation.Such as in Figure 11 shown in left module, have Three vehicle, region and Public Security Department simulation object model pels.
(3)Simulation Application assembling module is built, is supported emulation pair in true object model management module in a manner of " dragging " As being deployed to using assembling panel, and interactive component is added in connect each simulation object, form object class interaction figure, and generate Interactive information describes file.Such as in Figure 11 shown in the module of lower right side, three kinds of vehicle, region and Public Security Department simulation objects are all It has been deployed to using assembling panel, while scheduling events and scheduling interaction have been added into all kinds of simulation objects of connection.Vehicle can Event is entered and left with the subdispatch where it to enter and leave a region, region can be as needed at this All vehicles send congestion information or traffic control interaction in region.Public Security Department is by maneuver traffic management event to given zone Domain is to maintain traffic unobstructed.
(4)Simulation Application code generation module is built, which will be assembled in Simulation Application visual assembly panel Object interaction figure is automatically converted to Simulation Application source code.
The above is only the preferred embodiment of the present invention, protection scope of the present invention is not limited merely to above-described embodiment, All technical solutions belonged under thinking of the present invention all belong to the scope of protection of the present invention.It should be pointed out that for the art For those of ordinary skill, several improvements and modifications without departing from the principles of the present invention should be regarded as the protection of the present invention Range.

Claims (6)

1. a kind of Simulation Application visualization the integration environment implementation method based on object class interaction figure, which is characterized in that step is:
(1) simulation object meta-model and simulation interactive meta model are set;
(2) interaction component management module is built, the interactive component management module is used for providing scheduling events and scheduling interaction two Kind interactive operation component pel, the pel are used to connect the interactive relation between simulation object, expression simulation object;
(3) simulation object model management module is built:Automatic traversal simulation object model resource file, by simulation object model Simulation object model management module is imported, and simulation object model pel is loaded on simulation object model resource management-plane;
(4) structure Simulation Application assembling module:Simulation Application assembling module is supported simulation object model with pulling mode Object model pel in management module is deployed to using assembling area, and supports to represent simulation object using interaction component pel Between interactive relation, form object class interaction figure, generation simulation interactive information file is described;
(5) Simulation Application code generation module is built:Simulation Application code generation module is according to object class interaction figure, by involved by Simulation object file described and simulation interactive information describes file and carries out data fusion, obtain Simulation Application and describe file, into And Simulation Application code is generated for specific simulation engine according to this document;
The step (3) the specific steps are:
(3.1) the corresponding simulation object model resource panel of structure simulation object model management module;
(3.2) it creates and has loaded simulation object model list LoadedList, be initially empty;
(3.3) simulation object model list TobeLoadList to be loaded is created, is initially simulation object model resource file In all simulation object model files folder;
(3.4) judge whether TobeLoadList is sky, if it is emptyIt then goes to step (3.8);
(3.5) a simulation object model file folder is chosen from TobeLoadList, parses the simulation object in this document folder Model describes file, and the data content that simulation object model describes file is determined by simulation object meta model;
(3.6) simulation object model pel is shown in simulation object model resource panel;
(3.7) the simulation object model from TobeLoadList is rejected, is added in LoadedList, goes to step (3.4);
(3.8) Simulation Calculation resource management module structure is completed;Simulation Calculation refer to simulated system, process or The computer program of function is realized.
2. the Simulation Application visualization the integration environment implementation method according to claim 1 based on object class interaction figure, It is characterized in that, in the step (1), simulation object meta-model includes the information that description simulation object must include, main to wrap Include property set, event set, interaction collection and port collection, be respectively used to the attribute of tissue simulation object, simulated events, alternative events and Port;Simulated events, alternative events all include input parameter collection and computation model collection, these set are related to event/interaction Internal processing logic;The simulated events, alternative events all with port association, they by port for other object references or Call event/interaction of other objects.
3. the Simulation Application visualization the integration environment implementation method according to claim 2 based on object class interaction figure, It is characterized in that, in the step (1), simulation interactive meta model includes what description Simulation Application interactive relation must include Information, described information include simulation object collection, scheduling events collection and scheduling interaction collection set.
4. the visualization the integration environment of the Simulation Application based on the object class interaction figure realization side according to claims 1 or 2 or 3 Method, which is characterized in that the step (2) the specific steps are:
(2.1) the interactive operation component pel display panel of interaction component management module is built;
(2.2) scheduling events pel is loaded on interactive operation component pel display panel;
(2.3) judge whether scheduling events pel loads successIf it is not, then go to step (2.6);
(2.4) the loading scheduling interaction pel on interactive operation component pel display panel;
(2.5) judge whether scheduling interaction pel loads successIf so, go to step (2.7);If it is not, then go to step (2.6);
(2.6) prompting emulation pel loading failure, is exited;
(2.7) simulation object function package pel panel structure is completed.
5. the visualization the integration environment of the Simulation Application based on the object class interaction figure realization side according to claims 1 or 2 or 3 Method, which is characterized in that the step (4) the specific steps are:
(4.1) Simulation Application visual assembly panel is built;
(4.2) scheduling events visual configuration panel is built, is supported visual by double-clicking scheduling events pel pop-up scheduling events Change configured board, the visual configuration to dispatching event information is supported, including source/target object class, source/target port, emulation Time, schedulable condition and input parameter;
(4.3) structure scheduling interactive visual configured board is supported visual by double-clicking scheduling interaction pel pop-up scheduling interaction Change configured board, the visual configuration to dispatching interactive information is supported, including source/target object class, source/target port, emulation Time, schedulable condition and input parameter.
6. the visualization the integration environment of the Simulation Application based on the object class interaction figure realization side according to claims 1 or 2 or 3 Method, which is characterized in that the step (5) the specific steps are:
(5.1) analysis object interaction figure, generation simulation interactive information describe file, and simulation interactive information is described in the data of file Appearance is determined by Simulation Application interactive information meta-model;
(5.2) parsing simulation interactive information describes file and simulation object describes file, and object interaction information is embedded into emulation In the event of object/interaction list, Simulation Application description information SimAppInfo is obtained;
(5.3) scanning Simulation Application description information SimAppInfo generations source code;
(5.4) all simulation object classes are articulated in principal function, terminated.
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 CN104268346A (en) 2015-01-07
CN104268346B true 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)

Families Citing this family (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
CN106777450B (en) * 2016-11-04 2020-10-20 中软信息***工程有限公司 Model description and generation method supporting combined model
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
CN110765592B (en) * 2019-10-09 2023-08-25 成都天和讯达科技有限公司 Simulation model, design method and information updating method thereof, equipment and storage medium
CN113254157B (en) * 2021-06-04 2023-07-28 北京世冠金洋科技发展有限公司 Batch simulation control method and device and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3862509B2 (en) * 2001-03-13 2006-12-27 キヤノン株式会社 Design support apparatus, design support method, recording medium, and program

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
"Reusable Component Model Development Approach for Parallel and Distributed Simulation";Feng Zhu等;《The Scientific World Journal》;20140303;第2014卷(第11期);正文第1页第1节,第5-6页第4节,第8-9页第6节,表1,图9 *
"基于YH-SUPE的并行离散事件仿真组件调试技术研究";朱峰;《中国优秀硕士学位论文全文数据库信息科技辑》;20120116(第2期);正文第50-52页第4.4.3节,图4.13 *
"并行离散事件仿真集成开发环境的设计与实现";解海涛等;《***仿真学报》;20090730;第21卷(第13期);第3929-3932页 *

Also Published As

Publication number Publication date
CN104268346A (en) 2015-01-07

Similar Documents

Publication Publication Date Title
CN104268346B (en) A kind of implementation method of the Simulation Application visualization the integration environment based on object class interaction figure
Arayici et al. Interoperability specification development for integrated BIM use in performance based design
Kang et al. BIM perspective definition metadata for interworking facility management data
Bracewell et al. Capturing design rationale
CN105027126B (en) The real-time analytical framework of metadata driven
WO2022048156A1 (en) Pumped storage power station comprehensive management method, platform and system, device and medium
Chen et al. A framework for an automated and integrated project scheduling and management system
CN104268002B (en) A kind of simulation object visual development environment implementation method based on port encapsulation
CN106504088A (en) A kind of method and system that realizes quantifying transaction in removable computing device
CN111695443B (en) Intelligent traffic artificial intelligence open platform, method, medium and electronic device
Berwal et al. Computer Applications in Engineering and Management
Marir et al. OSCONCAD: A model-based CAD system integrated with computer applications
Fernández-Isabel et al. Modeling multi-agent systems to simulate sensor-based Smart Roads
CN104732310A (en) Data integration method based on unified data model
Kong et al. Specifying behavioral semantics of UML diagrams through graph transformations
CN115062463B (en) Modeling system based on demonstration structure modeling language
CN112069580A (en) Digital delivery method, platform, system, equipment and medium for pumped storage power station
Clayton et al. Interpretation objects for multi-disciplinary design
Krämer et al. Domain-Specific Languages For Agile Urban Policy Modelling.
Design et al. MIT Architecture
Khattra et al. A statistical review to study the structural stability of buildings using building information modelling
CN114707429B (en) EAR-based executable modeling method, apparatus, computer device and medium
CN106446382B (en) The mathematics library of domain-oriented entity and analysis system and its implementation
Lu et al. Integration of four-dimensional computer-aided design modeling and three-dimensional animation of operations simulation for visualizing construction of the main stadium for the Beijing 2008 Olympic games
Khan et al. Applying the CoReS requirements development method for building IT tools for urban management systems: The UrbanAPI project

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