CN110765613B - Signal control and synchronization method of real-time microscopic traffic simulation system - Google Patents
Signal control and synchronization method of real-time microscopic traffic simulation system Download PDFInfo
- Publication number
- CN110765613B CN110765613B CN201911014667.6A CN201911014667A CN110765613B CN 110765613 B CN110765613 B CN 110765613B CN 201911014667 A CN201911014667 A CN 201911014667A CN 110765613 B CN110765613 B CN 110765613B
- Authority
- CN
- China
- Prior art keywords
- simulation
- traffic
- time
- traffic light
- parameters
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/543—User-generated data transfer, e.g. clipboards, dynamic data exchange [DDE], object linking and embedding [OLE]
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Traffic Control Systems (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention discloses a signal control and synchronization method of a real-time microscopic traffic simulation system, which comprises the following steps of: step 1, setting simulation step numbers and a threshold value of each simulation step number; step 2, setting a traffic signal lamp period; step 3, the WEB end sends a simulation step number to the simulation engine through the server; step 4, the simulation engine receives the simulation steps and then carries out simulation according to the simulation parameters; step 5, the simulation engine transmits the simulation result data back to the WEB terminal through the server for simulation playing; step 6, suspending the simulation when the simulation step number of the simulation engine reaches the set simulation step number; and 7, when the simulation step number played by the WEB side reaches a set threshold value, sending the next simulation step number to the server. According to the invention, the simulation is suspended after the simulation engine simulates the set simulation steps, so that the stop mode of the simulation engine is realized, and the generation of a large amount of dirty data is avoided.
Description
Technical Field
The invention relates to the technical field of traffic management, in particular to a signal control and synchronization method of a real-time microscopic traffic simulation system.
Background
In the existing real-time micro traffic simulation, in order to make the user obtain a smoother simulation playing experience at the WEB end, the back-end simulation engine can continuously perform simulation at a simulation speed which is faster than the playing speed of the user at the WEB end. When a user changes the traffic signal parameters in the simulation process, the data simulated in advance by the back-end simulation engine is invalid, so that a large amount of dirty data is generated.
Disclosure of Invention
The technical problem to be solved by the invention is as follows: aiming at the existing problems, the signal control and synchronization method of the real-time microscopic traffic simulation system is provided, the real-time simulation process play of a WEB terminal is taken as a control main body, the simulation step number parameters are transmitted to the simulation engine through the server, and the simulation is suspended after the simulation engine simulates the set simulation step number, so that the stop mode and the like of the simulation engine are realized, and the generation of a large amount of dirty data is avoided.
The technical scheme adopted by the invention is as follows: a signal control and synchronization method of a real-time microscopic traffic simulation system comprises a WEB terminal, a server and a simulation engine; the simulation process of the microscopic traffic simulation system comprises the following steps: (1) The WEB terminal transmits simulation parameters to a simulation engine for simulation through a server; (2) The simulation engine transmits the simulation result data back to the WEB terminal through the server for simulation playing;
the signal control and synchronization method of the real-time microscopic traffic simulation system is characterized in that in the simulation process of the microscopic traffic simulation system, the following steps are adopted for signal control and synchronization:
step 2, setting traffic light periods, wherein each traffic light period comprises k simulation steps;
step 3, the WEB end sends a simulation step number to the simulation engine through the server;
step 4, the simulation engine receives the simulation steps and then carries out simulation according to the simulation parameters;
step 5, the simulation engine transmits the simulation result data back to the WEB terminal through the server for simulation playing;
step 6, suspending the simulation when the simulation step number of the simulation engine reaches the set simulation step number;
and 7, when the simulation step number played by the WEB end reaches a set threshold value, sending the next simulation step number to the server, and thus, repeatedly executing the steps 3-7 to realize the synchronization of the micro traffic simulation system.
When the simulation parameters are modified in the simulation process in the current traffic light period, the modified simulation parameters are effective in the next traffic light period. The modified simulation parameters are effective only in the next traffic light period, so that the condition that the modified simulation parameters interfere with the simulation process in the current traffic light period to generate dirty data is avoided.
Wherein, the traffic signal lamp cycle is divided into 2k time segments by the simulation step number and the threshold value of the simulation step number, then there are: when the simulation parameters are modified in the simulation process before the 2 kth time period of the current traffic light cycle, the modified simulation parameters are effective in the next traffic light cycle.
Wherein, the traffic signal lamp cycle is divided into 2k time segments by the simulation step number and the threshold value of the simulation step number, then there are: when the simulation parameters are modified in the simulation process in the 2 kth time period of the current traffic signal lamp period, the modified simulation parameters are effective in the next traffic signal lamp period; and the time interval between the current traffic light cycle and the next traffic light cycle is removed by adopting a snapshot technology. By adopting the snapshot technology, the problem that a time interval exists between the current traffic signal lamp period and the next traffic signal lamp period when simulation parameters are modified in the simulation process in the 2k time period of the current traffic signal lamp period is solved, and the WEB terminal can be ensured to continuously perform simulation playing in real time.
The method for removing the time interval between the current traffic light cycle and the next traffic light cycle by adopting the snapshot technology comprises the following steps: recording the scene when each traffic light cycle starts, discarding the data of the simulated first simulation step number when the simulation parameters are modified in the simulation process in the 2 kth time period of the current traffic light cycle, and rapidly recovering from the snapshot time of the corresponding traffic light cycle again.
When the simulation parameters are modified for multiple times in the simulation process in the current traffic light period, the simulation parameters modified for the last time are used as the simulation parameters of the next traffic light period. The simulation parameter which is modified for the last time is set as the simulation parameter of the next traffic signal lamp period, so that the function of modifying the simulation parameter for multiple times by a user can be provided, and simultaneously, the simulation parameter is not disordered.
And (2) setting the simulation step number and the threshold value of each simulation step number in the step (1) according to the performance of the simulation engine.
In summary, due to the adoption of the technical scheme, the invention has the beneficial effects that:
1. the invention takes WEB end real-time simulation process play as a control main body, transmits simulation step number parameters to the simulation engine through the server, and suspends the simulation after the simulation engine simulates the set simulation step number, thereby realizing the stop-wait mode of the simulation engine and avoiding the generation of a large amount of dirty data.
2. The simulation parameter is modified to be effective in the next traffic light period, so that the condition that the simulation parameter is modified to interfere the simulation process in the current traffic light period to generate dirty data is avoided.
3. The invention solves the problem that a time interval exists between the current traffic signal lamp period and the next traffic signal lamp period when simulation parameters are modified in the simulation process in the 2k time period of the current traffic signal lamp period by adopting a snapshot technology, and ensures that a WEB end can continuously perform simulation playing in real time.
4. The simulation parameter which is modified for the last time is set as the simulation parameter of the next traffic signal lamp period, so that the function of modifying the simulation parameter for multiple times by a user can be provided, and simultaneously, the simulation parameter is not disordered.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
FIG. 1 is a schematic diagram of a signal control and synchronization method of the real-time microscopic traffic simulation system of the present invention.
Fig. 2 is a schematic view of a traffic light cycle.
FIG. 3 is a diagram of the current traffic signal light period T 1 When the simulation parameters are modified in the simulation process before the 2 kth time period, the current traffic signal lamp period T 1 And the next traffic signal lamp period T 2 Schematic illustration of (a).
FIG. 4 is a graph of the current traffic light cycle T 1 When the simulation parameters are modified in the simulation process in the 2k time period, the current traffic signal lamp period T 1 And the next traffic signal lamp period T 2 Schematic illustration of (a).
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the detailed description and specific examples, while indicating the preferred embodiment of the invention, are intended for purposes of illustration only and are not intended to limit the scope of the invention. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
The invention relates to the following contents:
MTSO: a micro traffic simulation system online;
WEB end: a website is a set of related web pages that are created on the internet using a tool such as HTML according to a certain rule to display specific content;
batch: setting simulation steps;
t _ step: and when the WEB end plays the simulation process to the threshold value in real time, the set threshold value of the simulation step number sends the next simulation step number batch to the server.
The micro traffic simulation system comprises a WEB end, a server and a simulation engine; the simulation process of the microscopic traffic simulation system comprises the following steps: (1) The WEB terminal transmits simulation parameters to a simulation engine for simulation through a server; (2) And the simulation engine transmits the simulation result data back to the WEB terminal through the server for simulation playing.
The features and properties of the present invention are described in further detail below with reference to examples.
Example 1
In the signal control and synchronization method of the real-time microscopic traffic simulation system provided in this embodiment, in the simulation process of the microscopic traffic simulation system, as shown in fig. 1, the following steps are adopted to perform signal control and synchronization:
Step 2, setting traffic light periods T, as shown in FIG. 2, each traffic light period T comprising k simulation steps; the traffic signal lamp period is divided into 2k time periods by the simulation step number and the threshold value of the simulation step number;
step 3, the WEB end sends a simulation step count batch through the server 1 To the simulation engine; batch 1 The simulation step number batch played in real time at present;
step 4, the simulation engine receives the simulation steps and then carries out simulation according to the simulation parameters;
step 5, the simulation engine transmits the simulation result data back to the WEB terminal through the server for simulation playing;
step 6, when the simulation step number of the simulation engine reaches the set simulation step number batch 1 The simulation is suspended;
and 7, when the simulation step number played by the WEB end reaches the set threshold value t _ step, sending the next simulation step number batch to the server 2 And the WEB end continues playing, so that the synchronization of the microscopic traffic simulation system is realized by repeatedly executing the steps 3 to 7.
Wherein, when in the current traffic signal lamp period T 1 When the simulation parameters are modified in the internal simulation process, the modified simulation parameters are in the next traffic signal lamp period T 2 It is validated. Specifically, the following two cases are included:
(1) The first condition is as follows: as shown in fig. 3, when in the current traffic light period T 1 When the simulation parameters are modified in the simulation process before the 2k time period, the modified simulation parameters are effective in the next traffic light cycle.
(2) Case two: as shown in fig. 4, when in the current traffic light period T 1 When the simulation parameters are modified in the simulation process in the 2k time period, the modified simulation parameters are in the next traffic signal lamp period T 2 The message is effective; but in the current traffic signal light period T 1 And the next traffic signal lamp period T 2 There will be a time interval t between w The current traffic signal lamp period T can be removed by adopting a snapshot technology 1 And the next traffic signal lamp period T 2 Time interval t therebetween w . Specifically, the method comprises the following steps: record each transactionOn-site at the beginning of a traffic light cycle, when in the current traffic light cycle T 1 When simulation parameters are modified in the simulation process in the 2k time period, the data of the simulated first simulation step number are discarded, and quick recovery is carried out from the snapshot time snapshot of the corresponding traffic signal lamp period again.
When the simulation parameters are modified for multiple times in the simulation process in the current traffic light period, the simulation parameters modified for the last time are used as the simulation parameters of the next traffic light period. That is, the user may set the simulation parameters multiple times in the same traffic light period, but only the last set simulation parameter will be sent to the server as the modified simulation parameter as the simulation parameter for the next traffic light period.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.
Claims (7)
1. A signal control and synchronization method of a real-time microscopic traffic simulation system is characterized in that the microscopic traffic simulation system comprises a WEB terminal, a server and a simulation engine; the simulation process of the microscopic traffic simulation system comprises the following steps: (1) The WEB terminal transmits simulation parameters to a simulation engine for simulation through a server; (2) The simulation engine transmits the simulation result data back to the WEB terminal through the server for simulation playing;
the signal control and synchronization method of the real-time microscopic traffic simulation system is characterized in that in the simulation process of the microscopic traffic simulation system, the following steps are adopted for signal control and synchronization:
step 1, setting simulation step numbers and a threshold value of each simulation step number;
step 2, setting traffic light periods, wherein each traffic light period comprises k simulation steps;
step 3, the WEB end sends a simulation step number to the simulation engine through the server;
step 4, the simulation engine receives the simulation steps and then carries out simulation according to the simulation parameters;
step 5, the simulation engine transmits the simulation result data back to the WEB terminal through the server for simulation playing;
step 6, suspending the simulation when the simulation step number of the simulation engine reaches the set simulation step number;
and 7, when the simulation step number played by the WEB side reaches a set threshold value, sending the next simulation step number to the server, and thus, repeatedly executing the steps 3-7 to realize the synchronization of the micro traffic simulation system.
2. The signal control and synchronization method of a real-time microscopic traffic simulation system according to claim 1, wherein when the simulation parameters are modified during the simulation in the current traffic light cycle, the modified simulation parameters are validated in the next traffic light cycle.
3. The signal control and synchronization method of the real-time microscopic traffic simulation system according to claim 2, wherein the traffic signal lamp cycle is divided into 2k time segments by the number of simulation steps and the threshold value of the number of simulation steps, and then: when the simulation parameters are modified in the simulation process before the 2k time period of the current traffic light cycle, the modified simulation parameters are effective in the next traffic light cycle.
4. The signal control and synchronization method of the real-time microscopic traffic simulation system according to claim 2, wherein the traffic signal lamp cycle is divided into 2k time segments by the number of simulation steps and the threshold value of the number of simulation steps, and then: when the simulation parameters are modified in the simulation process in the 2k time period of the current traffic light cycle, the modified simulation parameters take effect in the next traffic light cycle; and the time interval between the current traffic light cycle and the next traffic light cycle is removed by adopting a snapshot technology.
5. The signal control and synchronization method of the real-time microscopic traffic simulation system according to claim 4, wherein the method for removing the time interval between the current traffic light cycle and the next traffic light cycle by using the snapshot technique comprises: recording the scene when each traffic light cycle starts, discarding the data of the simulated first simulation step number when the simulation parameters are modified in the simulation process in the 2k time period of the current traffic light cycle, and quickly recovering from the snapshot time of the corresponding traffic light cycle again.
6. The signal control and synchronization method of a real-time microscopic traffic simulation system according to any one of claims 2 to 5, wherein when simulation parameters are modified a plurality of times during a simulation process in a current traffic signal period, the simulation parameters modified last time are used as simulation parameters of a next traffic signal period.
7. The signal control and synchronization method for the real-time micro traffic simulation system according to any one of claims 1 to 5, wherein the simulation step number and the threshold value of each simulation step number in step 1 are set according to the simulation engine performance.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911014667.6A CN110765613B (en) | 2019-10-24 | 2019-10-24 | Signal control and synchronization method of real-time microscopic traffic simulation system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911014667.6A CN110765613B (en) | 2019-10-24 | 2019-10-24 | Signal control and synchronization method of real-time microscopic traffic simulation system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110765613A CN110765613A (en) | 2020-02-07 |
CN110765613B true CN110765613B (en) | 2023-03-21 |
Family
ID=69333526
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911014667.6A Active CN110765613B (en) | 2019-10-24 | 2019-10-24 | Signal control and synchronization method of real-time microscopic traffic simulation system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110765613B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005071292A (en) * | 2003-08-28 | 2005-03-17 | Omron Corp | Signal control unit |
CN102750834A (en) * | 2012-06-18 | 2012-10-24 | 北京航空航天大学 | Performance detector used for diverted traffic signal controller and detection method thereof |
CN103970936A (en) * | 2014-04-14 | 2014-08-06 | 北京工业大学 | Method for simulating T-CPS based on Modelica |
CN105119837A (en) * | 2015-05-12 | 2015-12-02 | 电子科技大学 | Distributed traffic simulation load balancing algorithm based on simulation terminal configuration optimization |
CN106910349A (en) * | 2015-12-23 | 2017-06-30 | ***通信集团公司 | A kind of method for controlling traffic signal lights and system |
CN110164150A (en) * | 2019-06-10 | 2019-08-23 | 浙江大学 | A kind of method for controlling traffic signal lights based on time distribution and intensified learning |
-
2019
- 2019-10-24 CN CN201911014667.6A patent/CN110765613B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005071292A (en) * | 2003-08-28 | 2005-03-17 | Omron Corp | Signal control unit |
CN102750834A (en) * | 2012-06-18 | 2012-10-24 | 北京航空航天大学 | Performance detector used for diverted traffic signal controller and detection method thereof |
CN103970936A (en) * | 2014-04-14 | 2014-08-06 | 北京工业大学 | Method for simulating T-CPS based on Modelica |
CN105119837A (en) * | 2015-05-12 | 2015-12-02 | 电子科技大学 | Distributed traffic simulation load balancing algorithm based on simulation terminal configuration optimization |
CN106910349A (en) * | 2015-12-23 | 2017-06-30 | ***通信集团公司 | A kind of method for controlling traffic signal lights and system |
CN110164150A (en) * | 2019-06-10 | 2019-08-23 | 浙江大学 | A kind of method for controlling traffic signal lights based on time distribution and intensified learning |
Non-Patent Citations (3)
Title |
---|
刘秋晨 ; 张轮 ; 杨文臣 ; 张磊 ; 董德存 ; .城市道路新型连续流交叉口的设计及仿真.2013,(02),第128-133页. * |
周世杰等.微观交通仿真的安全换道模型研究.2015,第44卷(第5期),第725-730页. * |
赵新灿等.三维城市交通微观仿真与信号优化方法.2018,第30卷(第4期),第626-633页. * |
Also Published As
Publication number | Publication date |
---|---|
CN110765613A (en) | 2020-02-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107040816A (en) | A kind of client application operation exception analysis method and device | |
US10250521B2 (en) | Data stream identifying method and device | |
CN107743076A (en) | A kind of NCSI shares interface switching method and device | |
CN105791028A (en) | Monitoring method, server and system of server cluster | |
CN110716848A (en) | Data collection method and device, electronic equipment and storage medium | |
WO2023109806A1 (en) | Method and apparatus for processing active data for internet of things device, and storage medium | |
CN105426288A (en) | Optimization method of memory alarm | |
CN111831383A (en) | Window splicing method, device, equipment and storage medium | |
CN110765613B (en) | Signal control and synchronization method of real-time microscopic traffic simulation system | |
CN113746931B (en) | Data synchronization method and device | |
CN114866489A (en) | Congestion control method and device and training method and device of congestion control model | |
CN111259066A (en) | Server cluster data synchronization method and device | |
CN109065037B (en) | Audio stream control method based on voice interaction | |
JP5768722B2 (en) | Program for verification test, information processing method, and information processing apparatus | |
CN106055663B (en) | A kind of video storage method based on two-node cluster hot backup | |
CN107577808B (en) | Method, device, server and medium for sorting multi-level list pages | |
CN113630280B (en) | Distributed collaborative simulation operation platform | |
CN109040264B (en) | High-performance data processing method for main interface unit and standby interface unit | |
CN106953756A (en) | The simulation time-delay method and server of a kind of business datum | |
CN112269803A (en) | Data set filling method and system | |
CN106293889B (en) | A kind of method and device that control sliding window is mobile | |
CN106512399A (en) | Implementation method of on-line game and terminal | |
CN109995607A (en) | Test method, terminal, server and the computer storage medium of traffic overhead | |
CN111111211A (en) | Method, device, system, equipment and storage medium for reporting game data | |
CN109862023A (en) | A kind of embedded device, which is realized, to be accelerated to calculate and high speed network data transmission method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |