CN108255525A - Control method and device based on rail traffic - Google Patents
Control method and device based on rail traffic Download PDFInfo
- Publication number
- CN108255525A CN108255525A CN201611238948.6A CN201611238948A CN108255525A CN 108255525 A CN108255525 A CN 108255525A CN 201611238948 A CN201611238948 A CN 201611238948A CN 108255525 A CN108255525 A CN 108255525A
- Authority
- CN
- China
- Prior art keywords
- state table
- message
- control method
- rail traffic
- event
- 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
Links
Classifications
-
- G—PHYSICS
- G08—SIGNALLING
- G08G—TRAFFIC CONTROL SYSTEMS
- G08G1/00—Traffic control systems for road vehicles
- G08G1/07—Controlling traffic signals
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
- Programmable Controllers (AREA)
Abstract
The present invention proposes a kind of control method and device based on rail traffic, by when detecting the event occurred in rail traffic operational process, obtain the message corresponding to event, and then according to the object of the event of generation, inquiry customization state table, obtain the corresponding standard state table of object, and according to object be presently in source module, query criteria state table, obtain the corresponding kernel state table of source module, finally according to message, inquire the corresponding kernel state table of source module, obtain the corresponding target pattern of message and control method, so as to perform the control method, control object is in target pattern.Since kernel state table is used to record the correspondence between message, target pattern and control method, customization state table is used to record the corresponding standard state table of each pattern of object, so as to which complicated control method be segmented, so that control logic is more clear, solves in the prior art the technical issues of control method is numerous and jumbled, and maintenance cost is higher.
Description
Technical field
The present invention relates to technical field of vehicle control more particularly to a kind of control methods and device based on rail traffic.
Background technology
During track traffic circulation, in order to ensure the safety of operation, need each to train, signal, communication etc.
System is controlled.In the prior art, operation can be controlled by control software, but due to the system of rail traffic
Numerous and jumbled, in software test, possible control software will appear some loopholes.It if can not be in time to found in software test
Loophole be modified, then irreversible harm may be generated in track traffic circulation.
It to be opened although there are the various ways such as singleton pattern, adaptation pattern, state model and strategy pattern in the prior art
The control software of hair, but the control logic in these control softwares is numerous and jumbled, causes carrying out leak repairing and tieing up in the later stage
Shield, such as during increase new function, operation is relatively complicated, and maintenance cost is higher.
Invention content
The present invention is directed to solve at least some of the technical problems in related technologies.
For this purpose, first purpose of the present invention is to propose a kind of control method based on rail traffic, it is existing to solve
The technical issues of control software operation in technology is relatively complicated, and maintenance cost is higher.
Second object of the present invention is to propose a kind of control device based on rail traffic.
In order to achieve the above object, first aspect present invention embodiment proposes a kind of control method based on rail traffic, packet
It includes:
When detecting the event occurred in rail traffic operational process, the message corresponding to the event is obtained;
In the state machine pre-established, according to the object that the event occurs, inquiry customization state table, it is described right to obtain
As corresponding standard state table;Wherein, the customization state table is used to record the standard state table of each object;
According to the object be presently in source module, inquire the standard state table, obtain the source module and correspond to
Kernel state table;
According to the message, the corresponding kernel state table of the source module is inquired, obtains the corresponding target mould of the message
Formula and control method;Wherein, the kernel state table is used to record the corresponding pass between message, target pattern and control method
System;
The control method is performed, the object is controlled to be in the target pattern.
The control method based on rail traffic of the embodiment of the present invention is detected in rail traffic operational process by working as
During the event of generation, the message corresponding to the event is obtained, and then according to the object that the event occurs, inquire customization state
Table, obtains the corresponding standard state table of the object, and according to object be presently in source module, query criteria state table,
The corresponding kernel state table of source module is obtained, finally according to message, the corresponding kernel state table of inquiry source module obtains message pair
The target pattern and control method answered, so as to perform the control method, control object is in target pattern.Due to kernel state
Table is used to record the correspondence between message, target pattern and control method, and customization state table is used to record each of object
The corresponding standard state table of pattern, so as to which complicated control method be segmented so that control logic is more clear, and is solved
The technical issues of control method is numerous and jumbled in the prior art, and maintenance cost is higher.
In order to achieve the above object, second aspect of the present invention embodiment proposes a kind of control device based on rail traffic, packet
It includes:
Receiving module, for when detecting the event occurred in rail traffic operational process, obtaining the event institute
Corresponding message;
First enquiry module, for according to the object that the event occurs, inquiry customization state table to obtain the object pair
The standard state table answered;Wherein, the customization state table is used to record the standard state table of each object;
Second enquiry module, for according to the object be presently in source module, inquire the standard state table, obtain
To the corresponding kernel state table of the source module;
Third enquiry module, for according to the message, inquiring the corresponding kernel state table of the source module, obtaining described
The corresponding target pattern of message and control method;Wherein, the kernel state table is used to record message, target pattern and control
Correspondence between method;
Control module for performing the control method, controls the object to be in the target pattern.
The control device based on rail traffic of the embodiment of the present invention is detected in rail traffic operational process by working as
During the event of generation, the message corresponding to the event is obtained, and then according to the object that the event occurs, inquire customization state
Table, obtains the corresponding standard state table of the object, and according to object be presently in source module, query criteria state table,
The corresponding kernel state table of source module is obtained, finally according to message, the corresponding kernel state table of inquiry source module obtains message pair
The target pattern and control method answered, so as to perform the control method, control object is in target pattern.Due to kernel state
Table is used to record the correspondence between message, target pattern and control method, and customization state table is used to record each of object
The corresponding standard state table of pattern, so as to which complicated control method be segmented so that control logic is more clear, and is solved
The technical issues of control method is numerous and jumbled in the prior art, and maintenance cost is higher.
The additional aspect of the present invention and advantage will be set forth in part in the description, and will partly become from the following description
It obtains significantly or is recognized by the practice of the present invention.
Description of the drawings
Above-mentioned and/or additional aspect and advantage of the invention will become from the following description of the accompanying drawings of embodiments
Significantly and it is readily appreciated that, wherein:
The flow diagram of a kind of control method based on rail traffic that Fig. 1 is provided by the embodiment of the present invention;
Fig. 2 is the flow diagram of another control method based on rail traffic provided in this embodiment;
Fig. 3 is the content schematic diagram of pattern conversion table;
Fig. 4 is a kind of structure diagram of the control device based on rail traffic provided in an embodiment of the present invention;And
Fig. 5 is the structure diagram of another control device based on rail traffic provided in an embodiment of the present invention.
Specific embodiment
The embodiment of the present invention is described below in detail, the example of the embodiment is shown in the drawings, wherein from beginning to end
Same or similar label represents same or similar element or the element with same or like function.Below with reference to attached
The embodiment of figure description is exemplary, it is intended to for explaining the present invention, and is not considered as limiting the invention.
Below with reference to the accompanying drawings the control method and device based on rail traffic of the embodiment of the present invention are described.
The flow diagram of a kind of control method based on rail traffic that Fig. 1 is provided by the embodiment of the present invention.This reality
The method that example is provided is applied, the pattern for being based primarily upon state machine redirects.State machine design pattern is carried out primarily directed in object
, an object has a various states, and the switching between these different states, and can cause some behaviors generation or
Person, certain behaviors lead to the variation of state.Finite state machine is based primarily upon in the present embodiment, employ source module (M),
State machine is described in event (E), action (A), target pattern (D) and desired pattern (E), this five dimension abbreviation MEADE.
So as to clearly illustrate in state machine, some event (event) has occurred under a certain current state (cur_state), it can
Corresponding control action (action) can be triggered, state transition is caused to realize class to the process of NextState (nxt_state)
It is similar to the effect of state transition diagram.
It should be noted that it is used to carry out the control of rail traffic by state machine in this present embodiment, so as to aforementioned
Method is specially control method.
Specifically, control method includes the following steps:
Step 101, when detecting the event occurred in rail traffic operational process, disappearing corresponding to event is obtained
Breath.
Specifically, it when tactile originator detects the event occurred in rail traffic operational process, is connect from the tactile originator
Receive the message corresponding to the event.Wherein, message is corresponded with event.
Step 102, in the state machine pre-established, according to the object that the event occurs, inquiry customization state table obtains
The corresponding standard state table of the object.
Wherein, state machine describes state conversion rule using source module, event, control method, target pattern and desired pattern
Then.
It should be noted that control method here is referred to as acting.This is because control method is specifically as follows
Functional form is handled, and it is for the effect for handling function to be described to act, therefore, the intension of control method and action is
Similar.
Specifically, before the event occurred during detection track traffic circulation, the pattern of state machine is pre-established
Conversion table (FSM).Wherein, pattern conversion table includes the customization state table, the standard state table and the kernel state table;
The pattern conversion table, it is right for according to the sequence of the customization state table, the standard state table and the kernel state table
The message is responded, and obtains the corresponding target pattern of the message and control method.Customization state in this step
Table is used to record the standard state table of each object.Since message and event correspond, so as in state machine, adopt
With message semantic definition event.
Step 103, according to object be presently in source module, query criteria state table obtains the corresponding core of source module
Heart state table.
Step 104, according to the message, the corresponding kernel state table of inquiry source module obtains the corresponding target pattern of message
And control method.
Wherein, the kernel state table is used to record the correspondence between message, target pattern and control method.
Optionally, kernel state table, be additionally operable to record for the effect of the processing function is described action, send out
Send the combination of one or more of tactile originator and the desired pattern of the message.
Step 105, the control method is performed, control object is in target pattern.
Wherein, control method is specially to handle functional form.
In the present embodiment, by when detecting the event occurred in rail traffic operational process, obtaining the event
Corresponding message, and then according to the object that the event occurs, inquiry customization state table obtains the corresponding standard of the object
State table, and according to object be presently in source module, query criteria state table obtains the corresponding kernel state of source module
Table, finally according to message, the corresponding kernel state table of inquiry source module obtains the corresponding target pattern of message and controlling party
Method, so as to perform the control method, control object is in target pattern.Since kernel state table is used to record message, target mould
Correspondence between formula and control method, customization state table are used to record the corresponding standard state table of each pattern of object,
So as to which complicated control method be segmented so that control logic is more clear, and solves control method in the prior art
It is numerous and jumbled, the technical issues of maintenance cost is higher.
For an embodiment in clear explanation, another control method based on rail traffic, Fig. 2 are present embodiments provided
Flow diagram for another control method based on rail traffic provided in this embodiment.On the basis of a upper embodiment
On, the control method of the rail traffic in the present embodiment is specifically used for controlling the route in rail traffic, that is to say, that
Object in previous embodiment is route.Due to being specifically interlocking (CI) system to the system that route is controlled, so as to this reality
The method that example is provided is applied specifically to be performed by interlock system.
It may comprise steps of as shown in Fig. 2, being somebody's turn to do the control method based on rail traffic:
Step 201, when tactile originator detects the event that route has occurred, interlock system is received transmitted by tactile originator
Message.
In the present embodiment, due to being controlled for route, so as to which tactile originator here is specifically as follows inside CI
Function, meter shaft state and train auto-matic control (ATS) order etc..Based on this, event here can specifically include routing behaviour
Make, the success of row road, the failure of row road, road need not be arranged, cancelled a route, close in locking, section fault, route square section it is occupied,
Manual release, route go out clear success, automatically by, automatic trigger, automatic route release etc. of turning back.
When CI intrinsic functions, meter shaft state and ATS orders are when tactile originator detects the event that route has occurred, interlocking
System receives the corresponding message of the event occurred.Wherein, message is one-to-one with the event occurred, so as to interlock
System can determine the event occurred according to message.
Step 202, it is route according to the object of the event of generation, interlock system inquiry customization state table obtains the mark of route
Quasi- state table.
Specifically, customization state table devises power and energy rule, for carrying out the rule of the state machine under all patterns
Description, in interlock system or other systems controlled, includes various modes.
Such as:For design function transformation rule fsm_dscrpt_t based on fsm_item_t arrays, structure is as follows:
fsm_item_t*table;/**<Fsm converting forms */
uint16_t len;/**<The length * of converting form/
Step 203, according to route be presently in source module, query criteria state table obtains the corresponding core of source module
Heart state table.
Wherein, here the source module of route can specifically include route idle, row's line state, advance locking, close to locking,
Route occupancy and route go out clear etc..
Specifically, standard state table devises transformation rule, which describes under some pattern specified
Inquiry fsm_convert_t lists carry out the rule followed during state conversion, meanwhile, standard state table gives message
(msg) it does not find and processing handle during state change.
For example, transformation rule includes:
fsm_t cur_mode;/**<Present mode */
uint8_t table_len;/**<Pattern conversion table length */
fsm_convert_t*table;/**<Pattern conversion table, each msg only there are one entry */
int16_t(*msg_not_found)(uint16_t msg);/**<When message is not found handle */
Step 204, according to the message received, the corresponding kernel state table of the source module is inquired, it is corresponding to obtain message
Target pattern and control method, interlock system are in target pattern using the control method inquired, control route.
Specifically, kernel state table devises single transformation rule, and single transformation rule fsm_convert_t can be from current
Residing source module (M), event (E), action (A) or control method, target pattern (D) and desired pattern (E), this five
State machine is described in dimension abbreviation MEADE, and specifically, kernel state table passes through message and target pattern and conversion stripes
The function of part, the action performed needed for interlock system when description has understood that some specific message is interlocked system reception and target
Pattern can also further optionally further describe desired pattern.It should be noted that control method here may be used
Handle functional form.
For example, single transformation rule includes at least:
msg;/**<Message */
fsm_t dst_mode;/**<Purpose pattern */
fun fun_name;/**<Corresponding processing function (control method can be sky) */
It should be noted that control object is not needed to although being received message in some special cases, such case
Under, control method here can be sky, that is, there is no the processing functions for needing to perform.
In the present embodiment, pattern conversion table can be pre-established, wherein, aforementioned customization is included in pattern conversion table
State table, standard state table and kernel state table.Pattern conversion table is according to customization state table, standard state table and kernel state table
Sequence redirect, realize and the message received responded successively, finally obtain the corresponding target pattern of message and control
Method.
In pattern conversion table, customization state table, standard state table and kernel state table respectively as different table structures,
It customizes state table and includes multiple standard state tables, and include multiple cores state table in each standard state table.In order to
Clearly illustrate the present embodiment, present embodiments provide a kind of signal of specific pattern conversion table, Fig. 3 is the interior of pattern conversion table
Hold schematic diagram, as shown in figure 3, the pattern conversion table can come out the analysis status and appearance of route, utilized so as to realize
The mode that state table, standard state table and kernel state table redirect successively is customized in pattern conversion table, realizes state machine, realize into
The control on road.
It should be noted that Fig. 3 is schematically described as a kind of, partial content is only demonstrated by Fig. 3, meanwhile, Fig. 3 is only
For illustrating contained content in pattern conversion table, the practical structures of pattern conversion table are not represented.Simultaneously as in the present embodiment
This kind of object only for route, so as to omit customization state table, in other words, it is right there are one being contained only in state table to customize
As i.e. route.
In the present embodiment, by when detecting the event occurred in rail traffic operational process, obtaining the event
Corresponding message, and then according to the object that the event occurs, inquiry customization state table obtains the corresponding standard of the object
State table, and according to object be presently in source module, query criteria state table obtains the corresponding kernel state of source module
Table, finally according to message, the corresponding kernel state table of inquiry source module obtains the corresponding target pattern of message and controlling party
Method, so as to perform the control method, control object is in target pattern.Since kernel state table is used to record message, target mould
Correspondence between formula and control method, customization state table are used to record the corresponding standard state table of each pattern of object,
So as to which complicated control method be segmented so that control logic is more clear, and solves control method in the prior art
It is numerous and jumbled, the technical issues of maintenance cost is higher.
In order to realize above-described embodiment, the present invention also proposes a kind of control device based on rail traffic.
Fig. 4 is a kind of structure diagram of the control device based on rail traffic provided in an embodiment of the present invention.
Include as shown in figure 4, being somebody's turn to do the control device based on rail traffic:Receiving module 31, the first enquiry module 32, second
Enquiry module 33, third enquiry module 34 and control module 35.
Receiving module 31, for when detecting the event occurred in rail traffic operational process, obtaining the event
Corresponding message.
First enquiry module 32, in the state machine pre-established, according to the object that the event occurs, inquiry to be fixed
State table processed obtains the corresponding standard state table of the object.
Wherein, the customization state table is used to record the standard state table of each object.
Second enquiry module 33, for according to the object be presently in source module, inquire the standard state table,
Obtain the corresponding kernel state table of the source module.
Third enquiry module 34, for according to the message, inquiring the corresponding kernel state table of the source module, obtaining institute
State the corresponding target pattern of message and control method.
Wherein, kernel state table is used to record the correspondence between message, target pattern and control method.
Control module 35 for performing the control method, controls the object to be in the target pattern.
In the present embodiment, by when detecting the event occurred in rail traffic operational process, obtaining the event
Corresponding message, and then according to the object that the event occurs, inquiry customization state table obtains the corresponding standard of the object
State table, and according to object be presently in source module, query criteria state table obtains the corresponding kernel state of source module
Table, finally according to message, the corresponding kernel state table of inquiry source module obtains the corresponding target pattern of message and controlling party
Method, so as to perform the control method, control object is in target pattern.Since kernel state table is used to record message, target mould
Correspondence between formula and control method, customization state table are used to record the corresponding standard state table of each pattern of object,
So as to which complicated control method be segmented so that control logic is more clear, and solves control method in the prior art
It is numerous and jumbled, the technical issues of maintenance cost is higher.
Further, in a kind of possible realization method of the embodiment of the present invention, event is specifically visited by touching originator
It surveys, so as to receiving module 31, is specifically used for:When tactile originator detects the event occurred in rail traffic operational process, from
The tactile originator receives the message corresponding to the event;The message is corresponded with the event.
It should be noted that the aforementioned explanation to the control method embodiment based on rail traffic is also applied for the reality
The control device based on rail traffic of example is applied, details are not described herein again.
Based on above-described embodiment, the embodiment of the present invention additionally provides a kind of the possible of control device based on rail traffic
Realization method, on the basis of a upper embodiment, the object that the event occurs is route, and control module 35 is specifically used for:
The control method is performed using the interlock system in rail traffic, the object is controlled to be in the target mould
Formula.
Optionally, as a kind of possible realization method provided in an embodiment of the present invention, Fig. 5 is provided for the embodiment of the present invention
Another control device based on rail traffic structure diagram, the control device based on rail traffic further includes:It establishes
Module 36.
Module 36 is established, for pre-establishing pattern conversion table;Wherein, the pattern conversion table includes the customization state
Table, the standard state table and the kernel state table;The pattern conversion table, for according to the customization state table, described
The sequence of standard state table and the kernel state table, responds the message, obtains the corresponding target mould of the message
Formula and control method.
Optionally, as a kind of possible realization method provided in an embodiment of the present invention, control method is specially to handle letter
Number form formula, the kernel state table, be additionally operable to record for the effect of the processing function is described action, transmission institute
State the combination of one or more of tactile originator and the desired pattern of message.
It is described by when detecting the event occurred in rail traffic operational process, obtaining in the embodiment of the present invention
Message corresponding to event, and then according to the object that the event occurs, it is corresponding to obtain the object for inquiry customization state table
Standard state table, and according to object be presently in source module, query criteria state table obtains the corresponding core shape of source module
State table, finally according to message, the corresponding kernel state table of inquiry source module obtains the corresponding target pattern of message and controlling party
Method, so as to perform the control method, control object is in target pattern.Since kernel state table is used to record message, target mould
Correspondence between formula and control method, customization state table are used to record the corresponding standard state table of each pattern of object,
So as to which complicated control method be segmented so that control logic is more clear, and solves control method in the prior art
It is numerous and jumbled, the technical issues of maintenance cost is higher.
In the description of this specification, reference term " one embodiment ", " example ", " is specifically shown " some embodiments "
The description of example " or " some examples " etc. means specific features, structure, material or the spy for combining the embodiment or example description
Point is contained at least one embodiment of the present invention or example.In the present specification, schematic expression of the above terms are not
It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office
It is combined in an appropriate manner in one or more embodiments or example.In addition, without conflicting with each other, the skill of this field
Art personnel can tie the different embodiments or examples described in this specification and the feature of different embodiments or examples
It closes and combines.
In addition, term " first ", " second " are only used for description purpose, and it is not intended that instruction or hint relative importance
Or the implicit quantity for indicating indicated technical characteristic.Define " first " as a result, the feature of " second " can be expressed or
Implicitly include at least one this feature.In the description of the present invention, " multiple " are meant that at least two, such as two, three
It is a etc., unless otherwise specifically defined.
Any process described otherwise above or method description are construed as in flow chart or herein, represent to include
Module, segment or the portion of the code of the executable instruction of one or more the step of being used to implement custom logic function or process
Point, and the range of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discuss suitable
Sequence, including according to involved function by it is basic simultaneously in the way of or in the opposite order, to perform function, this should be of the invention
Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use
In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for
Instruction execution system, device or equipment (such as computer based system, including the system of processor or other can be held from instruction
The system of row system, device or equipment instruction fetch and execute instruction) it uses or combines these instruction execution systems, device or set
It is standby and use.For the purpose of this specification, " computer-readable medium " can any can be included, store, communicate, propagate or pass
Defeated program is for instruction execution system, device or equipment or the dress used with reference to these instruction execution systems, device or equipment
It puts.The more specific example (non-exhaustive list) of computer-readable medium is including following:Electricity with one or more wiring
Connecting portion (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory
(ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits
Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable
Medium, because can be for example by carrying out optical scanner to paper or other media, then into edlin, interpretation or when necessary with it
His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each section of the present invention can be realized with hardware, software, firmware or combination thereof.Above-mentioned
In embodiment, software that multiple steps or method can in memory and by suitable instruction execution system be performed with storage
Or firmware is realized.Such as, if realized with hardware in another embodiment, following skill well known in the art can be used
Any one of art or their combination are realized:With for data-signal realize logic function logic gates from
Logic circuit is dissipated, the application-specific integrated circuit with suitable combinational logic gate circuit, programmable gate array (PGA), scene can compile
Journey gate array (FPGA) etc..
Those skilled in the art are appreciated that realize all or part of step that above-described embodiment method carries
Suddenly it is that relevant hardware can be instructed to complete by program, the program can be stored in a kind of computer-readable storage medium
In matter, the program when being executed, one or a combination set of the step of including embodiment of the method.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing module, it can also
That each unit is individually physically present, can also two or more units be integrated in a module.Above-mentioned integrated mould
The form that hardware had both may be used in block is realized, can also be realized in the form of software function module.The integrated module is such as
Fruit is realized in the form of software function module and is independent product sale or in use, can also be stored in a computer
In read/write memory medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..Although it has been shown and retouches above
The embodiment of the present invention is stated, it is to be understood that above-described embodiment is exemplary, it is impossible to be interpreted as the limit to the present invention
System, those of ordinary skill in the art can be changed above-described embodiment, change, replace and become within the scope of the invention
Type.
Claims (10)
1. a kind of control method based on rail traffic, which is characterized in that include the following steps:
When detecting the event occurred in rail traffic operational process, the message corresponding to the event is obtained;
In the state machine pre-established, according to the object that the event occurs, inquiry customization state table obtains the object pair
The standard state table answered;Wherein, the customization state table is used to record the standard state table of each object;
According to the object be presently in source module, inquire the standard state table, obtain the corresponding core of the source module
Heart state table;
According to the message, inquire the corresponding kernel state table of the source module, obtain the corresponding target pattern of the message with
And control method;Wherein, the kernel state table is used to record the correspondence between message, target pattern and control method;
The control method is performed, the object is controlled to be in the target pattern.
2. the control method according to claim 1 based on rail traffic, which is characterized in that described to detect track friendship
During the event occurred in logical operational process, before obtaining the message corresponding to the event, further include:
Pre-establish the pattern conversion table of state machine;Wherein, pattern conversion table includes the customization state table, the standard state
Table and the kernel state table;The pattern conversion table, for according to the customization state table, the standard state table and described
The sequence of kernel state table responds the message, obtains the corresponding target pattern of the message and control method.
3. the control method according to claim 1 based on rail traffic, which is characterized in that described to detect track friendship
During the event occurred in logical operational process, the message corresponding to the event is obtained, including:
When tactile originator detects the event occurred in rail traffic operational process, the event is received from the tactile originator
Corresponding message;The message is corresponded with the event.
4. according to control method of the claim 1-3 any one of them based on rail traffic, which is characterized in that the thing occurs
The object of part is route, described to perform the control method, and the object is controlled to be in the target pattern, including:
The control method is performed by the interlock system in rail traffic, the route is controlled to be in the target pattern.
5. according to control method of the claim 1-3 any one of them based on rail traffic, which is characterized in that the controlling party
Method is specially to handle functional form, the kernel state table, is additionally operable to record to retouch the effect of the processing function
The combination of one or more of action, the tactile originator of the transmission message and the desired pattern stated.
6. a kind of control device based on rail traffic, which is characterized in that including:
Receiving module, for when detecting the event occurred in rail traffic operational process, obtaining corresponding to the event
Message;
First enquiry module, in the state machine pre-established, according to the object that the event occurs, inquiring customization state
Table obtains the corresponding standard state table of the object;Wherein, the customization state table is used to record the standard state of each object
Table;
Second enquiry module, for according to the object be presently in source module, inquire the standard state table, obtain institute
State the corresponding kernel state table of source module;
Third enquiry module, for according to the message, inquiring the corresponding kernel state table of the source module, obtaining the message
Corresponding target pattern and control method;Wherein, the kernel state table is used to record message, target pattern and control method
Between correspondence;
Control module for performing the control method, controls the object to be in the target pattern.
7. the control device according to claim 6 based on rail traffic, which is characterized in that described device further includes:
Module is established, for pre-establishing the pattern conversion table of state machine;Wherein, pattern conversion table includes the customization state
Table, the standard state table and the kernel state table;The pattern conversion table, for according to the customization state table, described
The sequence of standard state table and the kernel state table, responds the message, obtains the corresponding target mould of the message
Formula and control method.
8. the control device according to claim 6 based on rail traffic, which is characterized in that the receiving module, specifically
For:
When tactile originator detects the event occurred in rail traffic operational process, the event is received from the tactile originator
Corresponding message;The message is corresponded with the event.
9. according to control device of the claim 6-8 any one of them based on rail traffic, which is characterized in that the thing occurs
The object of part is route, and the control module is specifically used for:
The control method is performed by the interlock system in rail traffic, the route is controlled to be in the target pattern.
10. according to control device of the claim 6-8 any one of them based on rail traffic, which is characterized in that the control
Method is specially to handle functional form, the kernel state table, is additionally operable to record to carry out the effect of the processing function
The combination of one or more of the action of description, the tactile originator for sending the message and desired pattern.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611238948.6A CN108255525B (en) | 2016-12-28 | 2016-12-28 | Control method and device based on rail transit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611238948.6A CN108255525B (en) | 2016-12-28 | 2016-12-28 | Control method and device based on rail transit |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108255525A true CN108255525A (en) | 2018-07-06 |
CN108255525B CN108255525B (en) | 2020-08-25 |
Family
ID=62720319
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611238948.6A Active CN108255525B (en) | 2016-12-28 | 2016-12-28 | Control method and device based on rail transit |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108255525B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111414242A (en) * | 2020-03-13 | 2020-07-14 | 天津美腾科技股份有限公司 | Running method, device, server, system and storage medium of state machine |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050182638A1 (en) * | 2004-02-12 | 2005-08-18 | S.A. Texaco Belgium N.V. | Intelligent State engine system |
KR20090025673A (en) * | 2007-09-06 | 2009-03-11 | 고려대학교 산학협력단 | Tcp processing system and method of controlling the same |
CN102176122A (en) * | 2011-03-07 | 2011-09-07 | 华中科技大学 | Automatic control system based on finite automaton and control method thereof |
CN102556120A (en) * | 2011-12-22 | 2012-07-11 | 北京交控科技有限公司 | Interlock access control method |
CN102929697A (en) * | 2012-10-09 | 2013-02-13 | Tcl集团股份有限公司 | State machine, scheduling method and device and universal serial bus (USB) media play control device |
CN104077121A (en) * | 2013-03-29 | 2014-10-01 | 北京大学深圳研究生院 | State machine information realizing and managing device |
CN105045603A (en) * | 2015-08-24 | 2015-11-11 | 北京金山安全软件有限公司 | Method and device for constructing finite-state machine model framework and electronic device |
-
2016
- 2016-12-28 CN CN201611238948.6A patent/CN108255525B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050182638A1 (en) * | 2004-02-12 | 2005-08-18 | S.A. Texaco Belgium N.V. | Intelligent State engine system |
KR20090025673A (en) * | 2007-09-06 | 2009-03-11 | 고려대학교 산학협력단 | Tcp processing system and method of controlling the same |
CN102176122A (en) * | 2011-03-07 | 2011-09-07 | 华中科技大学 | Automatic control system based on finite automaton and control method thereof |
CN102556120A (en) * | 2011-12-22 | 2012-07-11 | 北京交控科技有限公司 | Interlock access control method |
CN102929697A (en) * | 2012-10-09 | 2013-02-13 | Tcl集团股份有限公司 | State machine, scheduling method and device and universal serial bus (USB) media play control device |
CN104077121A (en) * | 2013-03-29 | 2014-10-01 | 北京大学深圳研究生院 | State machine information realizing and managing device |
CN105045603A (en) * | 2015-08-24 | 2015-11-11 | 北京金山安全软件有限公司 | Method and device for constructing finite-state machine model framework and electronic device |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111414242A (en) * | 2020-03-13 | 2020-07-14 | 天津美腾科技股份有限公司 | Running method, device, server, system and storage medium of state machine |
CN111414242B (en) * | 2020-03-13 | 2023-07-11 | 天津美腾科技股份有限公司 | Method, device, server, system and storage medium for operating state machine |
Also Published As
Publication number | Publication date |
---|---|
CN108255525B (en) | 2020-08-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109151034A (en) | Long-range control method, device and the server of automatic driving vehicle | |
CN107697072A (en) | Switching method, vehicle and the entire car controller of driving model | |
EP1050996A3 (en) | Command and control transfer | |
CN107553487A (en) | The mode switching method and its device of robot | |
CN107738667A (en) | The computational methods and device of CBTC system mid-spans overlay region train position | |
ATE327624T1 (en) | METHOD AND SYSTEM FOR COUPLING DATA NETWORKS | |
EP1168266A3 (en) | Management method of automatic vending machine and automatic vending machine | |
CN102708432B (en) | Method and system according to workflow processing digital content | |
CN104990209B (en) | The failure enquiry method of central air-conditioning, the line control machine of central air-conditioning and central air-conditioning | |
CN110177362A (en) | Apparatus bound method, apparatus and electronic equipment | |
CN109145068A (en) | map updating method and device | |
CN106970805A (en) | Function configuration method and system | |
CN106155043A (en) | Vehicle data acquisition methods, device and equipment | |
CN104796291A (en) | System and method for detecting transmission standardization of routers in core routing area | |
CN108255525A (en) | Control method and device based on rail traffic | |
US6275739B1 (en) | Attached logic module technique for control and maintenance in a distributed and networked control system | |
CN109756944A (en) | Terminal, router, the control method of ad hoc network router, device and system | |
CN207529370U (en) | Fault message storage system | |
WO2006028923A2 (en) | Method and system for bidirectional communications and power transmission | |
CN108206751A (en) | Emulation test system and method based on analog platform | |
CN109229142A (en) | Train switch control system and control method | |
CN108596532A (en) | A kind of multimodal transport logistics supervising platform | |
CN109302436A (en) | Train gateway forwards tactics configuring method and device | |
CN110456688A (en) | Output control system, method, equipment and the vehicle of signal | |
CN110239575A (en) | Multiply two logic control implementations and the systems for taking two based on two |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |