[go: up one dir, main page]

CN114610293A - A custom instruction development method and data interaction framework - Google Patents

A custom instruction development method and data interaction framework Download PDF

Info

Publication number
CN114610293A
CN114610293A CN202210297334.4A CN202210297334A CN114610293A CN 114610293 A CN114610293 A CN 114610293A CN 202210297334 A CN202210297334 A CN 202210297334A CN 114610293 A CN114610293 A CN 114610293A
Authority
CN
China
Prior art keywords
custom
instruction
attribute value
command
edited
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.)
Pending
Application number
CN202210297334.4A
Other languages
Chinese (zh)
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.)
Shanghai Jaka Robotics Ltd
Original Assignee
Shanghai Jaka Robotics Ltd
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 Shanghai Jaka Robotics Ltd filed Critical Shanghai Jaka Robotics Ltd
Priority to CN202210297334.4A priority Critical patent/CN114610293A/en
Publication of CN114610293A publication Critical patent/CN114610293A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Stored Programmes (AREA)

Abstract

The application provides a custom instruction development method and a data interaction framework, wherein the custom instruction development method is applied to a client, and comprises the following steps: judging whether the user-defined instruction contains an editing path or not; wherein, the editing path points to the custom instruction attribute value editing area; if yes, sending a custom instruction attribute value editing command to the development end; receiving an edited custom instruction from a development end; acquiring script data information of the edited user-defined instruction; and generating a script command of the program according to the edited self-defining instruction and the script data information of the edited self-defining instruction. By using the instruction development method provided by the application, the user can independently develop the graphic instruction; the problems that the graphic instruction can not meet the requirements of users, the development period is long, the program compiling is extremely complex and time-consuming are solved.

Description

一种自定义指令开发方法与数据交互框架A custom instruction development method and data interaction framework

技术领域technical field

本申请涉及指令开发领域,具体而言,涉及一种自定义指令开发方法与数据交互框架。The present application relates to the field of instruction development, and in particular, to a custom instruction development method and a data interaction framework.

背景技术Background technique

图形编程作为目前人机交互的方式之一,相关图形指令都是由开发人员开发的,相关图形指令一般是在应用程序内预先建立好的,用户只能根据已开发的图形指令编写程序。As one of the current human-computer interaction methods, graphics programming is developed by developers. The related graphics instructions are generally pre-established in the application program, and users can only write programs according to the developed graphics instructions.

有时一个简单的功能需要编写很多条指令才能实现想要的效果,编写相关程序存在局限性及复杂性;并且有时已经存在的图形指令不能满足用户的需求,需要提交给相关开发人员开发,同时开发周期较长影响客户使用。Sometimes a simple function needs to write many instructions to achieve the desired effect, and there are limitations and complexity in writing related programs; and sometimes the existing graphics instructions cannot meet the needs of users, and need to be submitted to relevant developers for development. Longer cycles affect customer usage.

发明内容SUMMARY OF THE INVENTION

本申请实施例的目的在于提供一种自定义指令开发方法与数据交互框架。通过在客户端,判断自定义指令是否含有编辑路径;若该自定义指令含有编辑路径,则向开发端发出自定义指令属性值编辑命令。开发端接收自定义指令属性值编辑命令;进入自定义指令属性值编辑区;发送编辑后的自定义指令至客户端。客户端接收编辑后的自定义指令,并保存至自定义指令内部。开发端根据编辑后的属性值,在自定义指令脚本生成区中生成编辑后的自定义指令的脚本数据信息;并向客户端发送编辑后的自定义指令的脚本数据信息。客户端获取编辑后的自定义指令的脚本数据信息;根据编辑后的自定义指令以及编辑后的自定义指令的脚本数据信息生成程序的脚本命令。实现了用户自主开发图形指令;避免了图形指令不满足用户需求,开发周期长,编写程序极其复杂耗时等问题;减少了用户不必要的指令操作。The purpose of the embodiments of the present application is to provide a custom instruction development method and a data interaction framework. On the client side, it is judged whether the custom instruction contains an edit path; if the custom instruction contains an edit path, a custom instruction attribute value editing command is sent to the development terminal. The development terminal receives the custom command attribute value editing command; enters the custom command attribute value editing area; sends the edited custom command to the client. The client receives the edited custom command and saves it in the custom command. The development end generates script data information of the edited custom command in the custom command script generation area according to the edited attribute value, and sends the script data information of the edited custom command to the client. The client obtains the script data information of the edited custom instruction; generates a script command of the program according to the edited custom instruction and the script data information of the edited custom instruction. It realizes the user's independent development of graphics instructions; avoids the problems that the graphics instructions do not meet the user's needs, the development cycle is long, and the programming is extremely complicated and time-consuming; it reduces the unnecessary instruction operations of the user.

第一方面,本申请实施例提供一种自定义指令开发方法,其特征在于,方法应用于客户端,方法包括:判断自定义指令是否含有编辑路径;其中,编辑路径指向自定义指令属性值编辑区;若该自定义指令含有编辑路径,则向开发端发出自定义指令属性值编辑命令;从开发端,接收编辑后的自定义指令;获取编辑后的自定义指令的脚本数据信息;以及根据编辑后的自定义指令以及编辑后的自定义指令的脚本数据信息生成程序的脚本命令。In a first aspect, an embodiment of the present application provides a method for developing a custom instruction, which is characterized in that the method is applied to a client, and the method includes: judging whether the custom instruction contains an edit path; wherein the edit path points to editing the attribute value of the custom instruction If the custom command contains an edit path, send a custom command attribute value editing command to the development end; receive the edited custom command from the development end; obtain the script data information of the edited custom command; The edited custom instruction and the script data information of the edited custom instruction generate the script command of the program.

在上述实现过程中,在客户端判断自定义指令是否含有编辑路径;如果含有编辑路径,则向开发端发送自定义指令属性值编辑命令;再从开发端接收编辑后的自定义指令与编辑后的自定义指令的脚本数据信息;根据编辑后的自定义指令以及编辑后的自定义指令的脚本数据信息生成程序的脚本命令。使用本申请实施例提供的自定义指令开发方式进行自定义指令开发,可以实现对指令内部的属性值进行显示与编辑,可以实现对指令的脚本数据的生成;基于此方法用户可以独立开发图形指令。In the above implementation process, the client side determines whether the custom instruction contains an edit path; if it contains an edit path, it sends a custom instruction attribute value editing command to the development side; and then receives the edited custom instruction from the development side and the edited The script data information of the custom instruction; generate the script command of the program according to the edited custom instruction and the script data information of the edited custom instruction. Using the custom instruction development method provided by the embodiment of the present application to develop custom instructions can realize the display and editing of attribute values inside the instructions, and can realize the generation of script data of the instructions; based on this method, users can independently develop graphics instructions .

可选地,在本申请实施例中,在判断自定义指令是否含有编辑路径之前,方法还包括:根据自定义指令添加规范添加自定义指令;其中,自定义指令包括单条指令与基本框架指令;单条指令配置为实现单条指令的脚本功能;基本框架指令配置为实现基本框架指令的脚本功能与其他指令脚本之间的交互功能;根据自定义指令生成指定格式的数据;以及发送指定格式的数据至开发端。Optionally, in the embodiment of the present application, before judging whether the custom command contains an editing path, the method further includes: adding a custom command according to a custom command adding specification; wherein the custom command includes a single command and a basic framework command; A single instruction is configured to implement the script function of a single instruction; the basic framework instruction is configured to implement the interaction function between the script function of the basic framework instruction and other instruction scripts; generate data in the specified format according to the custom instruction; and send the data in the specified format to development side.

在上述实现过程中,添加两种自定义指令,分别为单条指令与基本框架指令,再根据自定义指令生成指定格式的数据,并将此指定格式的数据发送至开发端。通过设置单条指令与基本框架指令可以满足实现单条指令的脚本功能与实现该指令与其他指令脚本信息的交互需求,这两种自定义指令类型可以基本满足用户日常开发需求。In the above implementation process, two kinds of custom instructions are added, which are a single instruction and a basic framework instruction, and then the data in the specified format is generated according to the custom instruction, and the data in the specified format is sent to the development end. By setting a single instruction and a basic frame instruction, the script function of a single instruction and the interaction between the instruction and other instruction script information can be met. These two custom instruction types can basically meet the daily development needs of users.

