CN112597635B - Method, device and equipment for generating a virtual clock system based on a CBTC simulation system - Google Patents

Method, device and equipment for generating a virtual clock system based on a CBTC simulation system Download PDF

Info

Publication number
CN112597635B
CN112597635B CN202011427151.7A CN202011427151A CN112597635B CN 112597635 B CN112597635 B CN 112597635B CN 202011427151 A CN202011427151 A CN 202011427151A CN 112597635 B CN112597635 B CN 112597635B
Authority
CN
China
Prior art keywords
time
difference
simulation
time difference
difference value
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
CN202011427151.7A
Other languages
Chinese (zh)
Other versions
CN112597635A (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.)
Youdao Technology Co ltd
Original Assignee
Youdao Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Youdao Technology Co ltd filed Critical Youdao Technology Co ltd
Priority to CN202011427151.7A priority Critical patent/CN112597635B/en
Publication of CN112597635A publication Critical patent/CN112597635A/en
Application granted granted Critical
Publication of CN112597635B publication Critical patent/CN112597635B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09BEDUCATIONAL OR DEMONSTRATION APPLIANCES; APPLIANCES FOR TEACHING, OR COMMUNICATING WITH, THE BLIND, DEAF OR MUTE; MODELS; PLANETARIA; GLOBES; MAPS; DIAGRAMS
    • G09B9/00Simulators for teaching or training purposes

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Educational Administration (AREA)
  • Educational Technology (AREA)
  • Business, Economics & Management (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • Geometry (AREA)
  • General Engineering & Computer Science (AREA)
  • Debugging And Monitoring (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application relates to a method, a device and equipment for generating a virtual clock system based on a CBTC simulation system, which belong to the technical field of clocks; the method comprises the steps of calculating a first time difference value according to target simulation time and local time, obtaining a calculation formula of the simulation time according to the first time difference value, calculating a second time difference value based on the calculation formula and a first time interval, judging whether the difference between the second time difference value and the first time difference value is smaller than a difference value threshold value, wherein the difference value threshold value is larger than the first time interval, and updating the first time difference value if the second time difference value is larger than the difference value threshold value. By using the method provided by the application, the time starting point of the student to be simulated in the practical training can be set, the current time of the computer does not need to be modified, and the method is convenient and quick, so that the simulation time and the local time can be automatically matched, and the practical training is more convenient.

Description

Method, device and equipment for generating virtual clock system based on CBTC simulation system
Technical Field
The invention belongs to the technical field of clocks, and particularly relates to a method, a device and equipment for generating a virtual clock system based on a CBTC simulation system.
Background
CBTC (Communication Based Train Control System, communication-based train automation control system) is a communication technology-based train operation control system that has been developed with rapid progress of communication technologies, particularly radio technologies. In order to enable students to better understand the CBTC system, understand the workflow and principle thereof, improve the ability of the students to quickly integrate into the working environment after graduation, and generally require the students to learn in the real scene. However, due to the limitation of the conditions of the real scene, the students cannot be made to be in the scene of the cognitive system, and the running process of the whole system cannot be comprehensively observed, so that a CBTC simulation system is usually established in a school.
The CBTC simulation system further comprises an ATP (Automatic Train Protection ) simulation system, an ATO (Automatic Train Operation ) simulation system, an ATS (Automatic Train Supervision, automatic train monitoring) simulation system and an operation diagram simulation system, the train is put in and put out of the warehouse, the plan and management simulation system is matched with the scene of the whole line of the real urban subway built by the 3D virtual simulation technology, and a simulation system with the real system function of 1:1 reduction is built, and all the systems complement each other and are linked with each other.
But each time period may be different due to the specificity of subway operation. When students carry out practical training, the time for starting the practical training is not fixed, and the simulation time is not fixed in each practical training scene, so that the running diagram is required to be recompiled each time to match with the current computer to finish the matching of train departure and the running diagram, or the computer time is modified to meet the requirement of the simulation time, the operation process is complex, and the convenience is poor.
Disclosure of Invention
In order to at least solve the problems in the prior art, the invention provides a method, a device and equipment for generating a virtual clock system based on a CBTC simulation system, so as to realize automatic matching of simulation time and local time, thereby enabling practical training to be more convenient.
The technical scheme provided by the invention is as follows:
in one aspect, a method for generating a virtual clock system based on a CBTC simulation system includes:
Acquiring target simulation time and local time;
Calculating a first time difference value according to the target simulation time and the local time;
acquiring a calculation formula of the simulation time according to the first time difference value;
Calculating a second time difference value based on the calculation formula and the first time interval;
Judging whether the difference between the second time difference value and the first time difference value is smaller than a difference threshold value or not, wherein the difference threshold value is larger than the first time interval;
And if the difference between the second time difference value and the first time difference value is larger than a difference threshold value, updating the first time difference value.
Optionally, the calculating the second time difference based on the calculation formula and the first time interval includes:
calculating the second time difference value at intervals of the first time interval;
the second time difference value is a difference value between the local time and the last simulation time.
Optionally, the method further comprises:
based on the current date and the simulation time, a complete simulation date is determined.
Optionally, the updating the first time difference value includes:
the method comprises the steps of obtaining current local time and current virtual time, calculating a new first time difference value according to the current local time and the current virtual time, and updating the calculation formula according to the new first time difference value.
Optionally, if the second time difference is smaller than the difference threshold, the last simulation time is equal to the simulation time.
In still another aspect, the device for generating the virtual clock system based on the CBTC simulation system comprises an acquisition module, a first calculation module, a determination module, a second calculation module, a judgment module and an update module;
the acquisition module is used for acquiring target simulation time and local time;
the first calculation module is used for calculating a first time difference value according to the target simulation time and the local time;
The determining module is used for obtaining a calculation formula of the simulation time according to the first time difference value;
the second calculation module is used for calculating a second time difference value based on the calculation formula and the first time interval;
The judging module is used for judging whether the difference between the second time difference value and the first time difference value is smaller than a difference threshold value or not, wherein the difference threshold value is larger than the first time interval;
The updating module is configured to update the first time difference value when a difference between the second time difference value and the first time difference value is greater than a difference threshold.
Optionally, the second calculating module is configured to calculate the second time difference at intervals of the first time interval, where the second time difference is a difference between the local time and the last simulation time.
Optionally, the updating module is configured to obtain a current local time and a current virtual time, calculate a new first time difference value according to the current local time and the current virtual time, and update the calculation formula according to the new first time difference value.
Optionally, the updating module is further configured to determine that the last simulation time is equal to the simulation time when the second time difference is smaller than a difference threshold.
In yet another aspect, a device for generating a virtual clock system based on a CBTC emulation system includes a processor and a memory coupled to the processor;
The memory is used for storing a computer program at least for executing the method for generating the virtual clock system based on the CBTC simulation system;
The processor is configured to invoke and execute the computer program in the memory.
The beneficial effects of the invention are as follows:
the method, the device and the equipment for generating the virtual clock system based on the CBTC simulation system are used for obtaining target simulation time and local time, calculating a first time difference value according to the target simulation time and the local time, obtaining a calculation formula of simulation time according to the first time difference value, calculating a second time difference value based on the calculation formula and the first time interval, judging whether the difference between the second time difference value and the first time difference value is smaller than a difference value threshold value, wherein the difference value threshold value is larger than the first time interval, and updating the first time difference value if the difference between the second time difference value and the first time difference value is larger than the difference value threshold value. The method comprises the steps of calculating the simulation time by using a computer time subtracting difference value, so that the technical problem of time calculation errors caused by unstable intervals during manual time calculation is solved, and the automatic recovery thought of the simulation time is used for avoiding system abnormality caused by simulated time jump caused by manual system time modification in the running process of software. The system can set the time starting point to be simulated by the practical training of the students, does not need to modify the current time of the computer, and is convenient and quick.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for generating a virtual clock system based on a CBTC simulation system according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a generating device of a virtual clock system based on a CBTC simulation system according to an embodiment of the present invention;
Fig. 3 is a schematic structural diagram of a generating device of a virtual clock system based on a CBTC simulation system according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be described in detail below. It will be apparent that the described embodiments are only some, but not all, embodiments of the invention. All other embodiments, based on the examples herein, which are within the scope of the invention as defined by the claims, will be within the scope of the invention as defined by the claims.
In order to at least solve the technical problems set forth in the present invention, an embodiment of the present invention provides a method for generating a virtual clock system based on a CBTC simulation system.
Fig. 1 is a flowchart of a method for generating a virtual clock system based on a CBTC simulation system according to an embodiment of the present invention, referring to fig. 1, the method provided by the embodiment of the present invention may include the following steps:
S11, acquiring target simulation time and local time.
In a specific implementation process, a CBTC simulation system of any school can be defined as a target simulation system, and then the clock system is generated based on the target simulation system by using the method for generating the virtual clock system based on the CBTC simulation system, so that practical training of students is facilitated.
For example, a time point where simulation is required, i.e., a target simulation time, which is 8:00 a.m., may be set by an administrator of a teacher, a class, or the like. The clock system is started, and the system acquires the target simulation time and the current time of the local computer, namely the local time, for example, the local time is 10:00 am. It should be noted that the target simulation time and the local time are only listed here, and are not limitative, and in this embodiment, for the purpose of describing the solution, the whole solution is described by taking the listed 8:00 am and 10:00 am as examples.
After the training starts, the local time changes and the simulation time also changes.
S12, calculating a first time difference value according to the target simulation time and the local time.
For example, for a clear and convenient description of the solution, after the system is started, the local time acquired is L. The first time difference s=local time L-target simulation time. In this embodiment, the first time difference s=10:00 am-8:00 am=2 hours, and the unit of the difference S may be set to be milliseconds for ease of calculation.
S13, acquiring a calculation formula of the simulation time according to the first time difference value.
For example, after the first time difference S is obtained, a calculation formula of the simulation time, that is, the simulation time c=the current local time l—the first time difference S is obtained.
In some embodiments, optionally, further comprising determining a complete simulation date based on the current date and the simulation time.
For example, after the simulation time is obtained, the current date is added to obtain a complete simulated date+time.
S14, calculating a second time difference value based on the calculation formula and the first time interval.
In some embodiments, optionally, calculating the second time difference based on the calculation formula and the first time interval includes calculating the second time difference at the first time interval, wherein the second time difference is a difference between the local time and the last simulation time.
After the simulation time calculation formula is obtained, judging whether the system is closed, if not, starting a single thread, and calculating a second time difference value S1 every first time interval. For example, the first time interval may be 10 milliseconds, with a new difference value, the second time difference value S1, being calculated every 10 milliseconds. Wherein the second time difference s1=the current local time L-the last simulation time O. Wherein, the most initial last simulation time 0=simulation time C.
S15, judging whether the difference between the second time difference value and the first time difference value is smaller than a difference value threshold value, wherein the difference value threshold value is larger than the first time interval.
After the second time difference value S1 is calculated, the difference between the second time difference value S1 and the first time difference value S is calculated, and the difference between the second time difference value S1 and the first time difference value S is compared with the difference threshold. For example, in the present embodiment, the difference threshold may be set to 100 ms, and the system calculates the second time difference S1 once every 10 ms, and determines whether the errors of S1 and S are within 100 ms.
S16, if the difference between the second time difference value and the first time difference value is larger than the difference value threshold value, updating the first time difference value.
In some embodiments, optionally, updating the first time difference value includes obtaining a current local time and a current virtual time, calculating a new first time difference value based on the current local time and the current virtual time, and updating a calculation formula based on the new first time difference value.
For example, if the errors of S1 and S exceed 100 ms, it is indicated that the computer time may be manually modified, so as not to affect the stability of the running system, and avoid the situation of time crossing, the logic performs automatic repair calculation, calculates a new difference value according to the current simulation time again, replaces the first time difference value S used before, and ensures that the simulation time does not jump along with the modification of the calculation current time.
The method for generating the virtual clock system based on the CBTC simulation system comprises the steps of obtaining target simulation time and local time, calculating a first time difference value according to the target simulation time and the local time, obtaining a calculation formula of simulation time according to the first time difference value, calculating a second time difference value based on the calculation formula and a first time interval, judging whether the difference between the second time difference value and the first time difference value is smaller than a difference value threshold value, wherein the difference value is larger than the first time interval, and updating the first time difference value if the difference between the second time difference value and the first time difference value is larger than the difference value threshold value. The method comprises the steps of calculating the simulation time by using a computer time subtracting difference value, so that the technical problem of time calculation errors caused by unstable intervals during manual time calculation is solved, and the automatic recovery thought of the simulation time is used for avoiding system abnormality caused by simulated time jump caused by manual system time modification in the running process of software.
Based on a general inventive concept, the embodiment of the invention also provides a device for generating the virtual clock system based on the CBTC simulation system.
Fig. 2 is a schematic structural diagram of a generating device of a virtual clock system based on a CBTC simulation system according to an embodiment of the present invention, referring to fig. 2, the device provided in the embodiment of the present invention may include an obtaining module 21, a first calculating module 22, a determining module 23, a second calculating module 24, a judging module 25, and an updating module 26;
an acquisition module 21 for acquiring a target simulation time and a local time;
A first calculation module 22, configured to calculate a first time difference value according to the target simulation time and the local time;
a determining module 23, configured to obtain a calculation formula of the simulation time according to the first time difference value;
A second calculation module 24 for calculating a second time difference based on the calculation formula and the first time interval;
a judging module 25, configured to judge whether the difference between the second time difference and the first time difference is smaller than a difference threshold, where the difference threshold is greater than the first time interval;
The updating module 26 is configured to update the first time difference value when the difference between the second time difference value and the first time difference value is greater than the difference threshold.
In some embodiments, the second calculating module is configured to calculate a second time difference value at intervals of the first time interval, where the second time difference value is a difference value between the local time and the last simulation time.
In some embodiments, the method comprises the steps of obtaining a current local time and a current virtual time, calculating a new first time difference value according to the current local time and the current virtual time, and updating a calculation formula according to the new first time difference value.
In some embodiments, optionally, the updating module is further configured to determine that the last simulation time is equal to the simulation time when the second time difference is less than the difference threshold.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
The device for generating the virtual clock system based on the CBTC simulation system comprises a device for obtaining target simulation time and local time, calculating a first time difference value according to the target simulation time and the local time, obtaining a calculation formula of simulation time according to the first time difference value, calculating a second time difference value based on the calculation formula and a first time interval, judging whether the difference between the second time difference value and the first time difference value is smaller than a difference value threshold value, wherein the difference value is larger than the first time interval, and updating the first time difference value if the difference between the second time difference value and the first time difference value is larger than the difference value threshold value. The method comprises the steps of calculating the simulation time by using a computer time subtracting difference value, so that the technical problem of time calculation errors caused by unstable intervals during manual time calculation is solved, and the automatic recovery thought of the simulation time is used for avoiding system abnormality caused by simulated time jump caused by manual system time modification in the running process of software.
Based on a general inventive concept, the embodiment of the invention also provides a device for generating a virtual clock system based on the CBTC simulation system.
Fig. 3 is a schematic diagram of a generating device of a virtual clock system based on a CBTC simulation system according to an embodiment of the present invention, referring to fig. 3, the generating device of a virtual clock system based on a CBTC simulation system according to an embodiment of the present invention includes a processor 31 and a memory 32 connected to the processor.
The memory 32 is used for storing a computer program at least for the method for generating a virtual clock system based on the CBTC simulation system according to any one of the above embodiments;
the processor 31 is used to call and execute the computer program in memory.
The foregoing is merely illustrative of the present invention, and the present invention is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
It is to be understood that the same or similar parts in the above embodiments may be referred to each other, and that in some embodiments, the same or similar parts in other embodiments may be referred to.
It should be noted that in the description of the present invention, the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. Furthermore, in the description of the present invention, unless otherwise indicated, the meaning of "plurality" means at least two.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and further implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
It is to be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above-described embodiments, the various steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, may be implemented using any one or combination of techniques known in the art, discrete logic circuits with logic gates for implementing logic functions on data signals, application specific integrated circuits with appropriate combinational logic gates, programmable Gate Arrays (PGAs), field Programmable Gate Arrays (FPGAs), and the like.
Those of ordinary skill in the art will appreciate that all or a portion of the steps carried out in the method of the above-described embodiments may be implemented by a program to instruct related hardware, where the program may be stored in a computer readable storage medium, and where the program, when executed, includes one or a combination of the steps of the method embodiments.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing module, or each unit may exist alone physically, or two or more units may be integrated in one module. The integrated modules may be implemented in hardware or in software functional modules. The integrated modules may also be stored in a computer readable storage medium if implemented in the form of software functional modules and sold or used as a stand-alone product.
The above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, or the like.
In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiments or examples. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
While embodiments of the present invention have been shown and described above, it will be understood that the above embodiments are illustrative and not to be construed as limiting the invention, and that variations, modifications, alternatives and variations may be made to the above embodiments by one of ordinary skill in the art within the scope of the invention.

Claims (4)

1.一种基于CBTC仿真系统的虚拟时钟系统的生成方法,其特征在于,包括:1. A method for generating a virtual clock system based on a CBTC simulation system, comprising: 获取目标模拟时间和本地时间;Get the target simulation time and local time; 根据所述目标模拟时间和本地时间,计算第一时间差值;Calculate a first time difference according to the target simulation time and the local time; 根据所述第一时间差值,获取模拟时间的计算公式;其中,模拟时间的计算公式为模拟时间=当前本地时间-第一时间差值;According to the first time difference, a calculation formula for simulation time is obtained; wherein the calculation formula for simulation time is simulation time = current local time - first time difference; 判断CBTC仿真系统是否关闭,若CBTC仿真系统关闭,则流程结束;若CBTC仿真系统未关闭,则开启单独线程;在所述单独线程中,每间隔第一时间间隔,基于所述计算公式和第一时间间隔,计算第二时间差值;其中,所述基于所述计算公式和第一时间间隔,计算第二时间差值,包括:间隔所述第一时间间隔,计算所述第二时间差值;所述第二时间差值为本地时间与上次模拟时间的差值;Determine whether the CBTC simulation system is shut down. If the CBTC simulation system is shut down, the process ends; if the CBTC simulation system is not shut down, start a separate thread; in the separate thread, calculate a second time difference based on the calculation formula and the first time interval at each first time interval; wherein, calculating the second time difference based on the calculation formula and the first time interval includes: calculating the second time difference at each first time interval; the second time difference is the difference between the local time and the last simulation time; 判断所述第二时间差值与第一时间差值的差是否小于差值阈值;所述差值阈值大于所述第一时间间隔;Determine whether the difference between the second time difference and the first time difference is less than a difference threshold; the difference threshold is greater than the first time interval; 若第二时间差值与第一时间差值的差大于差值阈值,则更新所述第一时间差值;If the difference between the second time difference and the first time difference is greater than the difference threshold, updating the first time difference; 其中,所述更新所述第一时间差值,包括:获取当前本地时间和当前虚拟时间,根据当前本地时间和当前虚拟时间,计算新第一时间差值;根据所述新第一时间差值,更新所述计算公式;Wherein, the updating of the first time difference includes: obtaining the current local time and the current virtual time, and calculating a new first time difference according to the current local time and the current virtual time; and updating the calculation formula according to the new first time difference; 还包括:若第二时间差值与第一时间差值的差小于或等于差值阈值,则上次模拟时间等于模拟时间。It also includes: if the difference between the second time difference and the first time difference is less than or equal to the difference threshold, the last simulation time is equal to the simulation time. 2.根据权利要求1所述的方法,其特征在于,还包括:2. The method according to claim 1, further comprising: 基于当前日期和模拟时间,确定完整模拟日期。Based on the current date and the simulation time, the full simulation date is determined. 3.一种基于CBTC仿真系统的虚拟时钟系统的生成装置,其特征在于,包括:获取模块、第一计算模块、确定模块、第二计算模块、判断模块和更新模块;3. A device for generating a virtual clock system based on a CBTC simulation system, characterized in that it comprises: an acquisition module, a first calculation module, a determination module, a second calculation module, a judgment module and an update module; 所述获取模块,用于获取目标模拟时间和本地时间;The acquisition module is used to acquire the target simulation time and the local time; 所述第一计算模块,用于根据所述目标模拟时间和本地时间,计算第一时间差值;The first calculation module is used to calculate a first time difference according to the target simulation time and the local time; 所述确定模块,用于根据所述第一时间差值,获取模拟时间的计算公式;其中,模拟时间的计算公式为模拟时间=当前本地时间-第一时间差值;The determination module is used to obtain a calculation formula for simulation time according to the first time difference; wherein the calculation formula for simulation time is simulation time = current local time - first time difference; 所述第二计算模块,用于判断CBTC仿真系统是否关闭,若CBTC仿真系统关闭,则流程结束;若CBTC仿真系统未关闭,则开启单独线程;在所述单独线程中,每间隔第一时间间隔,基于所述计算公式和第一时间间隔,计算第二时间差值;具体用于间隔所述第一时间间隔,计算所述第二时间差值;所述第二时间差值为本地时间与上次模拟时间的差值;The second calculation module is used to determine whether the CBTC simulation system is shut down. If the CBTC simulation system is shut down, the process ends; if the CBTC simulation system is not shut down, a separate thread is started; in the separate thread, at each first time interval, a second time difference is calculated based on the calculation formula and the first time interval; specifically, the second time difference is calculated at each first time interval; the second time difference is the difference between the local time and the last simulation time; 所述判断模块,用于判断所述第二时间差值与第一时间差值的差是否小于差值阈值;所述差值阈值大于所述第一时间间隔;The judging module is used to judge whether the difference between the second time difference and the first time difference is less than a difference threshold; the difference threshold is greater than the first time interval; 所述更新模块,用于在若第二时间差值与第一时间差值的差大于差值阈值时,更新所述第一时间差值;其中,所述更新所述第一时间差值,包括:获取当前本地时间和当前虚拟时间,根据当前本地时间和当前虚拟时间,计算新第一时间差值;根据所述新第一时间差值,更新所述计算公式;还用于若第二时间差值与第一时间差值的差小于或等于差值阈值,则上次模拟时间等于模拟时间。The updating module is used to update the first time difference if the difference between the second time difference and the first time difference is greater than a difference threshold; wherein, the updating of the first time difference includes: obtaining the current local time and the current virtual time, and calculating a new first time difference according to the current local time and the current virtual time; updating the calculation formula according to the new first time difference; and also for, if the difference between the second time difference and the first time difference is less than or equal to the difference threshold, then the last simulation time is equal to the simulation time. 4.一种基于CBTC仿真系统的虚拟时钟系统的生成设备,其特征在于,包括:处理器,以及与所述处理器相连接的存储器;4. A device for generating a virtual clock system based on a CBTC simulation system, characterized by comprising: a processor, and a memory connected to the processor; 所述存储器用于存储计算机程序,所述计算机程序至少用于执行权利要求1~2任一项所述的基于CBTC仿真系统的虚拟时钟系统的生成方法;The memory is used to store a computer program, and the computer program is used to at least execute the method for generating a virtual clock system based on a CBTC simulation system according to any one of claims 1 to 2; 所述处理器用于调用并执行所述存储器中的所述计算机程序。The processor is used to call and execute the computer program in the memory.
CN202011427151.7A 2020-12-09 2020-12-09 Method, device and equipment for generating a virtual clock system based on a CBTC simulation system Active CN112597635B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011427151.7A CN112597635B (en) 2020-12-09 2020-12-09 Method, device and equipment for generating a virtual clock system based on a CBTC simulation system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011427151.7A CN112597635B (en) 2020-12-09 2020-12-09 Method, device and equipment for generating a virtual clock system based on a CBTC simulation system

Publications (2)

Publication Number Publication Date
CN112597635A CN112597635A (en) 2021-04-02
CN112597635B true CN112597635B (en) 2024-12-03

Family

ID=75191708

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011427151.7A Active CN112597635B (en) 2020-12-09 2020-12-09 Method, device and equipment for generating a virtual clock system based on a CBTC simulation system

Country Status (1)

Country Link
CN (1) CN112597635B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115309234B (en) * 2022-10-10 2023-01-31 北京奥星贝斯科技有限公司 Method and device for determining TSC frequency and computer readable storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111208866A (en) * 2019-12-27 2020-05-29 视联动力信息技术股份有限公司 A system time adjustment method and device

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101989417B (en) * 2009-08-05 2013-01-02 承景科技股份有限公司 Method and system for automatically correcting sampling clock in digital video system
CN103914452B (en) * 2012-12-30 2017-03-29 航天信息股份有限公司 Time error correction scheme and system in a kind of distributed file system
CN103413070B (en) * 2013-07-09 2016-08-10 北京深思数盾科技股份有限公司 A kind of method and device of local clock calibration
CN106033376B (en) * 2015-03-20 2019-11-15 深圳市航电技术研究院 Clock transition fault-tolerance processing method and device
CN105260227B (en) * 2015-09-29 2019-04-26 联想(北京)有限公司 A kind of data correcting method and electronic equipment
CN107277622B (en) * 2017-06-15 2020-07-14 深圳Tcl新技术有限公司 Time hopping processing method, television and computer-readable storage medium
CN107544619B (en) * 2017-06-27 2020-05-12 新华三云计算技术有限公司 Time synchronization method and device
KR102096963B1 (en) * 2017-07-26 2020-04-03 한국철도기술연구원 Method for constructing virtual-coupled train sets and train control device thereof
CN109445924A (en) * 2018-11-06 2019-03-08 网易(杭州)网络有限公司 Time virtual method, device, medium and electronic equipment
CN109586691B (en) * 2018-11-19 2022-12-30 珠海市杰理科技股份有限公司 Clock calibration method, device, system, storage medium and computer equipment
CN110620632B (en) * 2019-09-12 2021-02-23 华为技术有限公司 A time synchronization method and device
CN110928197B (en) * 2019-11-28 2021-08-17 西门子交通技术(北京)有限公司 Simulation test method and system for automatic control of train
CN111813507B (en) * 2020-07-22 2023-05-02 超越科技股份有限公司 Method, system, equipment and medium for high availability of virtual machine based on sanlock

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111208866A (en) * 2019-12-27 2020-05-29 视联动力信息技术股份有限公司 A system time adjustment method and device

Also Published As

Publication number Publication date
CN112597635A (en) 2021-04-02

Similar Documents

Publication Publication Date Title
US10565091B2 (en) Method and apparatus for automatic cross-system program debugging
CN114186697B (en) Method and device for generating and applying deep learning model based on deep learning framework
CN112597635B (en) Method, device and equipment for generating a virtual clock system based on a CBTC simulation system
CN102955738B (en) Driving and driven hybrid testing method for simulation system
RU2541857C1 (en) Method of finding faults in continuous dynamic system based on input of sample deviations
CN114324368B (en) Modified plastic production detection method and system based on mechanical vision detection
CN112769233A (en) Detection platform and method for monitoring device of metering system of transformer substation
CN115204387B (en) Learning methods, devices and electronic equipment under hierarchical goal conditions
CN114266358B (en) Model resource processing method, device, computer equipment and storage medium
TW202536721A (en) Multi-agent reinforcement learning system for coverage closure
CN106610895B (en) A kind of simulation model appraisal procedure and device
CN114464178A (en) Evaluation data acquisition method, device and system, electronic equipment and storage medium
RU2017105599A (en) SYSTEM FOR DETERMINING HEART CONDITION
CN103593295B (en) A kind of multi-branch software defect tracking and system
CN105893332B (en) A kind of computational methods suitable for assembled state spatial model transfer rate matrix
CN113643128B (en) Automatic testing method and device for bank products
US9239893B2 (en) Method and process computer for computation of the state variables of a hybrid differential-algebraic process model
CN107329869B (en) A system-on-chip simulation method and device
CN116826758A (en) A method and device for rapid evaluation of transient voltage stability
DeAntoni et al. RT-simex: retro-analysis of execution traces
KR101510058B1 (en) System and method for discrete event system specification based embeded device modeling and simulation
CN106502882B (en) Test script design method suitable for urban rail software automated testing
CN112461250A (en) Vehicle dead reckoning service evaluation method and device, simulation equipment and medium
RU2613402C1 (en) Search method of topological defects in continuous dynamic system based on sensitivity functions
Korosec et al. Supporting the transition to an agile test matrix

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 102600 205, Floor 2, Building 2, No. A20, Jinyuan Road, Daxing District, Beijing

Applicant after: Youdao Technology Co.,Ltd.

Address before: 100089 Room 608, building 5, courtyard 38, Linfeng 2nd Road, Haidian District, Beijing

Applicant before: BEIJING ZHILIAN YOODAO SCIENCE AND TECHNOLOGY CO.,LTD.

GR01 Patent grant
GR01 Patent grant