CN106407580A - A script-based rule detection remote control shutting method - Google Patents

A script-based rule detection remote control shutting method Download PDF

Info

Publication number
CN106407580A
CN106407580A CN201610854976.4A CN201610854976A CN106407580A CN 106407580 A CN106407580 A CN 106407580A CN 201610854976 A CN201610854976 A CN 201610854976A CN 106407580 A CN106407580 A CN 106407580A
Authority
CN
China
Prior art keywords
data
engine
script
rule
controlled locking
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.)
Granted
Application number
CN201610854976.4A
Other languages
Chinese (zh)
Other versions
CN106407580B (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.)
Nanjing Guodian Nanzi Railway Traffic Engineering Co Ltd
Original Assignee
Nanjing Guodian Nanzi Railway Traffic Engineering 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 Nanjing Guodian Nanzi Railway Traffic Engineering Co Ltd filed Critical Nanjing Guodian Nanzi Railway Traffic Engineering Co Ltd
Priority to CN201610854976.4A priority Critical patent/CN106407580B/en
Publication of CN106407580A publication Critical patent/CN106407580A/en
Application granted granted Critical
Publication of CN106407580B publication Critical patent/CN106407580B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • Geometry (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a script-based rule detection remote control shutting method which is characterized in that remote control shutting is driven by a data engine and executed by acquiring logic rules via a script engine. The method specifically comprises the steps that the data engine receives message instructions from a real-time database and distributes the received messages to each data apparatus object; when the data apparatus objects receive the messages, whether a control function is executed is judged by driving the script engine and logic rule configuration objects, and results are written into the data engine; the data engine writes data into the real-time database and the real-time database notifies the other apparatuses of the results and remote control shutting is completed. The script-based rule detection remote control shutting method can be extensively applied various kinds of electrical power monitoring training simulation systems and can provide the remote control logic shutting function for apparatuses in various kinds of electrical power monitoring simulation scenes; the function is fulfilled by using advanced design concepts, namely, by applying data drive, script technology and logic rule configuration.

Description

Rule detection romote controlled locking method based on script
Technical field
Present invention is mainly applied in urban track traffic power monitoring Training Simulation System, in order in ASS The middle romote controlled locking function of realizing in electric power monitoring system, using script technology motility and configurability the advantages of complete Electric blocking function under various analog simulation scenes.
Background technology
Because the complexity of city rail electric power monitoring system and system equipment are expensive, and it is subject to site environment Application, security performance etc. limit, tend not to directly carry out the study of electric power monitoring system and training at the scene it is therefore necessary to Simulate various actual motion scenes using power monitoring Training Simulation System, the electric blocking of wherein remote control is to be in power equipment A kind of method preventing equipment malfunction from making and often using, therefore need to realize by the method for software in Training Simulation System Romote controlled locking function in each scene, thus save substantial amounts of cost of equipment.
In power monitoring Training Simulation System, romote controlled locking function typically passes through scene configuration file and background program Hard coded mode carries out logical judgment to realize, but the method lack motility and can increase in engineer applied many must not The workload wanted, had both configured multiple different document scenes according to different logical conditions when such as realizing by scene configuration file Increased the maintenance that workload is also unfavorable for system.Proposed by the present invention based on the rule detection romote controlled locking method of script be The hardwire of a kind of brand-new analog simulation scene actual motion equipment realized under this power monitoring Training Simulation System platform Or logic blocking function in equipment.
Content of the invention
Rule detection romote controlled locking method based on step technology proposed by the present invention utilizes object-oriented and script technology Various logic blocking function in simulated implementation actual motion, by the equipment that remotely-controlled object is associated carry out visual configuration with And dependency rule is configured, the logical relation according to remotely-controlled object equipment selects different regular configuration files to can achieve Blocking function, takes the method both can avoid logic rules configuration that repeat, substantial amounts of in Training Simulation System, simultaneously also real Show the motility of the associate device of different remotely-controlled objects.
The technical solution adopted in the present invention is:A kind of rule detection romote controlled locking method based on script, its feature exists In:Romote controlled locking to be driven by data engine, and is executed by script engine acquisition logic rule;It is specially:Data engine Receive the information order from real-time database, and the message receiving is distributed to each data equipment object;When data sets Standby object receives and configures object and judge whether this control function executes by driving script engine and logic rule during message, And writing the result into data engine, data engine writes data into real-time data base, and result is notified other to set by real-time data base Standby, and complete romote controlled locking.
Delta data is notified data engine by message notification mechanism by real-time data base, and data engine is according to judgement The control object correlated inputs object of registration, and drive script engine to be judged by logic rule and execute, the most distant Control locking result is write in real-time database by data engine and notifies other application program, and data engine can be simultaneously in the process Receive any number of message in the real-time database, and script engine driven according to different message, by script engine Lai Result is simultaneously fed back to data engine by execution.
Script engine configures, by logic rule, the logic rule specified in object and executes the logical judgment of correlation and incite somebody to action Romote controlled locking is directly output to data engine, can prevent some equipment malfunctions by romote controlled locking signal it is also possible to simulation is imitative Truth close malfunction operation, take script engine both can be immediately performed by result feed back to other application operation can also wait Delay operation result, be increased the motility of emulation in ASS and is increased by different rule detection configurations Carry out the configurability of system.
Logic rule configuration refers to build different logical operations according to different remote manipulation logics, this rule Configuration file can be configured by configuration tool, it would however also be possible to employ existing rule configuration, under different simulated environment Both configuration work can have been reduced can also increase different rule configurations by configuration tool, can form one by long term accumulation Set completely effective electric analog training logic rule storehouse.
Build the execution mechanism of whole romote controlled locking by the driving of data engine and both script engines, using data Device object and logic rule configure object as the mechanism of whole rule detection, logical when there being any remote manipulation message informing Cross execution mechanism and rule detection mechanism to complete the romote controlled locking function of whole simulated scenario.
Beneficial effects of the present invention:
Can be widely applied to various power monitoring trainings based on the rule detection romote controlled locking implementation method of script to imitate In true system, provide remote control logic blocking function for the equipment in various power monitoring simulating scenes, by setting using advanced Meter thought is realized this function and takes data-driven, script technology and logic rule configuration to realize.Engineering staff can be remote control Object-based device creates different romote controlled locking logical relations, also can obtain existing latching logic relation from knowledge base simultaneously, Flexible configuration both can be reached by the method, met the romote controlled locking scheme of various complexity, also expanded equipment simultaneously and patrolled Collect relational knowledge base, provide more workloads supported, decrease engineering configuration for later Training Simulation System, also meet The demand of various different romote controlled locking scenes.
Brief description
Fig. 1, the romote controlled locking method Organization Chart of the embodiment of the present invention.
Fig. 2, the logic script false code of the embodiment of the present invention.
Fig. 3, the data equipment object definition of the embodiment of the present invention.
Fig. 4, the rule file configuration object of the embodiment of the present invention.
Specific embodiment
Below in conjunction with the drawings and specific embodiments, the present invention is further explained in detail.
Rule detection romote controlled locking method framework based on script as shown in figure 1, romote controlled locking function by data engine Lai Drive, and logic rule are obtained by script engine and execute.Data engine receives the information order from real-time database, and will connect The message receiving is distributed to each data equipment object.When object-based device receives message pass through drive script engine and Logic rule file is judging whether this control function executes, and writes the result into data engine, and data engine writes data into Real-time data base, result is notified miscellaneous equipment by real-time data base, and completes romote controlled locking function.
As shown in Figure 3, the definition of this object is modeled data equipment object definition using OO thought, should The main realization of object configures the data that equipment is associated, the basis judging by the associated data of this equipment as logic rule Data, wherein Name attribute represent that the title of this data equipment object, Control*Link (wherein * represents 1-10) represent this number According to the control object of device object association, State*Link (wherein * represents 1-10) represents the letter of this data equipment object association Number amount object, Value*Link (wherein * represents 1-10) represent this data equipment object association distant measurement object, Tag*Link (wherein * represents 1-10) represents the logic rule configuration object of this data equipment object association.Logic rule configure object definition As shown in Figure 4, the File attribute of wherein this object is used for stored logic Rule Information.Semaphore and distant measurement object are mainly used In the signal value storing this data equipment object correlation and measured value, and the Rule of judgment as romote controlled locking, when input value is sent out During changing, configure object's property value by reading logic rule, this logic rule configuration file executed by script engine, Implementing result is taken out and writes data engine.
Delta data is notified data engine by message notification mechanism by real-time data base, and data engine is according to judgement The control object correlated inputs object of registration, and drive script engine to be judged by logic rule and execute, the most distant Control locking result is write in real-time database by data engine and notifies other application program, and data engine can be simultaneously in the process Receive any number of message in the real-time database, and script engine driven according to different message, by script engine Lai Result is simultaneously fed back to data engine by execution.
Script engine configures, by logic rule, the logic rule specified in object and executes the logical judgment of correlation and incite somebody to action Romote controlled locking is directly output to data engine, can prevent some equipment malfunctions by romote controlled locking signal it is also possible to simulation is imitative Truth close malfunction operation, take script engine both can be immediately performed by result feed back to other application operation can also wait Delay operation result, be increased the motility of emulation in ASS and is increased by different rule detection configurations Carry out the configurability of system.
Logic rule configuration refers to build different logical operations according to different remote manipulation logics, this rule Configuration file can be configured by configuration tool, it would however also be possible to employ existing rule configuration, under different simulated environment Both configuration work can have been reduced can also increase different rule configurations by configuration tool, can form one by long term accumulation Set completely effective electric analog training logic rule storehouse.
Build the execution mechanism of whole romote controlled locking by the driving of data engine and both script engines, using data Device object and logic rule configuration, as the mechanism of whole rule detection, are passed through when there being any remote manipulation message informing to hold Row mechanism and rule detection mechanism are completing the romote controlled locking function of whole simulated scenario.Wherein logic rule configuration object storage Script information as shown in Figure 2, script engine executes this rule file by parsing and exports result to data engine.
It is to notify to disappear by obtaining remote control from real-time data base based on the rule detection romote controlled locking implementation method of script Breath, executes corresponding logic rule file according to this message-driven script engine, result feeds back in real-time data base the most at last, The accuracy of romote controlled locking can be completed by the method, also enable different scenes, the locking under the conditions of Different Logic.
Typical case's application
As the critical function assembly of applicant's urban track traffic power monitoring Training Simulation System, the rule based on script Then detection romote controlled locking implementation method has been applied in the various romote controlled locking scenes in electric analog training system, the method Largely reduce the workload that engineering staff builds logical relation, also form various remote control logic locking rules simultaneously and join Put document knowledge base, provide for later project and widely support.At present, this functional module has been successfully applied to Line of Nanjing Subway In No. three lines and No. four line power monitoring Training Simulation System of Line of Nanjing Subway, users are obtained consistent with engineering staff good Comment.
Above embodiment technological thought only to illustrate the invention is it is impossible to limit protection scope of the present invention with this, all It is according to technological thought proposed by the present invention, any unsubstantiality being done on the basis of technical scheme is changed, and each falls within this Within bright protection domain.

Claims (9)

1. a kind of rule detection romote controlled locking method based on script it is characterised in that:Romote controlled locking to be driven by data engine, And executed by script engine acquisition logic rule;It is specially:Data engine receives the information order from real-time database, and will The message receiving is distributed to each data equipment object;Drawn by driving script when data equipment object receives message Hold up and logic rule configure object to judge whether this control function executes, and write the result into data engine, data engine Write data into real-time data base, result is notified miscellaneous equipment by real-time data base, and completes romote controlled locking.
2. romote controlled locking method according to claim 1 it is characterised in that:
Data equipment object is modeled using OO thought, and the realization of this object configures the data that equipment is associated, The basic data being judged as logic rule by the associated data of this equipment, wherein Name attribute represent this data equipment object Title, Control*Link represent the control object of this data equipment object association, State*Link represents this data equipment The semaphore object of object association, Value*Link represents the distant measurement object of this data equipment object association, Tag*Link table Show the logic rule configuration object of this data equipment object association;Wherein * represents 1-10.
3. romote controlled locking method according to claim 1 it is characterised in that:
The File attribute that logic rule configure object is used for stored logic Rule Information, and semaphore and distant measurement object are used for storing The related signal value of this data equipment object and measured value, and the Rule of judgment as romote controlled locking, when input value changes When, configure object's property value by reading logic rule, this logic rule configuration file is executed by script engine, will execute Result is taken out and is write data engine.
4. the romote controlled locking method according to claim 1,2 or 3 it is characterised in that:
Delta data is notified data engine by message notification mechanism by real-time data base, and data engine has been registered according to judgement Control object correlated inputs object, and drive script engine to be judged by logic rule and execute, remote control is closed the most at last Lock result is write by data engine and notifies other application program in real-time database, and data engine can receive simultaneously in the process Any number of message in real-time database, and script engine is driven according to different message, executed by script engine And result is fed back to data engine.
5. romote controlled locking method according to claim 4 it is characterised in that:
Script engine configures the logic rule specified in object by logic rule and executes the logical judgment of correlation and by remote control Locking is directly output to data engine, can prevent some equipment malfunctions by romote controlled locking signal it is also possible to analog simulation phase Close malfunction operation, take script engine both can be immediately performed by result feed back to other application operation can also wait time delay Operating result, increased the motility of emulation in ASS and configures increase by different rule detection and be The configurability of system.
6. romote controlled locking method according to claim 3 it is characterised in that:
Logic rule configuration refers to build different logical operations according to different remote manipulation logics, and this rule configures File can be configured by configuration tool, it would however also be possible to employ existing rule configuration, both may be used under different simulated environment Different rule configurations can also be increased by configuration tool to reduce configuration work, can be formed by long term accumulation a set of complete Whole effective electric analog training logic rule storehouse.
7. the romote controlled locking method according to claim 1,2 or 3 it is characterised in that:
Build the execution mechanism of whole romote controlled locking by the driving of data engine and both script engines, using data equipment Object and logic rule configure object as the mechanism of whole rule detection, pass through when there being any remote manipulation message informing to hold Row mechanism and rule detection mechanism are completing the romote controlled locking function of whole simulated scenario.
8. romote controlled locking method according to claim 7 it is characterised in that:
Logic rule configuration object storage script information, script engine executes this rule file by parsing and exports result to number According to engine.
9. romote controlled locking method according to claim 1 it is characterised in that:
It is by obtaining remote control notification message, root from real-time data base based on the rule detection romote controlled locking implementation method of script Execute corresponding logic rule file according to this message-driven script engine, result feeds back in real-time data base the most at last, passes through The method can complete the accuracy of romote controlled locking, also enables different scenes, the locking under the conditions of Different Logic.
CN201610854976.4A 2016-09-27 2016-09-27 Rule detection romote controlled locking method based on script Active CN106407580B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610854976.4A CN106407580B (en) 2016-09-27 2016-09-27 Rule detection romote controlled locking method based on script

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610854976.4A CN106407580B (en) 2016-09-27 2016-09-27 Rule detection romote controlled locking method based on script

Publications (2)

Publication Number Publication Date
CN106407580A true CN106407580A (en) 2017-02-15
CN106407580B CN106407580B (en) 2019-06-07

Family

ID=57997557

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610854976.4A Active CN106407580B (en) 2016-09-27 2016-09-27 Rule detection romote controlled locking method based on script

Country Status (1)

Country Link
CN (1) CN106407580B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106647337A (en) * 2017-02-27 2017-05-10 南京国电南自轨道交通工程有限公司 Electrical equipment remote control locking characteristic simulation method based on LUA scripts
CN109557827A (en) * 2017-09-25 2019-04-02 中国电力科学研究院 A kind of generation of power grid logic control script and result emulation mode and system
CN110246255A (en) * 2019-06-18 2019-09-17 深圳市简工智能科技有限公司 Smart lock controls method, apparatus, computer readable storage medium and system
CN111984247A (en) * 2020-09-11 2020-11-24 得到(天津)文化传播有限公司 Service processing method and device and electronic equipment
CN112669944A (en) * 2020-12-22 2021-04-16 山东众阳健康科技集团有限公司 Medical monitoring method, system, medium and equipment based on quality control engine

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6757903B1 (en) * 1999-04-05 2004-06-29 Gateway, Inc. Object driven software architecture method and apparatus
CN1738307A (en) * 2004-08-20 2006-02-22 中兴通讯股份有限公司 Device and method for subsystem dispatching and drive in integration system
CN101206253A (en) * 2006-12-20 2008-06-25 英华达(上海)电子有限公司 Device and method for synchronism update of map data on handhold GPS terminal device
CN102012809A (en) * 2010-11-10 2011-04-13 国电南瑞科技股份有限公司 Comprehensive monitoring linkage module design and implementation method
CN102788915A (en) * 2011-06-03 2012-11-21 广西电网公司电力科学研究院 Feeder automation online simulation method based on maintenance workstation
CN103928985A (en) * 2014-04-09 2014-07-16 国家电网公司 Automatic interlocking and locking logic detection method based on GOOSE communication mechanism

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6757903B1 (en) * 1999-04-05 2004-06-29 Gateway, Inc. Object driven software architecture method and apparatus
CN1738307A (en) * 2004-08-20 2006-02-22 中兴通讯股份有限公司 Device and method for subsystem dispatching and drive in integration system
CN101206253A (en) * 2006-12-20 2008-06-25 英华达(上海)电子有限公司 Device and method for synchronism update of map data on handhold GPS terminal device
CN102012809A (en) * 2010-11-10 2011-04-13 国电南瑞科技股份有限公司 Comprehensive monitoring linkage module design and implementation method
CN102788915A (en) * 2011-06-03 2012-11-21 广西电网公司电力科学研究院 Feeder automation online simulation method based on maintenance workstation
CN103928985A (en) * 2014-04-09 2014-07-16 国家电网公司 Automatic interlocking and locking logic detection method based on GOOSE communication mechanism

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
刘孟觉 等: "轨道交通综合监控系统在线联动功能研究", 《计算机测量与控制》 *
李艳军 等: "综合自动化变电站防误闭锁系统应用研究", 《华中电力》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106647337A (en) * 2017-02-27 2017-05-10 南京国电南自轨道交通工程有限公司 Electrical equipment remote control locking characteristic simulation method based on LUA scripts
CN106647337B (en) * 2017-02-27 2019-11-05 南京国电南自轨道交通工程有限公司 Electrical equipment romote controlled locking characteristic Simulation method based on LUA script
CN109557827A (en) * 2017-09-25 2019-04-02 中国电力科学研究院 A kind of generation of power grid logic control script and result emulation mode and system
CN109557827B (en) * 2017-09-25 2021-10-01 中国电力科学研究院 Generation and result simulation method and system of power grid logic control script
CN110246255A (en) * 2019-06-18 2019-09-17 深圳市简工智能科技有限公司 Smart lock controls method, apparatus, computer readable storage medium and system
CN111984247A (en) * 2020-09-11 2020-11-24 得到(天津)文化传播有限公司 Service processing method and device and electronic equipment
CN112669944A (en) * 2020-12-22 2021-04-16 山东众阳健康科技集团有限公司 Medical monitoring method, system, medium and equipment based on quality control engine

Also Published As

Publication number Publication date
CN106407580B (en) 2019-06-07

Similar Documents

Publication Publication Date Title
CN106407580A (en) A script-based rule detection remote control shutting method
CN107944193A (en) Avionics semi-matter simulating system
CN109298317A (en) A kind of Intelligent test device and its test method of middle low-frequency channel
CN106650149B (en) Modelica model-based runtime fault injection system and method
CN103293964A (en) Simulation excitation and comprehensive testing method for electromechanical non-bus signals and bus signals
zu Hörste et al. Modelling functionality of train control systems using petri nets
CN110554956B (en) BDMS automatic test method
CN108228454A (en) A kind of electronic product software reliability assessment method based on environmental bug injection
Wang et al. Cloud-based simulated automated testing platform for virtual coupling system
Liu et al. Defect prediction of radar system software based on bug repositories and behavior models
CN103926842A (en) Photoelectric equipment semi-physical simulation computer control system based on HLA
Keming et al. Formal modeling and data validation of general railway interlocking system
CN103544345A (en) Intelligent anti-misoperation simulation system of operation tickets
CN106096123A (en) A kind of VMM for passive label chip verifies system and method
Lv et al. Model-based test cases generation for onboard system
Zhang et al. Testing method of integrated modular avionics health monitoring
Huang et al. Model-based systems engineering for prognostic and health management design
Bonfiglio et al. Composable Framework Support for Software-FMEA through Model Execution
Yu et al. A graphical method for multi-signal flow graph modeling and testability analysis based on visio control component
Zeng et al. A test method of utility system management computer based on rhapsody design model
Cai et al. Modeling and analyzing multi-agent task plans for intelligent virtual training system using Petri nets
Zhang et al. Applying GIS and multilayered interactive cellular automata to high-speed train control system modeling
WAN et al. Composable modeling method for generic test platform for CBTC system based on the port object
Hu et al. Reform of Experimental Teaching by Integrating Virtual Simulation and Remote Control
Villani et al. From academia to industry: challenges and lessons learned from a model-based-testing experience

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB03 Change of inventor or designer information

Inventor after: Luo Cun

Inventor after: Li Youwen

Inventor after: Chu Hongjian

Inventor after: Yue Yiyang

Inventor after: Wang Zhixin

Inventor before: Luo Cun

Inventor before: Li Youwen

Inventor before: Chu Hongjian

Inventor before: Yue Yiyang

Inventor before: Wang Zhixin

CB03 Change of inventor or designer information
GR01 Patent grant
GR01 Patent grant