CN104111838B - Tramcar integration dispatching linkage logic implementation method - Google Patents
Tramcar integration dispatching linkage logic implementation method Download PDFInfo
- Publication number
- CN104111838B CN104111838B CN201410346459.7A CN201410346459A CN104111838B CN 104111838 B CN104111838 B CN 104111838B CN 201410346459 A CN201410346459 A CN 201410346459A CN 104111838 B CN104111838 B CN 104111838B
- Authority
- CN
- China
- Prior art keywords
- linkage
- processing module
- tramcar
- logic
- execution
- 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
Abstract
The invention discloses a tramcar integration dispatching linkage logic implementation method. The tramcar integration dispatching linkage logic implementation method includes: 1) parsing and executing an expression; 2) presetting operation and guaranteeing integrality. The tramcar integration dispatching linkage logic implementation method solves the problems that a linkage logic processing module does not allow a user to perform flexible settings and expandability of the linkage logic processing module is not strong in the prior art, improves setting and execution flexibility and efficiency and the expandability of the linkage logic processing module, and guarantees execution safety and supports transaction processing by using a preset technology.
Description
Technical field
The invention belongs to tramcar scheduling linkage technique field, more particularly, to one kind is in tramcar integrated dispatch and control
The method realizing each integral subsystem equipment linkage logic in system processed, is characterized in applying the expression parsing based on multiway tree
Technology, and build containment mapping close tie up in multidimensional data structure, and using inheritance method design reply dissimilar and
The calculation expression processing method of complexity, to guarantee motility and the efficiency of system interlink logic realization.
Background technology
The major function of tramcar synthesis scheduling system includes the real-time collection to electromechanical equipment that is completely static or moving
Coordination linkage function two large divisions between middle control function and each integral subsystem.On the one hand, by tramcar integrated dispatch
System, can achieve and power equipment, fire alarm information and its equipment, station and control centre's ring control equipment, interval ring control are set
Standby, ambient parameter, shielding door equipment, Flood gate equipment, Escalator equipment, luminaire, access control equipment, AFC set
Standby, broadcast and closed circuit television equipment, the broadcast information of Customer information display system and clock information etc. carry out real-time centralized watch
With the basic function controlling;On the other hand, by synthesis scheduling system, also can achieve night non-traffic-operating period under, normal in the daytime
Coordination and interaction etc. between each correlation integral system equipment under traffic-operating period, under urgent emergency case and under visual plant failure condition
Premium Features.
Therefore, equipment linkage logical process is the core of tramcar synthesis scheduling system, and automatic with electromechanical equipment
The raising of change degree and the extension of operation automatization demand, its importance increasingly improves.But, processing equipment linkage is logically present
Some difficult points:Linkage triggering and linkage execution are dynamic processes, and this process service logic is because of operation scene and passenger's feelings
The difference of the objective condition such as condition and change various, some demands are very simple, and have is then extremely complex, and, operation process
In, the demand of user also dynamically can be adjusted according to actual traffic-operating period.Traditional linkage logic processing module does not allow
User is flexibly arranged according to demand, and the expandability of module itself is not strong, when certain logic complexity exceedes
During its disposal ability, then often must change processing module itself to meet its demand.
Content of the invention
A kind of logic realization method it is an object of the invention to provide tramcar integrated dispatch links, to solve existing skill
In art, linkage logic processing module does not allow user flexibly to be arranged according to demand, and the expandability of module itself is not
Strong problem, improves motility, efficiency and the module extensibility itself of setting and execution, and guarantees to hold using preset technology
Row safety simultaneously supports issued transaction.
In order to achieve the above object, the present invention provides a kind of tramcar integrated dispatch linkage logic realization method, including
Following steps:
1) expression parsing and execution:
When user is defined to the linkage trigger condition of operation logic and implementation procedure, processing module judge current factor
Whether during satisfaction linkage logical triggering condition and processing module is according to during the execution combined operation of set prediction scheme, all call place
Reason module, this processing module solves to the linkage trigger condition being expressed as expression formula and linkage implementation procedure according to preset algorithm
Analysis, judges its correctness, and by logic execution therein;
2) operation is preset and ensures integrity:
Before processing module executes any actual combined operation, remote control preset operation is first carried out by this processing module;First
The preset operation of remote control first carrying out is checked by the comprehensive automation processing module of field level, and process of checking is according to the preset operation of remote control
Simulation multioperation practice logic execution, simulates implementing result situation, and result and check suggestion are sent back to this processing module, should
Foldback result is compared by processing module with default processing scheme, and the branch according to meeting condition carries out corresponding operating.
Beneficial effects of the present invention:
1st, linkage trigger condition and linkage execution operation are defined by expression formula, and user can flexibly define according to demand:
System interlink trigger condition and linkage execution operation are defined by expression formula, and the definition which greatly enhances both is flexible
Degree, user, when cannot realize the definition of some special or complex logic using system existing setting interface, can adopt expression formula
Mode set.And system to be parsed using self-defined compiler, to compile and execution system linkage trigger condition and linkage
The corresponding expression formula of execution operation is it is ensured that the execution efficiency of system and maintainability.
2nd, guarantee to link using pre-execution and Transaction Technology and execute safety and the integrity of operation:
When the event of generation meets linkage trigger condition, the system predetermined combined operation of execution, operation is divided into that " remote control is pre-
Put " and " remote control execution " two steps;The preset operation of remote control being first carried out is checked by the complex automatic system of field level, mould
Intend the execution of multioperation practice logic, simulate implementing result situation, and result and check suggestion are sent back to operation actuator, behaviour
Make actuator foldback result is compared with default processing scheme, the branch according to meeting condition carries out corresponding operating, distant
Control execution can meet transactional and require the transactional integrity it is ensured that operating.
Brief description
Fig. 1 illustrates a kind of present invention tramcar integrated dispatch linkage structural principle in embodiment for the logic realization method
Schematic diagram.
Fig. 2 illustrates the structural principle block diagram of expression parsing and execution in the present invention.
Fig. 3 illustrates the particular flow sheet of expression parsing and execution in the present invention.
Specific embodiment
For the ease of the understanding of those skilled in the art, the present invention is made further with accompanying drawing with reference to embodiment
Bright, the content not limitation of the invention that embodiment refers to.
Shown in reference Fig. 1, a kind of tramcar integrated dispatch linkage logic realization method of the present invention, including step such as
Under:
1) expression parsing and execution:When user is defined to the linkage trigger condition of operation logic and implementation procedure,
Processing module judges whether current factor meets during linkage logical triggering condition and processing module is held according to set prediction scheme
During row combined operation, all call processing module, this processing module triggers bar according to preset algorithm to the linkage being expressed as expression formula
Part and linkage implementation procedure are parsed, and judge its correctness, and by logic execution therein.
2) operation is preset and ensures integrity:Before processing module executes any actual combined operation, by this processing module
Remote control preset operation is first carried out;The preset operation of remote control being first carried out can be by the comprehensive automation processing module school of field level
Core, process of checking executes according to remote control preset operation simulation multioperation practice logic, simulates implementing result situation, and by result and
Check suggestion and be sent back to this processing module, foldback result is compared with default processing scheme by this processing module, according to satisfaction
The branch of condition carries out corresponding operating.The actual remote control execution of this processing module can meet transactional and require the thing it is ensured that operating
Business integrity.
A kind of tramcar integrated dispatch linkage logic realization method of the present invention can support Windows, Linux and Unix
The cross-system operation platform of operating system;Comprise the system interlink logic realization class of calculation function and external interface;Specifically real
Shi Shi, based on the number defining data operation action type, definition data operation condition types, definition linkage logic setting and execution
The asterisk wildcard setting according to structure, definition linkage logic and executing and all kinds of expression formula computational methods of definition.
Below in conjunction with accompanying drawing 2 and Fig. 3, the invention will be further described:
1st, expression parsing and execution:
Processing module refers specifically on behalf of one special, the editor of efficient expression formula, compiling and execution system, wherein compile
The process of translating can be divided into Shaping, syntax parsing and three subprocess of Object Code Generator, referring in particular to shown in Fig. 2;
1.1) Shaping program is scanned to expression formula character string and identifies, is closely connected according to intercharacter, sentences
Whether word break character set logically constitutes a word;If running into beginning of letter, followed by the character stream of letter or number is then
It is designated identifier.
1.2) syntax parsing program according to language grammatical ruless the word sequence that Shaping exports is resolved into all kinds of
Grammatical phrases, such as " assignment statement ", " expression formula " etc.;So, just can determine that out that whether whole character stream is by syntactic analysiss
The correct procedure that one grammaticalness requires;If program no syntax error, whether the type of continuous audit operand data is
Join.
1.3) Object Code Generator program, according to faultless expression logic, generates actual execution code;This is actual to hold
Line code should be the code after code generator is optimized according to actual motion environment.
When user is defined to the linkage trigger condition of operation logic and implementation procedure, processing module judge current factor
Whether during satisfaction linkage logical triggering condition and processing module is according to during the execution combined operation of set prediction scheme, all call place
Reason module.
2nd, operation is preset and ensures integrity:
Before processing module satisfaction linkage execution condition starts combined operation, remote control preset operation, this remote control are first carried out
Preset operation has three kinds of operator schemes:
The control point that normal control mode is supervised to non-two-shipper:Realize controlling completely;Control point to two-shipper supervision:
After pntctrl through guardian mode confirms, can realize controlling.
The control point that guardian mode is supervised to two-shipper is realized confirming function.
The control point that control+guardian mode is supervised to two-shipper realizes confirming and controlling output, this pattern is applied to
The working method at an only operation element station.
In operation, when control object is arranged to two-shipper supervision, after needing to confirm on confirming node, ability
Execute operation.
If the integer key assignments of ykconfirm defined in specifically defined is 1, when calling pntctrl, need
Pntctrl confirms password and input scheduling code is confirmed.
If defined in configuration file " pntctrl/wufang ", need before operation to carry out five anti-inspections, should
Numerical value is to check for five anti-waiting time;If time-out no responds then it is assumed that locking;This inspection " close/point " or " lifting/lowering " pressing
Carry out after button.
In some cases, a series of sequence programs comprising in combined operation need to keep transactional, and processing module is adopted
Realize described transactional with self-defined lock mechanism, the granularity of lock is subsystem interface level.
Above-mentioned processing module supports two kinds of locking mediums:
Once block method:Require each affairs once all to lock all data to be used, otherwise can not continue to hold
OK, this locking medium expands the scope of block, reduces the efficiency of processing module.
Order block method:In advance data object is specified with a block order, all affairs are all pressed this order and blocked.
User can be according to the efficiency of linkage sequence, reliability and the situation to the influence degree that other operate, for the thing that links
Business flexible operation selects locking medium.
Concrete application approach of the present invention is a lot, the above be only the preferred embodiment of the present invention it is noted that for
For those skilled in the art, under the premise without departing from the principles of the invention, some improvement can also be made, this
A little improvement also should be regarded as protection scope of the present invention.
Claims (7)
1. a kind of tramcar integrated dispatch linkage logic realization method is it is characterised in that comprise the following steps:
1) expression parsing and execution:
When user is defined to the linkage trigger condition of operation logic and implementation procedure, processing module whether judge current factor
Meet during linkage logical triggering condition and processing module is according to during the execution combined operation of set prediction scheme, all call process mould
Block, this processing module parses to the linkage trigger condition being expressed as expression formula and linkage implementation procedure according to preset algorithm,
Judge its correctness, and by logic execution therein;
2) operation is preset and ensures integrity:
Before processing module executes any actual combined operation, remote control preset operation is first carried out by this processing module;Hold first
The preset operation of remote control of row is checked by the comprehensive automation processing module of field level, and process of checking is according to the preset operation simulation of remote control
Multioperation practice logic executes, and simulates implementing result situation, and result and check suggestion are sent back to this processing module, this process
Foldback result is compared by module with default processing scheme, and the branch according to meeting condition carries out corresponding operating.
2. a kind of tramcar integrated dispatch linkage logic realization method according to claim 1 is it is characterised in that described
Processing module is referred to as that one special, the editor of efficient expression formula, compiling and execution system.
3. a kind of tramcar integrated dispatch linkage logic realization method according to claim 2 is it is characterised in that above-mentioned
Compilation process be divided into Shaping, syntax parsing and three subprocess of Object Code Generator.
4. a kind of tramcar integrated dispatch linkage logic realization method according to claim 3 is it is characterised in that above-mentioned
Compilation process specifically include:
Shaping program is scanned to expression formula character string and identifies, is closely connected according to intercharacter, judges character set
It is combined in and whether constitute a word in logic;If running into beginning of letter, followed by the character stream of letter or number is then designated mark
Know symbol;
The word sequence that Shaping exports is resolved into all kinds of grammatical phrases according to the grammatical ruless of language by syntax parsing program;
So, just can determine that out whether whole character stream is the correct procedure that a grammaticalness requires by syntactic analysiss;If program
No syntax error, whether the type of continuous audit operand data mates;
Object Code Generator program, according to faultless expression logic, generates actual execution code;This actual execution code should
Code after being optimized according to actual motion environment for code generator.
5. a kind of tramcar integrated dispatch linkage logic realization method according to claim 1 is it is characterised in that above-mentioned
The preset operation of remote control have three kinds of operator schemes:
The control point that normal control mode is supervised to non-two-shipper:Realize controlling completely;Control point to two-shipper supervision:Through prison
After the pntctrl of shield pattern confirms, can realize controlling;
The control point that guardian mode is supervised to two-shipper is realized confirming function;
The control point that control+guardian mode is supervised to two-shipper realizes confirming and controlling output, this pattern is only applied to
The working method at one operation element station.
6. a kind of tramcar integrated dispatch linkage logic realization method according to claim 1 it is characterised in that
A series of sequence programs comprising in above-mentioned combined operation need to keep transactional, and processing module adopts self-defined lock machine
Make and to realize described transactional, the granularity of lock is subsystem interface level.
7. a kind of tramcar integrated dispatch linkage logic realization method according to claim 6 is it is characterised in that above-mentioned
Processing module support two kinds of locking mediums:
Once block method:Require each affairs once all to lock all data to be used, otherwise can not continue executing with;Suitable
Sequence blocks method:In advance data object is specified with a block order, all affairs are all pressed this order and blocked.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410346459.7A CN104111838B (en) | 2014-07-18 | 2014-07-18 | Tramcar integration dispatching linkage logic implementation method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410346459.7A CN104111838B (en) | 2014-07-18 | 2014-07-18 | Tramcar integration dispatching linkage logic implementation method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104111838A CN104111838A (en) | 2014-10-22 |
CN104111838B true CN104111838B (en) | 2017-02-15 |
Family
ID=51708638
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410346459.7A Active CN104111838B (en) | 2014-07-18 | 2014-07-18 | Tramcar integration dispatching linkage logic implementation method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104111838B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107621935B (en) * | 2017-08-08 | 2021-04-02 | 北京和利时系统工程有限公司 | Linkage control system and linkage control method |
CN111930102B (en) * | 2020-08-11 | 2022-12-09 | 南京国电南自轨道交通工程有限公司 | Object-based comprehensive monitoring linkage logic configuration method |
CN114554580B (en) * | 2022-02-21 | 2023-07-11 | 营口天成消防设备有限公司 | Quick starting method of wireless fire-fighting linkage equipment |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102012809A (en) * | 2010-11-10 | 2011-04-13 | 国电南瑞科技股份有限公司 | Comprehensive monitoring linkage module design and implementation method |
CN102592022A (en) * | 2012-01-09 | 2012-07-18 | 国电南瑞科技股份有限公司 | Rail transit scene simulation system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7159208B2 (en) * | 2001-10-25 | 2007-01-02 | Keeley Thomas M | Programming toolkit for use in the development of knowledge enhanced electronic logic programs |
-
2014
- 2014-07-18 CN CN201410346459.7A patent/CN104111838B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102012809A (en) * | 2010-11-10 | 2011-04-13 | 国电南瑞科技股份有限公司 | Comprehensive monitoring linkage module design and implementation method |
CN102592022A (en) * | 2012-01-09 | 2012-07-18 | 国电南瑞科技股份有限公司 | Rail transit scene simulation system |
Non-Patent Citations (2)
Title |
---|
轨道交通综合监控在线决策支持功能研究;徐漫江 等;《自动化与仪表》;20130731(第7期);第35-38页 * |
轨道交通综合监控系统在线联动功能研究;刘孟觉 等;《计算机测量与控制》;20121130;第20卷(第11期);第2959-2960页,第2964页 * |
Also Published As
Publication number | Publication date |
---|---|
CN104111838A (en) | 2014-10-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN100515843C (en) | Method and device of generating logic control units for railroad station-based vital computer apparatuses | |
CN102012809B (en) | Comprehensive monitoring linkage module design and implementation method | |
CN107611969B (en) | Regulation and error prevention system with order regulation and constraint functions and method | |
CN111767031B (en) | Nuclear power industry internet experiment bed based on emulation | |
CN104111838B (en) | Tramcar integration dispatching linkage logic implementation method | |
CN109062152B (en) | Local variable online monitoring method based on logic configuration generation | |
CN109992571A (en) | A kind of intelligent substation configuration file line closed loop check system and method for calibration | |
Brugali et al. | The framework life span | |
CN110532167A (en) | A kind of state machine model timing property verification method based on model conversion | |
CN102064602A (en) | Operating method of B/S framework networked electronic simulation drawing board system | |
CN104537168A (en) | Integrated supervisory control simulating training system model data management method for equipment functions | |
Zhou et al. | Formal component-based modeling and synthesis for PLC systems | |
CN109753281A (en) | A kind of microgrid energy management strategy visualization toolkit based on graphic programming | |
CN102393820A (en) | Logical implementation method for controlling building monitoring system | |
Kottmann et al. | A human operator model for simulation-based resilience assessment of power grid restoration operations | |
Kloos et al. | MCDET: A Tool for Integrated Deterministic Probabilistic Safety Analyses | |
Chabrol et al. | Deterministic Distributed Safety-Critical Real-Time Systems within the Oasis Approach. | |
CN110519277B (en) | Method for realizing control of other systems based on single-point execution contract | |
Cooling et al. | The emergence of rapid prototyping as a real-time software development tool | |
CN110532166A (en) | A kind of state machine model timing Property Verification system based on model conversion | |
Ouni et al. | Novel Model-Based approach for instrumentation and control of nuclear reactors | |
Wunck | Implementation of mobile event monitoring agents for manufacturing execution and intelligence systems using a domain specific language | |
Tseng et al. | Hierarchical state decomposition for the design of PLC software by applying axiomatic design | |
Schirru et al. | A real-time artificially intelligent monitoring system for nuclear power plants operators support | |
CN115454530A (en) | Configuration function extension system of hydropower station monitoring system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |