Software rapid programming method based on state machine

A programming method and state machine technology, applied in visual/graphical programming, creating/generating source code, etc., can solve problems such as inefficiency of programming methods, reduce the difficulty of writing and learning, the logic is concise and clear, and reduce the difficulty of programming. Effect

Pending Publication Date: 2020-03-24
贵州云辰软件开发有限公司
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Aiming at the deficiencies of the prior art, the present invention provides a fast software programming method based on a state machine, which has the advantages of simple programming method and high programming efficiency, and solves the problem of low efficiency of the existing programming method

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
  • Software rapid programming method based on state machine
  • Software rapid programming method based on state machine
  • Software rapid programming method based on state machine

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0037] A method for rapid programming of software based on a state machine is characterized in that it comprises the following steps:

[0038] 1) Build a resource (Res) consisting of a state graph (graph) collection and an interface (interface) collection;

[0039] 2) Create a graphtop instance of the state graph (graph), and initialize the start point (point start) and the end point (point end) to be inactive;

[0040] 3) Create a state graph (graph) according to the state graph (graph) relationship specified by the resource (Res), and initialize all state points (points) to an inactive state;

[0041] 4) activate the starting point (point start) of the graphtop instance, and wait for the worker thread to execute the point;

[0042] 5) Multiple superior state points want to activate the current state point, and the return value of the code block is equal to the state value of the current state point;

[0043] 6) The current state point outputs a logic value through the logi...

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 invention relates to the technical field of software development, and discloses a software rapid programming method based on a state machine, which comprises the following steps of: constructing aresource (Res) consisting of a state graph set and an interface set; creating a graphtop instance of the graph, and initializing a point start and a point end to be in an inactive state; and creatinga state graph according to a state graph relationship specified by the resource (Res), and initializing all state points (point) to be in an inactive state. The method has the advantages that the state graph and the state point are constructed, the state value is obtained by activating the state point, and the code block is called according to the state value screened by the state point, so thata software programming mode can be effectively simplified, and a programming problem is successfully converted into a drawing problem. Therefore, a user does not need to face a large number of codes during development, and software programming can be completed only by creating several state graphs and filling several attributes and a small number of code blocks.

Description

technical field [0001] The invention relates to the technical field of software development, in particular to a fast software programming method based on a state machine. Background technique [0002] Mathematically speaking, a state machine is a directed graph consisting of a set of nodes and a corresponding set of transition functions. The state machine operates by responding to a series of events. The state machine can be summarized into four elements: current state, condition, action, next state. In computer science, the state machine is widely used in modeling application behavior, hardware circuit design, software engineering, etc. It is already the core foundation in the field of information technology, but the state machine has not yet been applied to software programming. [0003] At present, in the field of software programming technology, the programming method of code writing is still basically used. This programming method requires editors to reserve a large nu...

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
IPC IPC(8): G06F8/34
CPCG06F8/34
Inventor 游明琦舒涛
Owner 贵州云辰软件开发有限公司
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