可选地,在本申请实施例中,根据自定义指令添加规范添加自定义指令,包括:接收指令基本信息的输入;其中,指令基本信息包括指令名称、指令类型;接收路径信息的输入;其中,路径信息包括编辑路径信息、脚本路径信息;以及添加指令的属性信息;其中,属性信息包括属性名称、属性类型、属性值。Optionally, in this embodiment of the present application, adding a custom instruction according to a custom instruction adding specification includes: receiving an input of basic instruction information; wherein the basic instruction information includes an instruction name and an instruction type; receiving an input of path information; wherein , the path information includes editing path information, script path information, and attribute information of the adding instruction; wherein, the attribute information includes attribute name, attribute type, and attribute value.

在上述实现过程中,通过输入指令基本信息、输入路径信息、添加指令的属性信息三个方面,从而添加自定义指令。对指令基本信息、路径信息、指令的属性信息三方面来进行自定义在指令的添加,用户可以进行指令添加,能实现用户对图形指令的独立开发。In the above implementation process, the user-defined instruction is added by inputting basic instruction information, inputting path information, and adding attribute information of the instruction. To customize the basic information of the instruction, the path information, and the attribute information of the instruction. In the addition of the instruction, the user can add the instruction, which can realize the user's independent development of the graphic instruction.

可选地,在本申请实施例中,在发送指定格式的数据至开发端之后,方法还包括:根据指定格式的数据判断指令的属性信息;根据属性信息顺序生成属性模块;其中,属性模块包含自定义指令信息;以及根据属性模块形成自定义指令。Optionally, in the embodiment of the present application, after sending the data in the specified format to the development terminal, the method further includes: judging the attribute information of the instruction according to the data in the specified format; sequentially generating attribute modules according to the attribute information; wherein the attribute module includes custom instruction information; and form a custom instruction according to the attribute module.

在上述实现过程中,根据属性信息顺序生成属性模块;再根据属性模块形成自定义指令。通过指令的属性信息生成最终的自定义指令,用户可根据自己的需求独立开发图形指令。In the above implementation process, the attribute modules are sequentially generated according to the attribute information, and then the custom instructions are formed according to the attribute modules. The final custom instruction is generated by the attribute information of the instruction, and the user can independently develop the graphic instruction according to his own needs.

第二方面,本申请实施例提供一种自定义指令开发方法,其特征在于,方法应用于开发端,开发端包括:自定义指令属性值编辑区、自定义指令脚本生成区;方法包括:接收由客户端发出的自定义指令属性值编辑命令;根据自定义指令属性值编辑命令,在自定义指令属性值编辑区中对自定义指令的属性值进行编辑,并将编辑后的属性值发送至客户端;根据编辑后的属性值,在自定义指令脚本生成区中生成编辑后的自定义指令的脚本数据信息;并向客户端发送编辑后的自定义指令的脚本数据信息。In a second aspect, an embodiment of the present application provides a method for developing a custom instruction, which is characterized in that the method is applied to a development end, and the development end includes: a custom instruction attribute value editing area and a custom instruction script generation area; the method includes: receiving The custom instruction attribute value editing command issued by the client; according to the custom instruction attribute value editing command, edit the attribute value of the custom instruction in the custom instruction attribute value editing area, and send the edited attribute value to The client; according to the edited attribute value, generate the script data information of the edited custom instruction in the custom instruction script generation area; and send the script data information of the edited custom instruction to the client.

在上述实现过程中,接收由客户端发出的自定义指令属性值编辑命令;自定义指令属性值编辑命令在自定义指令属性值编辑区中对自定义指令的属性值进行编辑;并向客户端发送编辑后的自定义指令;根据编辑后的属性值,在自定义指令脚本生成区中生成编辑后的自定义指令的脚本数据信息;并向客户端发送编辑后的自定义指令的脚本数据信息。通过本申请实施例提供的自定义指令开发方法可实现对指令属性值的编辑,对脚本数据的生成。In the above implementation process, a custom instruction attribute value editing command issued by the client is received; the custom instruction attribute value editing command edits the attribute value of the custom instruction in the custom instruction attribute value editing area; Send the edited custom command; generate the script data information of the edited custom command in the custom command script generation area according to the edited attribute value; send the script data information of the edited custom command to the client . The custom instruction development method provided by the embodiment of the present application can implement editing of instruction attribute values and generation of script data.

可选地,在本申请实施例中,将编辑后的属性值发送至客户端包括:自定义指令属性值编辑区接收自定义指令属性值编辑命令;进入自定义指令属性值编辑区;发送编辑后的自定义指令至客户端。Optionally, in the embodiment of the present application, sending the edited attribute value to the client includes: the custom command attribute value editing area receives the custom command attribute value editing command; entering the custom command attribute value editing area; sending and editing After the custom command to the client.

在上述实现过程中,自定义指令属性值编辑区接收自定义指令属性值编辑命令;进入自定义指令属性值编辑区;发送编辑后的自定义指令至客户端。在自定义指令属性值编辑区进行自定义指令属性值的编辑,克服了已有的图形指令不满足用户需求的问题,也同时为客户所需的编辑操作提供了场景。In the above implementation process, the custom command attribute value editing area receives the custom command attribute value editing command; enters the custom command attribute value editing area; and sends the edited custom command to the client. Editing the attribute value of the custom command in the custom command attribute value editing area overcomes the problem that the existing graphic commands do not meet the needs of the user, and also provides a scene for the editing operation required by the customer.

可选地,在本申请实施例中,根据编辑后的属性值,在自定义指令脚本生成区中生成编辑后的自定义指令的脚本数据信息,包括:将属性值从自定义指令属性值编辑区传输至客户端;接收客户端发出的属性值;由脚本函数,根据属性值生成脚本数据信息;其中,脚本函数表征特定的脚本数据信息生成规则。Optionally, in this embodiment of the present application, generating script data information of the edited custom instruction in the custom instruction script generation area according to the edited attribute value, including: editing the attribute value from the custom instruction attribute value. The area is transmitted to the client; the attribute value sent by the client is received; the script function generates script data information according to the attribute value; wherein, the script function represents a specific script data information generation rule.

在上述实现过程中,将属性值从自定义指令属性值编辑区传输至客户端;由脚本函数根据属性值生成脚本数据信息。在指令脚本生成区生成自定义指令的脚本数据信息,将自定义指令的属性值作为自定义指令的脚本数据信息的生成条件之一,可以准确的根据修改后的自定义指令的属性值在自定义指令脚本生成区生成自定义指令的脚本数据信息。由此可见,通过本申请实施例提供的自定义指令开发方法可以实现对脚本数据信息的生成。In the above implementation process, the attribute value is transmitted from the custom instruction attribute value editing area to the client; the script function generates script data information according to the attribute value. The script data information of the custom command is generated in the command script generation area, and the attribute value of the custom command is used as one of the generation conditions of the script data information of the custom command. Define the command script generation area to generate the script data information of the custom command. It can be seen that the generation of script data information can be realized by the custom instruction development method provided in the embodiment of the present application.

第三方面,本申请实施例提供一种自定义指令开发方法,其特征在于,自定义指令开发方法应用于包括客户端和开发端的系统,方法包括:由客户端,判断自定义指令是否含有编辑路径;其中,编辑路径指向自定义指令属性值编辑区;若该自定义指令含有编辑路径,则向开发端发出自定义指令属性值编辑命令;由开发端,接收自定义指令属性值编辑命令;进入自定义指令属性值编辑区;将被编辑的属性值发送至客户端;由客户端,接收所述编辑后的自定义指令属性值,并保存至自定义指令内部;由开发端,根据编辑后的属性值,在自定义指令脚本生成区中生成编辑后的自定义指令的脚本数据信息;并向客户端发送编辑后的自定义指令的脚本数据信息;以及由客户端,获取编辑后的自定义指令的脚本数据信息;根据编辑后的自定义指令以及编辑后的自定义指令的脚本数据信息生成程序的脚本命令。In a third aspect, an embodiment of the present application provides a method for developing a custom command, characterized in that the method for developing a custom command is applied to a system including a client and a development end, and the method includes: determining, by the client, whether the custom command contains editing path; wherein, the editing path points to the custom instruction attribute value editing area; if the custom instruction contains an editing path, the custom instruction attribute value editing command is sent to the development terminal; the development terminal receives the custom instruction attribute value editing command; Enter the custom command attribute value editing area; send the edited attribute value to the client; the client receives the edited custom command attribute value and saves it in the custom command; the development end, according to the editing After the attribute value, the script data information of the edited custom command is generated in the custom command script generation area; the script data information of the edited custom command is sent to the client; and the client obtains the edited custom command. The script data information of the custom instruction; the script command of the program is generated according to the edited custom instruction and the script data information of the edited custom instruction.

