Summary of the invention
The purpose of this invention is to provide an independently real-time viewing platform, belong to a general platform, this viewing platform is specially for communication network simulation tool designs, and is used for the real-time simulation scene and the simulation scenarios of display communication network simulation instrument.Make the exploitation or the operating personnel of communication network simulation software can attentively study the algorithm of communication simulation, and needn't be concerned about the demonstration of real-time what comes into a driver's, as long as use the present invention can realize the demonstration of the real-time what comes into a driver's in the simulation process.
Another object of the present invention is to propose a kind of method of using virtual reality technology real time inspection simulation scenarios and simulation result, this method is reappeared simulating scenes by the topological corresponding to network topology and the node parameter setting of quick foundation and communication network simulation tool emulation, use the real time communication technology to guarantee the real-time transmission of emulated data, use the simulation time management strategy to control correctly carrying out of emulation, thereby realized carrying out in the process of simulation by real-time viewing platform real time inspection simulation scenarios and simulation result at communication network simulation tool.
The present invention is based on the real time communication technology, support various communication network simulation tools, is to be used for when communication network simulation tool emulation, realizes the platform that the real-time what comes into a driver's of simulation scenarios and simulation result shows, this platform comprises:
Network scenarios generation module, network node model library module, network node modeling tool module, real-time communication module, time management module, what comes into a driver's display module, memory module, simulation scenarios playback module.Each module specifically describes as follows:
The network scenarios generation module, be used to import XML (extensible Markup Language) (The Extensible MarkupLanguage, abbreviation XML) the topological file of type generates the network scenarios that needs emulation, should comprise in this XML file: the connected mode of network topology, the parameter of each node are provided with etc.This platform has been formulated the topological file standard of XML, if the network topology of network simulation instrument output satisfy this standard promptly can be resolved.
The network node model library module comprises model libraries such as Ethernet model library, wide area network model library and WLAN (wireless local area network) model library, has the model of typical node in each model library, directly judges according to the analyzing XML file during modeling and uses which kind of model.
Network node modeling tool module is used for setting up the node that the network node model library module does not have, and makes things convenient for the required node of User Defined.
Real-time communication module is finished the real time communication with the network simulation instrument.Communication module has three kinds of communication modes, a kind of is the interprocess communication pattern, a kind of transmission control protocol/User Datagram Protoco (UDP) (TransportControl Protocol/User Datagram Protocol that is based on, abbreviation TCP/UDP) communication mode, another kind is based on the High Level Architecture communication mode of (High Level Architecture is called for short HLA).
The time management module is finished the propelling of simulation time and the control of emulation, is used for controlling the emulation progress of communication network simulation tool, and the time of itself and real-time viewing platform is advanced synchronously.
The what comes into a driver's display module adopts two dimension or three-dimensional mode to show simulation scenarios, draws the real-time what comes into a driver's in the simulation process.
Memory module is storing when inferior simulation result, to reset after treating.
The simulation scenarios playback module, the emulation what comes into a driver's of resetting and having preserved.
Real-time viewing platform of the present invention can realize that the real-time what comes into a driver's of communication network simulation tool simulation scenarios and simulation result shows that the method for its realization is as follows:
Step 1: the real-time viewing platform initialization, set up the network scenarios data structure, distribute the what comes into a driver's display buffer.
Step 2: real-time viewing platform connects by real-time communication module and communication network simulation tool, carries out the time synchronized operation.
Step 3: communication network simulation tool sends the network scenarios generation module setting up the form of good network scenarios with XML to by real-time communication module.
Step 4: the network scenarios generation module begins the document scene of parsing XML format, analysis result is left in the network scenarios data structure, and in the network node model library module, search the network node of describing in the XML file, this nodal analysis method is added in the data structure of artificial network scene; If in model library, do not find corresponding network node model, then to use network node modeling tool module that this network node is carried out modeling, after modeling is finished, this nodal analysis method is added in the network node model library module, and then this nodal analysis method is added in the data structure of artificial network scene.
Step 5: after the network scenarios generation module has been resolved the document scene of XML, call the what comes into a driver's display module, the what comes into a driver's display module reads the network scenarios data structure, generates the artificial network scene on the user interface of real-time viewing platform.
Step 6: the propelling of time management module controls emulation what comes into a driver's, the time synchronized of control emulation, real-time communication module begins the real-time simulation data that received communication network simulation instrument sends simultaneously.
Step 7: the what comes into a driver's display module reads the real-time simulation data, carries out data processing, the simulation scenarios after handling is carried out real-time what comes into a driver's show.
Step 8: memory module is the real-time simulation data that index is preserved with time.
Step 9: the real-time simulation data are constantly received by real-time communication module, and the what comes into a driver's display module shows according to the real-time simulation situation and the simulation result that obtain after the real-time simulation data processing in real time, finishes until emulation.
Step 10: after emulation finished, disconnection was connected with the communication simulation network, destroys the what comes into a driver's display buffer, destroys the network scenarios data structure.
Beneficial effect of the present invention:
1. the present invention is in the mode of real-time what comes into a driver's, very intuitively the real-time condition of display communication network simulation.
2. real-time viewing platform is a general-purpose platform that is directed to communication network simulation tool.Use this platform, the user need not grasp the Display Technique of real time communication technology and what comes into a driver's, can finish that the real-time what comes into a driver's of simulation scenarios and simulation result shows in communication network simulation.
Embodiment
The concrete application mode of the present invention is as follows, with each module of the present invention as an integral installation on a computer, communication network simulation tool is installed on the other computer, two computers are connected by Ethernet.Another kind of concrete application mode is, will each module of the present invention does as a wholely all to be installed on same the computer with communication network simulation tool.
As shown in Figure 1, the real-time viewing platform of the present invention's foundation comprises what comes into a driver's display module 1, network node model library module 2, networkscenarios generation module 3, real-time communication module 4, time management module 5, memory module 6, simulation scenarios playback module 7 and network node modeling tool module 8.Whole platform is finished communication with communication network simulation tool 9 by real-time communication module 4.
Overall implementation of the present invention is at first carried out system initialization as shown in Figure 3, sets up the network scenarios data structure, distributes the what comes into a driver's display buffer; Real-time viewing platform connects by real-time communication module 4 and communication network simulation tool 9, carries out the time synchronized operation; After connecting foundation, communication network simulation tool 9 sends network scenarios generation module 3 setting up the form of good artificial network scene (scene comprises network topology and node configuration information) with XML to by real-time communication module, and the file format of XML as shown in Figure 2; The document scene of network scenarios generation module 3 beginning parsing XML formats, analysis result is left in the network scenarios data structure, and in network node model library module 2, search the network node of describing in the XML file, this nodal analysis method is added in the data structure of artificial network scene, if in model library, do not find corresponding network node model, then to use 8 pairs of these network nodes of network node modeling tool module to carry out modeling, after modeling is finished, this nodal analysis method is added in the network node model library module 2, and then this nodal analysis method is added in the data structure of artificial network scene; After network scenarios generation module 3 has been resolved the document scene of XML, call what comes into a driver's display module 1, what comes into a driver's display module 1 reads the network scenarios data structure, generates the artificial network scene on the user interface of real-time viewing platform; Begin communication network simulation then, the propelling of time management module 5 control emulation what comes into a driver's, the time synchronized of control emulation, real-time communication module 4 begins the real-time simulation data that received communication network simulation instruments 9 send simultaneously; What comes into a driver's display module 1 reads the real-time simulation data, carries out data processing, the simulation scenarios after handling is carried out real-time what comes into a driver's show; Memory module 6 is the real-time simulation data that index is preserved with time simultaneously.What simulation time did not stop pushes ahead, the reception that the real-time simulation data are not stopped, and the demonstration that real-time simulation situation what comes into a driver's does not stop finishes until emulation.
Networkscenarios generation module 3 implementations among the present invention as shown in Figure 4.The network scenarios that communication network simulation tool 9 sends is the artificial network document scene of XML form, has defined network type, network node title, network node types, type of network link and connected mode information in the XML file.At first carry out the initialization of networkscenarios generation module 3, create a network scenarios data structure and be used for network scenarios information after the storing and resolving, this data structure has comprised network type, network node chained list and network link chained list.Network type is meant that this network is Ethernet, wide area network or WLAN (wireless local area network), in the network node chained list each group element comprise network node title, network node types, network node what comes into a driver's model name and with the direct-connected network node title of this node.In the network link chained list each group element comprise Linktype, network link what comes into a driver's model and with this link-attached network node title.Begin to read the artificial network document scene of XML form then, resolve, the network scenarios information that parsing obtains is inserted in the network scenarios data structure according to its form.Mistake occurs if resolve the artificial network document scene, then send the network scenarios request message to communication network simulation tool 9, allow it resend the artificial network document scene and resolve again by real-time communication module 4.After the correct parsing artificial network scene, in network node model library module 2, search corresponding network node what comes into a driver's model according to the network node types of the all-network node of network node chain table record in the network scenarios data structure, the network node what comes into a driver's model name that finds is added on the network node what comes into a driver's model name of this record of network node chained list.In network node model library module 2, search corresponding network link what comes into a driver's model according to the type of the all-network link of network link chain table record in the network scenarios data structure again, the network link what comes into a driver's model name that finds is added on the network link what comes into a driver's model name of this record of network link chained list.If in model library, do not find corresponding network element what comes into a driver's model, then to use 8 pairs of these network elements of network node modeling tool module to carry out modeling, modeling is added this element in the data structure of artificial network scene to after finishing again, calls what comes into a driver's display module 1 is drawn out artificial network on user interface according to the network scenarios data structure scene at last.
Network node model library module 2 among the present invention comprises typical communication network: Ethernet, wide area network and WLAN (wireless local area network).Implementation as shown in Figure 5, create the main folder of the file of a Model Library by name as network node model library module 2, Model Library file is created three files down, name is: Ethernet Library, WAN Library and WLAN Library, as the file of storage Ethernet model, wide area network model and wireless local pessimistic concurrency control, all network node model files are stored in respectively in these three files by its type.Create the model of other network types if desired, when storage, can under Model Library catalogue, set up the file of this network type, the nodal analysis method of this network type is placed on wherein with identical method.The file group that comprises nodal analysis method listing file and all nodal analysis methods in the model file folder of each network type.The nodal analysis method listing file is writing down the name and the corresponding nodename of all nodal analysis method files in this document folder, node type.A nodal analysis method file group is to describe one group of file of a nodal analysis method.Nodal analysis method is described by the nodal analysis method file group, comprises nodal analysis method outward appearance file, nodal analysis method inner workings file and nodal analysis method configuration file three parts in this document group.Network node modeling tool module 8 comprises network node outward appearance modeling tool submodule, network node inner workings modeling tool submodule and network node configures instrument submodule composition.What the outward appearance file was deposited is the image appearance of this node in what comes into a driver's shows, is created by network node outward appearance modeling tool, and this image appearance is created according to the actual look of network node, is used for showing when scene generates the outward appearance of this node; What the inner workings file was deposited is the groundwork mode of intra-node, create by network node inner workings modeling tool, the formal description of user mode transition diagram, its implementation as shown in Figure 6, concrete implementation method please refer to the method for network node inner workings modeling tool establishment network node inner workings in next section, and the example after the realization please refer to Figure 10; Configuration file has been described the attribute of network node model, is created by the network node configures instrument.Just can create out the network node model library module 2 of tree structure according to the implementation method of appeal.
Create network node model and need use network node modeling tool module 8, network node modeling tool module 8 implementations as shown in Figure 7.Network node modeling tool module 8 comprises network node outward appearance modeling tool submodule, network node inner workings modeling tool submodule and network node configures instrument submodule.The implementation of network node outward appearance modeling tool at first uses paintbrush to draw the boundary line of network node outward appearance as shown in Figure 8, promptly draws the outline line and the characteristic curve of network node outward appearance, and paintbrush calls the setting-out function according to the drafting situation and finishes this process.Use the each several part Fill Color of paintbrush as network node then, paintbrush calls the function that colors in according to the filling situation of color and finishes this process.Draw at last and finish preservation network node outward appearance file.Network node inner workings modeling tool function is to create the inner workings of nodal analysis method.This module is mainly with the internal work state of the formal description node of state transition diagram.It has the graphical interfaces of oneself, and this submodule comprises following a few part: the image conversion state is drawn function, graphical state transitions contiguous function, and jump condition is provided with function, and state internal work describing function and real time data demonstration are provided with function; Graphical interfaces is drawn by drawing function, be mainly used to draw the internal description of state transition diagram and state transition diagram on this graphical interfaces, it is to draw the state diagram of an operating state of intra-node by calling drawing function that the image conversion state is drawn function, graphical state transitions contiguous function is by calling the state transitions connecting line between two state diagrams of drawing function drafting, it is the condition that state transitions is set on the state transitions connecting line that jump condition is provided with function, state internal work describing function is by calling the animation of the careful description state inside of drawing function, and real time data shows that it is the mode that the real-time simulation data of display text form are set in state inside by the calling word explicit function that function is set.Its implementation as shown in Figure 9, state transition diagram when at first creating network node work according to the groundwork mode of this node, the condition of state transitions is set, this step need user mode shift each state of drawing function creation network node inside on graphical interfaces, and state is sequenced according to the order that shifts; Use graphical state transitions contiguous function to draw the state transitions line then, describe the direction of state transitions, on the state transitions line, use jump condition that the function setup jump condition is set.Then each state in the state transition diagram is programmed, the animation display mode when describing its state execution and the display mode of text formatting data, this step is to use state internal work describing function specifically to draw the animation display mode of state inside, uses real time data to show the display mode that the function setup real time data is set.Main state in the state transition diagram is carried out careful programming, the displaying contents and the display mode of animation when this state begins to carry out is set, the display mode of the simulation result of this status data form is set.Create at last and finish preservation network node inner workings file.For example: the implementation of intra-node working method of setting up Ethernet switch is as follows, the result who realizes as shown in figure 10, at first user mode shifts six states drawing function creation telephone net node inside on graphical interfaces, be respectively starting state, reception packet state, packet queuing and processing data packets state, packet adding transmission buffer queue state, transmission packet state and done state in the reception buffering, and these six states are sequenced according to described transfer sequence; Use graphical state transitions contiguous function to draw the state transitions line then, these six states being linked in sequence by state transitions, on the state transitions line, use jump condition that six jump conditions of function setup are set, be respectively in order: receive packet arrival message condition, receive packet finish condition, packet dispose condition, send buffer queue for empty condition, receiving cache queue for empty condition with to send buffer queue be empty condition; Back user mode internal work describing function is specifically drawn state 2 again: the animation display mode of packet queuing and processing data packets state inside in receiving buffering, and use the real time data demonstration that the display mode of function setup real time data is set.The implementation of network node configures instrument at first is provided with nodename and node type as shown in figure 11.Dispose this node animation content displayed then, dispose the content of the simulation result of this node video data form.Configuration at last finishes, and preserves the node configuration file.
Tell about the implementation of a newly-built network node below, at first will create a network node engineering, use the mode of engineering that establishment is managed.After creating engineering, network node modeling tool module 8 generates three empty files automatically, is respectively nodal analysis method outward appearance file, nodal analysis method inner workings file and nodal analysis method configuration file.In order each file is edited then.Use network node outward appearance modeling tool to create the outward appearance of nodal analysis method, use paintbrush to draw out its outward appearance when what comes into a driver's shows, draw the end back and preserve file according to the reality image of this node.Use network node inner workings modeling tool to create the inner workings of nodal analysis method, to analyze this node earlier which main inner workings is all arranged, main inner workings is carried out modeling with the form of state transition diagram, make the internal work process that in what comes into a driver's shows, can demonstrate network node model.Create and finish back preservation file.The configuration file that uses the network node configures instrument to carry out nodal analysis method is created, and write down name, the type of network node, network node performance parameter, the information such as manner of execution of network node in real-time what comes into a driver's of network node in configuration file.Preserve engineering after having created nodal analysis method outward appearance file, nodal analysis method inner workings file and nodal analysis method configuration file, then network node model has been saved in the network node model library module 2.Close engineering then.For revising nodal analysis method, at first the opened nodes model engineering uses network node outward appearance modeling tool to revise the outward appearance of nodal analysis method, promptly uses paintbrush according to the outward appearance of revising node; Use network node inner workings modeling tool to revise the inner workings of nodal analysis method, promptly revise the state transition diagram of main inner workings; Use the network node configures instrument to revise the configuration file of nodal analysis method.After modification is finished, preserve engineering, the model that then amended network node model has substituted before revising has been saved in the network node model library module 2, preserve the nodal analysis method before revising if desired, then can use and preserve engineering in addition, change a name for amended nodal analysis method and leave in the network node model library module 2.
Real-time communication module 4 implementations among the present invention as shown in figure 12.At first select the real time communication pattern, communication pattern divides three kinds, is respectively the interprocess communication pattern, based on the real time communication pattern of TCP/UDP with based on the communication pattern of HLA.The interprocess communication pattern is applicable to that communication network simulation tool 9 and real-time viewing platform are installed in same the application on the computer, is applicable to that with communication pattern based on HLA communication network simulation tool 9 and real-time viewing platform are installed in the application on the different computers respectively based on the real time communication pattern of TCP/UDP.Real-time communication module 4 comprises communication mode and sets function, interprocess communication function, TCP/UDP communication functions, HLA communication functions.Wherein communication mode is set the communication mode that function is the setting selection.The interprocess communication function is finished the communication between process, and this function comprises that communication pipe is set up function, data send function, Data Receiving function.It is the pipeline of setting up communication usefulness that pipeline is set up function, to guarantee the real-time transmission and the reception of data; It is to be used for sending data that data send function; The Data Receiving function is to be used for receiving data.Elder generation's calling communication pipeline is set up function and is set up communication pipe when using interprocess communication, can use data to send function after pipeline is set up and send data, uses the Data Receiving function to receive data.The TCP/UDP communication functions is used for finishing the communication of TCP/UDP mode, and this function comprises connecting to be set up function, time synchronized function, data and send function, Data Receiving function, data and correctly transmit checking function and data re-transmission function.Connection is set up function and is to use socket (SOCKET) to realize that TCP connects; The time synchronized function is a time synchronized of coordinating two computers by the reception of the transmission of three time synchronization information and feedback information; It is to be used for sending data that data send function; The Data Receiving function is to be used for receiving data; It is the correctness that is used for verifying the data of each transmission that data are correctly transmitted the checking function; The data re-transmission function is to retransmit the data that sent last time when transfer of data is incorrect.When using TCP/UDP communication, at first call to connect and set up function and set up two connections between the computer; The allocating time synchronous function carries out time synchronized then; Can use data to send function afterwards and send data, the Data Receiving function receives data, after a Data Receiving finishes, call data and correctly transmit the correctness of checking function validates data, if transfer of data the incorrect then notification data transmit leg calls the data re-transmission data resends data.The HLA communication functions is used for finishing the communication of HLA mode, and the HLA communication functions can be set up according to the HLA technical standard.For interprocess communication, be exactly communication in computer-internal, this kind pattern needs communication network simulation tool 9 to support secondary development, set up the pipeline of real-time communication module 4 and communication network simulation tool 9 interprocess communications.The realization communication pipe is opened up one section communal space exactly in internal memory, real-time communication module 4 and communication network simulation tool 9 can be read and write this piece region of memory, can carry out real-time data communication by this section shared drive zone.After emulation began, real-time communication module 4 carried out interacting message by interprocess communication pipeline and communication network simulation tool 9, received the real-time simulation result, received that it to be left in the data structure of having set up behind the real-time simulation result medium pending.Realization is based on the real time communication of TCP/UDP, use socket (SOCKET) to write real time communication and handle code, at first set up and be connected with the TCP of communication network simulation tool 9, beginning sends the request message that connects to communication network simulation tool 9, the feedback that waits for the arrival of news, then do not resend the request message that connects if correctly connect, set up successfully until connecting.Then to communication network simulation tool 9 transmitting time synchronization messages, the feedback that waits for the arrival of news, if then resend time synchronized message synchronously imperfect tense, until time synchronized, the computer of communication network simulation tool 9 and the computer of installation viewing platform are installed have so just been reached time synchronized.Can finish real time communication through the TCP establishment of connection with time synchronized is connected.After emulation begins, send the TCP message of information inquiry earlier by real-time communication module 4, the inquiry simulation result, communication network simulation tool 9 begins to utilize UDP to send the real-time simulation data after receiving this message, the real-time simulation data of utilizing TCP to send 4 one time steps of message informing real-time communication module have simultaneously sent and have finished, real-time communication module 4 is complete receive the UDP message that communication network simulation tool 9 sends after, utilize TCP to send the affirmation message of complete reception to it, medium pending receiving that the real-time simulation result leaves the data structure of having set up in.Then real-time simulation result transmits and finishes, and the circulation said process can be finished the real-time Transmission of simulation result.Connect for setting up real time communication according to the HLA technical standard based on the communication pattern of HLA.In the simulation process, it is synchronous that real-time communication module 4 carries out what comes into a driver's by the HLA technology, sends information inquiry message, inquires about simulation result in real time, receives that it to be left in the data structure of having set up behind the real-time simulation result medium pending.After emulation finishes,, whether need the shared drive zone, can disconnect communication pipe for the interprocess communication pattern; For real time communication pattern, need to disconnect TCP and connect based on TCP/UDP; For communication pattern, need withdraw from HLA federation based on HLA.Be communication close network simulation instrument 9 and real-time viewing platform again after the connection of real time communication disconnects.
Time management module 5 implementations among the present invention as shown in figure 13, at first carry out the initialization of time management module 5, carry out the time synchronized operation with communication network simulation tool 9 again in the initialization procedure, to communication network simulation tool 9 transmitting time synchronization messages, feedback waits for the arrival of news, if do not receive feedback, then repeat to send synchronization message and finish until time synchronized.Carry out the simulation initialisation of real-time viewing platform then, after initialization finishes simulation time is advanced to 0 constantly.Emulation begins, time management module 5 waits for that the time that communication network simulation tool 9 sends advances request message, beginning advances simulation time with the minimum time step-length after receiving this message, wait for then that communication simulation instrument transmitting time advances and finish message, receive that this message then finished a time and advanced.Repeat above-mentioned time progradation, emulation is constantly moved, finish until emulation.
What comes into a driver's display module 1 implementation among the present invention as shown in figure 14.What comes into a driver's display module 1 uses the C language to realize, at first carry out what comes into a driver's and show initialization, distribute the what comes into a driver's display buffer, read the network scenarios data structure, connected mode according to node in the network topology that writes down in network node chained list and the network link chained list is drawn network scenarios, and the what comes into a driver's model of each node reads drafting according to being recorded in the network node model library module 2 of network node chained list.Drawn network scenarios, the mode that each node shows animation has been set, so far finished what comes into a driver's and show initialization.During emulation was carried out, what comes into a driver's display module 1 was waited for the real-time simulation Data Receiving message that finishes.After receiving the message that the real-time simulation Data Receiving finishes, begin to handle the real-time simulation data, emulated data is through handling separated into two parts, and a part is to use animation mode data presented, and a part is directly with the mode data presented of numerical value.Comprise the queuing situation that cushions in the situation that takies, switch of transmission locus, the link of packet with animation mode data presented; Comprise the throughput of node, the average occupancy of link, the average delay of packet, the packet loss of node with the mode data presented of numerical value.For the transmission animation implementation of packet is the track that transmitting terminal and the direct drawing data bag of receiving terminal at packet flow, and gives packet visually has been transferred to receiving terminal from transmitting terminal sensation.The situation that takies animation implementation for link is to describe link with different colours to take situation, when receiving that link takies idle and low taking, uses green color to draw this link in network scenarios, and the expression link takies very low, and communication is good; Medium when receiving that link takies, when accounting for half left and right sides of communication bandwidth of whole piece link, in network scenarios, use yellow color to draw this link, the expression link takies busy; When receiving that link takies communication bandwidth near the whole piece link, in network scenarios, use red color to draw this link, the expression link can block, and signal intelligence is bad.For the example of network node inside groundwork mode as shown in figure 10, the user enters the network node model inside that need check, check the working condition of this intra-node, the working method of network node inside is to describe in the mode of state transitions, initial condition is a starting state, when satisfying condition 1: when receiving packet arrival message, state is transferred to state 1 by starting state: receive packet, when satisfying condition 2: when the reception packet finishes, state is by state 1: receive packet and transfer to state 2: packet is queuing and handle packet in receiving buffering, carry out state transitions successively, until done state; Working condition for state 2 among Figure 10 specifically describes, and state 2 inside have shown that with the form of animation this node receives the situation of buffer queue and the situation of the interior processing data packets of buffering.For numerical value mode data presented display mode be, on the nodal analysis method that will check, eject translucent dialog box, in this dialog box, show the throughput of this node, the average delay of packet loss and packet; On the link model, to eject the average occupancy that translucent dialog box shows link equally.Finished the real-time simulation situation that begins to handle next real time data and show next time period after the processing of a real time data and real-time simulation situation show.This process constantly circulates, and what comes into a driver's display module 1 is just real-time being presented on the user interface of the what comes into a driver's of emulation.After emulation finished, what comes into a driver's display module 1 will stop what comes into a driver's being drawn, and closes the what comes into a driver's display interface, destroys the what comes into a driver's display buffer of opening up.What comes into a driver's shows end.
Memory module 6 implementations among the present invention are at first carried out initialization as shown in figure 15, divide the buffering that is used in storage, and creating a file is used to store data, and the artificial network contextual data is write in the file.Emulation begins, and system whenever handles one section complete real-time simulation data, just this segment data is saved in the storage buffering, is saved in the file then.This preservation process constantly circulates, and finishes until emulation.Discharge the storage buffering at last, storage finishes.
Simulation scenarios playback module 7 implementations among the present invention are at first carried out initialization as shown in figure 16, load the what comes into a driver's storage file, draw whole network scenarios.Data when reading emulation then from file show at that time simulation scenarios and the simulation result mode with what comes into a driver's according to emulated data.This reads file, shows that the process of what comes into a driver's constantly circulates, and reads until file to finish.