CN103646134B - A kind of service-oriented networking analogue system dynamic creation method - Google Patents

A kind of service-oriented networking analogue system dynamic creation method Download PDF

Info

Publication number
CN103646134B
CN103646134B CN201310624321.4A CN201310624321A CN103646134B CN 103646134 B CN103646134 B CN 103646134B CN 201310624321 A CN201310624321 A CN 201310624321A CN 103646134 B CN103646134 B CN 103646134B
Authority
CN
China
Prior art keywords
artificial resource
artificial
resource
integrated framework
simulation federation
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
CN201310624321.4A
Other languages
Chinese (zh)
Other versions
CN103646134A (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.)
CETC 28 Research Institute
Original Assignee
CETC 28 Research Institute
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 CETC 28 Research Institute filed Critical CETC 28 Research Institute
Priority to CN201310624321.4A priority Critical patent/CN103646134B/en
Publication of CN103646134A publication Critical patent/CN103646134A/en
Application granted granted Critical
Publication of CN103646134B publication Critical patent/CN103646134B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of service-oriented networking analogue system dynamic creation method, comprise the following steps: step a: artificial resource exploitation and registration are shared;Step b: simulation federation requirement description;Step c: simulation federation dynamically generates;In step a, described artificial resource refers to that meeting user emulates demand, reusable software program module, and this module meets 7 class interface requirements;In step b, according to simulation federation requirement description specification, use simulation federation requirement description language, carry out the description of simulation federation;In step c, access including artificial resource, service end integrated framework responds two subprocess of simulation federation request to create.The present invention uses the mode based on describing to generate simulation federation, when emulation demand changes, can revise emulation demand configuration file flexibly, it is possible to regenerate simulation federation.

Description

A kind of service-oriented networking analogue system dynamic creation method
Technical field
The present invention relates to a kind of computer information processing field, a kind of service-oriented net based on HLA specification Network analogue system dynamic creation method.
Background technology
Current distributing emulation system is in compliance with HLA mostly, and (High Level Architecture, high coating systems is tied Structure) specification structure, HLA is that it does not has spy towards the customization of concrete artificial tasks demand and exploitation simulation federation system The other artificial resource to lower floor provides corresponding specification, so that the utilization rate of artificial resource is the lowest, particularly in money Breaking down in source, can affect the properly functioning of system when resource load serious unbalance.Along with emulation technology is in army Going deep into of thing field application, artificial resource heterogeneous, interface are different, including language, operating system and hardware platform And the isomerism between HLA analogue system and non-HLA analogue system, these all enter one to distributing emulation system Walk realization cross-cutting, cross-platform, cross-region and bring difficulty, accordingly, it would be desirable to a kind of effective method is to emulation money Source organizes and manages.Meanwhile, in order to realize effectively sharing and reusing between all kinds of Heterogeneous simulation resource, for Different artificial tasks rapid build simulation federation systems, needs to study the combined method of Heterogeneous simulation resource.
Tissue, management and combined method for artificial resource have carried out correlational study the most both at home and abroad.2002 Year modeling and simulation office of U.S. Department of Defense (DMSO) proposes the research of combined Mission space environment (CMSE) Proposal, it is intended to implementation model and the flexible Rapid Combination of emulation.Emulation composability refers to select emulation component, and presses It is combined into effective analogue system to meet the ability of particular user requirements according to different modes.Singapore's Nan Yang science and engineering is big Wentong doctor Cai learned and partner thereof expand HLA and transplant and resource management in mesh emulation to mesh services Research, achieve important achievement.The uncle tiger academician space flight Second Academy of China Li expands and grid is used for complex product works in coordination with Design and the research of emulation, and design achieves grid-based simulation platform Cosim-grid.Research shows, by net Lattice technology improves the reusability of modeling and simulation, interoperability and composability and has become the heat in emulation/modeling field Door studies a question.
Summary of the invention
Goal of the invention: the technical problem to be solved is for the deficiencies in the prior art, it is provided that a kind of towards clothes The networking analogue system dynamic creation method of business.
In order to solve above-mentioned technical problem, the invention discloses a kind of service-oriented networking analogue system and dynamically generate Method, comprises the following steps:
Step a: artificial resource exploitation and registration are shared;
Step b: simulation federation requirement description;
Step c: simulation federation dynamically generates.
In step a, described artificial resource refer to meet user emulate demand, can reusable software program module, This module meets 7 class interface requirements;Client artificial resource integrated framework is by managing the loading of artificial resource and monitoring Reason, provides for dynamic creation simulation federation and supports;Artificial resource specification is exploitation artificial resource and client emulation Artificial resource is loaded and integrated foundation by framework;Work out according to artificial resource Normalization rule foundational development storehouse Artificial resource, is then deployed in a certain service end node on network by the artificial resource of exploitation, carries out artificial resource and shares.
Specifically, 7 class interfaces that the artificial resource that artificial resource specification of the present invention specifies must realize, respectively: (1) Artificial resource lifecycle management interface, actively accesses for artificial resource or exits client integrated framework, or visitor Family end integrated framework creates and destroys artificial resource example;(2) artificial resource initialization interface, integrated for client Framework performs the initialization operation of respective conditions according to the demand of each simulation federation to artificial resource;(3) artificial resource Information sequence and unserializing interface, preserve for client integrated framework and recover mutual right between artificial resource The attribute of elephant, method, event and data message;(4) artificial resource name management interface, for the integrated frame of client The service name dynamically produced, ID, identity type information are managed collectively in artificial resource running by frame;(5) Artificial resource clock sync cap, for calling that artificial resource request clock propelling, clock synchronize;(6) emulation money Source data updates, acquisition interface, for client integrated framework by updating and obtaining, and incoming and derivation interface display Service Instance related data information;(7) interface is shared in artificial resource registration, registers for artificial resource and issues self Functional Unit data message, is safeguarded by the management of service end integrated framework.
Step b, simulation federation requirement description: this step provides a kind of simulation federation requirement description specification and emulation demand to retouch Predicate speech SFRDL(Simulation Federation Requirement Description Language).This step foundation Artificial resource requirement description specification, uses simulation federation requirement description language, carries out the description of simulation federation;Emulation collection One-tenth personnel pass through text editor or visualization interface edit tool, generate simulation federation requirement description file, this article Part describes the information of interactive object between artificial resource that simulation federation comprised, service relation and service each other; If generation changes in demand, simulation federation requirement description file can be modified by Integration of Simulation personnel;Finally this is imitated Very federal requirement description file is deployed in a certain service end node on network, carries out simulation federation requirement description file consolidation Management.
Step c, the dynamic generation step of simulation federation: this process is made up of two subprocess: (1) artificial resource accessed Journey: after artificial resource starts, call client integrated framework interface, sends access request to client integrated framework, Complete to client integrated framework access procedure;Client integrated framework after receiving the access request of artificial resource, Send the identification information of this artificial resource to service end integrated framework, notice this artificial resource of service end integrated framework accesses; After service end integrated framework receives the artificial resource access notice that client integrated framework sends, preserve the imitative of this access The identification information of true resource;(2) service end integrated framework response simulation federation request to create: Integration of Simulation personnel submit wound to Build simulation federation request, dynamically submit to required simulation federation to describe file, service integration framework dynamic creation kernel service Run module;Resolve and generate the artificial resource list participating in simulation federation, obtain artificial resource initialization information, notice This artificial resource is initialized by the client integrated framework of this artificial resource place node;Resolve and generate difference emulation Interactive relation between resource and interactive object relation, dynamically send information subscribing relation to kernel service, and to client End integrated framework synchronizes the information subscribing relation of this artificial resource.If local corresponding artificial resource does not access, visitor The artificial resource identification information that family end integrated framework will synchronize according to service end integrated framework, automatically in local emulation resource List is searched for, and this artificial resource is started and completes to access and initialization operation.
In described step c, the method uses the architecture of network-oriented, but is not limited to traditional client and service The one-one relationship of end, can be the relation of one-to-many, many-one, multi-to-multi;One service end integrated framework is permissible Corresponding multiple client integrated frameworks, it is achieved to multiple artificial resources of management integrated in multiple client integrated frameworks; Equally, can also be the most mutual with multiple service end integrated frameworks for a client integrated framework, it is achieved emulation money It is integrated that source participates in different multiple simulation federations.
The above subprocess artificial resource of the present invention accesses, and specifically comprises the following steps that
Artificial resource calls described artificial resource Life cycle interface, registers to client integrated framework, and sends this Artificial resource identifies;
After client integrated framework receives the access message of artificial resource, in artificial resource access list, newly-increased this is imitated True resource record, is set to this simulation status the free time, and reports this artificial resource state to believe to service end integrated framework Breath;
After service end integrated framework receives the artificial resource status information that client integrated framework sends, update emulation money Source status information.
The above subprocess service end integrated framework of present invention response simulation federation request to create, specifically comprises the following steps that
Step (1), service end integrated framework receives the solicited message creating simulation federation, wraps according in request to create The mark of the simulation federation contained, read simulation federation configuration file, formed kernel service list, artificial resource list, Simulation federation interactive relation list, simulation federation interactive object list;Kernel service list comprises core COS, quantity;In artificial resource list, comprise artificial resource base attribute, initialization information;
Step (2), the traversal kernel service list of service end integrated framework, read the type of kernel service;
Step (3), service end integrated framework is according to kernel service type, dynamic creation kernel service example;
Step (4), if kernel service list traversal terminates, goes to step (5);Otherwise, (2) are gone to step;
Step (5), the traversal artificial resource list of service end integrated framework, read artificial resource essential information;
Step (6), service end integrated framework is according to artificial resource essential information, the artificial resource that traverse service end is safeguarded State table, obtains corresponding artificial resource state;If this artificial resource is online, and it is in idle ready state, Then notify that the client integrated framework on this node initializes this artificial resource;If this emulation does not also access, then should Artificial resource mark is sent to client integrated framework, client integrated framework start this artificial resource and access client End integrated framework;
Step (7), service end integrated framework amendment artificial resource state, change to free time upstate add emulation Federal state;If all artificial resources participating in simulation federation have all traveled through, go to step (8), otherwise, turn step Suddenly (5);
Step (8), the traversal simulated members interactive relation list of service end integrated framework, filter according to information sender;
Step (9), the interactive object list of service end integrated framework traversal simulation federation, by interactive object and letter Breath sender's binding;
Step (10), service end integrated framework and client integrated framework synchronous interaction relation and interactive object;
Step 8 in the above subprocess 2 of the present invention, it is provided that dynamically generate emulation according to simulation federation configuration file The process of interactive relation table between federal member, step (8) includes following three kinds of services:
Member management services: be responsible for safeguarding simulation federation running, supervisory control simulation resource status;
Clock management services: be responsible for providing artificial resource clock to synchronize and clock advances request to process function, keep all The synchronization of artificial resource event and sequential processing;
Information distribution services: the interactive relation configuration being responsible between artificial resource and interactive object send.
Step (8) comprises the following steps:
Step (8a), the traversal artificial resource list of service end integrated framework, it is successively read artificial resource essential information;
Step (8b), the traversal artificial resource interactive relation list of service end integrated framework, by read in step (8a) Artificial resource essential information is mated with the information sender in mutual list, if the match is successful, then records this Receiving party in intersection record, otherwise, goes to step (8c), continues to travel through next information interactive relation;
Step (8c), if the mutual list traversal of artificial resource terminates, service integration framework preserves corresponding artificial resource Receiving party's list, goes to step (8d), otherwise, goes to step (8b);
Step (8d), if artificial resource list traversal terminates, goes to step (8e);Otherwise, (8a) is gone to step;
Step (8e), service end integrated framework one two-dimensional chain table of maintenance, the first dimension is the artificial resource of transmission information, I.e. information sender;Second dimension be to should the receiving party of information sender, recipient be an artificial resource or The multiple artificial resource of person.
In step b of the present invention and step c, it is provided that simulation federation requirement description language SFRDL(Simulation Federation Requirement Description Language) and simulation federation requirement description specification.Step b uses Described simulation federation requirement description language, is to support the level of simulation federation requirement description, text tree-shaped, extendible Markup language, the element creating simulation federation, interactive controlling, the big key element of interactive object three provide description respectively Supporting, it comprises 5 speech like sound labels, including:
Simulation federation element label, for describing the essential information of the artificial resource that simulation federation is used, substantially Information includes IP address, entity number, host number and the said system of this artificial resource, affiliated seat;
Attribute information label, for describing the attribute information that artificial resource is comprised;
Interactive relation label, for describing the interactive relation between the different artificial resources constituting simulation federation;
Interactive object label, constitutes data object type mutual between the different artificial resources of simulation federation for describing Information;
Object structure label, constitutes data object type mutual between the different artificial resources of simulation federation for describing Structure attribute information.
The integrated personnel of artificial resource need to use simulation federation requirement description language to describe simulation federation demand, simulation federation Requirement description specification defines the description method of simulation federation demand.Described simulation federation requirement description specification comprises following Key element: by the title of the artificial resource of simulation federation element tag identifier all participation simulation federation, by belonging to Property information labels define the association attributes of artificial resource of each participation simulation federation, including this artificial resource IP address, Entity number, host number and the essential information such as said system, affiliated seat, attribute information label is nested in simulation federation In element label, can be one to one, many-to-one relation;Simulation federation element label is simulation federation Basic constituent element, the corresponding multiple artificial resources of simulation federation.Emulation is participated in by interactive relation tag definition The federal interactive relation between artificial resource, definition artificial resource belongs to information sender or receiving party;Right In some artificial resource, it can be receiving party and information sender;Described by interactive object label Mutual data object tag between any two artificial resource, for any two artificial resource, they can be handed over One or more data object mutually;Data object label is used for defining the structure attribute of interactive object between artificial resource Information.
The present invention is at configuration phase, by visual configuration tool, uses registered shared artificial resource, imitative Under the constraint of very federal integration specification, it is achieved the dynamic configuration of simulation federation;In the operation phase, resolving simulation federation On the basis of configuration file, by the condition monitoring of artificial resource, dynamic construction simulation federation.
Beneficial effect: the present invention compared with prior art has the advantage that (1) uses the mode based on describing to generate Simulation federation, when emulation demand changes, can revise emulation demand configuration file, it is possible to again give birth to flexibly Become simulation federation;(2) exploitation of artificial resource is independence and has universality, the access visitor that artificial resource can be independent Family end integrated framework rather than for specific application demand add corresponding simulation federation;(3) simulation federation according to Artificial resource status information dynamically generates, and artificial resource builds simulation federation in the way of service.
Accompanying drawing explanation
With detailed description of the invention the present invention done below in conjunction with the accompanying drawings and further illustrates, the present invention above-mentioned and/ Or otherwise advantage will become apparent.
Fig. 1 is networking analogue system integrated framework schematic diagram.
Fig. 2 is artificial resource interface diagram.
Fig. 3 is simulation federation dynamic construction schematic flow sheet.
Fig. 4 is interactive relation process of analysis schematic diagram between artificial resource.
Fig. 5 is interactive relation filtering process schematic diagram between artificial resource.
Fig. 6 is the interactive relation schematic diagram of instantiation.
Detailed description of the invention
Main process steps of the present invention includes:
Step 1, artificial resource exploitation and registration are shared.
Step 2, simulation federation requirement description.
Step 3, simulation federation dynamically generates.
Step 1 of the present invention provides artificial resource exploitation and registration sharing regulation.As in figure 2 it is shown, the present invention advises Determine 7 class interfaces that artificial resource must realize, respectively: (1) artificial resource lifecycle management interface, be used for Artificial resource actively accesses/exits client integrated framework, or client integrated framework creates and destroy artificial resource in fact Example;(2) artificial resource initialization interface, for client integrated framework according to the demand of different simulation federations to emulation Resource performs the initialization operation of different condition;(3) artificial resource information sequence and unserializing interface, for visitor Family end integrated framework by serializing and unserializing, preserve and recover object mutual between artificial resource attribute, Method, event and data message;(4) artificial resource name management interface, for client integrated framework in emulation money In the running of source, dynamically the service name of generation, ID, identity type information are managed collectively;(5) artificial resource Clock sync cap, the method call synchronized for artificial resource request clock propelling, clock;(6) artificial resource number According to update, obtain interface, for client integrated framework by update and obtain, incoming and derive interface display service Example related data information;(7) interface is shared in artificial resource registration, registers for artificial resource and issues self function Metadata information, is safeguarded by the management of service end integrated framework.
7 class interfaces that the present invention is specified by specification, it is achieved the exploitation of artificial resource.Client integrated framework can be real Now access-in management, condition monitoring and the data interaction to artificial resource.After artificial resource has been developed, will be according to rule The artificial resource of model exploitation is deployed on network on the client node of distribution, by the registration interface of artificial resource, complete Become the Metadata registry of artificial resource, it is achieved sharing of artificial resource.
Step 2 of the present invention is simulation federation requirement description.This step provides a kind of simulation federation requirement description language SFRDL (Simulation Federation Requirement Description Language) and simulation federation requirement description rule Model.Simulation federation requirement description language SFRDL is to support that simulation federation requirement description and simulation federation are dynamically given birth to Become, according to simulation federation requirement description specification and a kind of level proposed, text label language tree-shaped, extendible, Thering is provided description respectively to element, interactive relation and the big key element of interactive object three of simulation federation, it mainly comprises 5 Speech like sound label, including:
(1) simulation federation element label: this label is for describing the basic of artificial resource that simulation federation used Information, the quantity of simulation federation element label is equal with the artificial resource quantity of composition simulation federation, and each is imitated The corresponding artificial resource element label of true resource.In order to avoid label repeats name, it is stipulated that simulation federation is wanted Element uses " artificial resource title+version number ", such as RadarSim_1.0.
(2) attribute description label: the association attributes of the artificial resource of this tag definition each participation simulation federation, including The build-in attribute of artificial resource and user-defined attribute.Attribute information label is nested in simulation federation element In label, can be one to one, many-to-one relation, specifically describe specification as follows:
(2a) artificial resource build-in attribute description form: in simulation federation element label, add each emulation The build-in attribute of federal element, the build-in attribute title of attribute this simulation federation element entitled of node, belong to Property value is the property value that this simulation federation element is corresponding, and its concrete form is as follows:
Attribute-name=" property value ".
As:<RadarSim_1.0Name=" radar simulator " form=" Exe " ID=1001/>which depict one Individual entitled " radar simulator " simulation federation element, it runs form is Exe program, and this artificial resource is at this Unique ID in simulation federation is 1001.
(2b) User Defined attribute description form: " User Defined attribute description " label entitled " User_Prop ", Comprise two attributes " PropName " (attribute-name), " PropValue " (property values);By User Defined attribute Describing, it is achieved the description of artificial resource particular community, it is nested under emulation element label, can comprise multiple Custom Attributes, concrete form is as follows:
<simulation federation element label>
<User_Prop PropName=" attribute-name " PropValue=" property value "/>
……
</simulation federation element Biao Qian>
As:
<RadarSim_1.0>
<User_Prop PropName="HostID"PropValue="1000"/>
<User_Prop PropName="EntityID"PropValue="1001"/>
</RadarSim_1.0>
Which depict a simulation federation element RadarSim_1.0, its two Custom Attributes comprised: main frame Number " HostID " and entity number " EntityID ", the value of its correspondence is 1000 and 1001 respectively.
(2c) interactive relation label, for describing the interactive relation between the different artificial resources constituting simulation federation;Alternately Relational tags is " Dispatch_Relation ", and it is presented in isolated node, and each interactive relation will comprise Multiple child nodes;By information interactive relation between all elements in this child node definition simulation federation, alternately Contextual definition comprises the sender of information and the recipient of information;Each interactive relation label will comprise this interactive relation Unique ID, concrete form is as follows:
<Dispatch_Relation ID=“”>;
Information sender defines;
Receiving party defines;
</Dispatch_Relation>;
The description of an information interactive relation be presented herein below:
<Dispatch_Relation ID=101>// information distributing relationship identifies: 101
<Dispatch_Sender Name=“RadarSim_1.0”,ID=1001>
// information sender title: " RadarSim_1.0 ", information sender identifies: 1001
<Dispatch_Receiver Name=“PlaneSim_1.0”,ID=1002>
// receiving party title: " PlaneSim_1.0 ", receiving party identifies: 1002
</Dispatch_Relation>
(2d) interactive object label: interactive object label is " Interface_Object ", is used for describing composition emulation connection Data object type information mutual between the different artificial resources of nation, presented in interactive relation nesting child node; Can comprise multiple interactive object in each interactive relation, each interactive object is retouched according in the definition of information interactive relation State the attribute of interactive object definition, including mutual object identity and object type;Interactive object is divided into two types: Simple types and complicated type, respectively by Simple and Complex type.For complicated type, by this complexity of description The object identity that type is corresponding, and simple types will describe the interactive object variable of its correspondence, its concrete form is as follows:
<interactive relation definition label>
<interactive object definition label>
Interactive object variable-definition
</interactive relation definition Biao Qian>
As:
Complicated type defines:
<Dispatch_Relation ID=101>// information distributing relationship identifies: 101
<Dispatch_Sender Name=“RadarSim_1.0”,ID=1001>
// information sender title: " RadarSim_1.0 ", information sender identifies: 1001
<Dispatch_Receiver Name=“PlaneSim_1.0”,ID=1002>
// receiving party title: " PlaneSim_1.0 ", receiving party identifies: 1002
<Interface_Object ID=2001Type=" Complex " ObjectID=2001>
// interactive object identifies: 2001, type identification: complex, object number: 2001
</Dispatch_Relation>
Simple type definitions:
<Dispatch_Relation ID=101>// information distributing relationship identifies: 101
<Dispatch_Sender Name=“RadarSim_1.0”,ID=1001>
// information sender title: " RadarSim_1.0 ", information sender identifies: 1001
<Dispatch_Receiver Name=“PlaneSim_1.0”,ID=1002>
// receiving party title: " PlaneSim_1.0 ", receiving party identifies: 1002
<Interface_Object ID=2001Type=" Simple ">
// interactive object identifies: 2001, type identification: simple
<ObjectParaName=" flight speed " Type=" int ">
// interactive object parameter name: flight speed, type identification: int
</Dispatch_Relation>
(2e) object structure label: object structure label is " Object ", for describing the different emulation constituting simulation federation The structure attribute information of data object type mutual between resource;This label is individually present, and can need at simulation federation Ask in configuration file and independently define;All data objects mutual in simulation federation all can be in object structure label Child node defines, and its concrete form is as follows:
<Object>
Interactive object structure defines
</Object>
As:
<Object ID=2001,Type=Complex Prop_Count=3>
// interactive object identifies: 2001, type identification: complex, number of attributes: 3
<Object_Prop Name=" length of aircraft ", Type=int PropID=1>
// interactive object parameter name: flight speed, type identification: int, attribute number: 1
<Object_Prop Name=" aircraft width ", Type=int PropID=2>
// interactive object parameter name: flight speed, type identification: aircraft width, attribute number: 2
<Object_Prop Name=" aircraft altitude ", Type=int PropID=3>
// interactive object parameter name: flight speed, type identification: aircraft altitude, attribute number: 3
</Object>
Which depict the definition of an aircraft object structure.
The integrated personnel of artificial resource need to use simulation federation requirement description language to describe simulation federation demand, simulation federation Requirement description specification defines the description method of simulation federation demand.Described simulation federation requirement description specification comprises following Key element: (1) is by the title of the artificial resource of simulation federation element tag identifier all participation simulation federation, imitative Very federal element label is the basic constituent element of simulation federation, the corresponding multiple artificial resources of simulation federation; (2) by the association attributes of the artificial resource of attribute information tag definition each participation simulation federation, provide including this emulation The IP address in source, entity number, host number and the essential information such as said system, affiliated seat, attribute information label is embedding Be enclosed within simulation federation element label, can be one to one, many-to-one relation;(3) by interactive relation mark Signing justice participate in simulation federation artificial resource between interactive relation, definition artificial resource belong to information sender or Receiving party;For some artificial resource, it can be receiving party and information sender;(4) logical Cross the mutual data object tag that interactive object label describes between any two artificial resource, any two is imitated True resource, they can one or more data object alternately;(5) it is used for defining emulation by data object label The structure attribute information of interactive object between resource;
Step 3 of the present invention is the method that Integrated dynamic emulation is federal.After configuration completes simulation federation requirement description file, Preserve configuration file, wait simulation federation dynamic creation.Each artificial resource can be with independent startup integrated to client Framework realizes accessing, as shown in Figure 1.Each artificial resource is independent to be accessed to client integrated framework, and client is integrated Framework and service end integrated framework are to be distributed on network, use the architecture of network-oriented, can be with multiple clients The corresponding service end integrated framework of integrated framework, it is also possible to a corresponding service end of client integrated framework is integrated Framework.Each client integrated framework will report the access state of artificial resource by network to service end integrated framework. When dynamic creation simulation federation, it is divided into two subprocess: artificial resource access procedure and service end integrated framework respond Simulation federation request to create.
Subprocess artificial resource accesses and comprises the following steps:
(1) artificial resource calls described artificial resource Life cycle interface, registers to client integrated framework, and sends This artificial resource identifies;
(2), after client integrated framework receives the access message of artificial resource, increasing newly in artificial resource access list should Artificial resource record, is set to this simulation status the free time, and reports this artificial resource state to service end integrated framework Information;
(3), after service end integrated framework receives the artificial resource status information that client integrated framework sends, update emulation Resource state information;
When artificial resource has performed above-mentioned steps, completing to access client integrated framework, service end integrated framework can connect Receiving the request creating simulation federation, and obtain simulation federation configuration information dynamic creation simulation federation, this process needs head First create kernel service, then according to artificial resource condition adjudgement the need of newly accessing artificial resource, finally wait institute After having artificial resource ready, prepare to bring into operation simulation federation, and whole process is as shown in Figure 3.
(1) service end integrated framework receives the solicited message creating simulation federation, imitative according to comprise in request to create Very federal mark, reads simulation federation configuration file, service integration framework resolution request message, forms core Central server list, artificial resource list, simulation federation interactive relation list, simulation federation are mutual List object;Kernel service list comprises kernel service type, quantity;In artificial resource list, comprise Artificial resource base attribute, initialization information;
(2) the kernel service list of service end integrated framework traversal, reads the type of kernel service;
(3) service end integrated framework is according to kernel service type, dynamic creation kernel service example;
If (4) kernel service list traversal terminates, go to step (5);Otherwise, (2) are gone to step;
(5) the artificial resource list of service end integrated framework traversal, reads artificial resource essential information;
(6) service end integrated framework is according to artificial resource essential information, the artificial resource row that the service end described in traversal is safeguarded Table, obtains corresponding artificial resource state;If this artificial resource is online, and it is in idle ready state, then leads to Know that this client integrated framework initializes this artificial resource;If this emulation does not also access, then this artificial resource is identified It is sent to client integrated framework, client integrated framework starts this artificial resource access service end integrated framework, Change artificial resource service state is ready;After this artificial resource completes to access, service end integrated framework notifies client End integrated framework initializes this artificial resource, and amendment artificial resource service state is for adding simulation federation;
(7), after completing artificial resource initialization, service end integrated framework revises this artificial resource state for adding federation;As Fruit participates in all artificial resources of simulation federation and has all traveled through, and goes to step (8);Otherwise, (5) are gone to step;
(8) the simulated members interactive relation list of service end integrated framework traversal, filters emulation according to the mode of information sender Interactive relation list;
(9) the interactive object list of service end integrated framework traversal simulation federation, by interactive object and information sender Binding;
(10) service end integrated framework and client integrated framework synchronous interaction relation and interactive object;
After service end integrated framework obtains artificial resource, need between artificial resource, set up information interactive relation.Service End integrated framework resolves simulation federation configuration file, the interactive relation label in traversal configuration file and interactive object label Sequence, generates interactive relation table and interactive object table, is saved in service end integrated framework, and detailed process is as shown in Figure 4.
(1) the artificial resource list of service end integrated framework traversal, is successively read artificial resource essential information;
(2) service end integrated framework traversal artificial resource interactive relation list, by basic for the artificial resource read in step 1 Information is mated with the information sender in mutual list.If the match is successful, then record in this intersection record Receiving party;
If (3) the mutual list traversal of artificial resource terminates, service integration framework preserves the information of corresponding artificial resource and receives Fang Liebiao, goes to step 4;Otherwise, 2 are gone to step;
(4), if artificial resource list traversal terminates, go to step 5;Otherwise, 1 is gone to step;
(5) service end integrated framework safeguards that a two-dimensional chain table, the first dimension are the artificial resources of transmission information, i.e. information is sent out The side of sending;Second dimension be to should the receiving party of information sender, can be an artificial resource, it is also possible to be many Individual artificial resource;Two-dimentional relation list is as shown in Figure 5.
Embodiment
Concrete grammar of the present invention is:
Assuming that need to build an analogue system according to mission requirements, this analogue system comprises 3 artificial resources, respectively It is 2 radar simulator resource clothes and a story of a play or opera resource.
Resource service developer when developing 3 artificial resources, need to realize artificial resource lifecycle management interface, The serializing of artificial resource service initialisation interface, artificial resource information on services and unserializing interface, artificial resource service Name management interface, artificial resource service clock sync cap, artificial resource service data update, obtain interface and imitative Interface is shared in true resource service registration, is advantageously integrated the integrated of framework and calls.
After exploitation completes 3 artificial resources, Integration of Simulation personnel will use emulation according to simulation federation Description standard Federal requirement description language, by text editor or visualization interface edit tool, carries out the description of simulation federation, And this simulation federation requirement description file is deployed in a certain service end node on network, carry out simulation federation requirement description File consolidation manages.The content described includes the element of simulation federation, interactive relation and the big key element of interactive object three, The label that Integration of Simulation personnel describe language by 5 classes and provide realizes the description of key element, including:
(1) simulation federation element label
(2) attribute description label
(3) interactive relation label
(4) interactive object label
(5) object structure label
After configuration completes simulation federation requirement description file, preserve configuration file, wait simulation federation dynamic creation. Each artificial resource can be with independent startup and to the realization access of client integrated framework.Each artificial resource is independent to client End integrated framework accesses, and client integrated framework and service end integrated framework are to be distributed on network.When dynamic creation is imitated Time very federal, it is divided into two steps: artificial resource access procedure and service end integrated framework response simulation federation create please Ask.
(1) artificial resource service Life cycle interface described in 3 artificial resource service calls, to client integrated framework Registration, and send this artificial resource mark;
(2), after client integrated framework receives the access message of artificial resource service, service access list to artificial resource In this artificial resource record newly-increased, this simulation status is set to the free time, and reports this emulation to service end integrated framework Resource state information;
(3), after service end integrated framework receives the artificial resource status information that client integrated framework sends, update emulation Resource service status information;
When the complete above-mentioned steps of artificial resource service execution, completing to access client integrated framework, service end integrated framework can To receive the request creating simulation federation, and obtaining simulation federation configuration information dynamic creation simulation federation, this process needs First kernel service is created, then according to artificial resource condition adjudgement the need of newly accessing artificial resource, finally etc. After the service of all artificial resources is ready, prepare to bring into operation simulation federation, whole process such as mistake!Do not find and quote Source.Shown in.
(1) service end integrated framework receives the solicited message creating simulation federation, according to the emulation comprised in request to create Federal mark, reads simulation federation configuration file, and formation includes the Resources list of 3 artificial resource services, comprises 2 The interactive relation list of individual interactive relation, comprise the interactive object list of 2 interactive objects;Establishment includes that clock advances Kernel service list with two kernel services of member management;
(2) the kernel service list of service end integrated framework traversal, reads the type of kernel service, is EXE and performs journey Sequence;
(3) service end integrated framework is according to kernel service type, dynamic creation kernel service example;
(4), if kernel service list traversal terminates, go to step 5;Otherwise, 2 are gone to step;
(5) the artificial resource list of service end integrated framework traversal, reads artificial resource essential information;
(6) service end integrated framework is according to artificial resource essential information, the artificial resource state table that traverse service end is safeguarded, Obtain corresponding artificial resource state;If this artificial resource online, is in idle ready state, then notify this joint Client integrated framework on point initializes this artificial resource;If this emulation does not also access, then by this artificial resource mark Know and be sent to client integrated framework, client integrated framework start this artificial resource and access client integrated framework;
(7) service end integrated framework amendment artificial resource state, changes to free time upstate add simulation federation shape State;If all artificial resources participating in simulation federation have all traveled through, go to step 8;Otherwise, 5 are gone to step;
(8) the simulated members interactive relation list of service end integrated framework traversal, filters according to information sender;
(9) the interactive object list of service end integrated framework traversal simulation federation, by interactive object and information sender Binding;
(10) service end integrated framework and client integrated framework synchronous interaction relation and interactive object;
In above-mentioned steps (8), after service end integrated framework obtains artificial resource service, need at 3 artificial resources Information interactive relation is set up between service.Service end integrated framework resolves simulation federation configuration file, travels through configuration file In interactive relation label and interactive object sequence label, generate interactive relation table and interactive object table, be saved in service End integrated framework:
(1) service end integrated framework traversal artificial resource service list, is successively read artificial resource service essential information;
(2) service end integrated framework traversal artificial resource service interaction relation list, the artificial resource that will read in step 1 Service essential information is mated with the information sender in mutual list.If the match is successful, then record this mutual Receiving party in record;
If (3) artificial resource service interaction list traversal terminates, service integration framework preserves the service of corresponding artificial resource Receiving party's list, goes to step 4;Otherwise, 2 are gone to step;
(4), if artificial resource service list traversal terminates, go to step 5;Otherwise, 1 is gone to step;
(5) service end integrated framework safeguards that a two-dimensional chain table, the first dimension are the artificial resource services of transmission information, i.e. believes Breath sender;Second dimension be to should the receiving party of information sender, can be an artificial resource service, also Can be multiple artificial resource services;Two-dimentional relation list is as shown in Figure 6.
The invention provides a kind of service-oriented networking analogue system dynamic creation method, implement this technical side The method of case and approach are a lot, and the above is only the preferred embodiment of the present invention, it is noted that for this technology For the those of ordinary skill in field, under the premise without departing from the principles of the invention, it is also possible to make some improvement and profit Decorations, these improvements and modifications also should be regarded as protection scope of the present invention.Each ingredient the clearest and the most definite in the present embodiment is equal Available prior art is realized.

Claims (1)

1. a service-oriented networking analogue system dynamic creation method, it is characterised in that comprise the following steps:
Step a: artificial resource exploitation and registration are shared;
Step b: simulation federation requirement description;
Step c: simulation federation dynamically generates;
In step a, described artificial resource refer to meet user emulate demand, can reusable software program mould Block, this module meets 7 class interface requirements;
In step b, according to simulation federation requirement description specification, use simulation federation requirement description language, imitate Very federal description;By text editor or visualization interface edit tool, generate simulation federation demand and retouch State file;This simulation federation requirement description file describe artificial resource that simulation federation comprised, service mutually it Between relation and service between the information of interactive object;This simulation federation requirement description file is deployed in the clothes of network On business end node;
In step c, access including artificial resource, service end integrated framework responds two sons of simulation federation request to create Process;Described artificial resource accesses subprocess, after artificial resource starts, calls client integrated framework interface, Send access request to client integrated framework, complete to access to client integrated framework;Client integrated framework After receiving the access request of artificial resource, send the identification information of this artificial resource to service end integrated framework, And notify that this artificial resource of service end integrated framework accesses;When service end integrated framework receives by client integrated After the artificial resource that framework sends accesses report, preserve the identification information of the artificial resource of this access;
Described service end integrated framework response simulation federation request to create subprocess is, dynamically submits to required simulation federation to retouch Stating file, service end integrated framework resolves this simulation federation and describes file, and dynamic creation kernel service runs module; Resolve to generate and participate in artificial resource list, and obtain the initialization information of artificial resource, notify this artificial resource institute This artificial resource is initialized by the client integrated framework at node;Resolve and generate between different artificial resource Interactive relation and interactive object relation, dynamically send information subscribing relation to kernel service, and to client collection Become framework synchronizing information subscribing relationship;If local corresponding artificial resource does not access, client integrated framework The artificial resource identification information that will synchronize according to service end integrated framework, searches automatically in local emulation the Resources list Rope, starts this artificial resource and completes to access and initialization operation;
In step a, 7 class interfaces are:
Artificial resource lifecycle management interface, actively accesses or exits client integrated framework for artificial resource, or Person's client integrated framework creates and destroys artificial resource example;
Artificial resource initialization interface, for client integrated framework according to the demand of each simulation federation to artificial resource Perform the initialization operation of respective conditions;
Artificial resource information sequence and unserializing interface, for client integrated framework by serializing and antitone sequence Change, preserve and recover the attribute of object, method, event and data message mutual between artificial resource;
Artificial resource name management interface, produces dynamic in artificial resource running for client integrated framework Service name, ID, identity type information is managed collectively;
Artificial resource clock sync cap, for calling that artificial resource request clock propelling, clock synchronize;
Artificial resource data update, obtain interface, for client integrated framework by updating and obtaining, incoming and lead Go out interface display Service Instance Data information;
Interface is shared in artificial resource registration, registers for artificial resource and issues self Functional Unit data message, by servicing End integrated framework management is safeguarded;
The described simulation federation requirement description language that step b uses, is to support the level of simulation federation requirement description, tree Shape, extendible text label language, the element that simulation federation is created, interactive controlling, interactive object Three big key elements provide description to support respectively, and it comprises 5 speech like sound labels, including:
Simulation federation element label, for describing the essential information of the artificial resource that simulation federation is used, substantially Information
IP address, entity number, host number and said system, affiliated seat including this artificial resource;
Attribute information, for describing the attribute information that artificial resource is comprised;
Interactive relation label, for describing the interactive relation between the different artificial resources constituting simulation federation;
Interactive object label, constitutes data object type mutual between the different artificial resources of simulation federation for describing Information;
Object structure label, constitutes data object type mutual between the different artificial resources of simulation federation for describing Structure attribute information;
The described simulation federation requirement description specification that step b uses comprises following key element:
Title by the artificial resource of simulation federation element tag identifier all participation simulation federation;
By the attribute of the artificial resource of attribute information tag definition each participation simulation federation, including this artificial resource IP address, entity number, host number and said system, affiliated seat, attribute information label is nested in emulation In federal element label;Simulation federation element label is the basic constituent element of simulation federation, one The corresponding multiple artificial resources of simulation federation;
Participated in the interactive relation between the artificial resource of simulation federation by interactive relation tag definition, define artificial resource Belong to information sender or receiving party;
By interactive object label, the mutual data object tag between any two artificial resource, any two are described Mutual more than one data object between artificial resource;
Data object label is used for defining the structure attribute information of interactive object between artificial resource;
Step c neutron process simulation resource accesses and comprises the following steps:
Artificial resource calls described artificial resource Life cycle interface, registers to client integrated framework, and sends this Artificial resource identifies;
After client integrated framework receives the access message of artificial resource, in artificial resource access list, newly-increased this is imitated True resource record, is set to this simulation status the free time, and reports this artificial resource shape to service end integrated framework State information;
After service end integrated framework receives the artificial resource status information that client integrated framework sends, if newly connecing The artificial resource entered, joins this artificial resource information in artificial resource access list;If this artificial resource Access, then updated this artificial resource status information;
Step c neutron process services end integrated framework response simulation federation request to create comprises the following steps:
Step (1), service end integrated framework receives the solicited message creating simulation federation, according in request to create The mark of the simulation federation comprised, reads simulation federation configuration file, forms kernel service list, artificial resource List, simulation federation interactive relation list, simulation federation interactive object list;Kernel service list In comprise kernel service type, quantity;In artificial resource list, comprise artificial resource base attribute, initialization Information;
Step (2), the kernel service list that service end integrated framework traversal is set up in step (1), read core COS;
Step (3), service end integrated framework is according to kernel service type, dynamic creation kernel service example;
Step (4), if kernel service list traversal terminates, goes to step (5);Otherwise, (2) are gone to step;
Step (5), the artificial resource list set up in service end integrated framework traversal step (1), read artificial resource Essential information;
Step (6), service end integrated framework, according to artificial resource essential information, travels through described service end integrated framework Artificial resource list in step (1), obtains corresponding artificial resource state;If this artificial resource is Online, and it is in idle ready state, then notifies that this client integrated framework initializes this artificial resource;If This emulation does not also access, then this artificial resource mark is sent to client integrated framework, by the integrated frame of client Frame starts this artificial resource access service end integrated framework;After this artificial resource completes to access, service end collection Framework notification client integrated framework is become to initialize this artificial resource;
Step (7), after completing artificial resource initialization, service end integrated framework revises this artificial resource state for adding Enter federation;If all artificial resources participating in simulation federation have all traveled through, go to step (8), otherwise, Go to step (5);
Step (8), the traversal simulated members interactive relation list of service end integrated framework, filter according to information sender; Step (9), service end integrated framework traversal simulation federation interactive object list, by interactive object with Information sender is bound;
Step (10), service end integrated framework and client integrated framework synchronous interaction relation and interactive object;
Step (8) includes following three kinds of services:
Member management services: be responsible for safeguarding simulation federation running, supervisory control simulation resource status;
Clock management services: be responsible for providing artificial resource clock to synchronize and clock advances request to process function, keep all The synchronization of artificial resource event and sequential processing;
Information distribution services: the interactive relation configuration being responsible between artificial resource and interactive object send;
Step (8) comprises the following steps:
Step (8a), the traversal artificial resource list of service end integrated framework, it is successively read artificial resource essential information;
Step (8b), the traversal artificial resource interactive relation list of service end integrated framework, will step (8a) read Artificial resource essential information mate with the information sender in mutual list, if the match is successful, then remember Receiving party in record this intersection record lower;Otherwise, go to step (8c), continue to travel through next information and hand over Mutual relation;
Step (8c), if the mutual list traversal of artificial resource terminates, service integration framework preserves corresponding artificial resource Receiving party's list, go to step (8d), otherwise, go to step (8b);
Step (8d), if artificial resource list traversal terminates, goes to step (8e);Otherwise, (8a) is gone to step;
Step (8e), service end integrated framework one two-dimensional chain table of maintenance, the first dimension is the artificial resource of transmission information, I.e. information sender;Second dimension be to should the receiving party of information sender, recipient is an emulation money Source or multiple artificial resource.
CN201310624321.4A 2013-11-28 2013-11-28 A kind of service-oriented networking analogue system dynamic creation method Active CN103646134B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310624321.4A CN103646134B (en) 2013-11-28 2013-11-28 A kind of service-oriented networking analogue system dynamic creation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310624321.4A CN103646134B (en) 2013-11-28 2013-11-28 A kind of service-oriented networking analogue system dynamic creation method

