[go: up one dir, main page]

CN102479079B - Method and device for generating application - Google Patents

Method and device for generating application Download PDF

Info

Publication number
CN102479079B
CN102479079B CN201010564222.8A CN201010564222A CN102479079B CN 102479079 B CN102479079 B CN 102479079B CN 201010564222 A CN201010564222 A CN 201010564222A CN 102479079 B CN102479079 B CN 102479079B
Authority
CN
China
Prior art keywords
function
command word
execution
record
stream file
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.)
Expired - Fee Related
Application number
CN201010564222.8A
Other languages
Chinese (zh)
Other versions
CN102479079A (en
Inventor
孙杨军
岳选民
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Fu Hai Sunshine Technology Co Ltd
Original Assignee
ZTE Corp
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN201010564222.8A priority Critical patent/CN102479079B/en
Publication of CN102479079A publication Critical patent/CN102479079A/en
Application granted granted Critical
Publication of CN102479079B publication Critical patent/CN102479079B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention provides a method and a device for generating an application and relates to the field of software development. The problem of resource waste during a software developing process is solved. The method comprises the following steps of: receiving an external instruction; generating an executable flow file according to the external instruction; and calling a preset function in a code resource library according to the executable flow file, thereby generating the application. The technical scheme provided by the invention is suitable for the software developing process.

Description

应用生成方法和装置Application generation method and device

技术领域 technical field

本发明涉及软件开发领域,尤其涉及一种应用生成方法和装置。The invention relates to the field of software development, in particular to an application generation method and device.

背景技术 Background technique

近年来随着科技的长足发展,大量的软件/硬件产品随着人们的个性化需求不断地涌入市场。为了满足这些个性化需求,繁杂的软件修改工作就成为许多公司最主要的工作内容。In recent years, with the rapid development of science and technology, a large number of software/hardware products are constantly pouring into the market according to people's individual needs. In order to meet these individual needs, the complicated software modification work has become the main work content of many companies.

传统的软件开发均通过在具体的开发环境中编辑具体代码来实现,因此其对应的软件开发工作技术壁垒较高,同时软件的可读性较差,代码的修改工作也比较困难。同时由于一般软件都是针对具体的相关软硬件环境进行开发,个性明显而共性不足,存在移植性差、代码可复用性低等众多问题。而随着产品型号的不断更新及新技术的不断应用,软件开发人员不能专注于新技术的具体实现,而将大量的时间浪费到重新搭建软件环境或者大量修改软件代码的重复性工作之中,导致巨大的资源浪费。Traditional software development is realized by editing specific codes in a specific development environment, so the corresponding software development work has high technical barriers, and at the same time, the readability of software is poor, and code modification is also difficult. At the same time, because general software is developed for specific related software and hardware environments, it has obvious individuality but insufficient commonality, and there are many problems such as poor portability and low code reusability. With the continuous update of product models and the continuous application of new technologies, software developers cannot focus on the specific implementation of new technologies, but waste a lot of time in the repetitive work of rebuilding the software environment or modifying a large number of software codes. lead to a huge waste of resources.

发明内容 Contents of the invention

本发明提供了一种应用生成方法和装置,解决了软件开发过程中资源浪费的问题。The invention provides an application generation method and device, which solves the problem of resource waste in the software development process.

一种应用生成方法,包括:A method for generating an application, comprising:

接收外部指令,根据所述外部指令生成执行流文件;receiving an external command, and generating an execution flow file according to the external command;

按照所述执行流文件,调用预置的代码资源库中的函数,生成应用。Execute the flow file according to the above, call the function in the preset code resource library, and generate the application.

优选的,所述执行流文件包括至少一条执行纪录,每条执行记录均包含序号、命令字、输入、函数跳转及注释五项参数,根据所述外部指令生成执行流文件包括:Preferably, the execution flow file includes at least one execution record, each execution record includes five parameters of serial number, command word, input, function jump and comment, and generating the execution flow file according to the external instruction includes:

接收所述外部指令,根据所述外部指令编辑所述执行流文件的各项参数,得到执行纪录;receiving the external instruction, editing various parameters of the execution flow file according to the external instruction, and obtaining an execution record;

将多条执行纪录组合得到执行流文件。Combine multiple execution records to obtain an execution flow file.

优选的,上述应用生成方法还包括:Preferably, the above application generation method further includes:

设置一代码资源库,所述代码资源库包括至少一个函数;setting a code resource library, the code resource library includes at least one function;

为每个函数设置一命令字,将命令字与该函数关联起来,将命令字与函数的关联关系记录到命令字-函数名映射文件中。A command word is set for each function, the command word is associated with the function, and the relationship between the command word and the function is recorded in the command word-function name mapping file.

优选的,上述应用生成方法还包括:Preferably, the above application generation method further includes:

将至少一个函数按照固定顺序排列得到一多个函数的集合,将该集合作为一个集成功能项,将所述至少一个函数的命令字按照所述固定顺序排列得到命令字序列,将所述命令字序列与该集成功能项关联起来。Arranging at least one function in a fixed order to obtain a set of multiple functions, using the set as an integrated function item, arranging the command words of the at least one function in the fixed order to obtain a command word sequence, and using the command word A sequence is associated with the integrated function item.

优选的,所述按照所述执行流文件,调用预置的代码资源库中的函数,生成应用包括:Preferably, said executing the flow file according to said method, calling a function in a preset code resource library, and generating an application includes:

解析所述执行流文件,获取所述执行流文件中的各条执行纪录;Analyzing the execution flow file to obtain each execution record in the execution flow file;

按照执行纪录中的命令字,查询所述命令字-函数名映射文件,从所述代码资源库中提取相应的函数或集成功能项;According to the command word in the execution record, query the command word-function name mapping file, and extract the corresponding function or integrated function item from the code resource library;

将所述函数或集成功能项按照所述执行纪录的序号和跳转方式确定运行顺序,按照该运行顺序依次运行函数或集成功能项,生成应用。Determine the running sequence of the function or integrated function item according to the sequence number and jump mode of the execution record, run the function or integrated function item in sequence according to the running sequence, and generate an application.

本发明还提供了一种应用生成装置,包括:The present invention also provides an application generation device, including:

执行流文件生成模块,用于接收外部指令,根据所述外部指令生成执行流文件;An execution flow file generating module, configured to receive an external instruction, and generate an execution flow file according to the external instruction;

动态执行模块,用于按照所述执行流文件,调用预置的代码资源库中的函数,生成应用。The dynamic execution module is used to call the functions in the preset code resource library according to the execution flow file to generate the application.

优选的,所述执行流文件生成模块包括:Preferably, the execution flow file generation module includes:

执行纪录生成单元,用于接收所述外部指令,根据所述外部指令编辑所述执行流文件的各项参数,得到执行纪录;an execution record generating unit, configured to receive the external instruction, edit various parameters of the execution flow file according to the external instruction, and obtain an execution record;

文件生成单元,用于将多条执行纪录组合得到执行流文件。The file generation unit is used to combine multiple execution records to obtain an execution flow file.

优选的,上述应用生成装置还包括:Preferably, the above-mentioned application generation device further includes:

代码资源库模块,用于设置一代码资源库,所述代码资源库包括至少一个函数;A code resource library module, configured to set a code resource library, the code resource library includes at least one function;

映射模块,用于将为每个函数设置一命令字,将命令字与该函数关联起来,将命令字与函数的关联关系记录到命令字-函数名映射文件中。The mapping module is used for setting a command word for each function, associating the command word with the function, and recording the relationship between the command word and the function in the command word-function name mapping file.

优选的,上述应用生成装置还包括:Preferably, the above-mentioned application generation device further includes:

集成功能项模块,用于将至少一个函数按照固定顺序排列得到一多个函数的集合,将该集合作为一个集成功能项,将所述至少一个函数的命令字按照所述固定顺序排列得到命令字序列,将所述命令字序列与该集成功能项关联起来。The integrated function item module is used for arranging at least one function in a fixed order to obtain a set of multiple functions, using the set as an integrated function item, and arranging the command words of the at least one function in the fixed order to obtain the command words sequence, associating the command word sequence with the integrated function item.

优选的,所述动态执行模块包括:Preferably, the dynamic execution module includes:

解析单元,用于解析所述执行流文件,获取所述执行流文件中的各条执行纪录;A parsing unit, configured to parse the execution flow file and obtain each execution record in the execution flow file;

提取单元,用于按照执行纪录中的命令字,查询所述命令字-函数名映射文件,从所述代码资源库中提取相应的函数或集成功能项;The extraction unit is used to query the command word-function name mapping file according to the command word in the execution record, and extract the corresponding function or integrated function item from the code resource library;

应用生成单元,用于将所述函数或集成功能项按照所述执行纪录的序号和跳转方式确定运行顺序,按照该运行顺序依次运行函数或集成功能项,生成应用。The application generation unit is used to determine the running order of the function or integrated function item according to the sequence number and jump mode of the execution record, and run the function or integrated function item sequentially according to the running order to generate an application.

本发明提供了一种应用生成方法和装置,接收外部指令,根据所述外部指令生成执行流文件,并按照所述执行流文件,调用预置的代码资源库中的函数,生成应用,重新搭建软件环境或者大量修改软件代码的重复性工作,提高了构建应用软件的效率。The present invention provides a method and device for generating an application, which receives external instructions, generates an execution flow file according to the external instruction, and calls a function in a preset code resource library according to the execution flow file, generates an application, and rebuilds the application. The software environment or the repetitive work of extensively modifying the software code improves the efficiency of building application software.

附图说明 Description of drawings

图1为本发明的实施例一提供的一种应用生成方法的流程图;FIG. 1 is a flowchart of an application generation method provided by Embodiment 1 of the present invention;

图2为本发明的实施例二提供的一种应用生成方法的流程图;FIG. 2 is a flow chart of an application generation method provided by Embodiment 2 of the present invention;

图3为代码资源库的内部结构图;Figure 3 is an internal structure diagram of the code resource library;

图4为命令字-函数名映射表;Fig. 4 is command word-function name mapping table;

图5为集成功能项的示意图;Fig. 5 is a schematic diagram of an integrated function item;

图6为本发明的实施例所使用的执行流文件的示意图;FIG. 6 is a schematic diagram of an execution flow file used in an embodiment of the present invention;

图7为图2中步骤205的具体流程图;FIG. 7 is a specific flowchart of step 205 in FIG. 2;

图8为本发明的实施例提供的一种应用生成装置的结构示意图;FIG. 8 is a schematic structural diagram of an application generation device provided by an embodiment of the present invention;

图9为图8中执行流文件生成模块801的结构示意图;FIG. 9 is a schematic structural diagram of the execution flow file generation module 801 in FIG. 8;

图10为本发明的又一实施例提供的一种应用生成装置的结构示意图;Fig. 10 is a schematic structural diagram of an application generation device provided by another embodiment of the present invention;

图11为本发明的又一实施例提供的一种应用生成装置的结构示意图;Fig. 11 is a schematic structural diagram of an application generation device provided by another embodiment of the present invention;

图12为动态执行模块802的结构示意图。FIG. 12 is a schematic structural diagram of the dynamic execution module 802 .

具体实施方式 Detailed ways

由于一般软件都是针对具体的相关软硬件环境进行开发,个性明显而共性不足,存在移植性差、代码可复用性低等众多问题。而随着产品型号的不断更新及新技术的不断应用,软件开发人员不能专注于新技术的具体实现,而将大量的时间浪费到重新搭建软件环境或者大量修改软件代码的重复性工作之中,导致巨大的资源浪费。Because general software is developed for specific related software and hardware environments, it has obvious individuality but insufficient commonality, and there are many problems such as poor portability and low code reusability. With the continuous update of product models and the continuous application of new technologies, software developers cannot focus on the specific implementation of new technologies, but waste a lot of time in the repetitive work of rebuilding the software environment or modifying a large number of software codes. lead to a huge waste of resources.

为了解决上述问题,本发明的实施例提供了一种应用生成方法和装置。下文中将结合附图对本发明的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。In order to solve the above problems, embodiments of the present invention provide an application generation method and device. Embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined arbitrarily with each other.

本发明的实施例提供了一种应用生成方法和装置,实现了一个通用的软件自动生成平台。且可以添加用户操作的可视化界面,以使用操作更直观方便。The embodiment of the present invention provides an application generation method and device, and realizes a general software automatic generation platform. And a visual interface for user operation can be added to make the operation more intuitive and convenient.

首先,对本发明的实施例一进行说明。First, Embodiment 1 of the present invention will be described.

本发明实施例提供了一种应用生成方法,使用该方法自动完成软件开发的流程如图1所示,包括:An embodiment of the present invention provides an application generation method. The process of automatically completing software development using this method is shown in Figure 1, including:

步骤101、接收外部指令,根据所述外部指令生成执行流文件;Step 101, receiving an external command, and generating an execution flow file according to the external command;

步骤102、按照所述执行流文件,调用预置的代码资源库中的函数,生成应用。Step 102, according to the execution flow file, call a function in a preset code resource library to generate an application.

下面结合附图,对本发明的实施例二进行说明。Embodiment 2 of the present invention will be described below with reference to the accompanying drawings.

本发明实施例提供了一种应用生成方法,使用该方法能够自动实现软件开发流程,具体如图2所示,包括:The embodiment of the present invention provides an application generation method, which can automatically realize the software development process, as shown in Figure 2, including:

步骤201、设置一代码资源库,所述代码资源库包括至少一个函数;Step 201, setting a code resource library, the code resource library includes at least one function;

本步骤中,将软件的相关常用功能模块进行抽象并封装,构成一个个函数。封装后各个类成员函数功能单一,可以抽象为与命令字一一对应的执行单元。这部分共同组成不依赖于具体软件的代码资源库。代码资源库易于扩展,以适应不同软件的个性化需求。In this step, relevant commonly used functional modules of the software are abstracted and encapsulated to form functions one by one. After encapsulation, each class member function has a single function and can be abstracted as an execution unit corresponding to the command word one by one. These parts together form a code resource library that does not depend on specific software. The code resource library is easy to expand to meet the individual needs of different software.

图3是代码资源库的内部结构图。如图3所示,代码资源库模块是由各个软件相关领域的代码资源组成。这些领域包括通讯、数据库操作、执行流控制、开发平台接口调用、显示、Log消息记录等,对于以上每个领域而言,代码资源库中都有相应的单独模块与之对应,以模块化的方式实现代码资源库的组织。Figure 3 is a diagram of the internal structure of the code resource library. As shown in Figure 3, the code resource library module is composed of code resources in various software-related fields. These fields include communication, database operation, execution flow control, development platform interface call, display, Log message recording, etc. For each of the above fields, there are corresponding separate modules in the code resource library, and the modularized The way to realize the organization of the code resource library.

对于代码资源库内某一指定模块的内部组织结构,通过类继承的方式来实现。可以先定义出一个公共的父类,然后根据实际功能由其不同的子类实现,每个子类又可以再将功能细化,由其对应的子类一层层继承实现。For the internal organizational structure of a specified module in the code resource library, it is realized through class inheritance. You can first define a common parent class, and then realize it by its different subclasses according to the actual functions. Each subclass can further refine the function and implement it layer by layer by its corresponding subclass inheritance.

需要注意的是,在代码资源库进行类架构时,各个函数应该是可以实现单独功能的原子函数,是整个类功能实现的最小步骤,这样代码资源库中的函数就可以灵活组合以实现用户的各种不同需求;同时也应注意函数名的组织,应该尽可能的抽象出具有公共含义的函数名将之提到其父类定义,最大程度的减少函数的数量,从而降低使用代码资源库时查询函数名所需的工作量。It should be noted that when the class structure is implemented in the code resource library, each function should be an atomic function that can realize a separate function, which is the smallest step in the realization of the entire class function, so that the functions in the code resource library can be flexibly combined to realize the user's Various requirements; At the same time, we should also pay attention to the organization of function names. We should try our best to abstract function names with public meanings and refer them to their parent class definitions, so as to minimize the number of functions and reduce the query time when using the code resource library. The amount of work required for the function name.

代码资源库可以使用类似动态链接库的方式实现,以方便其它程序对其包含的函数进行调用,同时也可以更容易的提取出函数与命令字的映射关系。The code resource library can be implemented in a manner similar to a dynamic link library, so that other programs can call the functions contained in it, and at the same time, it is easier to extract the mapping relationship between functions and command words.

具体的,代码资源库是一个专家系统,由软件相关的各领域函数组成,这些函数包括但不限于通讯代码模块、数据库操作代码模块及设备控制代码模块、执行流相关代码模块、商用开发平台接口代码模块、显示代码模块、Log消息记录代码模块等各功能模块。Specifically, the code resource library is an expert system composed of software-related functions in various fields, including but not limited to communication code modules, database operation code modules and equipment control code modules, execution flow related code modules, and commercial development platform interfaces Code module, display code module, Log message record code module and other functional modules.

代码资源库是开放的、易于扩展的,可以通过添加具有良好继承关系的类等类似方法来实现新增功能代码资源的入库。另外,代码资源库可以通过动态链接文件库等方法来实现,以期被外部模块方便调用。优选的,可根据具备具体功能的代码模块等先验知识来实现代码资源库,以提升代码资源库的建立效率及稳定性。The code resource library is open and easy to expand, and new functional code resources can be added to the library by adding classes with good inheritance relationships and similar methods. In addition, the code resource library can be realized by methods such as dynamic link file library, so as to be conveniently called by external modules. Preferably, the code resource library can be implemented according to prior knowledge such as code modules with specific functions, so as to improve the efficiency and stability of the code resource library.

代码资源库应包括其相关领域的完整功能,对于每一种常用的相关技术都应支持。以通讯代码函数为例,需要支持网口/串口/并口等各种硬件设备,同时应支持阻塞/非阻塞等各种通讯方式,还应支持TCP/UDP等各种通讯协议,对于由其组成的各种常用组合,都应有相应的处理。The code resource library should include complete functions in its related fields, and should support every commonly used related technology. Taking the communication code function as an example, it needs to support various hardware devices such as network port/serial port/parallel port, as well as various communication methods such as blocking/non-blocking, and various communication protocols such as TCP/UDP. Various commonly used combinations should be dealt with accordingly.

代码资源库中的各个函数均通过类继承及封装等技术来实现代码资源的组织,以期用最少的原子函数数量来实现各部分的完整功能。同样以通讯类的函数为例,可以抽象出共同的读、写等子功能,通过类继承及虚拟函数技术实现通讯代码函数的合理组织。Each function in the code resource library implements the organization of code resources through techniques such as class inheritance and encapsulation, in order to realize the complete functions of each part with the least number of atomic functions. Also taking the functions of the communication class as an example, common sub-functions such as reading and writing can be abstracted, and the reasonable organization of communication code functions can be realized through class inheritance and virtual function technology.

以上对于通讯类函数的要求同样适用于代码资源库中的其他类型的函数。The above requirements for communication functions also apply to other types of functions in the code resource library.

步骤202、为每个函数设置一命令字,将命令字与该函数关联起来,将命令字与函数的关联关系记录到命令字-函数名映射文件中;Step 202, setting a command word for each function, associating the command word with the function, and recording the relationship between the command word and the function in the command word-function name mapping file;

本发明实施例中需要维护一套命令字,同时通过一个命令字-函数名映射表来实现命令字与代码资源库中所有函数的一对一映射关系以实现对具体代码的屏蔽,并且两者可以方便的相互引用。In the embodiment of the present invention, a set of command words needs to be maintained, and at the same time, a command word-function name mapping table is used to realize the one-to-one mapping relationship between command words and all functions in the code resource library to realize the shielding of specific codes, and the two It is convenient to refer to each other.

命令字-函数名映射表内容如图4所示。命令字-函数名映射表是命令字与代码资源库中各成员函数的映射关系记录表。这里需要指出的是,此表中不仅要建立命令字与函数名的一对一映射关系,还应该将各个函数的输入格式、返回值、注释等信息反映出来,以备外部程序格式化填充各个函数所需的输入信息,获得指定类型的返回值,从而实现整个程序的信息处理及流程控制。The content of the command word-function name mapping table is shown in Figure 4. The command word-function name mapping table is a record table of the mapping relationship between the command word and each member function in the code resource library. What needs to be pointed out here is that this table should not only establish a one-to-one mapping relationship between command words and function names, but also reflect information such as the input format, return value, and comments of each function, so that the external program can format and fill each function. The input information required by the function and the return value of the specified type are obtained, so as to realize the information processing and flow control of the entire program.

由于命令字-函数名映射表格式规范,因此可以很方便的由代码资源库中头文件生成或更新命令字-函数名映射表,开发人员需要做的只是规定出代码资源库中各类成员函数对应命令字的命名方式,即可实现命令字的管理。Due to the standard format of the command word-function name mapping table, it is very convenient to generate or update the command word-function name mapping table from the header file in the code resource library. What developers need to do is to specify various member functions in the code resource library Corresponding to the naming method of the command word, the management of the command word can be realized.

命令字具有比函数名更简洁的表达形式,可以实现对具体代码的屏蔽,同时可以更方便的被组织起来并映射到可视化界面上,因此有必要维护一个命令字-函数名映射文件。Command words have a more concise expression than function names, which can shield specific codes, and can be organized and mapped to the visual interface more conveniently. Therefore, it is necessary to maintain a command word-function name mapping file.

命令字-函数名映射文件,将代码资源库中的各函数映射到统一的命令字系统中。命令字可以采用“公共父类名+具体类名+函数别名”的形式生成,以保证命令字的唯一性。The command word-function name mapping file maps each function in the code resource library to a unified command word system. The command word can be generated in the form of "public parent class name + concrete class name + function alias" to ensure the uniqueness of the command word.

步骤203、将至少一个函数按照固定顺序排列得到一多个函数的集合,将该集合作为一个集成功能项;Step 203, arrange at least one function in a fixed order to obtain a set of multiple functions, and use the set as an integrated function item;

由于一些相同功能的软件实现过程是非常类似的,其对应代码体也是基本相同的,因此,如果将这些相似的代码提取出来,形成公共的集成功能项代码块,能够提高软件的复用性,降低软件开发的成本。Since some software implementation processes with the same function are very similar, their corresponding code bodies are also basically the same. Therefore, if these similar codes are extracted to form a common integrated function item code block, the reusability of the software can be improved. Reduce the cost of software development.

本步骤中,将共同完成一个功能的多个函数按照完成该功能的运行顺序排列,得到一个集合,这个集合就是一个集成功能项。In this step, a plurality of functions that jointly complete a function are arranged according to the running order of completing the function to obtain a set, which is an integrated function item.

在得到集成功能项后,也需要为该功能项分配命令字,具体的将所述至少一个函数的命令字按照所述固定顺序排列得到命令字序列,将所述命令字序列与该集成功能项关联起来。After obtaining the integrated function item, it is also necessary to assign a command word to the function item, specifically arrange the command words of the at least one function according to the fixed order to obtain a command word sequence, and combine the command word sequence with the integrated function item connect.

通过集成功能项,能够将相同功能的软件过程或者实现特定功能的执行序列抽象为模块保存起来,以备代码复用。By integrating function items, the software process with the same function or the execution sequence to realize a specific function can be abstracted as a module and saved for code reuse.

图5为集成功能项内部架构示意图,由图可以看出,集成功能项是由多个由固定命令字序列组成的函数的集合。把具有特定功能的命令字序列形成模块,以减少重复生成的工作量,从而提高软件的开发效率。集成功能项中的各函数可以作为命令字序列被执行流文件生成模块编辑,以实现对其的添加、修改及删除操作。Fig. 5 is a schematic diagram of the internal architecture of the integrated function item. It can be seen from the figure that the integrated function item is a collection of functions composed of a plurality of fixed command word sequences. The sequence of command words with specific functions is formed into modules to reduce the workload of repeated generation, thereby improving the efficiency of software development. Each function in the integrated function item can be edited by the execution flow file generation module as a sequence of command words, so as to realize the operations of adding, modifying and deleting it.

本发明实施例所涉及的集成功能项内的各个函数均是按照固定顺序的特定命令字序列排列。每个函数都具有规范的输入、输出格式及确定的软件功能。其与代码资源库一样,也是开放的、易于扩展的,扩展时只需通过将指定命令字按照工装的实际顺序组合起来即可。Each function in the integrated function item involved in the embodiment of the present invention is arranged according to a specific command word sequence in a fixed order. Each function has standardized input and output formats and definite software functions. Like the code resource library, it is also open and easy to expand. When expanding, it only needs to combine the specified command words according to the actual order of the tooling.

步骤204、接收外部指令,根据所述外部指令生成执行流文件;Step 204, receiving an external command, and generating an execution flow file according to the external command;

每条执行记录均包含序号、命令字、输入、函数跳转及注释五项参数。本发明的实施例所涉及的外部指令可由用户下发。优选的,可以添加一用户操作界面,用户通过该界面进行可视化操作。Each execution record contains five parameters: serial number, command word, input, function jump and comment. The external instructions involved in the embodiments of the present invention can be issued by users. Preferably, a user operation interface can be added, through which the user can perform visual operations.

执行流文件是一个有严格固定格式的文件,执行流文件中应包括一次完整开发过程中所需的所有信息,包括软件执行流程控制、输入/输出控制、存储控制、显示控制等各个方面。具体的,每条执行记录均包含序号、命令字、输入、函数跳转及注释五项参数。但是需要指出的是,执行流文件只是供动态执行软件功能时执行函数的顺序,真正的软件执行还是通过代码资源库中的相应函数实现。The execution flow file is a file with a strict fixed format. The execution flow file should include all the information needed in a complete development process, including software execution flow control, input/output control, storage control, display control and other aspects. Specifically, each execution record includes five parameters: serial number, command word, input, function jump and comment. However, it should be pointed out that the execution flow file is only used to execute the sequence of functions when dynamically executing software functions, and the real software execution is still realized through the corresponding functions in the code resource library.

执行流文件内容如图6所示。一个应用软件对应的执行流文件包括序号、命令字、输入、函数跳转及注释五项参数。其中序号为递增且唯一的,标示命令字在执行流文件中的位置,也作为程序跳转时的依据。命令字、输入、跳转方式中的信息都与命令字-函数名映射表中某条记录相对应,不同的是输入列已被真实的输入数据代替,而返回值列也根据指定软件的要求规定了跳转规则。The content of the execution flow file is shown in Figure 6. An execution flow file corresponding to an application software includes five parameters including serial number, command word, input, function jump and comment. The serial number is incremental and unique, and marks the position of the command word in the execution flow file, which is also used as the basis for program jumping. The information in the command word, input, and jump mode all correspond to a certain record in the command word-function name mapping table. The difference is that the input column has been replaced by real input data, and the return value column is also based on the requirements of the specified software. Specifies the jump rules.

执行流文件的生成可通过具有可视化属性的模块完成,该模块可以导出执行流文件中的所有信息到界面上以供用户编辑,也可以将用户编辑后的内容导入到执行流文件中。同时,其应按双工方式运行,该模块既可以将集成功能项某一函数解析成单条的命令字纪录,也可以将特定的命令字纪录序列生成集成功能项对应的命令字。The generation of the execution flow file can be completed through a module with visualization properties. This module can export all the information in the execution flow file to the interface for editing by the user, and can also import the content edited by the user into the execution flow file. At the same time, it should operate in a duplex mode. This module can not only analyze a certain function of the integrated function item into a single command word record, but also generate a command word corresponding to the integrated function item from a specific command word record sequence.

需要指出的是,执行流文件一般不需要用户直接进行编辑,而是通过上述可视化属性的模块进行修改、导入/导出操作,其具体实现细节及每个字段的含义对于用户是不可见的,用户只需在可视编辑界面上完成相应操作即可形成正确的执行流文件,而其包含的跳转分支格式、变量使用等信息都可由执行流文件生成模块统一进行处理。It should be pointed out that the execution flow file generally does not need to be edited directly by the user, but is modified and imported/exported through the modules of the above-mentioned visual attributes. The specific implementation details and the meaning of each field are invisible to the user. The correct execution flow file can be formed only by completing corresponding operations on the visual editing interface, and the information contained in it, such as jump branch format and variable usage, can be uniformly processed by the execution flow file generation module.

步骤205、按照所述执行流文件,调用预置的代码资源库中的函数,生成应用;Step 205, execute the flow file according to the above, call the function in the preset code resource library, and generate the application;

本步骤具体如图7所示,包括:This step is specifically shown in Figure 7, including:

步骤2051、解析所述执行流文件,获取所述执行流文件中的各条执行纪录;Step 2051, analyze the execution flow file, and obtain each execution record in the execution flow file;

本步骤中,首先抽取执行流文件中的每条纪录。In this step, first extract each record in the execution flow file.

步骤2052、按照执行纪录中的命令字,查询所述命令字-函数名映射文件,从所述代码资源库中提取相应的函数或集成功能项;Step 2052, query the command word-function name mapping file according to the command word in the execution record, and extract the corresponding function or integrated function item from the code resource library;

本步骤中,根据命令字-函数名映射表,找到各执行纪录的命令字所对应的函数或集成功能项。In this step, the function or integrated function item corresponding to the command word of each execution record is found according to the command word-function name mapping table.

步骤2053、将所述函数或集成功能项按照所述执行纪录的序号和跳转方式确定运行顺序,按照该运行顺序依次运行函数或集成功能项,生成应用。Step 2053: Determine the running sequence of the function or integrated function item according to the sequence number and jump mode of the execution record, run the function or integrated function item sequentially according to the running sequence, and generate an application.

本步骤中,根据跳转方式和序号来确定运行函数或集成功能项的运行顺序,即首先从第一条执行纪录开始运行,在运行完该条执行纪录对应的函数后,根据跳转方式参数的内容确定下一条要运行的执行纪录,跳转到该条执行纪录。In this step, determine the running order of the running function or integrated function item according to the jump mode and sequence number, that is, firstly start running from the first execution record, and after running the function corresponding to the execution record, according to the jump mode parameter The content of determines the next execution record to be run, and jumps to this execution record.

由于集成功能项是具有固定功能的命令序列的组合,因此可以对其进行编辑,在段的级别上实现对其的相关操作,即将集成功能项转化为执行流文件中的多条执行纪录统一处理。Since the integrated function item is a combination of command sequences with fixed functions, it can be edited to realize related operations at the segment level, that is, to convert the integrated function item into multiple execution records in the execution flow file for unified processing .

下面结合附图,对本发明的实施例三进行说明。Embodiment 3 of the present invention will be described below with reference to the accompanying drawings.

本发明的实施例提供了一种应用生成装置,该装置的结构如图8所示,包括:An embodiment of the present invention provides an application generation device, the structure of which is shown in Figure 8, including:

执行流文件生成模块801,用于接收外部指令,根据所述外部指令生成执行流文件;An execution flow file generating module 801, configured to receive an external instruction, and generate an execution flow file according to the external instruction;

动态执行模块802,用于按照所述执行流文件,调用预置的代码资源库中的函数,生成应用。The dynamic execution module 802 is configured to call a function in a preset code resource library according to the execution flow file to generate an application.

优选的,所述执行流文件生成模块801的结构如图9所示,包括:Preferably, the structure of the execution flow file generation module 801 is shown in Figure 9, including:

执行纪录生成单元8011,用于接收所述外部指令,根据所述外部指令编辑所述执行流文件的各项参数,得到执行纪录;Execution record generating unit 8011, configured to receive the external instruction, edit various parameters of the execution flow file according to the external instruction, and obtain an execution record;

文件生成单元8012,用于将多条执行纪录组合得到执行流文件。A file generating unit 8012, configured to combine multiple execution records to obtain an execution flow file.

优选的,上述应用生成装置的结构如图10所示,还包括:Preferably, the structure of the above-mentioned application generation device is shown in Figure 10, and further includes:

代码资源库模块803,用于设置一代码资源库,所述代码资源库包括至少一个函数;A code resource library module 803, configured to set a code resource library, the code resource library includes at least one function;

映射模块804,用于将为每个函数设置一命令字,将命令字与该函数关联起来,将命令字与函数的关联关系记录到命令字-函数名映射文件中。The mapping module 804 is configured to set a command word for each function, associate the command word with the function, and record the relationship between the command word and the function in the command word-function name mapping file.

优选的,上述应用生成装置的结构如图11所示,还包括:Preferably, the structure of the above-mentioned application generation device is shown in Figure 11, and further includes:

集成功能项模块805,用于将至少一个函数按照固定顺序排列得到一多个函数的集合,将该集合作为一个集成功能项,将所述至少一个函数的命令字按照所述固定顺序排列得到命令字序列,将所述命令字序列与该集成功能项关联起来。The integrated function item module 805 is configured to arrange at least one function in a fixed order to obtain a set of multiple functions, use the set as an integrated function item, and arrange the command words of the at least one function in the fixed order to obtain a command word sequence, associating the command word sequence with the integrated function item.

优选的,所述动态执行模块802的结构如图12所示,包括:Preferably, the structure of the dynamic execution module 802 is shown in Figure 12, including:

解析单元8021,用于解析所述执行流文件,获取所述执行流文件中的各条执行纪录;A parsing unit 8021, configured to parse the execution flow file and obtain each execution record in the execution flow file;

提取单元8022,用于按照执行纪录中的命令字,从所述代码资源库中提取相应的函数或集成功能项;Extracting unit 8022, configured to extract corresponding functions or integrated function items from the code resource library according to the command word in the execution record;

应用生成单元8023,用于将所述函数或集成功能项按照所述执行纪录的顺序排列,依次运行排列后的函数,生成应用。The application generation unit 8023 is configured to arrange the functions or integrated function items according to the order of the execution records, run the arranged functions in sequence, and generate an application.

执行流文件是一个有严格固定格式的文件,执行流文件中应包括一次完整开发过程中所需的所有信息,包括软件执行流程控制、输入/输出控制、存储控制、显示控制等各个方面。但是需要指出的是,执行流文件只是供动态执行模块读取信息的纪录集合,真正的软件执行还是通过代码资源库中的相应函数实现。The execution flow file is a file with a strict fixed format. The execution flow file should include all the information needed in a complete development process, including software execution flow control, input/output control, storage control, display control and other aspects. However, it should be pointed out that the execution flow file is only a collection of records for the dynamic execution module to read information, and the real software execution is realized through the corresponding functions in the code resource library.

执行流文件生成模块是一个具有可视化属性的模块,它可以导出执行流文件中的所有信息到界面上以供用户编辑,也可以将用户编辑后的内容导入到执行流文件中。同时,其应按双工方式运行,本模块既可以将集成功能项某一函数解析成单条的命令字纪录,也可以将特定的命令字纪录序列生成集成功能项函数。The execution flow file generation module is a module with visualization properties, which can export all the information in the execution flow file to the interface for user editing, and can also import the user-edited content into the execution flow file. At the same time, it should operate in duplex mode. This module can not only parse a certain function of the integrated function item into a single command word record, but also generate an integrated function item function from a specific command word record sequence.

动态执行模块首先抽取执行流文件中的每条纪录,然后将其根据命令字-函数名映射表找到相应的函数并实现对函数的执行,最后根据跳转方式要求实现程序流程相应跳转,从而实现软件功能。The dynamic execution module first extracts each record in the execution flow file, then finds the corresponding function according to the command word-function name mapping table and realizes the execution of the function, and finally realizes the corresponding jump of the program flow according to the jump mode requirements, so that Realize software functions.

其中,执行流文件生成模块、动态执行模块均与执行流文件有信息交互。执行流文件生成模块负责由用户界面选择信息构成执行流文件中的内容,或者将某一执行流文件中的内容显示在用户界面以供用户编辑;动态执行模块以执行流文件为唯一信息输入接口,一条条获取执行流文件记录以供后续过程使用。Among them, the execution flow file generation module and the dynamic execution module all have information interaction with the execution flow file. The execution flow file generation module is responsible for forming the content of the execution flow file from the information selected by the user interface, or displaying the content of a certain execution flow file on the user interface for editing by the user; the dynamic execution module uses the execution flow file as the only information input interface , to obtain execution flow file records one by one for use in subsequent processes.

另外,由于本发明中统一使用命令字对具体函数名进行屏蔽,因此,各个上层模块都依赖于命令字-函数名映射表。同时,命令字-函数名映射表与代码资源库模块有紧密的对应关系,这两部分之间存在信息交互。In addition, since the command word is uniformly used in the present invention to shield specific function names, each upper module depends on the command word-function name mapping table. At the same time, the command word-function name mapping table has a close correspondence with the code resource library module, and there is information interaction between the two parts.

由于集成功能项模块是具有固定功能的命令序列的组合,因此可以用执行流文件生成模块对其进行编辑,在段的级别上实现对其的相关操作,最后转化为执行流文件中的记录序列统一处理。Since the integrated function item module is a combination of command sequences with fixed functions, it can be edited with the execution flow file generation module, and its related operations are realized at the segment level, and finally converted into a record sequence in the execution flow file Unified processing.

需要指出的是,执行流文件一般不需要用户直接进行编辑,而是通过执行流文件生成模块进行修改、导入/导出操作,因此其具体实现细节及每个字段的含义对于用户是不可见的,用户只需在可视编辑界面上完成相应操作即可形成正确的执行流文件,而其包含的跳转分支格式、变量使用等信息都可由执行流文件生成模块统一进行处理。It should be pointed out that the execution flow file generally does not need to be edited directly by the user, but is modified, imported/exported through the execution flow file generation module, so its specific implementation details and the meaning of each field are invisible to the user. The user only needs to complete the corresponding operations on the visual editing interface to form a correct execution flow file, and the information contained in it, such as jump branch format, variable usage, etc., can be uniformly processed by the execution flow file generation module.

执行流文件生成模块负责实现执行流文件和集成功能项函数的生成、导入、修改、导出等功能,它是一个可视化的用户界面。为了让用户方便的在界面上生成或修改某次工作流程需要的执行流序列,执行流文件生成模块具有以下功能:The execution flow file generating module is in charge of realizing functions such as generation, import, modification, and export of execution flow files and integrated function items, and it is a visual user interface. In order to allow users to easily generate or modify the execution flow sequence required by a certain workflow on the interface, the execution flow file generation module has the following functions:

1、界面选择通过类似于代码资源库模块的类结构方式进行组织,通过下拉框或者其它类似形式来实现,分层次的在可视化界面上展示全部命令字,并且每个命令字都对应唯一的注释性信息,从而使用户可以快速找到所需的某条命令字以完成插入操作;1. The interface selection is organized in a class structure similar to the code resource library module. It is realized through a drop-down box or other similar forms, and all command words are displayed on the visual interface hierarchically, and each command word corresponds to a unique comment. sex information, so that the user can quickly find a certain command word needed to complete the insertion operation;

2、主工作区中每条命令字记录生成前,都应预先根据命令字-函数名映射表中的信息规范输入参数与函数返回值的类型及格式,用户可以在可视化界面上完成各个参数的填写及返回值的处理,同时根据具体执行流程调整其跳转方式;2. Before each command word record is generated in the main work area, the input parameters and the type and format of the function return value should be standardized in advance according to the information in the command word-function name mapping table. Users can complete each parameter on the visual interface. Fill in and process the return value, and adjust its jump mode according to the specific execution process;

3、用户在执行流编辑主工作区可以灵活调节序列中各条记录的位置,并且可以方便实现插入或删除操作;3. The user can flexibly adjust the position of each record in the sequence in the main work area of execution flow editing, and can conveniently implement insert or delete operations;

4、执行流文件生成模块可以方便的实现执行流文件的导入到主工作区和从主工作区导出成文件的操作;4. The execution flow file generation module can conveniently realize the operations of importing execution flow files into the main workspace and exporting them into files from the main workspace;

5、对于执行序列中子函数和集成功能项函数,可以将其做为一个整体与单条执行流记录进行同样处理。对于其与执行流文件记录的对应关系,既可以将其转化为执行流文件中固定顺序的执行流序列统一处理,也可以新建子执行流文件,通过主执行流文件调用来最终实现其对应功能;5. For sub-functions and integrated function item functions in the execution sequence, they can be treated as a whole as a single execution flow record. For its correspondence with the execution flow file records, it can be converted into a fixed sequence of execution flow sequences in the execution flow file for unified processing, or a new sub-execution flow file can be created, and its corresponding function can be finally realized by calling the main execution flow file ;

6、用户可以在执行流文件生成模块中方便的定义及使用各种类型的变量,变量的定义工作在第一次变量使用前自动插入到执行流文件中。6. Users can conveniently define and use various types of variables in the execution flow file generation module. The definition of variables is automatically inserted into the execution flow file before the variable is used for the first time.

动态执行模块需要做的工作就是读取执行流文件中的各条记录,先根据记录中包含的命令字信息查找命令字-函数名映射表找到相应函数,接着将记录中包含的输入参数信息按照对应格式传入到此函数中并正确执行。最后根据函数的返回信息和执行流文件中规定的跳转方式转入对应的记录The work that the dynamic execution module needs to do is to read each record in the execution flow file, first search the command word-function name mapping table according to the command word information contained in the record to find the corresponding function, and then input the input parameter information contained in the record according to The corresponding format is passed into this function and executed correctly. Finally, transfer to the corresponding record according to the return information of the function and the jump mode specified in the execution flow file

动态执行模块可以通过一个类似于switch-case结构的软件架构实现,其主要功能就是根据不同的命令字信息走到正确的程序分支执行相应函数,至于执行流文件中的输入信息,可以很方便地由从文件中读出的字段转化为函数的输入参数,在此不再赘述。The dynamic execution module can be implemented through a software architecture similar to the switch-case structure. Its main function is to go to the correct program branch to execute the corresponding function according to different command word information. As for the input information in the execution flow file, it can be easily The fields read from the file are converted into the input parameters of the function, so I won't repeat them here.

动态执行模块稳定工作的一个关键就是对于执行流文件中变量的管理及正确调用。对于各过程变量,需要防止其重复定义,由动态执行模块完成对变量的控制管理。A key to the stable work of the dynamic execution module is the management and correct calling of the variables in the execution flow file. For each process variable, it is necessary to prevent its repeated definition, and the dynamic execution module completes the control and management of the variable.

对于特定的应用开发而言,如果代码资源库已经正确建立且其对应的命令字-函数名映射表已经生成,用户只需完成以下两个步骤即可完成应用软件的自动生成:For specific application development, if the code resource library has been correctly established and its corresponding command word-function name mapping table has been generated, the user only needs to complete the following two steps to complete the automatic generation of the application software:

1、通过执行流文件生成模块生成执行流文件;1. Generate an execution flow file through the execution flow file generation module;

本发明中,使用者首先须根据工作流程要求在执行流文件生成模块上选择所需的特定命令字,接着根据命令字要求的输入格式填入实际数据以完成单条执行流记录的输入并插入到执行流序列对应位置中。在执行流序列全部生成后,调整各记录的跳转信息即可导出完整的执行流文件以供动态执行模块调用。In the present invention, the user must first select the required specific command word on the execution flow file generation module according to the workflow requirements, and then fill in the actual data according to the input format required by the command word to complete the input of a single execution flow record and insert it into the In the corresponding position of the execution flow sequence. After all the execution flow sequences are generated, the complete execution flow file can be exported by adjusting the jump information of each record for calling by the dynamic execution module.

2、动态执行模块调用;2. Dynamic execution module call;

动态执行模块只需知道执行流文件的路径即可参考命令字-函数名映射表完成其对应的相关功能。The dynamic execution module only needs to know the path of the execution flow file, and can refer to the command word-function name mapping table to complete its corresponding related functions.

为了提高执行效率,还可以采用内存映射方法来实现执行流文件的处理;同时也可以牺牲部分可读性,通过省略命令字环节而直接使用代码资源库中的函数名为外部接口来实现平台的功能;另外还可以把执行流文件分为主执行流文件和多个从执行流文件,每个从执行流文件负责定义单独的子函数和集成功能项函数,而主执行流文件负责统一调用从执行轮流文件及主函数体内容;对于整体执行流程比较复杂的情况,可以生成多个执行流文件来分别处理。总之,任何对于本发明的简单优化均应涵盖在本发明的保护范围内。In order to improve the execution efficiency, the memory mapping method can also be used to realize the processing of the execution flow file; at the same time, part of the readability can also be sacrificed, by omitting the command word link and directly using the function name in the code resource library to realize the external interface of the platform. functions; in addition, the execution flow file can be divided into a main execution flow file and multiple slave execution flow files, each slave execution flow file is responsible for defining a separate sub-function and integrated function item function, and the main execution flow file is responsible for uniformly calling the Execute the rotation file and the content of the main function body; for cases where the overall execution process is more complicated, multiple execution flow files can be generated for separate processing. In a word, any simple optimization of the present invention shall fall within the protection scope of the present invention.

从以上技术方案可以看出,通过将相关代码用统一的代码资源库实现,可以大大提高软件的复用程度;其次,通过执行流文件的使用,可以将代码编写工作转化为可视化的文件记录添加工作;最后,实现了软件前期开发工作和即时软件开发工作的分离,可以更好的应对个性化需求要求紧迫、开发周期较短的实际情况。From the above technical solutions, it can be seen that by implementing related codes with a unified code resource library, the degree of software reuse can be greatly improved; secondly, by using execution flow files, the code writing work can be converted into visual file records and added work; finally, the separation of pre-software development work and real-time software development work is realized, which can better cope with the actual situation of urgent individual needs and short development cycle.

与现有技术相比,此发明实现了软件的图形化开发,大大提高了软件的开发效率;可以使专业软件开发人员更专注于新技术的实现而不用深陷于软件重新架构的泥潭里,同时即时软件开发的工作量也大大减少,并且减低了开发人员的技术壁垒。软件修改的工作量也因本发明变得非常轻松,用户只需在可视化界面上修改执行流文件中的内容即可完成。Compared with the existing technology, this invention realizes the graphical development of software and greatly improves the efficiency of software development; it enables professional software developers to focus more on the realization of new technologies without being stuck in the quagmire of software re-architecture. At the same time, the workload of real-time software development is also greatly reduced, and the technical barriers of developers are reduced. The workload of software modification is also very easy due to the invention, and the user only needs to modify the content in the execution flow file on the visual interface to complete it.

本领域普通技术人员可以理解上述实施例的全部或部分步骤可以使用计算机程序流程来实现,所述计算机程序可以存储于一计算机可读存储介质中,所述计算机程序在相应的硬件平台上(如系统、设备、装置、器件等)执行,在执行时,包括方法实施例的步骤之一或其组合。Those of ordinary skill in the art can understand that all or part of the steps of the above-mentioned embodiments can be implemented using a computer program flow, the computer program can be stored in a computer-readable storage medium, and the computer program can be run on a corresponding hardware platform (such as system, device, device, device, etc.), and when executed, includes one or a combination of the steps of the method embodiment.

可选地,上述实施例的全部或部分步骤也可以使用集成电路来实现,这些步骤可以被分别制作成一个个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。Optionally, all or part of the steps in the above embodiments can also be implemented using integrated circuits, and these steps can be fabricated into individual integrated circuit modules, or multiple modules or steps among them can be fabricated into a single integrated circuit module accomplish. As such, the present invention is not limited to any specific combination of hardware and software.

上述实施例中的各装置/功能模块/功能单元可以采用通用的计算装置来实现,它们可以集中在单个的计算装置上,也可以分布在多个计算装置所组成的网络上。The devices/functional modules/functional units in the above embodiments can be realized by general-purpose computing devices, and they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices.

上述实施例中的各装置/功能模块/功能单元以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。上述提到的计算机可读取存储介质可以是只读存储器,磁盘或光盘等。When each device/functional module/functional unit in the above-mentioned embodiments is realized in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. The computer-readable storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, and the like.

任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求所述的保护范围为准。Any changes or substitutions that can be easily conceived by any person skilled in the art within the technical scope disclosed in the present invention shall fall within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope described in the claims.

Claims (6)

1. apply a generation method, it is characterized in that, comprising:
Arrange a code resources bank, described code resource storehouse comprises at least one function, and each field function of being correlated with by software forms;
For each function setup one command word, command word is associated with this function, the incidence relation of command word function is recorded in command word-function name mapped file;
At least one function is arranged in a fixed order the set obtaining more than one function, using this set as an integrated functionality item, the command word of at least one function described is obtained Instruction Word Sequence according to described permanent order arrangement, described Instruction Word Sequence is associated with this integrated functionality item; By the software process of identical function or can realize that the execution sequence of specific function is abstract to be saved, in order to code reuse for module by integrated functionality item;
Receive external command, generate according to described external command and perform stream file;
According to described execution stream file, call the function in preset code resource storehouse, generate application.
2. application generation method according to claim 1, it is characterized in that, described execution stream file comprises at least one and performs record, and every bar performs record and all comprises sequence number, command word, input, function redirect and annotation five parameters, generates execution stream file comprise according to described external command:
Receive described external command, according to described external command editor, perform the parameters of stream file, obtain performing record;
Many are performed record combination to obtain performing stream file.
3. application generation method according to claim 1, is characterized in that, described according to described execution stream file, calls the function in preset code resource storehouse, generates application and comprises:
Resolve described execution stream file, each bar obtained in described execution stream file performs record;
According to the command word performed in record, inquire about described command word-function name mapped file, from described code resource storehouse, extract corresponding function or integrated functionality item;
The sequence number that described function or integrated functionality item are performed record according to described and redirect mode determine operation order, run function or integrated functionality item successively, generate application according to this operation order.
4. apply a generating apparatus, it is characterized in that, comprising:
Code resource library module, for arranging a code resources bank, described code resource storehouse comprises at least one function, is made up of the code resource of each software association area;
Mapping block, for being each function setup one command word, associating command word with this function, will be recorded to by the incidence relation of command word function in command word-function name mapped file;
Integrated functionality item module, for at least one function being arranged in a fixed order the set obtaining more than one function, using this set as an integrated functionality item, the command word of at least one function described is obtained Instruction Word Sequence according to described permanent order arrangement, described Instruction Word Sequence is associated with this integrated functionality item; By the software process of identical function or can realize that the execution sequence of specific function is abstract to be saved, in order to code reuse for module by integrated functionality item;
Perform stream file generation module, for receiving external command, generating according to described external command and performing stream file;
Dynamic Execution module, for according to described execution stream file, calls the function in preset code resource storehouse, generates application.
5. application generating apparatus according to claim 4, is characterized in that, described execution stream file generation module comprises:
Perform record generation unit, for receiving described external command, according to described external command editor, performing the parameters of stream file, obtain performing record;
File generating unit, obtains performing stream file for many being performed record combination.
6. application generating apparatus according to claim 4, is characterized in that, described Dynamic Execution module comprises:
Resolution unit, for resolving described execution stream file, each bar obtained in described execution stream file performs record;
Extraction unit, for according to the command word performed in record, inquires about described command word-function name mapped file, extracts corresponding function or integrated functionality item from described code resource storehouse;
Application generation unit, determines operation order for sequence number that described function or integrated functionality item are performed record according to described and redirect mode, runs function or integrated functionality item successively, generate application according to this operation order.
CN201010564222.8A 2010-11-29 2010-11-29 Method and device for generating application Expired - Fee Related CN102479079B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010564222.8A CN102479079B (en) 2010-11-29 2010-11-29 Method and device for generating application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010564222.8A CN102479079B (en) 2010-11-29 2010-11-29 Method and device for generating application

Publications (2)

Publication Number Publication Date
CN102479079A CN102479079A (en) 2012-05-30
CN102479079B true CN102479079B (en) 2015-04-01

Family

ID=46091734

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010564222.8A Expired - Fee Related CN102479079B (en) 2010-11-29 2010-11-29 Method and device for generating application

Country Status (1)

Country Link
CN (1) CN102479079B (en)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10997531B2 (en) 2007-09-11 2021-05-04 Ciambella Ltd. System, method and graphical user interface for workflow generation, deployment and/or execution
CN103577170A (en) * 2012-07-27 2014-02-12 中兴通讯股份有限公司 Construction method and construction device for web application
CN102945579B (en) * 2012-11-19 2015-04-15 深圳市新国都技术股份有限公司 Data acquisition method based on TLV (Type Length Value) format for POS (Point of Sale) transaction center
DK3011444T3 (en) 2013-06-18 2018-04-16 Ciambella Ltd METHOD AND APPARATUS FOR CODE VIRTUALIZATION AND GENERATION OF REMOTE PROCESS CALLS
DK3011442T3 (en) * 2013-06-18 2021-01-04 Ciambella Ltd METHOD AND DEVICE FOR GENERATING A CUSTOM SOFTWARE DEVELOPMENT KIT (SDK)
KR102073678B1 (en) 2013-07-12 2020-02-06 시암벨라 리미티드 Method and apparatus for firmware virtualization
CN105677306A (en) * 2014-11-18 2016-06-15 中兴通讯股份有限公司 Automation script compiling method and device
CN105224332B (en) * 2015-10-14 2019-06-11 深圳市金证科技股份有限公司 A kind of application program generation method and device
EP3394743B1 (en) 2015-12-21 2023-07-12 Ciambella Ltd. Method and apparatus for creating and managing controller based remote solutions
US11087249B2 (en) 2016-05-24 2021-08-10 Ciambella Ltd. Method and apparatus for triggering execution of a workflow over a network
US10798780B2 (en) 2016-08-22 2020-10-06 Ciambella Ltd. Method and apparatus for creating and managing controller based remote solutions
CN106648790A (en) * 2016-12-28 2017-05-10 北京金山安全软件有限公司 Application program implementation method and device and electronic equipment
EP3596593B1 (en) 2017-03-14 2024-05-01 Ciambella Ltd. Method and apparatus for automatically generating and incorporating code in development environments
CN109783081A (en) * 2018-12-27 2019-05-21 百富计算机技术(深圳)有限公司 A kind of development approach of application program, device and Integrated Development Tool
CN114995830B (en) * 2022-08-03 2022-11-11 浙江口碑网络技术有限公司 Code compiling method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1071009A1 (en) * 1998-03-20 2001-01-24 Information System Development Institute Apparatus for producing software and method for producing software
WO2007006127A1 (en) * 2005-04-18 2007-01-18 Research In Motion Limited System and method for generating screen components
CN101256482A (en) * 2007-12-19 2008-09-03 深圳市同洲电子股份有限公司 Development system and method for built-in application program

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1071009A1 (en) * 1998-03-20 2001-01-24 Information System Development Institute Apparatus for producing software and method for producing software
WO2007006127A1 (en) * 2005-04-18 2007-01-18 Research In Motion Limited System and method for generating screen components
CN101256482A (en) * 2007-12-19 2008-09-03 深圳市同洲电子股份有限公司 Development system and method for built-in application program

Also Published As

Publication number Publication date
CN102479079A (en) 2012-05-30

Similar Documents

Publication Publication Date Title
CN102479079B (en) Method and device for generating application
CN110825362B (en) Low-code application software development system and method
CN109918055B (en) Application program generation method and device
CN111290778B (en) AI model packaging method, platform and electronic equipment
US7610545B2 (en) Annotations for tracking provenance
CN110007902A (en) The method and device of business processing flow configuration
CN111427561A (en) Service code generation method and device, computer equipment and storage medium
WO2018201895A1 (en) Interface code generation method, apparatus, terminal device and medium
CN103309904A (en) Method and device for generating data warehouse ETL (Extraction, Transformation and Loading) codes
CN109145055A (en) A kind of method of data synchronization and system based on Flink
CN107741847A (en) Realize the method and device of domain-driven model
CN102314358A (en) Method for deploying conventional applications on cloud platform in SOA (service oriented architecture) way
CN102289774A (en) Graphical message processing and test system and method in financial transaction processing system
CN108469955B (en) Annotation-based Android injection framework implementation method
CN110196720A (en) A kind of Simulink generates the optimization method of dynamic link library
CN107479866B (en) A method for realizing open terminal application data and functions based on reconstruction technology
CN104063231B (en) Test resource rapid access method based on HIT-TENA
CN106990974A (en) A kind of APP applications update method, device and electronic equipment
CN108959094A (en) A kind of definition and methods for using them of the test program based on data structure
WO2024164559A1 (en) System upgrading method and apparatus, and device and storage medium
CN116400914A (en) Method for quickly constructing web application based on data model
US20230041718A1 (en) Automated code generation based on pseudo-code
CN109408057A (en) Method, apparatus, medium and the calculating equipment of automatic code generating
Mussbacher et al. Transformation of aspect-oriented requirements specifications for reactive systems into aspect-oriented design specifications
US9552347B1 (en) Data grid cell styling systems and methods

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20180314

Address after: 518000, two 703A, COFCO business park, two Xian Xian Road, Xin'an, Shenzhen, Guangdong, Baoan District

Patentee after: Shenzhen Fu Hai Sunshine Technology Co., Ltd.

Address before: 518057 Nanshan District Guangdong high tech Industrial Park, South Road, science and technology, ZTE building, Ministry of Justice

Patentee before: ZTE Corporation

TR01 Transfer of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20150401

Termination date: 20191129

CF01 Termination of patent right due to non-payment of annual fee