Unlock instant, AI-driven research and patent intelligence for your innovation.

State machine processing method and device, and readable storage medium

A processing method and processing device technology, applied in the direction of program control devices, electrical digital data processing, instruments, etc., can solve the problems of serial states and events, maintenance difficulties, etc., to reduce states and events, reduce the number of full connections, The effect of reducing the number of states

Active Publication Date: 2022-04-26
NEUSOFT CORP
View PDF9 Cites 0 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 device, and a readable storage medium. The method includes: determining N states in the state machine, where N is a positive integer; according to the business logic corresponding to the state machine, classifying states that can run in parallel among the N states; establishing each type of state as A sub-state machine, each sub-state machine includes at least two states and events determined according to the business logic; run all sub-state machines in parallel, combine the operation results of all sub-state machines to obtain the state machine operation result. Therefore, the states and events that need to be maintained are greatly reduced, which is convenient for 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 Patents(China)
IPC IPC(8): G06F9/448
CPCG06F9/4498
Inventor 刘歆宁
Owner NEUSOFT CORP