第四方面,本申请实施例提供一种数据交互框架,其特征在于,应用于客户端,数据交互框架包括:应用程序模块;应用程序模块,用于判断自定义指令是否含有编辑路径;其中,编辑路径指向自定义指令属性值编辑区;若该自定义指令含有编辑路径,则向开发端发出自定义指令属性值编辑命令;应用程序模块,还用于从开发端,接收所述编辑后的自定义指令属性值,并保存至自定义指令内部;获取编辑后的自定义指令的脚本数据信息;以及根据编辑后的自定义指令以及编辑后的自定义指令的脚本数据信息生成程序的脚本命令。In a fourth aspect, an embodiment of the present application provides a data interaction framework, which is characterized in that, when applied to a client, the data interaction framework includes: an application program module; the application program module is used to determine whether the custom instruction contains an editing path; wherein, The editing path points to the custom instruction attribute value editing area; if the custom instruction contains an editing path, a custom instruction attribute value editing command is sent to the development terminal; the application module is also used to receive the edited data from the development terminal. Customize the attribute value of the instruction and save it to the inside of the customized instruction; obtain the script data information of the edited customized instruction; and generate the script command of the program according to the edited customized instruction and the script data information of the edited customized instruction .

第五方面,本申请实施例还提供一种数据交互框架,其特征在于,应用于开发端,数据交互框架包括:自定义指令属性值编辑模块、自定义指令脚本生成模块;其中,自定义指令属性值编辑模块,用于接收由客户端发出的自定义指令属性值编辑命令;自定义指令属性值编辑模块,还用于根据自定义指令属性值编辑命令,在自定义指令属性值编辑区中对自定义指令的属性值进行编辑,并将编辑后的属性值发送至客户端;自定义指令脚本生成模块,用于根据编辑后的属性值,在自定义指令脚本生成区中生成编辑后的自定义指令的脚本数据信息;并向客户端发送编辑后的自定义指令的脚本数据信息。In a fifth aspect, the embodiments of the present application further provide a data interaction framework, which is characterized in that, when applied to a development end, the data interaction framework includes: a custom command attribute value editing module and a custom command script generation module; wherein, the custom command The attribute value editing module is used to receive the custom command attribute value editing command sent by the client; the custom command attribute value editing module is also used to edit the command according to the custom command attribute value, in the custom command attribute value editing area Edit the attribute value of the custom command, and send the edited attribute value to the client; the custom command script generation module is used to generate the edited command in the custom command script generation area according to the edited attribute value. Script data information of the custom command; send the script data information of the edited custom command to the client.

附图说明Description of drawings

为了更清楚地说明本申请实施例的技术方案,下面将对本申请实施例中所需要使用的附图作简单地介绍,应当理解,以下附图仅示出了本申请的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。In order to explain the technical solutions of the embodiments of the present application more clearly, the following briefly introduces the accompanying drawings that need to be used in the embodiments of the present application. It should be understood that the following drawings only show some embodiments of the present application, therefore It should not be regarded as a limitation of the scope. For those of ordinary skill in the art, other related drawings can also be obtained from these drawings without any creative effort.

图1为本申请实施例提供的一种自定义指令开发方法客户端的流程图;1 is a flowchart of a client of a method for developing a custom instruction provided by an embodiment of the present application;

图2为本申请实施例提供的生成自定义指令的流程图;2 is a flowchart of generating a custom instruction provided by an embodiment of the present application;

图3为本申请实施例提供的一种自定义指令开发方法开发端的流程图;3 is a flowchart of a development end of a method for developing a custom instruction provided by an embodiment of the present application;

图4为本申请实施例提供的开发端编辑自定义指令属性值的流程图;4 is a flowchart of editing a custom instruction attribute value by a development terminal provided by an embodiment of the present application;

图5为本申请实施例提供的客户端与开发端的交互示意图;FIG. 5 is a schematic diagram of interaction between a client and a development terminal according to an embodiment of the present application;

图6为本申请实施例提供的数据交互框架客户端模块示意图;6 is a schematic diagram of a client module of a data interaction framework provided by an embodiment of the present application;

图7为本申请实施例提供的数据交互框架开发端模块示意图。FIG. 7 is a schematic diagram of a development end module of a data interaction framework provided by an embodiment of the present application.

具体实施方式Detailed ways

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。例如,附图中的流程图和框图显示了根据本发明的多个实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或代码的一部分,模块、程序段或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现方式中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。另外,在本发明各个实施例中的各功能模块可以集成在一起形成一个独立的部分,也可以是各个模块单独存在,也可以两个或两个以上模块集成形成一个独立的部分。The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings in the embodiments of the present application. For example, the flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executables for implementing the specified logical function(s) instruction. It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented in dedicated hardware-based systems that perform the specified functions or actions , or can be implemented in a combination of dedicated hardware and computer instructions. In addition, each functional module in each embodiment of the present invention may be integrated to form an independent part, or each module may exist independently, or two or more modules may be integrated to form an independent part.

申请人在研究过程中发现,在使用图形指令编写程序时,用户只能根据已开发的图形指令编写程序,有时一个简单的功能需要编写很多条指令才能实现想要的效果,编写相关程序存在局限性、复杂性;有时已存在的图形指令不能满足用户的需求,需要提交给相关开发人员开发,同时开发周期较长影响使用。During the research process, the applicant found that when using graphics instructions to write programs, users can only write programs according to the developed graphics instructions. Sometimes a simple function needs to write many instructions to achieve the desired effect, and there are limitations in writing related programs. complexity and complexity; sometimes the existing graphics instructions cannot meet the needs of users and need to be submitted to relevant developers for development, and the long development cycle affects the use.

基于此,本申请提供的自定义指令开发方法,通过在客户端,判断自定义指令是否含有编辑路径;若该自定义指令含有编辑路径,则向开发端发出自定义指令属性值编辑命令。开发端接收自定义指令属性值编辑命令;对属性值进行编辑,并将编辑后的属性值发送给客户端;客户端接收编辑后的自定义指令属性值,并保存至自定义指令内部;开发端根据编辑后的属性值,在自定义指令脚本生成区中生成编辑后的自定义指令的脚本数据信息;客户端获取编辑后的自定义指令的脚本数据信息;根据编辑后的自定义指令以及编辑后的自定义指令的脚本数据信息生成程序的脚本命令。实现了用户自主开发图形指令;避免了图形指令不满足用户需求,开发周期长,编写程序极其复杂耗时等问题;使程序简洁明了的同时让程序开发更加灵活。Based on this, the custom instruction development method provided by the present application determines whether the custom instruction contains an edit path on the client side; if the custom instruction contains an edit path, a custom instruction attribute value editing command is sent to the developer. The development terminal receives the custom command attribute value editing command; edits the attribute value and sends the edited attribute value to the client; the client receives the edited custom command attribute value and saves it in the custom command; development The client generates the script data information of the edited custom command in the custom command script generation area according to the edited attribute value; the client obtains the script data information of the edited custom command; according to the edited custom command and The script data information of the edited custom instruction generates the script command of the program. It realizes the user's independent development of graphics instructions; avoids the problems that the graphics instructions do not meet the user's needs, the development cycle is long, and the programming is extremely complicated and time-consuming; the program is concise and clear, and the program development is more flexible.

请参看图1,图1为本申请实施例提供的一种自定义指令开发方法客户端的流程图,该自定义指令开发方法包括:Please refer to FIG. 1. FIG. 1 is a flowchart of a client of a custom instruction development method provided by an embodiment of the present application. The custom instruction development method includes:

步骤S100:判断自定义指令是否含有编辑路径。Step S100: Determine whether the custom instruction contains an editing path.

在上述步骤S100中,判断自定义指令是否含有编辑路径。需要说明的是,该编辑路径指向自定义指令属性值编辑区,在自定义指令属性值编辑区内可以执行对自定义指令属性值的编辑操作。In the above step S100, it is determined whether the custom instruction contains an edit path. It should be noted that the editing path points to the custom instruction attribute value editing area, and the editing operation on the custom instruction attribute value can be performed in the custom instruction attribute value editing area.

步骤S101:向开发端发出自定义指令属性值编辑命令。Step S101: Send a custom instruction attribute value editing command to the development terminal.

在上述步骤S101中,客户端在上述步骤S100中判断到该自定义指令中含有编辑路径,则由客户端向开发端发送自定义指令属性值编辑命令。需要说明的是,上述开发端可以是网页端、另一客户端等其他有储存功能的虚拟环境。In the above step S101, if the client determines in the above step S100 that the custom instruction contains an edit path, the client sends a custom instruction attribute value editing command to the developer. It should be noted that, the above-mentioned development terminal may be a web terminal, another client, or other virtual environment with a storage function.

步骤S102:从开发端,接收编辑后的自定义指令。Step S102: Receive the edited custom instruction from the development end.

在上述步骤S102中,客户端从开发端接收编辑后的自定义指令,需要说明的是,此时的自定义指令包含已修改的属性值的信息,可以表征用户根据自己的需求对属性值的修改。In the above-mentioned step S102, the client receives the edited custom instruction from the development terminal. It should be noted that the custom instruction at this time includes the information of the modified attribute value, which can represent the user's response to the attribute value according to his own needs. Revise.

步骤S103:获取编辑后的自定义指令的脚本数据信息。Step S103: Acquire script data information of the edited custom instruction.

在上述步骤S103中,客户端将编辑后的自定义指令属性值发送到开发端,开发端返回给客户端指令脚本数据信息。需要说明的是,此时的自定义指令的脚本数据信息表征编辑后的自定义指令属性值作为参数的机器人执行命令。In the above step S103, the client sends the edited custom instruction attribute value to the development terminal, and the development terminal returns the instruction script data information to the client. It should be noted that the script data information of the custom command at this time represents the robot execution command with the edited custom command attribute value as a parameter.

步骤S104:根据编辑后的自定义指令以及编辑后的自定义指令的脚本数据信息生成程序的脚本命令。Step S104: Generate a script command of the program according to the edited custom instruction and the script data information of the edited custom instruction.

在上述步骤S104中,根据编辑后的自定义指令以及编辑后的自定义指令的脚本数据信息生成程序的脚本命令,在程序保存的过程中,客户端会通过http协议向自定义web服务器请求用户自定义的脚本数据,在web服务器中用户可以根据脚本规范自行组织相关脚本字符串。需要说明的是,客户端向开发端发出的请求可以是GET请求,GET请求相关参数,应用程序会根据相关指令属性自行进行拼接,文本属性则不会进行拼接,相关参数可以是指令的属性值、属性类型、脚本路径等。In the above step S104, the script command of the program is generated according to the edited custom instruction and the script data information of the edited custom instruction. During the process of saving the program, the client will request the user to the custom web server through the http protocol. User-defined script data, in the web server, users can organize relevant script strings according to the script specification. It should be noted that the request sent by the client to the developer can be a GET request, and the relevant parameters of the GET request will be spliced by the application according to the relevant instruction attributes, but the text attributes will not be spliced, and the relevant parameters can be the attribute values of the instruction. , property type, script path, etc.

由此可见,本申请实施例提供的一种自定义指令开发方法客户端的流程图,通过在客户端,判断自定义指令是否含有编辑路径;若该自定义指令含有编辑路径,则向开发端发出自定义指令属性值编辑命令。开发端接收自定义指令属性值编辑命令;对属性值进行编辑,将编辑好的自定义指令属性值回调给客户端,客户端将属性值保存在自定义指令内部;程序保存时,客户端将编辑好的自定义指令属性值传递给开发端(web服务器),开发端将自定义指令属性值作为自定义指令的脚本参数,即可生成完整的脚本函数并返回给客户端;客户端获取编辑后的自定义指令的脚本数据信息;根据编辑后的自定义指令以及编辑后的自定义指令的脚本数据信息生成程序的脚本命令,用户可以根据自己的需求对自定义指令的属性值进行修改,实现了用户对图形指令的自主开发。It can be seen from this that the flow chart of the client of a method for developing a custom instruction provided by the embodiment of the present application, through the client, it is judged whether the custom instruction contains an edit path; if the custom instruction contains an edit path, it is sent to the development end Custom directive attribute value editing command. The development terminal receives the custom command attribute value editing command; edits the attribute value, and calls back the edited custom command attribute value to the client, and the client saves the attribute value in the custom command; when the program is saved, the client will The edited custom command attribute value is passed to the development end (web server), and the developer end uses the custom command attribute value as the script parameter of the custom command to generate a complete script function and return it to the client; the client obtains the edit The script data information of the customized instruction after editing; the script command of the program is generated according to the edited customized instruction and the script data information of the customized instruction after editing, and the user can modify the attribute value of the customized instruction according to his own needs. It realizes the user's independent development of graphics instructions.

在一可选地实施例中,在判断自定义指令是否含有编辑路径之前,方法还包括:根据自定义指令添加规范添加自定义指令;其中,自定义指令包括单条指令与基本框架指令;单条指令配置为实现单条指令的脚本功能;基本框架指令配置为实现基本框架指令的脚本功能与其他指令脚本之间的交互功能;根据自定义指令生成指定格式的数据;以及将指令格式的数据存储至开发端。示例性地,添加单条指令时,指令类型可选择“指令”,指令属性类型下拉框包含:文本、条件、输入框、下拉框、隐藏文本等;添加基本框架指令时,指令类型可选择“指令块”,指令属性类型下拉框包含:文本、条件、输入框、下拉框、隐藏文本、CASE块,默认创建两个CASE块属性,即成功CASE块属性与失败CASE块属性。需要说明的是,单条指令内不能拖入其他指令,只能实现该条指令的脚本功能;基本框架指令的CASE块内可拖入其他指令,可以实现该指令的脚本功能与其他指令脚本的交互,常常用于条件判断。In an optional embodiment, before judging whether the custom command contains an editing path, the method further includes: adding a custom command according to a custom command adding specification; wherein the custom command includes a single command and a basic framework command; a single command Configured to implement the scripting function of a single instruction; the basic framework instruction is configured to implement the interaction function between the scripting function of the basic framework instruction and other instruction scripts; generate data in a specified format according to the custom instruction; and store the data in the instruction format to the development end. Exemplarily, when adding a single instruction, the instruction type can select "Instruction", and the drop-down box of the instruction attribute type includes: text, condition, input box, drop-down box, hidden text, etc.; when adding a basic framework instruction, the instruction type can select "Instruction". Block", the drop-down box of the instruction attribute type includes: text, condition, input box, drop-down box, hidden text, and CASE block. By default, two CASE block attributes are created, namely the successful case block attribute and the failure CASE block attribute. It should be noted that other instructions cannot be dragged into a single instruction, only the script function of this instruction can be implemented; other instructions can be dragged into the CASE block of the basic framework instruction, which can realize the interaction between the script function of this instruction and other instruction scripts. , which is often used for conditional judgment.

在一可选地实施例中,根据自定义指令添加规范添加自定义指令,包括:接收指令基本信息的输入;其中,指令基本信息包括指令名称、指令类型;接收路径信息的输入;其中,路径信息包括编辑路径信息、脚本路径信息;以及添加指令的属性信息;其中,属性信息包括属性名称、属性类型、属性值。示例性地,创建指令流程如下:(1)输入指令名称,名称唯一;(2)选择指令类型(可以是指令或指令块);(3)输入编辑路径(选填,正确的URL路径);(4)输入脚本路径(必填,正确的URL路径);(5)添加指令所需的属性。属性添加规范如下:a.输入属性名称,名称唯一;b.选择属性类型。属性类型包括文本、条件、输入框、下拉框、隐藏文本、CASE块;c.输入属性值(条件属性没有属性值)或脚本路径(创建CASE块属性时输入脚本路径)。In an optional embodiment, adding a custom instruction according to a custom instruction adding specification includes: receiving an input of basic instruction information; wherein the basic instruction information includes an instruction name and an instruction type; receiving an input of path information; wherein, the path The information includes edit path information, script path information, and attribute information of an add instruction; wherein the attribute information includes attribute name, attribute type, and attribute value. Exemplarily, the process of creating an instruction is as follows: (1) input an instruction name, the name is unique; (2) select an instruction type (it can be an instruction or an instruction block); (3) enter an edit path (optional, the correct URL path); (4) Enter the script path (required, correct URL path); (5) Add the attributes required by the instruction. The specification for adding attributes is as follows: a. Enter the attribute name, the name is unique; b. Select the attribute type. Attribute types include text, condition, input box, drop-down box, hidden text, CASE block; c. Input attribute value (conditional attribute has no attribute value) or script path (input script path when creating CASE block attribute).

请参看图2,图2为本申请实施例提供的生成自定义指令的流程图,该方法包括:Please refer to FIG. 2. FIG. 2 is a flowchart of generating a custom instruction provided by an embodiment of the present application, and the method includes:

步骤S200:根据指定格式的数据判断指令的属性信息。Step S200: Determine the attribute information of the instruction according to the data in the specified format.

在上述步骤S200中,根据指定格式的数据判断指令的属性信息,该指定格式的数据可以是JSON数据或其他轻量级的数据交换格式。In the above step S200, attribute information of the instruction is determined according to data in a specified format, and the data in the specified format may be JSON data or other lightweight data exchange formats.

步骤S201:根据属性信息顺序生成属性模块。Step S201: Generate attribute modules in sequence according to the attribute information.

在上述步骤S201中,根据上述步骤S201的属性信息判断添加了哪些属性类型,进一步根据属性信息顺序生成属性模块。需要说明的是,条件属性模块内只能拖入条件指令,输入框属性模块内可拖入变量类型指令。In the above step S201, it is determined which attribute types are added according to the attribute information in the above step S201, and the attribute modules are further sequentially generated according to the attribute information. It should be noted that only conditional instructions can be dragged into the conditional attribute module, and variable type instructions can be dragged into the input box attribute module.

步骤S202:根据属性模块形成自定义指令。Step S202: Form a custom instruction according to the attribute module.

在上述步骤S202中,根据属性模块形成一条完整的自定义图形指令。In the above step S202, a complete custom graphics instruction is formed according to the attribute module.

需要注意的是,在本实施例中,每次生成一条自定义指令就将该条指令信息保存在控制器内部,下次登录该设备时向控制器获取已创建的自定义指令配置信息,应用程序端即可显示并使用,不需要每次登录时都创建一遍自定义指令。It should be noted that, in this embodiment, each time a custom command is generated, the command information is stored in the controller, and the created custom command configuration information is obtained from the controller when logging in to the device next time. The terminal can be displayed and used without the need to create custom commands every time you log in.

在上述实施例中,客户端根据指定格式的数据判断指令的属性信息,根据属性信息顺序生成属性模块,以及根据属性模块形成自定义指令;从而生成自定义指令,客户端可自由使用生成的自定义指令。In the above embodiment, the client determines the attribute information of the instruction according to the data in the specified format, sequentially generates the attribute module according to the attribute information, and forms a custom instruction according to the attribute module; thereby generating the custom instruction, the client can freely use the generated self-defined instruction. Define directives.

请参看图3,图3为本申请实施例提供的一种自定义指令开发方法开发端的流程图,该方法包括:Please refer to FIG. 3. FIG. 3 is a flowchart of a development end of a custom instruction development method provided by an embodiment of the present application, and the method includes:

步骤S300:接收由客户端发出的自定义指令属性值编辑命令。Step S300: Receive a custom instruction attribute value editing command sent by the client.

在上述步骤S300中,开发端接收由客户端发出的自定义指令属性值编辑命令。In the above-mentioned step S300, the development terminal receives the custom instruction attribute value editing command sent by the client terminal.

步骤S301:根据自定义指令属性值编辑命令,在自定义指令属性值编辑区中对自定义指令的属性值进行编辑。Step S301: Edit the attribute value of the customized instruction in the customized instruction attribute value editing area according to the customized instruction attribute value editing command.

在上述步骤S301中,开发端根据自定义指令属性值编辑命令,在自定义指令属性值编辑区中对自定义指令的属性值进行编辑。In the above step S301, the development terminal edits the attribute value of the custom instruction in the custom instruction attribute value editing area according to the custom instruction attribute value editing command.

步骤S302:向客户端发送编辑后的自定义指令。Step S302: Send the edited custom instruction to the client.

在上述步骤S302中,开发端将上述步骤S301中的编辑后的自定义指令发送给客户端。In the above step S302, the development end sends the edited custom instruction in the above step S301 to the client.

步骤S303:在保存程序时,客户端向开发端申请脚本数据信息,并将编辑后的属性值传递给开发端;开发端根据编辑后的属性值,在自定义指令脚本生成区中生成编辑后的自定义指令的脚本数据信息。Step S303: When saving the program, the client applies for script data information to the development end, and transmits the edited attribute value to the development end; Script data information for custom directives.

在上述步骤S303中,开发端根据编辑后的属性值,在自定义指令脚本生成区中生成编辑后的自定义指令的脚本数据信息,此脚本数据信息可反映用户对自定义指令属性值的修改。In the above step S303, the development terminal generates script data information of the edited custom instruction in the custom instruction script generation area according to the edited attribute value, and the script data information can reflect the user's modification of the attribute value of the custom instruction .

步骤S304:向客户端发送编辑后的自定义指令的脚本数据信息。Step S304: Send the script data information of the edited custom instruction to the client.

在上述步骤S304中,开发端向客户端发送编辑后的自定义指令的脚本数据信息。In the above step S304, the development terminal sends the script data information of the edited custom instruction to the client terminal.

由此可见,本申请实施例提供的一种自定义指令开发方法开发端的流程图,在自定义指令属性值编辑区进行自定义指令属性值的编辑;在自定义指令脚本生成区进行编辑后的自定义指令的脚本数据信息的生成;实现了用户对自定义指令属性值的修改,以及根据自定义指令属性值生成的脚本数据。改变了目前用指令进行编程的局限性,用户可轻松实现自己的编程构想。It can be seen that, in the flowchart of the development end of a method for developing a custom command provided by the embodiment of the present application, the custom command attribute value is edited in the custom command attribute value editing area; The generation of script data information of the custom instruction; realizes the modification of the attribute value of the custom instruction by the user, and the script data generated according to the attribute value of the custom instruction. The current limitation of programming with instructions has been changed, and users can easily realize their own programming ideas.

请参看图4,图4为本申请实施例提供的开发端编辑自定义指令属性值的流程图,该方法包括:Please refer to FIG. 4. FIG. 4 is a flowchart of editing a custom command attribute value by a development terminal provided by an embodiment of the present application, and the method includes:

步骤S400:自定义指令属性值编辑区接收自定义指令属性值编辑命令。Step S400: The custom instruction attribute value editing area receives a custom instruction attribute value editing command.

在上述步骤S400中,开发端的自定义指令属性值编辑区接收自定义指令属性值编辑命令。In the above step S400, the custom instruction attribute value editing area of the development end receives the custom instruction attribute value editing command.

步骤S401:进入自定义指令属性值编辑区。Step S401 : enter the custom instruction attribute value editing area.

在上述步骤S401中,开发端进入自定义指令属性值编辑区,需要说明的是,客户端应用程序通过http协议加载自定义指令编辑界面并显示,在指令编辑界面可以对其属性值进行修改。In the above step S401, the development terminal enters the custom command attribute value editing area. It should be noted that the client application loads and displays the custom command editing interface through the http protocol, and its attribute value can be modified on the command editing interface.

步骤S402:发送编辑后的自定义指令至客户端。Step S402: Send the edited custom instruction to the client.

在上述步骤S402中,开发端将步骤S401中得到的编辑后的自定义指令发送至客户端。In the above step S402, the development end sends the edited custom instruction obtained in the step S401 to the client.

由此可见,上述实施例中,在开发端的自定义指令编辑区对自定义指令的属性值进行编辑,产生编辑后的自定义指令,将此指令发送给客户端;从而实现了对自定义指令属性值的自由编辑,用户可以对属性值进行编辑与修改,使程序的编写变得简单、清晰。It can be seen that, in the above embodiment, the attribute value of the custom command is edited in the custom command editing area of the development end to generate an edited custom command, and the command is sent to the client; thus, the custom command is implemented. Free editing of attribute values, users can edit and modify attribute values, making the program writing simple and clear.

在一可选地实施例中,根据编辑后的属性值,在自定义指令脚本生成区中生成编辑后的自定义指令的脚本数据信息包括:将所述属性值从所述自定义指令属性值编辑区传输至所述客户端;接收所述客户端发出的所述属性值;由脚本函数根据属性值生成脚本数据信息;其中,脚本函数表征特定的脚本数据信息生成规则,可以是以自定义指令属性值为变量的函数。In an optional embodiment, generating script data information of the edited custom instruction in the custom instruction script generation area according to the edited attribute value includes: converting the attribute value from the custom instruction attribute value The editing area is transmitted to the client; the attribute value sent by the client is received; the script function generates script data information according to the attribute value; wherein the script function represents a specific script data information generation rule, which may be a custom A function whose directive attribute value is a variable.

请参看图5,图5为本申请实施例提供的客户端与开发端的交互示意图,该方法包括:Please refer to FIG. 5. FIG. 5 is a schematic diagram of interaction between a client and a development terminal provided by an embodiment of the present application. The method includes:

步骤S500(a):由客户端,判断自定义指令是否含有编辑路径;其中,编辑路径指向自定义指令属性值编辑区。Step S500(a): The client side determines whether the custom instruction contains an edit path; wherein, the edit path points to the custom instruction attribute value editing area.

步骤S500(b):若该自定义指令含有编辑路径,则向开发端发出自定义指令属性值编辑命令。Step S500(b): If the custom instruction contains an edit path, send a custom instruction attribute value editing command to the development terminal.

在上述步骤S500中,在客户端,判断自定义指令是否含有编辑路径;若该自定义指令中含有编辑路径,则向开发端发出自定义指令属性值编辑命令。In the above step S500, on the client side, it is determined whether the custom instruction contains an edit path; if the custom instruction contains an edit path, a custom instruction attribute value editing command is sent to the development terminal.

步骤S501(a):由开发端,接收自定义指令属性值编辑命令。Step S501(a): The development terminal receives a custom instruction attribute value editing command.

步骤S501(b):进入自定义指令属性值编辑区。Step S501(b): Enter the custom instruction attribute value editing area.

步骤S501(c):发送编辑后的自定义指令至客户端。Step S501(c): Send the edited custom instruction to the client.

在上述步骤S501中,开发端接收自定义指令属性值编辑命令,进入自定义指令属性值编辑区;将被编辑的属性值发送至客户端。In the above step S501, the development terminal receives the custom instruction attribute value editing command, enters the custom instruction attribute value editing area, and sends the edited attribute value to the client.

步骤S502:由客户端,接收编辑后的自定义指令,并保存至自定义指令内部。Step S502: The client receives the edited custom instruction, and saves it into the custom instruction.

在上述步骤S502中,客户端接收编辑后的自定义指令,并保存至自定义指令内部。In the above step S502, the client receives the edited custom instruction, and saves it into the custom instruction.

步骤S503(a):由开发端,根据编辑后的属性值,在自定义指令脚本生成区中生成编辑后的自定义指令的脚本数据信息。Step S503(a): The development terminal generates script data information of the edited custom command in the custom command script generation area according to the edited attribute value.

步骤S503(b):并向客户端发送编辑后的自定义指令的脚本数据信息。Step S503(b): Send the script data information of the edited custom instruction to the client.

在上述步骤S503中,开发端生成编辑后的自定义指令的脚本数据信息,并向客户端发送编辑后的自定义指令的脚本数据信息。In the above step S503, the development terminal generates script data information of the edited custom instruction, and sends the edited script data information of the custom instruction to the client.

步骤S504(a):由客户端,获取编辑后的自定义指令的脚本数据信息。Step S504(a): The client obtains script data information of the edited custom instruction.

步骤S504(b):根据编辑后的自定义指令以及编辑后的自定义指令的脚本数据信息生成程序的脚本命令。Step S504(b): Generate a script command of the program according to the edited custom instruction and the script data information of the edited custom instruction.

在上述步骤S504中,客户端获取上述步骤S503(b)发出的编辑后的自定义指令的脚本数据信息,并根据编辑后的自定义指令以及编辑后的自定义指令的脚本数据信息生成程序的脚本命令。示例性地,开发端拿到属性值后再将属性值作为脚本函数的参数,然后将完整的脚本函数根据脚本规范自行组织相关脚本字符串返回到客户端,客户端再按照脚本规范提取出完整的自定义指令脚本,完整的自定义指令脚本再结合其他指令脚本生成完整的程序执行脚本。In the above step S504, the client obtains the script data information of the edited custom command sent in the above step S503(b), and generates the program's script data information according to the edited custom command and the script data information of the edited custom command. script command. Exemplarily, after getting the attribute value, the developer uses the attribute value as a parameter of the script function, and then returns the complete script function according to the script specification to organize the relevant script strings to the client side, and the client side extracts the complete script string according to the script specification. The complete custom instruction script is combined with other instruction scripts to generate a complete program execution script.

在上述实施例中,客户端与开发端进行数据交互,其交互方式可以通过http协议进行交互。通过这种方式客户端与开发端的自定义指令编辑区与自定义指令脚本生成区进行数据交互,实现了自定义指令的可编辑性、可修改性,将使用指令编写程序变得简单。In the above-mentioned embodiment, the client and the development end perform data interaction, and the interaction mode can be performed through the http protocol. In this way, the custom command editing area of the client and the development end interacts with the custom command script generation area, which realizes the editability and modifiability of the custom command, and makes it easier to write programs using the command.

请参看图7,图7为本申请实施例提供的数据交互框架客户端模块示意图,该数据交互框架客户端模块600包括:应用程序模块601。Please refer to FIG. 7 . FIG. 7 is a schematic diagram of a client module of a data interaction framework provided by an embodiment of the present application. The client module 600 of the data interaction framework includes: an application module 601 .

应用程序模块601,用于判断自定义指令是否含有编辑路径;其中,编辑路径指向自定义指令属性值编辑区;若该自定义指令中含有编辑路径,则向开发端发出自定义指令属性值编辑命令;The application module 601 is used for judging whether the custom instruction contains an editing path; wherein, the editing path points to the custom instruction attribute value editing area; if the custom instruction contains an editing path, the custom instruction attribute value editing area is sent to the development terminal Order;

应用程序模块601,还用于从开发端,接收编辑后的自定义指令;获取编辑后的自定义指令的脚本数据信息;以及根据编辑后的自定义指令以及编辑后的自定义指令的脚本数据信息生成程序的脚本命令。The application module 601 is also used to receive the edited custom instruction from the development end; obtain script data information of the edited custom instruction; and according to the edited custom instruction and the edited script data of the custom instruction Script commands for message generators.

在一可选的实施例中,应用程序模块601在判断自定义指令是否含有编辑路径之前,方法还包括:应用程序模块601根据自定义指令添加规范添加自定义指令;其中,自定义指令包括单条指令与基本框架指令;单条指令配置为实现单条指令的脚本功能;基本框架指令配置为实现基本框架指令的脚本功能与其他指令脚本之间的交互功能;应用程序模块601根据自定义指令生成指定格式的数据;以及发送指定格式的数据至开发端。In an optional embodiment, before the application module 601 determines whether the custom instruction contains an editing path, the method further includes: the application module 601 adds a custom instruction according to the custom instruction adding specification; wherein, the custom instruction includes a single Instructions and basic framework instructions; a single instruction is configured to implement the script function of a single instruction; the basic framework instruction is configured to implement the interaction function between the script function of the basic framework instruction and other instruction scripts; the application module 601 generates a specified format according to the custom instruction data; and send data in the specified format to the developer.

在一可选的实施例中,应用程序模块601根据自定义指令添加规范添加自定义指令,包括:应用程序模块601接收指令基本信息的输入;其中,指令基本信息包括指令名称、指令类型;应用程序模块601接收路径信息的输入;其中,路径信息包括编辑路径信息、脚本路径信息;以及添加指令的属性信息;其中,属性信息包括属性名称、属性类型、属性值。In an optional embodiment, the application module 601 adds a custom instruction according to the custom instruction adding specification, including: the application module 601 receives the input of basic instruction information; wherein, the basic instruction information includes the instruction name, the instruction type; the application The program module 601 receives the input of path information; wherein the path information includes editing path information, script path information; and attribute information of the adding instruction; wherein the attribute information includes attribute name, attribute type, and attribute value.

在一可选的实施例中,应用程序模块601在发送指定格式的数据至开发端之后,方法还包括:应用程序模块601根据指定格式的数据判断指令的属性信息;应用程序模块601根据属性信息顺序生成属性模块;其中,属性模块包含自定义指令信息;以及应用程序模块601根据属性模块形成自定义指令。In an optional embodiment, after the application module 601 sends the data in the specified format to the development terminal, the method further includes: the application module 601 determines the attribute information of the instruction according to the data in the specified format; the application module 601 determines the attribute information according to the attribute information Attribute modules are sequentially generated; wherein, the attribute modules contain custom instruction information; and the application module 601 forms a custom instruction according to the attribute modules.

请参看图7,图7为本申请实施例提供的数据交互框架开发端模块示意图,该数据交互框架客户端模块700包括:自定义指令属性值编辑模块701、自定义指令脚本生成模块702。Please refer to FIG. 7 , which is a schematic diagram of a data interaction framework development end module provided by an embodiment of the present application. The data interaction framework client module 700 includes: a custom command attribute value editing module 701 , and a custom command script generation module 702 .

自定义指令属性值编辑模块701,用于接收由客户端发出的自定义指令属性值编辑命令。The custom instruction attribute value editing module 701 is configured to receive a custom instruction attribute value editing command sent by the client.

自定义指令属性值编辑模块701,还用于根据自定义指令属性值编辑命令,在自定义指令属性值编辑区中对自定义指令的属性值进行编辑;并向客户端发送编辑后的自定义指令。The custom instruction attribute value editing module 701 is further configured to edit the command according to the custom instruction attribute value, edit the attribute value of the custom instruction in the custom instruction attribute value editing area; and send the edited custom instruction to the client instruction.

