An Optimal Method for State Polling and Event-Driven Software State Machine Design Patterns

An event-driven, status polling technology, applied in the field of rail transit, can solve problems such as state machine design defects, loose interface definition, and increased system control complexity, and achieve maintainable test verification, easy test verification, and controllable execution sequence Effect

Active Publication Date: 2022-04-05
SHANGHAI ELECTRIC THALES TRANSPORTATION AUTOMATION SYST CO LTD
View PDF12 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The problem is that in many cases, it is not obvious that there are timing dependencies between such preconditions, which will lead to state machine design flaws or even serious errors
[0006] 2) The problem of the huge number of state machines caused by caching historical data
[0008] 3) The problem of uncontrollable state transition due to the loose interface definition between state machines
[0010] Such a state machine design will greatly reduce the readability and operability of the design, and the complexity of the system control will also greatly increase
What's more serious is that because the jumps between states are too flexible, similar to the "go to" statement in software, it destroys the structure of the system and may lead to unmeasurable system output

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • An Optimal Method for State Polling and Event-Driven Software State Machine Design Patterns
  • An Optimal Method for State Polling and Event-Driven Software State Machine Design Patterns
  • An Optimal Method for State Polling and Event-Driven Software State Machine Design Patterns

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0036] The present invention will be further described below in conjunction with accompanying drawing.

[0037] The state polling and the optimization method of the event-driven software state machine design mode of the present invention aim at the state transition conditions that have logical successive dependencies:

[0038] Create a new state machine, split the original transition condition a that needs to be executed first into the independent state machine as state a; put the subsequent operation b performed by state a as the transition condition into the original state machine condition, instead of original condition. It is different from the existing state machine design principle: in view of this situation, the present invention requires reanalysis of the original requirements, converting the condition (condition) with logical dependencies into a state (place / state), and converting the related operation (action) into a condition (condition). In this way, the conditio...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The present invention discloses an optimization method for state polling and event-driven software state machine design mode, aiming at the situation of state transition conditions having logical successive dependencies, the state transition conditions of time sequence dependent relations, and the problems caused by historical data caching. The state machine has a large number of states, and the state transitions are uncontrollable due to loose interface definitions between state machines. Optimizing the design solves the problem of output errors caused by successive dependencies between state transition conditions, and caching of historical data. The resulting large number of state machines and uncontrollable state transitions due to loosely defined interfaces between state machines.

Description

technical field [0001] The invention relates to the technical field of rail transit, in particular to an optimization method for state polling and event-driven software state machine design patterns. Background technique [0002] State polling and event-driven software state machines, as one of the earliest known design patterns, are widely used in real-time control systems and information communication technology. While the flexibility of state machine design brings efficiency and convenience to developers, it also brings the risk that the final output of the software does not match the design. After years of practical application, especially in the case of increasingly large software scale and increasing requirements for software security and reliability, the impact of improper use of state machine design methods has become increasingly prominent. Currently, there are three common types of problems, including: [0003] 1) Output errors due to the existence of successive ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): G05B13/04
CPCG05B13/042
Inventor 孙来平李广诚黄雷夏哲
Owner SHANGHAI ELECTRIC THALES TRANSPORTATION AUTOMATION SYST CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products