Publications (2)

Publication Number Publication Date
CN103646134A CN103646134A (en) 2014-03-19
CN103646134B true CN103646134B (en) 2016-08-31

Family

ID=50251347

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310624321.4A Active CN103646134B (en) 2013-11-28 2013-11-28 A kind of service-oriented networking analogue system dynamic creation method

Country Status (1)

Country Link
CN (1) CN103646134B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105045650B (en) * 2015-07-17 2018-08-07 中国电子科技集团公司电子科学研究院 A kind of artificial resource construction method and device based on metadata
CN108153921B (en) * 2016-12-05 2021-06-04 北京仿真中心 Dynamic deployment and distribution method for HLA (high level architecture) federal members
CN106897120B (en) * 2017-02-28 2021-05-07 北京领航里程碑软件技术有限公司 Double-layer dynamic distributed simulation platform
CN107743072B (en) * 2017-07-04 2020-07-17 中国电力科学研究院 Efficient and extensible network simulation scene generation method
CN108133099B (en) * 2017-12-21 2021-06-25 中国电子科技集团公司第二十八研究所 Simulation system implementation method based on multi-resolution model framework
CN109582290B (en) * 2018-09-30 2021-09-24 中国航空无线电电子研究所 Synchronous simulation method
CN109918742B (en) * 2019-02-15 2023-09-08 湖南高至科技有限公司 Data distribution and management method based on simulation system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101222385A (en) * 2008-01-18 2008-07-16 重庆重邮东电通信技术有限公司 Design method and system of protocol simulation system facing service
CN101710361A (en) * 2009-11-13 2010-05-19 北京航空航天大学 Distributed traffic simulating platform based on Service-Oriented Architecture (SOA) and simulating method thereof
CN102523104A (en) * 2011-11-30 2012-06-27 中国电子科技集团公司第二十八研究所 Networked simulation operation supporting system and method
CN103093058A (en) * 2013-02-05 2013-05-08 中国电子科技集团公司电子科学研究院 Service-oriented distributed simulation system and realizing method thereof

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008033394A2 (en) * 2006-09-12 2008-03-20 Truebaseline Complexity management tool

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101222385A (en) * 2008-01-18 2008-07-16 重庆重邮东电通信技术有限公司 Design method and system of protocol simulation system facing service
CN101710361A (en) * 2009-11-13 2010-05-19 北京航空航天大学 Distributed traffic simulating platform based on Service-Oriented Architecture (SOA) and simulating method thereof
CN102523104A (en) * 2011-11-30 2012-06-27 中国电子科技集团公司第二十八研究所 Networked simulation operation supporting system and method
CN103093058A (en) * 2013-02-05 2013-05-08 中国电子科技集团公司电子科学研究院 Service-oriented distributed simulation system and realizing method thereof

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
基于XYZ/ADL的网络中心化仿真运行支撑平台体系结构形式化描述;孙黎阳 等;《计算机科学》;20120630;第39卷(第6A期);全文 *
面向服务的网络化仿真及运行支撑平台研究;孙黎阳 等;《计算机科学》;20110331;第38卷(第3期);全文 *

Also Published As

Publication number Publication date
CN103646134A (en) 2014-03-19

Similar Documents

Publication Publication Date Title
CN103646134B (en) A kind of service-oriented networking analogue system dynamic creation method
CN102664954B (en) HLA-based (High Level Architecture-based) distributed simulation support platform and implementation method thereof
CN106850788B (en) Integrated framework and integrated approach towards multi-source heterogeneous geographic information resources
CN110278249A (en) A kind of distribution group intelligence system
CN103442038B (en) A kind of HLA emulation control of master-salve distributed cooperating operation
CN102622262B (en) Distributed real-time interactive simulation system based on modelica modeling language
CN106648658B (en) Emulation mode towards live/virtual/construction hybrid system
CN112114785B (en) Digital twin body construction method and system based on microservice
CN105959347A (en) All-digital collaborative simulation system communication method based on P2P network
CN108011919A (en) A kind of objective platform of Internet of Things wound based on cloud Internet of Things technology
Smid et al. Case study on data communication in microservice architecture
CN116382843A (en) Industrial AI power-calculating PaaS platform based on Kubernetes container technology
CN102970354A (en) Construction method of cloud computing system based on super resource integration
Masud et al. PDST: A peer database simulation tool for data sharing systems
Pradhan et al. Towards a product line of heterogeneous distributed applications
Qu et al. Research on Simulation Platform for Intelligent Warfare
Gustavsson et al. Service oriented simulations concept
Xu et al. Decoupling Design Based on Power Dispatching Management Cloud Computing Platform
Meng et al. Study for Parallel Scheduling of HLA-Based Simulation Objects
Kharitonov A Middleware for Integrating Components of Modern Distributed Virtual Reality Systems
Zhang et al. JDBC-based middleware applications in instant message systems
Wei et al. Research on the Application of Microservice Architecture in Administrative Law Enforcement Supervision System
Xiao et al. HLA Based ASP Platform and Its Federation Integration for Collaborative VPD on INTERNET
Wang et al. Military Information System based on Microservices Framework
Zhan et al. Simulation Test Method Research of Distributed Heterogeneous System Based on Scene

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant