CN105069205A - Method for realizing visual development environment of simulation object based on port encapsulation - Google Patents

Method for realizing visual development environment of simulation object based on port encapsulation Download PDF

Info

Publication number
CN105069205A
CN105069205A CN201510442400.2A CN201510442400A CN105069205A CN 105069205 A CN105069205 A CN 105069205A CN 201510442400 A CN201510442400 A CN 201510442400A CN 105069205 A CN105069205 A CN 105069205A
Authority
CN
China
Prior art keywords
event
simulation object
information
port
simulation
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.)
Pending
Application number
CN201510442400.2A
Other languages
Chinese (zh)
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.)
Jiangsu Province Public Information Co ltd
Original Assignee
Jiangsu Province Public Information Co ltd
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 Jiangsu Province Public Information Co ltd filed Critical Jiangsu Province Public Information Co ltd
Priority to CN201510442400.2A priority Critical patent/CN105069205A/en
Publication of CN105069205A publication Critical patent/CN105069205A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

The invention discloses a method for realizing a visual development environment of a simulation object based on port encapsulation, which comprises the following steps: designing the structure of a simulation object description file; configuring simulation object related information and attribute variables in a configuration area; dragging the graphic primitives from the graphic primitive library to an editing panel to edit the simulation object; configuring related information of a primitive in the simulation object; and generating a simulation object description file. The invention utilizes the port to package the simulation object, and the interaction between the simulation objects can be realized by the port, thereby greatly improving the independence of the simulation object, being beneficial to the independent development of the simulation object, simultaneously, the developed simulation object can be flexibly used for assembling the simulation application, and greatly improving the reusability of the simulation object.

Description

A kind of simulation object visual development environment implementation method based on port encapsulation
Technical field
The present invention relates to wireless technology field, be specifically related to a kind of simulation object visual development environment implementation method based on port encapsulation.
Background technology
Scale complex system often comprises numerous entities, 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 simulation object to simulate entity; (2) integrated emulation object simulates entity interaction.As can be seen here, how fast Development is easy to integrated simulation object is realize Simulation Application Efficient Development basic.And in Discrete Event Simulation System, a simulation object often comprises multiple computation model, and these computation models are encapsulated in event, and simulation object excites the calculating of computation model by the mode of event scheduling, thus realize the amendment to state.Described simulation object both can a corresponding concrete physical entity, as the airplane in military combat, also can a corresponding abstract object, and as the Truck dispartching timetable of in traffic simulation.
Adopting traditional-handwork to write code means exploitation simulation object needs developer to be familiar with corresponding emulation platform, grasp corresponding programming language, proposes higher requirement, meanwhile, development efficiency is low, easily makes mistakes, reusability is poor to developer.Method for visualizing then provides and develops view intuitively, can effectively solve the problem, but, alternately complicated owing to also existing between simulation object, each simulation object is closely coupled, so that often need when developing single simulation object to consider the dependence between other simulation objects, have a strong impact on the development efficiency of simulation object, often apply with particular dummy due to the interactive relation between simulation object simultaneously and be closely related, this just makes simulation object be difficult in different Simulation Application, reuse or need to carry out larger amendment to be just used in different Simulation Application, significantly limit the reusability of simulation object.Therefore the Focal point and difficult point developing simulation object is how to encapsulate simulation object and provides one interactive mode flexibly, is convenient to the stand-alone development of simulation object and integrated, thus improves development efficiency and the reusability of simulation object.
In order to solve the problem being difficult to carry out stand-alone development to simulation object and reuse, carry out correlative study both at home and abroad, that representative is a model visualization developing instrument Viskit based on assembly that research institute of USN develops, its first use case figure mode developer component, then by monitoring mechanism, assembling components is become model, weaken the coupled relation between assembly, drastically increase independence and the reusability of assembly.But its " monitoring " assembly, together with " monitored " component binding, need use in pairs, often needs some to revise if be used alone one of them, for user directly, its reusability can not be limited.The present invention proposes a kind of implementation method of the discrete event simulation objects visual development environment based on port encapsulation, effectively can improve independence and the reusability of simulation object.
Summary of the invention
The object of the invention is to solve the problem being difficult in complex simulation application carry out stand-alone development to simulation object and reuse, a kind of implementation method of the discrete event simulation objects visual development environment based on port encapsulation is proposed, making it possible to stand-alone development simulation object and the simulation object developed can flexibly for assembling different Simulation Application, promoting the reusability of simulation object.The present invention utilizes port to encapsulate simulation object, and can realize mutual between each simulation object by port, drastically increase the independence of simulation object, be conducive to the stand-alone development of simulation object, simultaneously, the simulation object developed can be used for assembling Simulation Application neatly, greatly increases the reusability of simulation object.
Based on a simulation object visual development environment implementation method for port encapsulation, comprise the steps:
The structure of step one, design and simulation object factory file
Simulation object logical description information 1.1 comprises essential information, attribute information, initialization information, event information and port information, and the structure of therefore corresponding simulation object description document includes simulation object essential information, property set, first initial set, event set and sets of ports;
Step 2, in configuring area configuration simulation object relevant information and attribute variable;
Step 3, from pel storehouse, dilatory pel edits simulation object to editor's panel;
The relevant information of pel in step 4, configuration simulation object;
Step 5, generation simulation object description document.
Configuration information during such structure simulation object is all kept in simulation object description document, can be used to generate the code adapting to different platform.
Further, in described step 1, described simulation object essential information comprises other information such as simulation object title, type and function; Described simulation object property set is the set of attribute variable in simulation object; Described simulation object just initial set is the set of initial schedule event, and every bar scheduling events information comprises event attribute, scheduling attributes and Parameter transfer; Described simulation object event set is the set of event in simulation object, and each event comprises event attribute, input parameter collection, local parameter collection, scheduling events collection, cancels event set.Wherein, event attribute comprises event title, event handler etc.; Input parameter collection is the set of event input parameter; Local parameter collection is the set of event inner parameter; Scheduling events collection refers to the set of these other events of event scheduling, and every bar scheduling events information is as described in simulation object initial set; Cancel event set refer to this event cancel the set of scheduling events, every bar is cancelled event information and is comprised and cancelled the set of event and cancel condition etc.; Described simulation object sets of ports is the set of simulation object middle port, the information ports having title of each port and associated event title thereof.
Further, it is characterized in that, in described step 4, click event pel, configuration event relevant information, comprising: event title, Event Function, event input parameter, event local parameter; Click event scheduling pel, configures the schedule information that this event scheduling line is corresponding; Event pel is cancelled in click, configure this cancel event corresponding cancel condition, cancelled the event attribute of event; Click port pel, the title of configured port, type and the correlating event thereof of port then generate automatically.
Simulation object logical description information 1.1 comprises essential information 1.1.1, attribute information 1.1.2, initialization information 1.1.3, event information 1.1.4 and port information 1.1.5, includes the essential information collection 2.1 of simulation object, simulation object property set 2.2, simulation object just initial set 2.3, simulation object event set 2.4 and simulation object sets of ports 2.5 in the structure of therefore simulation object description document.
The essential information collection 2.1 of simulation object comprises simulation object title, simulation object type and simulation object function.
The property set 2.2 of simulation object is the set of attribute variable in simulation object.
The first initial set 2.3 of simulation object is the set of scheduling events, comprises event attribute (as event title, event handler etc.), scheduling attributes (as scheduling delay, dispatching priority, schedulable condition etc.) and Parameter transfer (namely to the event transfer parameter that is scheduled) in every bar scheduling events.
The event set 2.4 of simulation object comprises event attribute, input parameter collection, local parameter collection, scheduling events collection and cancels event set.
Event attribute comprises event title and event handler; Described input parameter collection is the set of event input parameter; Local parameter collection is the set of event inner parameter; Scheduling events collection refers to that scheduling events dispatches the set of other events; Cancel event set refer to the event of cancelling cancel the set of scheduling events, every bar is cancelled event information and is also comprised and cancelled the set of event and cancel condition.
The sets of ports 2.5 of simulation object is the set of simulation object middle port, and the packets of information of each port contains port title and associated event title etc. thereof.
2, configuring area configuration simulation object relevant information and attribute variable
3, from pel storehouse, dilatory pel edits simulation object to editor's panel
4, the relevant information of pel in simulation object is configured
Click event pel, can configuration event relevant information, comprising: event title, Event Function, event input parameter, event local parameter etc.;
Compared with prior art, the present invention utilizes port to encapsulate simulation object, and can realize mutual between each simulation object by port, drastically increase the independence of simulation object, be conducive to the stand-alone development of simulation object, meanwhile, the simulation object developed can be used for assembling Simulation Application neatly, greatly increases the reusability of simulation object.
Accompanying drawing explanation
Below in conjunction with drawings and Examples, the invention will be further described, in accompanying drawing:
Fig. 1 is simulation object schematic diagram of the present invention.
Fig. 2 is simulation object logical description message structure schematic diagram of the present invention.
Fig. 3 is visual development environmental interface of the present invention composition schematic diagram.
Fig. 4 is the one-piece construction schematic diagram of simulation object description document of the present invention.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.In addition, if below in described each embodiment of the present invention involved technical characteristic do not form conflict each other and just can mutually combine.
The present invention proposes a kind of implementation method of the discrete event simulation objects visual development environment based on port encapsulation, achieves the individual packages to simulation object, is conducive to the independence and the reusability that improve simulation object.
Visual development environment as shown in Figure 3, is made up of Accessorial Tools Storage, pel district, editing area, configuring area.Wherein Accessorial Tools Storage provide newly-built, open, preserve, amplify, the function such as to reduce; Pel district provides and utilizes this development environment to develop pel needed for simulation object, comprises primary event pel, event pel, scheduling events pel, cancels event pel and the pel such as input port pel and output port pel; Editing area is used for visual edit simulation object, and pel district pel can " be drawn " to editing area and configure relevant information and be carried out simulation object exploitation by user; Configuring area for configuring simulation object attribute, as simulation object title, function, attribute variable etc.
Development procedure is specific as follows:
1, the structure of design and simulation object factory file
Simulation object logical description information 1.1 comprises essential information 1.1.1, attribute information 1.1.2, initialization information 1.1.3, event information 1.1.4 and port information 1.1.5, the structure of therefore corresponding simulation object description document includes simulation object essential information 2.1, property set 2.2, first initial set 2.3, event set 2.4 and sets of ports 2.5, as shown in Figure 4.
● described simulation object essential information 2.1 comprises other information such as simulation object title, type and function.
● described simulation object property set 2.2 is the set of attribute variable in simulation object.
● described simulation object just initial set 2.3 is set of initial schedule event, and every bar scheduling events information comprises event attribute (as event title, event handler etc.), scheduling attributes (as scheduling delay, dispatching priority, schedulable condition etc.) and Parameter transfer (namely to the event transfer parameter that is scheduled).
● described simulation object event set 2.4 is set of event in simulation object, and each event comprises event attribute, input parameter collection, local parameter collection, scheduling events collection, cancels event set.Wherein, event attribute comprises event title, event handler etc.; Input parameter collection is the set of event input parameter; Local parameter collection is the set of event inner parameter; Scheduling events collection refers to the set of these other events of event scheduling, and every bar scheduling events information is if simulation object is just described in initial set 2.3; Cancel event set refer to this event cancel the set of scheduling events, every bar is cancelled event information and is comprised and cancelled the set of event and cancel condition etc.
● described simulation object sets of ports 2.5 is set of simulation object middle port, the information ports having title of each port and associated event title etc. thereof.
2, configuring area configuration simulation object relevant information and attribute variable
3, from pel storehouse, dilatory pel edits simulation object to editor's panel
4, the relevant information of pel in simulation object is configured
● click event pel, can configuration event relevant information, comprising: event title, Event Function, event input parameter, event local parameter etc.;
● click event scheduling pel (oriented solid line), the schedule information that this event scheduling line is corresponding can be configured, as the argument, scheduling delay, dispatching priority, schedulable condition etc. of the event input parameter that is scheduled, the attribute (as event title, event handler) of the event that is scheduled then generates automatically.
● click cancel event pel (oriented dotted line), can configure this cancel event corresponding cancel condition, cancelled the event attribute of event (as event title, event handler) and then automatically generated.
● click port pel, can the title of configured port, type and the correlating event thereof of port then generate automatically.Should be noted when using port: if there is event A to scheduled the event of other simulation objects in simulation object, then out have a company to the line of " output port " from event A; If event A scheduled the event in other simulation objects multiple, then out there are many companies to the line (event scheduling line and " output port " one_to_one corresponding) of " output port " from event A; If event A is by the event scheduling in other simulation objects, then a line of drawing from " input port " is had to connect to event A.In described simulation object, the scheduling relation between the line presentation of events between event and event, needs the relevant schedulable condition of configuration; Meanwhile, when the existing simulation object of use side cause for gossip mutual, the line between port represents the scheduling relation between corresponding event, needs configuration schedules information.
In addition, in simulation object, have and only have a primary event pel, for the event of first in scheduling simulation object, and initialization simulation object attribute, for scheduling events prepares parameter.
5, simulation object description document is generated
Configuration information during such structure simulation object is all kept in simulation object description document, can be used to generate the code adapting to different platform.
1, the structure of design and simulation object factory file
Simulation object logical description information 1.1 comprises essential information 1.1.1, attribute information 1.1.2, initialization information 1.1.3, event information 1.1.4 and port information 1.1.5, includes the essential information collection 2.1 of simulation object, simulation object property set 2.2, simulation object just initial set 2.3, simulation object event set 2.4 and simulation object sets of ports 2.5 in the structure of therefore simulation object description document.
The essential information collection 2.1 of simulation object comprises simulation object title, simulation object type and simulation object function.
The property set 2.2 of simulation object is the set of attribute variable in simulation object.
The first initial set 2.3 of simulation object is the set of scheduling events, comprises event attribute (as event title, event handler etc.), scheduling attributes (as scheduling delay, dispatching priority, schedulable condition etc.) and Parameter transfer (namely to the event transfer parameter that is scheduled) in every bar scheduling events.
The event set 2.4 of simulation object comprises event attribute, input parameter collection, local parameter collection, scheduling events collection and cancels event set.
Event attribute comprises event title and event handler; Described input parameter collection is the set of event input parameter; Local parameter collection is the set of event inner parameter; Scheduling events collection refers to that scheduling events dispatches the set of other events; Cancel event set refer to the event of cancelling cancel the set of scheduling events, every bar is cancelled event information and is also comprised and cancelled the set of event and cancel condition.
The sets of ports 2.5 of simulation object is the set of simulation object middle port, and the packets of information of each port contains port title and associated event title etc. thereof.
2, configuring area configuration simulation object relevant information and attribute variable
3, from pel storehouse, dilatory pel edits simulation object to editor's panel
4, the relevant information of pel in simulation object is configured
Click event pel, can configuration event relevant information, comprising: event title, Event Function, event input parameter, event local parameter etc.;
Click event scheduling pel (oriented solid line), the schedule information that this event scheduling line is corresponding can be configured, as the argument, scheduling delay, dispatching priority, schedulable condition etc. of the event input parameter that is scheduled, the attribute (as event title, event handler) of the event that is scheduled then generates automatically.
Event pel (oriented dotted line) is cancelled in click, can configure this cancel event corresponding cancel condition, cancelled the event attribute of event (as event title, event handler) and then automatically generated.
Click port pel, can the title of configured port, type and the correlating event thereof of port then generate automatically.Should be noted when using port: if there is event A to scheduled the event of other simulation objects in simulation object, then out have a company to the line of " output port " from event A; If event A scheduled the event in other simulation objects multiple, then out there are many companies to the line (event scheduling line and " output port " one_to_one corresponding) of " output port " from event A; If event A is by the event scheduling in other simulation objects, then a line of drawing from " input port " is had to connect to event A.In described simulation object, the scheduling relation between the line presentation of events between event and event, needs the relevant schedulable condition of configuration; Meanwhile, when the existing simulation object of use side cause for gossip mutual, the line between port represents the scheduling relation between corresponding event, needs configuration schedules information.
In addition, in simulation object, have and only have a primary event pel, for the event of first in scheduling simulation object, and initialization simulation object attribute, for scheduling events prepares parameter.
Fig. 3 is visual development environmental interface of the present invention composition schematic diagram, is made up of toolbar, pel storehouse, editing area, configuring area.Wherein toolbar provide newly-built, open, preserve, amplify, the function such as to reduce; Pel storehouse provides and utilizes this development environment to develop pel needed for simulation object, comprises primary event pel, event pel, scheduling events pel, cancels the pels such as event pel, input port pel and output port pel; Editing area is used for visual edit simulation object, and pel district pel can " be drawn " to editing area and configure relevant information and be carried out simulation object exploitation by user; Configuring area for configuring simulation object attribute, as simulation object title, function, attribute variable etc.
Those skilled in the art will readily understand; the foregoing is only preferred embodiment of the present invention; not in order to limit the present invention, all any amendments done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.