自定义指令脚本生成模块702,用于根据编辑后的属性值,在自定义指令脚本生成区中生成编辑后的自定义指令的脚本数据信息;并向客户端发送编辑后的自定义指令的脚本数据信息。The custom instruction script generation module 702 is used to generate script data information of the edited custom instruction in the custom instruction script generation area according to the edited attribute value; and send the script of the edited custom instruction to the client Data information.

在一可选的实施例中,自定义指令属性值编辑模块701对自定义指令的属性值进行编辑包括:自定义指令属性值编辑区701接收自定义指令属性值编辑命令;进入自定义指令属性值编辑区701;发送编辑后的自定义指令至数据交互框架客户端模块600中的应用程序模块601。In an optional embodiment, editing the attribute value of the custom instruction by the custom instruction attribute value editing module 701 includes: the custom instruction attribute value editing area 701 receives the custom instruction attribute value editing command; Value editing area 701 ; send the edited custom instruction to the application module 601 in the client module 600 of the data interaction framework.

在一可选的实施例中,根据自定义指令属性值编辑区701得到的编辑后的属性值,在自定义指令脚本生成区702中生成编辑后的自定义指令的脚本数据信息,包括:客户端根据自定义指令属性值编辑区701得到的编辑后的属性值,再传输至自定义指令脚本生成区702;由脚本函数,根据属性值生成脚本数据信息;其中,脚本函数表征特定的脚本数据信息生成规则。In an optional embodiment, according to the edited attribute value obtained in the custom instruction attribute value editing area 701, the script data information of the edited custom instruction is generated in the custom instruction script generation area 702, including: The edited attribute value obtained by the terminal according to the custom instruction attribute value editing area 701 is then transmitted to the custom instruction script generation area 702; the script function generates script data information according to the attribute value; wherein, the script function represents specific script data Information generation rules.

在本申请所提供的实施例中,应该理解到,所揭露装置和方法,可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的,例如,单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,又例如,多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些通信接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other manners. The apparatus embodiments described above are only illustrative. For example, the division of units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated. to another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some communication interfaces, indirect coupling or communication connection of devices or units, which may be in electrical, mechanical or other forms.

另外,作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。In addition, units described as separate components may or may not be physically separated, and components shown as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.

再者,在本申请各个实施例中的各功能模块可以集成在一起形成一个独立的部分,也可以是各个模块单独存在,也可以两个或两个以上模块集成形成一个独立的部分。Furthermore, each functional module in each embodiment of the present application may be integrated together to form an independent part, or each module may exist alone, or two or more modules may be integrated to form an independent part.

可以替换的,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行计算机程序指令时,全部或部分地产生按照本发明实施例的流程或功能。Alternatively, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented in whole or in part in the form of a computer program product. A computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the procedures or functions according to the embodiments of the present invention result in whole or in part.

计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable device. Computer instructions may be stored on or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer, server, or data center over a wire (e.g. coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (eg, infrared, wireless, microwave, etc.) to another website site, computer, server, or data center.

在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括……”限定的要素,并不排除在包括要素的过程、方法、物品或者设备中还存在另外的相同要素。In this document, relational terms such as first and second, etc. are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such existence between these entities or operations. The actual relationship or sequence. Moreover, the terms "comprising", "comprising" or any other variation thereof are intended to encompass a non-exclusive inclusion such that a process, method, article or device that includes a list of elements includes not only those elements, but also includes not explicitly listed or other elements inherent to such a process, method, article or apparatus. Without further limitation, an element defined by the phrase "comprising" does not preclude the presence of additional identical elements in the process, method, article or device that includes the element.

以上仅为本申请的实施例而已,并不用于限制本申请的保护范围,对于本领域的技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above are only examples of the present application, and are not intended to limit the protection scope of the present application. For those skilled in the art, the present application may have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this application shall be included within the protection scope of this application.

Claims (10)

1.一种自定义指令开发方法,其特征在于,所述方法应用于客户端,所述方法包括:1. A method for developing a custom instruction, wherein the method is applied to a client, and the method comprises: 判断自定义指令是否含有编辑路径;其中,所述编辑路径指向所述自定义指令属性值编辑区;Determine whether the custom instruction contains an edit path; wherein, the edit path points to the custom instruction attribute value editing area; 若有,则向开发端发出自定义指令属性值编辑命令;If so, issue a custom command attribute value editing command to the developer; 从所述开发端,接收所述编辑后的自定义指令属性值,并保存至所述自定义指令内部;From the development terminal, receive the edited custom command attribute value, and save it into the custom command; 获取所述编辑后的自定义指令的脚本数据信息;以及obtaining script data information of the edited custom instruction; and 根据所述编辑后的自定义指令以及所述编辑后的自定义指令的脚本数据信息生成程序的脚本命令。A script command of the program is generated according to the edited custom instruction and script data information of the edited custom instruction. 2.根据权利要求1所述的方法,其特征在于,在判断自定义指令是否含有编辑路径之前,所述方法还包括:2. The method according to claim 1, wherein before judging whether the custom instruction contains an editing path, the method further comprises: 根据自定义指令添加规范添加所述自定义指令;其中,所述自定义指令包括单条指令与基本框架指令;所述单条指令配置为实现单条指令的脚本功能;所述基本框架指令配置为实现基本框架指令的脚本功能与其他指令脚本之间的交互功能;The custom instruction is added according to the custom instruction adding specification; wherein, the custom instruction includes a single instruction and a basic framework instruction; the single instruction is configured to implement the script function of a single instruction; the basic framework instruction is configured to implement the basic framework instruction The interaction function between the script function of the framework directive and other directive scripts; 根据所述自定义指令生成指定格式的数据;以及generating data in the specified format according to the custom instruction; and 发送所述指定格式的数据至所述开发端。Send the data in the specified format to the development terminal. 3.根据权利要求2所述的方法,其特征在于,所述根据自定义指令添加规范添加所述自定义指令,包括:3. The method according to claim 2, wherein the adding the custom instruction according to the custom instruction adding specification comprises: 接收指令基本信息的输入;其中,所述指令基本信息包括指令名称、指令类型;receiving the input of basic instruction information; wherein, the basic instruction information includes an instruction name and an instruction type; 接收路径信息的输入;其中,所述路径信息包括编辑路径信息、脚本路径信息;以及receiving input of path information; wherein the path information includes edit path information and script path information; and 添加指令的属性信息;其中,所述属性信息包括属性名称、属性类型、属性值。Attribute information of the instruction is added; wherein, the attribute information includes attribute name, attribute type, and attribute value. 4.根据权利要求2所述的方法,其特征在于,在所述发送所述指定格式的数据至所述开发端之后,所述方法还包括:4. The method according to claim 2, wherein after the data in the specified format is sent to the development terminal, the method further comprises: 根据所述指定格式的数据判断所述指令的属性信息;Determine the attribute information of the instruction according to the data in the specified format; 根据所述属性信息顺序生成属性模块;其中,所述属性模块包含所述自定义指令信息;以及Sequence generating attribute modules according to the attribute information; wherein, the attribute modules include the user-defined instruction information; and 根据所述属性模块形成所述自定义指令。The custom instruction is formed according to the attribute module. 5.一种自定义指令开发方法,其特征在于,所述方法应用于开发端,所述开发端包括:自定义指令属性值编辑区、自定义指令脚本生成区;所述方法包括:5. A method for developing a custom instruction, wherein the method is applied to a development terminal, and the development terminal comprises: a custom instruction attribute value editing area and a custom instruction script generation area; the method comprises: 接收由客户端发出的自定义指令属性值编辑命令;Receive the custom command attribute value editing command issued by the client; 根据所述自定义指令属性值编辑命令,在所述自定义指令属性值编辑区中对所述自定义指令的属性值进行编辑,并将编辑后的属性值发送至客户端;Editing the attribute value of the custom instruction in the custom instruction attribute value editing area according to the custom instruction attribute value editing command, and sending the edited attribute value to the client; 根据所述编辑后的属性值,在所述自定义指令脚本生成区中生成所述编辑后的自定义指令的脚本数据信息;并向客户端发送所述编辑后的自定义指令的脚本数据信息。Generate script data information of the edited custom command in the custom command script generation area according to the edited attribute value; send the edited script data information of the custom command to the client . 6.根据权利要求5所述的方法,其特征在于,所述将编辑后的属性值发送至客户端包括:6. The method according to claim 5, wherein the sending the edited attribute value to the client comprises: 所述自定义指令属性值编辑区接收所述自定义指令属性值编辑命令;The custom instruction attribute value editing area receives the custom instruction attribute value editing command; 进入所述自定义指令属性值编辑区;Enter the custom command attribute value editing area; 发送所述编辑后的自定义指令至所述客户端。Send the edited custom instruction to the client. 7.根据权利要求5所述的方法,其特征在于,所述根据所述编辑后的属性值,在所述自定义指令脚本生成区中生成所述编辑后的自定义指令的脚本数据信息,包括:7. The method according to claim 5, wherein the script data information of the edited custom command is generated in the custom command script generation area according to the edited attribute value, include: 将所述属性值从所述自定义指令属性值编辑区传输至所述客户端;transmitting the attribute value from the custom instruction attribute value editing area to the client; 接收所述客户端发出的所述属性值;receiving the attribute value sent by the client; 由脚本函数,根据所述属性值生成脚本数据信息;其中,所述脚本函数表征特定的脚本数据信息生成规则。Script data information is generated according to the attribute value by a script function; wherein, the script function represents a specific script data information generation rule. 8.一种自定义指令开发方法,其特征在于,所述自定义指令开发方法应用于包括客户端和开发端的系统,所述方法包括:8. A method for developing a custom instruction, wherein the method for developing a custom instruction is applied to a system comprising a client and a development terminal, and the method comprises: 由所述客户端,判断自定义指令是否含有编辑路径;其中,所述编辑路径指向所述自定义指令属性值编辑区;若有,则向开发端发出自定义指令属性值编辑命令;By the client, it is judged whether the custom instruction contains an edit path; wherein, the edit path points to the custom instruction attribute value editing area; if so, a custom instruction attribute value editing command is sent to the development terminal; 由所述开发端,接收所述自定义指令属性值编辑命令;进入所述自定义指令属性值编辑区;将被编辑的属性值发送至所述客户端;The development terminal receives the custom instruction attribute value editing command; enters the custom instruction attribute value editing area; sends the edited attribute value to the client; 由所述客户端,接收所述编辑后的自定义指令属性值,并保存至自定义指令内部;receiving the edited custom command attribute value by the client, and saving it into the custom command; 由所述开发端,根据所述编辑后的属性值,在所述自定义指令脚本生成区中生成编辑后的自定义指令的脚本数据信息;并向客户端发送所述编辑后的自定义指令的脚本数据信息;以及The development terminal generates script data information of the edited custom command in the custom command script generation area according to the edited attribute value; and sends the edited custom command to the client script data information; and 由所述客户端,获取编辑后的自定义指令的脚本数据信息;根据所述编辑后的自定义指令以及所述编辑后的自定义指令的脚本数据信息生成程序的脚本命令。The client obtains script data information of the edited custom instruction; and generates a script command of the program according to the edited custom instruction and the script data information of the edited custom instruction. 9.一种数据交互框架,其特征在于,应用于客户端,所述数据交互框架包括:应用程序模块;9. A data interaction framework, characterized in that, applied to a client, the data interaction framework comprises: an application program module; 所述应用程序模块,用于判断自定义指令是否含有编辑路径;其中,所述编辑路径指向所述自定义指令属性值编辑区;若有,则向开发端发出自定义指令属性值编辑命令;The application module is used to judge whether the custom instruction contains an edit path; wherein, the edit path points to the custom instruction attribute value editing area; if so, send a custom instruction attribute value editing command to the development terminal; 所述应用程序模块,还用于从所述开发端,接收所述编辑后的自定义指令属性值,并保存至自定义指令内部;获取所述编辑后的自定义指令的脚本数据信息;以及根据所述编辑后的自定义指令以及所述编辑后的自定义指令的脚本数据信息生成程序的脚本命令。The application program module is further configured to receive the edited custom command attribute value from the development terminal, and save it into the custom command; obtain script data information of the edited custom command; and A script command of the program is generated according to the edited custom instruction and script data information of the edited custom instruction. 10.一种数据交互框架,其特征在于,应用于开发端,所述数据交互框架包括:自定义指令属性值编辑模块、自定义指令脚本生成模块;其中,10. A data interaction framework, characterized in that, applied to a development end, the data interaction framework comprises: a custom command attribute value editing module and a custom command script generation module; wherein, 所述自定义指令属性值编辑模块,用于接收由客户端发出的自定义指令属性值编辑命令;The self-defined command attribute value editing module is used to receive the self-defined command attribute value editing command issued by the client; 所述自定义指令属性值编辑模块,还用于根据所述自定义指令属性值编辑命令,在所述自定义指令属性值编辑区中对所述自定义指令的属性值进行编辑,并将编辑后的属性值发送至客户端;The custom instruction attribute value editing module is further configured to edit the command according to the custom instruction attribute value, edit the attribute value of the custom instruction in the custom instruction attribute value editing area, and edit the The attribute value after is sent to the client; 所述自定义指令脚本生成模块,用于根据所述编辑后的属性值,在所述自定义指令脚本生成区中生成所述编辑后的自定义指令的脚本数据信息;并向客户端发送所述编辑后的自定义指令的脚本数据信息。The custom instruction script generation module is configured to generate script data information of the edited custom instruction in the custom instruction script generation area according to the edited attribute value; Describe the script data information of the edited custom instruction.
CN202210297334.4A 2022-03-24 2022-03-24 A custom instruction development method and data interaction framework Pending CN114610293A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210297334.4A CN114610293A (en) 2022-03-24 2022-03-24 A custom instruction development method and data interaction framework

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210297334.4A CN114610293A (en) 2022-03-24 2022-03-24 A custom instruction development method and data interaction framework

Publications (1)

Publication Number Publication Date
CN114610293A true CN114610293A (en) 2022-06-10

Family

ID=81864006

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210297334.4A Pending CN114610293A (en) 2022-03-24 2022-03-24 A custom instruction development method and data interaction framework

Country Status (1)

Country Link
CN (1) CN114610293A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109848985A (en) * 2018-12-31 2019-06-07 深圳市越疆科技有限公司 A kind of the graphical programming method, apparatus and intelligent terminal of robot
CN110362299A (en) * 2019-06-14 2019-10-22 杭州古德微机器人有限公司 A kind of inline graphics programing system and its application method based on blockly and raspberry pie
CN111580806A (en) * 2020-04-10 2020-08-25 天津大学 Collaborative robot graphical programming system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109848985A (en) * 2018-12-31 2019-06-07 深圳市越疆科技有限公司 A kind of the graphical programming method, apparatus and intelligent terminal of robot
CN110362299A (en) * 2019-06-14 2019-10-22 杭州古德微机器人有限公司 A kind of inline graphics programing system and its application method based on blockly and raspberry pie
CN111580806A (en) * 2020-04-10 2020-08-25 天津大学 Collaborative robot graphical programming system

Similar Documents

Publication Publication Date Title
US10705942B1 (en) Simulated testing of API
CN104484189A (en) Construction and design method of application interface
WO2017133447A1 (en) Intelligent device control method and apparatus, and computer storage medium
CN109918607A (en) Page building method and device, medium and calculating equipment
CN101299754A (en) End user control configuration system with dynamic user interface
US20190052542A1 (en) System and method for providing visualizations of computing infrastructure using a domain-specific language for cloud services infrastructure
CN112486482B (en) Page display method and device
CN111651639A (en) An address space management method, apparatus, device and medium
CN113778404A (en) A method and device for generating a page
CN114675820A (en) Service arrangement data processing method and device, electronic equipment and storage medium
CN116931895A (en) A processing method, device and equipment for composite components
CN106952426B (en) Data processing method and device
JP4626675B2 (en) Firmware providing method, communication system and service server using communication network
JP7014960B2 (en) Information processing equipment, servers, their processing methods and programs
CN115525280A (en) Front-end code generation method and device, storage medium and electronic equipment
CN114692055A (en) Form processing method, device, storage medium and electronic device
CN114610293A (en) A custom instruction development method and data interaction framework
CN118585189A (en) Form configuration method, device, medium, electronic device and program product
CN112988139B (en) Method and device for developing event processing file
CN118591792A (en) Graphical user interface builder using markup language
CN113448583A (en) Configuration development method and device based on Internet of things, terminal equipment and medium
CN114281332A (en) Visual page development method, device, equipment and medium
TWI574165B (en) Interactive operation method, and transmitter machine, receiver machine and interactive operation system using the same
CN111857792A (en) A system docking instance configuration method and configuration device
CN116185522A (en) Visual event stream definition method, system, device and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Building 6, 646 Jianchuan Road, Minhang District, Shanghai 201100

Applicant after: Jieka Robot Co.,Ltd.

Address before: Building 6, 646 Jianchuan Road, Minhang District, Shanghai 201100

Applicant before: SHANGHAI JAKA ROBOTICS Ltd.