Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

State machine processing method and device, and readable storage medium

A processing method and technology of a processing device, which are applied in the direction of program control device, electrical digital data processing, program control design, etc., can solve the problems of difficult maintenance, many serial states and events, and reduce the number of states and events and the number of full connections. Reduced, easy-to-maintain effects

Active Publication Date: 2019-02-22
NEUSOFT CORP
View PDF9 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In a multi-state serial state machine, when multiple states coexist and there are many transitions between different states, all states and events will form a fully connected graph, and the states and events that need to be maintained are the full connections of the state graph (for n*(n-1) / 2, n is the total number of states), resulting in a lot of serial states and events, making it difficult to maintain

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
  • State machine processing method and device, and readable storage medium
  • State machine processing method and device, and readable storage medium
  • State machine processing method and device, and readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0047] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of the embodiments of the present invention, but not all of them. Based on the embodiments in the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the embodiments of the present invention.

[0048] In the prior art, an event-driven, single-state transition serial state machine is used. When multiple states coexist, there are many transitions between different states. Therefore, there are many states and events that need to be maintained, and it is very difficult to maintain. , in order to sol...

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

Embodiments of the present invention provide a state machine processing method and apparatus, a readable storage medium. The method comprises the following steps of: determining N states in a state machine, wherein N is a positive integer; according to the service logic corresponding to the state machine, classifying the states that can be run in parallel among the N states; establishing a state of each class as a sub-state machine, each sub-state machine comprising at least two states and events determined according to the service logic; running all the sub-state machines in parallel, and integrating the running results of all the sub-state machines to obtain the running results of the state machine. As a result, the number of states and events that need to be maintained is greatly reduced for ease of maintenance.

Description

technical field [0001] The embodiments of the present invention relate to the field of computer application technology, and in particular to a state machine processing method and device, and a readable storage medium. Background technique [0002] State machines are widely used in the computer field, and many systems use state machines. A state machine consists of a set of nodes (states) and a set of corresponding transition functions, which define multiple states and transitions between states. Among the defined multiple states, there is at least one initial state and at least one final state state, the state machine starts to run from the initial state, and when it migrates to the final state, the state machine stops running. [0003] For the state change, the conventional serial state machine is adopted in the prior art, that is, the state machine operates by responding to a series of events, and when the event meets certain trigger conditions, it will cause the state ma...

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 Applications(China)
IPC IPC(8): G06F9/448
CPCG06F9/4498
Inventor 刘歆宁
Owner NEUSOFT CORP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products