Claims (3)

1., based on a simulation object visual development environment implementation method for port encapsulation, it is characterized in that, comprise the steps:
The structure of step one, design and simulation object factory file
Simulation object logical description information 1.1 comprises essential information, attribute information, initialization information, event information and port information, and the structure of therefore corresponding simulation object description document includes simulation object essential information, property set, first initial set, event set and sets of ports;
Step 2, in configuring area configuration simulation object relevant information and attribute variable;
Step 3, from pel storehouse, dilatory pel edits simulation object to editor's panel;
The relevant information of pel in step 4, configuration simulation object;
Step 5, generation simulation object description document.
Configuration information during such structure simulation object is all kept in simulation object description document, can be used to generate the code adapting to different platform.
2., as claimed in claim 1 based on the simulation object visual development environment implementation method of port encapsulation, it is characterized in that, in described step 1, described simulation object essential information comprises other information such as simulation object title, type and function; Described simulation object property set is the set of attribute variable in simulation object; Described simulation object just initial set is the set of initial schedule event, and every bar scheduling events information comprises event attribute, scheduling attributes and Parameter transfer; Described simulation object event set is the set of event in simulation object, and each event comprises event attribute, input parameter collection, local parameter collection, scheduling events collection, cancels event set.Wherein, event attribute comprises event title, event handler etc.; Input parameter collection is the set of event input parameter; Local parameter collection is the set of event inner parameter; Scheduling events collection refers to the set of these other events of event scheduling, and every bar scheduling events information is as described in simulation object initial set; Cancel event set refer to this event cancel the set of scheduling events, every bar is cancelled event information and is comprised and cancelled the set of event and cancel condition etc.; Described simulation object sets of ports is the set of simulation object middle port, the information ports having title of each port and associated event title thereof.
3. as claimed in claim 1 or 2 based on the simulation object visual development environment implementation method of port encapsulation, it is characterized in that, in described step 4, click event pel, configuration event relevant information, comprising: event title, Event Function, event input parameter, event local parameter; Click event scheduling pel, configures the schedule information that this event scheduling line is corresponding; Event pel is cancelled in click, configure this cancel event corresponding cancel condition, cancelled the event attribute of event; Click port pel, the title of configured port, type and the correlating event thereof of port then generate automatically.
CN201510442400.2A 2015-07-24 2015-07-24 Method for realizing visual development environment of simulation object based on port encapsulation Pending CN105069205A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510442400.2A CN105069205A (en) 2015-07-24 2015-07-24 Method for realizing visual development environment of simulation object based on port encapsulation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510442400.2A CN105069205A (en) 2015-07-24 2015-07-24 Method for realizing visual development environment of simulation object based on port encapsulation

Publications (1)

Publication Number Publication Date
CN105069205A true CN105069205A (en) 2015-11-18

Family

ID=54498571

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510442400.2A Pending CN105069205A (en) 2015-07-24 2015-07-24 Method for realizing visual development environment of simulation object based on port encapsulation

Country Status (1)

Country Link
CN (1) CN105069205A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102385762A (en) * 2011-10-20 2012-03-21 上海交通大学 Modelica integrated three-dimensional scene simulation system
CN102982209A (en) * 2012-12-03 2013-03-20 哈尔滨工业大学深圳研究生院 Space network visual simulation system and method based on HLA (high level architecture)
CN104268346A (en) * 2014-09-30 2015-01-07 中国人民解放军国防科学技术大学 Implementation method for simulation application of visual integrated environment on basis of object class interaction diagrams
CN104268002A (en) * 2014-09-30 2015-01-07 中国人民解放军国防科学技术大学 Simulation object visual development environment implementation method based on port encapsulation

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102385762A (en) * 2011-10-20 2012-03-21 上海交通大学 Modelica integrated three-dimensional scene simulation system
CN102982209A (en) * 2012-12-03 2013-03-20 哈尔滨工业大学深圳研究生院 Space network visual simulation system and method based on HLA (high level architecture)
CN104268346A (en) * 2014-09-30 2015-01-07 中国人民解放军国防科学技术大学 Implementation method for simulation application of visual integrated environment on basis of object class interaction diagrams
CN104268002A (en) * 2014-09-30 2015-01-07 中国人民解放军国防科学技术大学 Simulation object visual development environment implementation method based on port encapsulation

Similar Documents

Publication Publication Date Title
Andersson et al. Experience from introducing unified modeling language/systems modeling language at saab aerosystems
CN104679488A (en) Flow path customized development platform and method
CN102004635B (en) Simulation model system supporting reusing and development method thereof
US20070038416A1 (en) Model independent simulation
CN103885782A (en) Visual programming page program library function packaging and reusing method
CN106599398A (en) Simulation method and apparatus of space-ground integrated management system
CN107293182A (en) A kind of vehicle teaching method, system and terminal device based on VR
CN104268002A (en) Simulation object visual development environment implementation method based on port encapsulation
Handley et al. Maintaining the consistency of sysml model exports to XML metadata interchange (XMI)
CN102141917A (en) Method for realizing multi-service linkage based on IronPython script language
US20160098023A1 (en) System for metamodeling transformation
CN106897120B (en) Double-layer dynamic distributed simulation platform
CN105069205A (en) Method for realizing visual development environment of simulation object based on port encapsulation
Schweizer Sumopy: an advanced simulation suite for sumo
CN104933267A (en) Behavior logic modeling method of industrial electronic system
Kuhn et al. A simulator coupling architecture for the creation of digital twins
CN106293643A (en) The flowing water type product manufacturing equipment software and hardware integration modeling method of model configuration
Queck et al. Runtime infrastructure for simulating vehicle-2-x communication scenarios
CN111291444B (en) Modeling method, device, equipment and storage medium for aircraft assembly
KR101362838B1 (en) Devs-based distributed simulation system using global coordinator
CN110874508A (en) Simulation scene construction method and device
Hamri et al. On using design patterns for DEVS modeling and simulation tools
DeBuhr et al. Model transformation across DEVS and event graph formalisms
Fratini et al. A service oriented approach for the interoperability of space mission planning systems
Ferrogalini et al. How to boost the extended enterprise approach in engineering using mbse–a case study from the railway business

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20151118