CN109271157B - Software development method, device and computer readable storage medium - Google Patents

Software development method, device and computer readable storage medium Download PDF

Info

Publication number
CN109271157B
CN109271157B CN201811047675.6A CN201811047675A CN109271157B CN 109271157 B CN109271157 B CN 109271157B CN 201811047675 A CN201811047675 A CN 201811047675A CN 109271157 B CN109271157 B CN 109271157B
Authority
CN
China
Prior art keywords
instruction
message
behavior tree
interface
target
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.)
Active
Application number
CN201811047675.6A
Other languages
Chinese (zh)
Other versions
CN109271157A (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 Tendzone Intelligent Technology Co ltd
Original Assignee
Shenzhen Tendzone Intelligent Technology Co 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 Shenzhen Tendzone Intelligent Technology Co ltd filed Critical Shenzhen Tendzone Intelligent Technology Co ltd
Priority to CN201811047675.6A priority Critical patent/CN109271157B/en
Publication of CN109271157A publication Critical patent/CN109271157A/en
Application granted granted Critical
Publication of CN109271157B publication Critical patent/CN109271157B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/33Intelligent editors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

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

Abstract

The invention provides a software development method, software development equipment and a computer-readable storage medium. The software development method comprises the steps of detecting an interface editing starting instruction, and starting an interface editing function according to the interface editing starting instruction; receiving an event insertion instruction of a target control; binding the target control with the unique identification code of the target behavior tree corresponding to the event insertion instruction according to the event insertion instruction; and detecting an interface editing ending instruction, generating an interface data file of the interface being edited according to the interface editing ending instruction, and storing the interface data file. In the invention, the unique identification code corresponding to the behavior tree is inserted into the event of the target control, the corresponding behavior tree is loaded and executed according to the unique identification code, the execution of the logic service is completed through the behavior tree, the service can be rapidly expanded or modified only by adding or deleting nodes, and the multiplexing of the functions can be rapidly realized only by binding the same unique identification code.

Description

Software development method, device and computer readable storage medium
Technical Field
The present invention relates to the field of software development technologies, and in particular, to a software development method, a software development device, and a computer-readable storage medium.
Background
The existing software development technology is generally realized by compiling codes, and the software compiled by the codes has the following disadvantages: 1) when the service needs to be expanded, the problem can be solved only by modifying codes; 2) when the service is modified, the software is required to be recompiled by adjusting the codes; 3) when a plurality of pieces of software have the same function, the repeated development can be avoided only by code reuse, but this causes a problem of software compatibility.
Disclosure of Invention
The invention mainly aims to provide a software development method, software development equipment and a computer readable storage medium, and aims to solve the problems of troubles caused by recompiling codes when software function extension is realized and software compatibility caused by function multiplexing.
In order to achieve the above object, the present invention provides a software development method, including the steps of:
detecting an interface editing starting instruction, and starting an interface editing function according to the interface editing starting instruction;
receiving an event insertion instruction of a target control;
binding the target control with the unique identification code of the target behavior tree corresponding to the event insertion instruction according to the event insertion instruction;
and detecting an interface editing ending instruction, generating an interface data file of the interface being edited according to the interface editing ending instruction, and storing the interface data file.
Preferably, before the step of binding the target control with the unique identification code of the behavior tree corresponding to the event insertion instruction according to the event insertion instruction, the method further includes:
calling a behavior tree template according to the event insertion instruction;
receiving a node editing instruction which is input by a user and is based on the behavior tree template, generating a target behavior tree with a unique identification code according to the node editing instruction, and storing:
preferably, the node editing instruction includes a new message issuing node instruction, the receiving a node editing instruction based on the behavior tree template and input by a user, generating a target behavior tree with a unique identification code according to the node editing instruction, and storing the target behavior tree, including:
receiving a newly added message issuing node instruction which is input by a user and based on the behavior tree template;
adding a message publishing node on a target node of the behavior tree template according to the newly added message publishing node instruction, and defining message matching information of the message publishing node according to the newly added message publishing node instruction;
and generating and storing the target behavior tree.
Preferably, after the step of binding the target control with the unique identification code of the behavior tree corresponding to the event insertion instruction according to the event insertion instruction, the method further includes:
receiving a message subscription instruction of the target control;
and performing callback configuration on the target control according to the message subscription instruction, wherein the callback configuration comprises the message matching information and a unique identification code of a preset callback behavior tree.
Preferably, before the step of detecting an interface editing end instruction and saving the interface data file being edited according to the interface editing end instruction, the method further includes:
receiving a property editing instruction of the target control;
and editing and storing the display information of the target control according to the attribute editing instruction, wherein the display information comprises position information of the target control on an interface, size information of the target control and background picture information.
Preferably, after the step of detecting an interface editing end instruction and saving the interface data file being edited according to the interface editing end instruction, the method further includes:
detecting an interface operation instruction;
loading and rendering an interface data file corresponding to the interface operation instruction according to the interface operation instruction to obtain a target interface;
receiving an event trigger instruction of a target control of the target interface;
and acquiring the unique identification code of the corresponding target behavior tree according to the event triggering instruction, and searching and executing the target behavior tree according to the unique identification code of the target behavior tree.
Preferably, after the steps of acquiring the unique identification code of the corresponding target behavior tree according to the event trigger instruction, and searching and executing the target behavior tree according to the unique identification code of the target behavior tree, the method further includes:
detecting a message issued by a message issuing node of the target behavior tree, and issuing the message to the whole situation;
and the target control receives the message, acquires a unique identification code of a preset callback behavior tree corresponding to the message matching information of the message according to the message, and searches and executes the callback behavior tree according to the unique identification code of the callback behavior tree.
Preferably, the step of receiving, by the target control, the message, acquiring, according to the message, a unique identification code of a preset callback behavior tree corresponding to the message matching information of the message, and searching and executing the callback behavior tree according to the unique identification code of the callback behavior tree includes:
the target control receives the message;
judging whether the message matching information of the message is consistent with the message matching information in the configuration;
if the message matching information of the message is consistent with the message matching information in the callback configuration, acquiring a unique identification code of a callback behavior tree corresponding to the message matching information according to the message matching information, and searching and executing the callback behavior tree according to the unique identification code of the callback behavior tree;
and if the message matching information of the message is inconsistent with the message matching information in the configuration return, not processing the message.
In addition, in order to achieve the above object, the present invention further provides a software development device, which is characterized in that the software development device includes a processor, a memory, and a software development program stored on the memory and executable by the processor, wherein when the software development program is executed by the processor, the steps of the software development method as described above are implemented.
In addition, to achieve the above object, the present invention also provides a computer readable storage medium having a software development program stored thereon, wherein the software development program, when executed by a processor, implements the steps of the software development method as described above.
The method comprises the steps of detecting an interface editing start instruction, starting an interface editing function according to the interface editing start instruction, receiving an event insertion instruction of a target control, binding the target control and a unique identification code of a target behavior tree corresponding to the event insertion instruction according to the event insertion instruction, detecting an interface editing end instruction, generating an interface data file of an interface being edited according to the interface editing end instruction, and storing the interface data file. According to the technical scheme, the unique identification code corresponding to the behavior tree is inserted into the event of the target control, the corresponding behavior tree is loaded and executed according to the unique identification code, the execution of the logic service is completed through the behavior tree, the service can be rapidly expanded or modified only by correspondingly increasing or deleting the nodes of the behavior tree, and meanwhile, when the function is required to be multiplexed, the multiplexing of the function can be rapidly realized only by binding the same unique identification code.
Drawings
Fig. 1 is a schematic diagram of a hardware structure of a software development device according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a first embodiment of a software development method according to the present invention;
FIG. 3 is a flowchart illustrating a second embodiment of a software development method according to the present invention;
FIG. 4 is a schematic diagram of a detailed flow chart of receiving a node editing instruction based on the behavior tree template and input by a user, generating a target behavior tree with a unique identification code according to the node editing instruction, and storing the target behavior tree;
FIG. 5 is a flowchart illustrating a third embodiment of a software development method according to the present invention;
FIG. 6 is a flowchart illustrating a fourth embodiment of a software development method according to the present invention;
FIG. 7 is a flowchart illustrating a fifth embodiment of a software development method according to the present invention;
FIG. 8 is a flowchart illustrating a sixth embodiment of a software development method according to the present invention;
fig. 9 is a flowchart illustrating a seventh embodiment of a software development method according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The main idea of the embodiment scheme of the invention is as follows: the software development equipment for rapidly expanding functions based on the behavior tree is provided, and the software development equipment realizes the generation of each interface based on a software development method. The software development method is completed based on a behavior tree editor and an interface editor which are built in the software development equipment. When the interface is edited, the interface editor detects an interface editing starting instruction and is started, the interface editor comprises a plurality of built-in controls, and when an event inserting instruction of a target control is received, the target control and a unique identification code of a target behavior tree corresponding to the event inserting instruction are bound according to the event inserting instruction. And after the events of the plurality of controls are filled, finishing the editing of the interface, generating an interface data file and storing the interface data file. And realizing addition and deletion operations, position change operations and the like on the nodes of the behavior tree based on the behavior editor so as to quickly realize function expansion and modification of the service. In addition, each behavior tree is stored as a file, the file has a unique identification code, and the unique identification code of the behavior tree is bound with the event instead of the behavior tree, so that the behavior trees can be quickly reused, and the system redundancy is reduced.
The software development method related to the embodiment of the invention is mainly applied to software development equipment which can be equipment with display and processing functions, such as a PC (personal computer), a portable computer, a mobile terminal and the like.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a software development device according to an embodiment of the present invention. In the embodiment of the present invention, the software development device may include a processor 1001 (e.g., a CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. The communication bus 1002 is used for realizing connection communication among the components; the user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard); the network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface); the memory 1005 may be a high-speed RAM memory, or may be a non-volatile memory (e.g., a magnetic disk memory), and optionally, the memory 1005 may be a storage device independent of the processor 1001.
Those skilled in the art will appreciate that the hardware configuration shown in fig. 1 does not constitute a limitation of the apparatus, and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
With continued reference to fig. 1, the memory 1005 of fig. 1, which is one type of computer-readable storage medium, may include an operating system, a network communication module, and a software development program.
In fig. 1, the network communication module is mainly used for connecting to a server and performing data communication with the server; and the processor 1001 may call the software development program stored in the memory 1005 and perform the following steps of the software development method.
The embodiment of the invention provides a software development method.
Referring to fig. 2, fig. 2 is a flowchart illustrating a first embodiment of a software development method according to the present invention. In this embodiment, the software development method includes the following steps:
step S10, detecting an interface editing start instruction, and starting an interface editing function according to the interface editing start instruction;
in the software development process, the construction of a software interface is an important part of human-computer interaction, is also the first impression of software use, and is an important component of software design. The software with complete functions can be switched easily among a plurality of interfaces by being provided with the plurality of interfaces. Each interface is provided with a plurality of control buttons, the execution of the event corresponding to the control can be realized by clicking or opening the control buttons, and the result of the event execution is often displayed on the interface. In this embodiment, the software development method is proposed based on software development equipment, where the software development equipment includes an interface editor and a behavior tree editor, and when software development is started, the interface editor detects an interface editing start instruction, acquires the interface editing start instruction, and enables an interface editing function according to the interface editing start instruction. The interface editor can create a new interface based on a basic file, and can modify or expand the interface function based on the existing interface file. When an interface needs to be innovated again, the interface editor loads the template configuration file from the basic file and initializes the template configuration file to form an editing interface, and at the moment, a plurality of built-in basic controls to be edited are displayed on the editing interface. When the existing interface needs to be modified or expanded in function, the interface editor loads the relevant configuration file from the interface file of the object interface and initializes the configuration file in the interface file to form an editing interface, at the moment, the control information of the editing interface is in one-to-one correspondence with the object interface, and the modification or expansion of the function of the object interface is realized by editing the control information.
It can be understood that the interface editor includes a display window, a design area is arranged on the display window, a mapping relationship exists between the design area and an interface to be generated, information such as a display position, a display size and the like of a control in the design area is the same as that of the generated interface, and a one-to-one mapping relationship exists, that is, the design area provides a preview function of the generated interface. Furthermore, a control area is further arranged on the display window and used for displaying various built-in controls, and the controls in the control area can be copied to the design area through dragging. In addition, the display window also comprises an attribute area, and the attribute area control is associated with the attribute for displaying the control and is used for editing the attribute of the control, including the size of the control, the editing of the background, the message subscription of the control and the like.
Step S20, receiving an event insertion instruction of the target control;
and acquiring an event insertion instruction of a target control triggered on a display window by a user. And when a plurality of event insertion instructions exist, executing according to the sequence insertion order of the target behavior tree corresponding to the event insertion instructions.
Step S30, binding the target behavior tree with the unique identification code of the target behavior tree corresponding to the event insertion instruction according to the event insertion instruction;
after receiving the event insertion instruction, the interface editor can provide three binding options according to the event insertion instruction, wherein one binding option is to call a storage directory of the target behavior tree, acquire the unique identification code of the target behavior tree from the storage directory of the behavior tree and bind the target control with the unique identification code of the target behavior tree; the other method is that an input box is provided, the unique identification code of the target behavior tree is input in the input box, and the target control is bound with the unique identification code of the target behavior tree; and calling the behavior tree editor according to the event insertion instruction, re-editing the logic of the behavior tree template through the behavior tree editor, storing the edited behavior tree, acquiring the unique identification code of the new behavior tree, and binding the target control with the unique identification code of the target behavior tree. The target behavior tree is stored in the behavior tree folder in the memory 1005 in json format for ease of multiplexing. Each behavior tree has a unique identification code without requiring the assignment of identification information through a central control end, in which case the name duplication problem during database establishment is not considered.
In the embodiment, the target behavior tree is bound with the displacement identification code of the target behavior tree corresponding to the event insertion instruction according to the event insertion instruction, instead of binding the target control with the behavior tree, so that the size of an interface file is reduced, and the starting time of an interface is shortened. The target behavior trees are all stored in the behavior tree folder, and when the event is executed, the target behavior trees can be searched through the unique identification codes and executed.
Step S40, an interface editing end instruction is detected, and an interface data file of the interface being edited is generated and stored according to the interface editing end instruction.
When the events are inserted into the target controls, a user triggers an interface editing ending instruction, the interface editor detects the interface editing ending instruction, and generates an interface data file of an interface being edited into a preset format according to the interface editing ending instruction for storage, and preferably stores the interface data file in a json format. And each interface correspondingly generates an interface data file, a configuration directory of one software is provided with an interface data folder, the interface data folder comprises a plurality of interface data files, and the interface data files store the unique identification codes of the target behavior trees corresponding to the events of the target controls. In addition, the configuration directory is also provided with a behavior tree folder, and a plurality of behavior trees are stored in the behavior tree folder.
According to the technical scheme, an interface editing starting instruction is detected, an interface editing function is started according to the interface editing starting instruction, an event inserting instruction of a target control is received, the target control and the unique identification code of the target behavior tree corresponding to the event inserting instruction are bound according to the event inserting instruction, an interface editing ending instruction is detected, an interface data file of an interface being edited is generated according to the interface editing ending instruction, and the interface data file is stored. According to the technical scheme, the unique identification code corresponding to the behavior tree is inserted into the event of the target control, the corresponding behavior tree is loaded and executed according to the unique identification code, the execution of the logic service is completed through the behavior tree, the service can be rapidly expanded or modified only by correspondingly increasing or deleting the nodes of the behavior tree, and meanwhile, when the function is required to be multiplexed, the multiplexing of the function can be rapidly realized only by binding the same unique identification code, and the problem of compatibility does not exist.
Referring to fig. 3, fig. 3 is a flowchart illustrating a second embodiment of the software development method according to the present invention. In this embodiment, before the step 30 of binding the target control and the unique identification code of the behavior tree corresponding to the event insertion instruction according to the event insertion instruction, the method further includes:
step S21, calling a behavior tree template according to the event insertion instruction;
according to the above, when the existing interface is re-edited, when the existing behavior tree of the target control needs to be edited, and when the event insertion instruction of the target control is received, the behavior tree editor is called, and at this time, the behavior tree editor provides an independent editing interface. Or when the behavior tree logic needs to be edited on site, starting a behavior tree editor, wherein a template behavior tree template is arranged in the behavior tree editor. Preferably, an editing interface of the behavior tree editor is displayed in a design area of the interface display, and when an event insertion instruction is received, the behavior tree editing interface is switched to, and an original behavior tree template of the target control is called.
And step S22, receiving a node editing instruction based on the behavior tree template input by a user, generating a target behavior tree with a unique identification code according to the node editing instruction, and storing the target behavior tree.
The behavior tree is a node presented in a tree shape, the types of the support nodes comprise a sequence node, a condition node and a behavior node, the sequence node represents a child node of a sequence execution node, the condition node represents which child node is decided to be executed after judgment, and the behavior node is used for processing a specific transaction. Each behavior tree has a root node, which is the beginning of the behavior tree execution. A behavior tree is a tree of nodes that includes logic and specific behaviors. The behavior tree editor is used for editing the position of a target node in a behavior tree, or adding a node on the basis of the target node, or deleting the target node to form a complete function processing logic, so that the required function is realized. In the embodiment, the behavior tree is described in a json file, and each behavior has a globally unique identification code for distinguishing different behavior trees.
And after the behavior tree editor calls the behavior tree template of the target control, receiving a node editing instruction input by a user, wherein the node editing instruction comprises a node adding instruction, a node deleting instruction, a node modifying instruction and the like. And the behavior tree editor executes operations of adding nodes, deleting nodes or changing the positions of the nodes on the target node according to the node editing instruction. The newly added node types comprise sequential nodes, conditional nodes or execution nodes and the like. And generating a target behavior tree according to the node editing instruction, storing the target behavior in a behavior tree folder, and binding the event of the target control with the unique identification code of the newly generated target behavior tree.
In other embodiments, the logic event of the target behavior tree may be edited in advance before the interface editing is performed, specifically, before the step S10 of detecting the interface editing start instruction and enabling the interface editing function according to the interface editing start instruction, the method further includes the step S01 of detecting the behavior tree editing instruction, enabling the behavior tree editing function according to the behavior tree editing instruction, and calling the behavior tree template; and step S22, receiving a node editing instruction based on the behavior tree template input by a user, generating a target behavior tree with a unique identification code according to the node editing instruction, and storing the target behavior tree. It should be noted that the target behavior tree may be established before the interface editing function is enabled, or after the interface editing function is enabled.
Referring to fig. 4, fig. 4 is a detailed flowchart of step S22 of the software development method according to the present invention. In this embodiment, the step S22, in which the node editing instruction includes a new message publishing node instruction, the step S22 of receiving a node editing instruction based on the behavior tree template and input by a user, generating a target behavior tree with a unique identification code according to the node editing instruction, and storing includes:
step S221, receiving a new message issuing node instruction based on the behavior tree template and input by a user;
step S222, adding a message publishing node on a target node of the behavior tree template according to the new message publishing node instruction, and defining message matching information of the message publishing node according to the new message publishing node instruction;
in step S223, a target behavior tree is generated and stored.
In order to realize interaction and association between the controls, a message publishing node is inserted into an event of a target control, the message is published to a control subscribed with the message when the message of the event is published to an execution point, and the control receiving the message executes a corresponding callback according to a preset callback rule. Specifically, a new message publishing node instruction based on a behavior tree template and input by a user is received, a message publishing node is added to a target node in the behavior tree template according to the new message publishing node instruction, after the message publishing node is added, the message publishing node is defined according to message information contained in the new message publishing node instruction, and the message comprises message matching information. When the target behavior tree is executed to the message publishing node, the message is published to the whole situation, the control subscribed to the message recognizes the message, and corresponding call-back is carried out. The message matching information may be information having a unique matching relationship with the message, such as a message name, a message key, or a message number. The behavior tree of the empty event may be used as the behavior tree template, or the behavior tree of the existing event may be used as the behavior tree template, which is not limited herein.
Referring to fig. 5, fig. 5 is a flowchart illustrating a third embodiment of the software development method according to the present invention. In this embodiment, after the step 30 of binding the target control and the unique identification code of the behavior tree corresponding to the event insertion instruction according to the event insertion instruction, the method further includes:
step S31, receiving a message subscription instruction of the target control;
and step S32, performing callback configuration on the target control according to the message subscription instruction, wherein the callback configuration comprises the message matching information and a unique identification code of a preset callback behavior tree.
Before receiving the message sent by the message publishing node, the target control which is ready to subscribe to the message needs to be subjected to message subscription processing to serve as a message receiver. It can be understood that the attribute column of the target control has a message subscription column, and when the target control needs to be subjected to message subscription processing, the message subscription column of the target control is set. When a message subscription instruction of the target control is received, the message subscription instruction comprises information such as subscription message matching information and a unique identification code of a callback behavior tree, and callback setting is performed in a message subscription column according to the message subscription instruction, namely, the message matching information contained in the message subscription instruction and the preset unique identification code of the callback behavior tree are stored in the message subscription column. And after the message publishing node sends the message, when the target control subscribed to the message receives the message, executing the corresponding callback behavior tree according to the unique identification code bound and stored by the target control.
Referring to fig. 6, fig. 6 is a flowchart illustrating a fourth embodiment of the software development method according to the present invention. In this embodiment, based on the above embodiment, before the step S40 of detecting an interface editing end instruction, and saving the interface data file being edited according to the interface editing end instruction, the method further includes:
step S33, receiving a property editing instruction of the target control;
and step S34, editing and storing the display information of the target control according to the attribute editing instruction, wherein the display information comprises the position information of the target control on the interface, the size information of the target control and the background picture information.
Besides the insertion event of the target control, the property of the target control needs to be edited to lay out an interface which is in accordance with the aesthetic feeling. The properties of the target control include the size, shape, position, and background picture of the target control. The background picture of the target control can be a default, and can also be acquired from other storage units. And finishing the dragging of the target control in the design area according to the position of the target control by the user. The size and shape of the target control can be customized by the user, and a default value can also be selected.
Referring to fig. 7, fig. 7 is a flowchart illustrating a fifth embodiment of the software development method according to the present invention. In this embodiment, after the step S40 of detecting the interface editing end instruction and saving the interface data file being edited according to the interface editing end instruction, the method further includes:
step S50, detecting an interface operation instruction;
step S51, loading and rendering an interface data file corresponding to the interface operation instruction according to the interface operation instruction to obtain a target interface;
step S52, receiving an event trigger instruction of a target control of the target interface;
and step S53, acquiring the unique identification code of the corresponding target behavior tree according to the event trigger instruction, and searching and executing the target behavior tree according to the unique identification code of the target behavior tree.
When the interface is operated after the interface file is generated, the interface is presented by loading the interface data file. Specifically, an interface operation instruction is detected, storage information of an interface data file of a target interface corresponding to the interface operation instruction is obtained, the interface data file is loaded according to the storage information of the interface data file, and the interface data file is rendered to form the target interface. When a user needs to operate a certain target control, a corresponding event trigger instruction is generated according to the operation of the user, the unique identification code of the target control is obtained according to the event trigger instruction, the corresponding target behavior tree is searched and executed through the unique identification code, and the completion of the corresponding event is realized through the target behavior tree.
Referring to fig. 8, fig. 8 is a flowchart illustrating a sixth embodiment of the software development method according to the present invention. In this embodiment, after the step S53 of obtaining the unique identifier of the corresponding target behavior tree according to the event trigger instruction, and searching and executing the target behavior tree according to the unique identifier of the target behavior tree, the method further includes:
step S54, detecting the message issued by the message issuing node of the target behavior tree, and issuing the message to the whole situation;
and step S55, the target control receives the message, acquires the unique identification code of the callback behavior tree corresponding to the message matching information of the message according to the message, and searches and executes the callback behavior tree according to the unique identification code of the callback behavior tree.
The software development equipment is also internally provided with a global message system which is used as the assistance of the behavior tree and is beneficial to realizing the interaction between the interface controls and the calling of some built-in interfaces through the behavior tree. When a message publishing node of a target behavior tree publishes a message, the message is firstly stored in a global message system, all message systems comprise message queues, the published message is stored in the message queues, and the message queues are popped according to a first-in first-out mode. Then the global message system issues messages to the global according to a first-in first-out pop mode. The global message system is adopted to forward the message, and no matter a message receiver or a message sender needs not to wait for a successful message returned by the other party, the rest logic can be executed, and the event processing capacity is greatly improved. When the global message system sends a message to the global, the target control receives the message, acquires the unique identification code of the callback behavior tree corresponding to the message matching information of the message according to the message, and searches and executes the callback behavior tree according to the unique identification code of the callback behavior tree.
Referring to fig. 9, fig. 9 is a flowchart illustrating a seventh embodiment of the software development method according to the present invention. In this embodiment, based on the above embodiment, the step S55 in which the target control receives the message, acquires the unique identification code of the callback behavior tree corresponding to the message matching information of the message according to the message, and searches and executes the callback behavior tree according to the unique identification code of the callback behavior tree includes:
step S551, the target control receives the message;
step S552, determining whether the message matching information of the message is consistent with the message matching information in the configuration;
step S553, if the message matching information is consistent with the message matching information in the callback configuration, acquiring a unique identification code of the callback behavior tree corresponding to the message matching information, and searching and executing the callback behavior tree according to the unique identification code of the callback behavior tree;
in step S554, if the message matching information is not consistent with the message matching information in the configuration return, no processing is performed.
Because a target control may have multiple callback configurations, in order to ensure that the program runs correctly, it is necessary that the message received by the target control is consistent with the message matching information stored in the callback configuration of the target control. After receiving the message, acquiring whether the message matching information of the message is consistent with the message matching information in the callback configuration, if the names are consistent, indicating that the target control receives the matched message, calling the corresponding callback behavior tree, if not, indicating that the target control receives the unmatched message, and at this time, not calling the corresponding callback behavior tree, namely not processing the message.
In addition, the embodiment of the invention also provides a computer readable storage medium. The computer readable storage medium stores a software development program, wherein the software development program, when executed by the processor, implements the steps of the software development method of any of the above embodiments.
The method for implementing the software development program when executed may refer to various embodiments of the software development method of the present invention, and will not be described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (8)

1. A software development method is characterized by comprising the following steps:
detecting an interface editing starting instruction, and starting an interface editing function according to the interface editing starting instruction;
receiving an event insertion instruction of a target control;
binding the target control with the unique identification code of the target behavior tree corresponding to the event insertion instruction according to the event insertion instruction;
detecting an interface editing ending instruction, generating an interface data file of an interface being edited according to the interface editing ending instruction, and storing the interface data file;
before the step of binding the target control with the unique identification code of the behavior tree corresponding to the event insertion instruction according to the event insertion instruction, the method further includes:
calling a behavior tree template according to the event insertion instruction;
receiving a node editing instruction which is input by a user and is based on the behavior tree template, generating a target behavior tree with a unique identification code according to the node editing instruction, and storing the target behavior tree;
the node editing instruction comprises a new message issuing node instruction, the node editing instruction which is input by a user and is based on the behavior tree template is received, a target behavior tree with a unique identification code is generated according to the node editing instruction, and the step of storing the target behavior tree comprises the following steps:
receiving a newly added message issuing node instruction which is input by a user and based on the behavior tree template;
adding a message publishing node on a target node of the behavior tree template according to the newly added message publishing node instruction, and defining message matching information of the message publishing node according to the newly added message publishing node instruction;
and generating and storing the target behavior tree.
2. The software development method according to claim 1, wherein after the step of binding the target control with the unique identification code of the behavior tree corresponding to the event insertion instruction according to the event insertion instruction, the software development method further comprises:
receiving a message subscription instruction of the target control;
and performing callback configuration on the target control according to the message subscription instruction, wherein the callback configuration comprises the message matching information and a unique identification code of a preset callback behavior tree.
3. The software development method according to claim 1 or 2, wherein before the step of detecting an interface editing end instruction, and saving the interface data file being edited according to the interface editing end instruction, the method further comprises:
receiving a property editing instruction of the target control;
and editing and storing the display information of the target control according to the attribute editing instruction, wherein the display information comprises position information of the target control on an interface, size information of the target control and background picture information.
4. The software development method according to claim 1 or 2, wherein after the step of detecting an interface editing end instruction and saving the interface data file being edited according to the interface editing end instruction, the software development method further comprises:
detecting an interface operation instruction;
loading and rendering an interface data file corresponding to the interface operation instruction according to the interface operation instruction to obtain a target interface;
receiving an event trigger instruction of a target control of the target interface;
and acquiring the unique identification code of the corresponding target behavior tree according to the event triggering instruction, and searching and executing the target behavior tree according to the unique identification code of the target behavior tree.
5. The software development method according to claim 4, wherein after the step of obtaining the unique identification code of the corresponding target behavior tree according to the event trigger instruction, and searching and executing the target behavior tree according to the unique identification code of the target behavior tree, the software development method further comprises:
detecting a message issued by a message issuing node of the target behavior tree, and issuing the message to the whole situation;
and the target control receives the message, acquires a unique identification code of a preset callback behavior tree corresponding to the message matching information of the message according to the message, and searches and executes the callback behavior tree according to the unique identification code of the callback behavior tree.
6. The software development method according to claim 5, wherein the step of receiving the message by the target control, acquiring a unique identification code of a preset callback behavior tree corresponding to the message matching information of the message according to the message, and searching and executing the callback behavior tree according to the unique identification code of the callback behavior tree comprises:
the target control receives the message;
judging whether the message matching information of the message is consistent with the message matching information in the configuration;
if the message matching information of the message is consistent with the message matching information in the callback configuration, acquiring a unique identification code of a callback behavior tree corresponding to the message matching information according to the message matching information, and searching and executing the callback behavior tree according to the unique identification code of the callback behavior tree;
and if the message matching information of the message is inconsistent with the message matching information in the configuration return, not processing the message.
7. A software development device comprising a processor, a memory, and a software development program stored on the memory and executable by the processor, wherein the software development program, when executed by the processor, implements the steps of the software development method of any one of claims 1 to 6.
8. A computer-readable storage medium, having a software development program stored thereon, wherein the software development program, when executed by a processor, implements the steps of the software development method of any one of claims 1 to 6.
CN201811047675.6A 2018-09-07 2018-09-07 Software development method, device and computer readable storage medium Active CN109271157B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811047675.6A CN109271157B (en) 2018-09-07 2018-09-07 Software development method, device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811047675.6A CN109271157B (en) 2018-09-07 2018-09-07 Software development method, device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN109271157A CN109271157A (en) 2019-01-25
CN109271157B true CN109271157B (en) 2021-09-07

Family

ID=65187552

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811047675.6A Active CN109271157B (en) 2018-09-07 2018-09-07 Software development method, device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109271157B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111984248B (en) * 2019-05-22 2023-08-25 腾讯科技(深圳)有限公司 Page editing method and device, storage medium and electronic device
CN110888628B (en) * 2019-10-12 2024-07-05 中国平安财产保险股份有限公司 Method, apparatus, device and storage medium for generating control tool
CN113590086B (en) * 2020-04-30 2023-09-12 广东中砼物联网科技有限公司 Method for rapidly developing software, computer device and storage medium
CN113391801B (en) * 2021-06-11 2024-03-01 斑马网络技术有限公司 Recommendation engine architecture based on cloud service
CN115809053A (en) * 2022-07-05 2023-03-17 武汉欧茗典科技有限公司 Modularized software development method and device, electronic equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7444622B2 (en) * 2003-08-27 2008-10-28 Microsoft Corporation Access driven filtering
CN101872322A (en) * 2009-04-27 2010-10-27 武汉大学 Method for detecting software features on basis of system requirement model
CN105094754A (en) * 2014-04-21 2015-11-25 阿里巴巴集团控股有限公司 Application development method, response method of page requests and device based on tags
CN105117575A (en) * 2015-06-17 2015-12-02 深圳市腾讯计算机系统有限公司 Behavior processing method and device
WO2017003331A1 (en) * 2015-06-30 2017-01-05 Telefonaktiebolaget Lm Ericsson (Publ) Methods and devices for handling hash-tree based data signatures
CN106815028A (en) * 2017-01-24 2017-06-09 南京创维信息技术研究院有限公司 A kind of construction method of display interface, device and operating method and device
CN107704234A (en) * 2017-08-22 2018-02-16 北京三快在线科技有限公司 Front end engineering construction method, device, electronic equipment and readable storage medium storing program for executing
CN107991895A (en) * 2017-11-28 2018-05-04 深圳市东微智能科技股份有限公司 Multi-systematic control method, apparatus, computer equipment and storage medium
CN108491192A (en) * 2018-04-01 2018-09-04 苏州汉能网络科技有限公司 A kind of development approach for software

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6514352B2 (en) * 2015-03-13 2019-05-15 株式会社スクウェア・エニックス Information processing apparatus, information processing method, non-transitory computer readable storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7444622B2 (en) * 2003-08-27 2008-10-28 Microsoft Corporation Access driven filtering
CN101872322A (en) * 2009-04-27 2010-10-27 武汉大学 Method for detecting software features on basis of system requirement model
CN105094754A (en) * 2014-04-21 2015-11-25 阿里巴巴集团控股有限公司 Application development method, response method of page requests and device based on tags
CN105117575A (en) * 2015-06-17 2015-12-02 深圳市腾讯计算机系统有限公司 Behavior processing method and device
WO2017003331A1 (en) * 2015-06-30 2017-01-05 Telefonaktiebolaget Lm Ericsson (Publ) Methods and devices for handling hash-tree based data signatures
CN106815028A (en) * 2017-01-24 2017-06-09 南京创维信息技术研究院有限公司 A kind of construction method of display interface, device and operating method and device
CN107704234A (en) * 2017-08-22 2018-02-16 北京三快在线科技有限公司 Front end engineering construction method, device, electronic equipment and readable storage medium storing program for executing
CN107991895A (en) * 2017-11-28 2018-05-04 深圳市东微智能科技股份有限公司 Multi-systematic control method, apparatus, computer equipment and storage medium
CN108491192A (en) * 2018-04-01 2018-09-04 苏州汉能网络科技有限公司 A kind of development approach for software

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Impacts of destructive factors on the product development process: The decision-tree models for software intensive projects;Nermin Sokmen;《2012 Proceedings of PICMET "12: Technology Management for Emerging Technologies》;20120917;652-660 *
基于构件/构架软件开发环境的研究与实现;徐佳;《中国优秀博硕士学位论文全文数据库(硕士)信息科技辑》;20030615;第三章 *

Also Published As

Publication number Publication date
CN109271157A (en) 2019-01-25

Similar Documents

Publication Publication Date Title
CN109271157B (en) Software development method, device and computer readable storage medium
CN111068328B (en) Game advertisement configuration form generation method, terminal equipment and medium
US20220179642A1 (en) Software code change method and apparatus
CN111209000B (en) Processing method and device of custom control, electronic equipment and storage medium
CN110705237B (en) Automatic document generation method, data processing device and storage medium
CN110750415B (en) Interface service configuration method, device, medium and computer equipment
CN110597896A (en) Data display method, data display device and terminal equipment
CN113590097B (en) API interface generation method and device, electronic equipment and storage medium
CN114741071A (en) Application construction method and device
CN107491311B (en) Method and system for generating page file and computer equipment
CN113918209A (en) Method and device for generating upgrade list and readable storage medium
CN110347454A (en) Application program theme setting method, terminal equipment control method and device, terminal device and computer readable storage medium
Hamza et al. TCAIOSC: application code conversion
CN110727416A (en) Development framework generation method and related device
CN111124386B (en) Animation event processing method, device, equipment and storage medium based on Unity
CN111078215B (en) Software product application method and device, storage medium and electronic equipment
CN115809053A (en) Modularized software development method and device, electronic equipment and storage medium
CN113806048A (en) Task execution method, device, storage medium and program product
JPH08190476A (en) Development assisting device for interactive program
CN115437627A (en) Method, device and equipment for developing learning object and storage medium
CN108762736B (en) Project branch management method, device and equipment and computer readable storage medium
CN112632444A (en) Visual website theme configuration method and device
CN113031989A (en) Method and device for realizing customized version of BIOS Setup setting item
CN111090854A (en) Target program execution and conversion method, device, terminal and storage medium
CN112835618A (en) Software configuration and integration method, electronic 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
GR01 Patent grant
GR01 Patent grant
CP02 Change in the address of a patent holder

Address after: 518000 R & D building 1601, block a, building 7, Vanke Cloud City Phase I, Xingke 1st Street, Xili community, Xili street, Nanshan District, Shenzhen City, Guangdong Province (16 / F, block a, building 1, international innovation Valley)

Patentee after: SHENZHEN TENDZONE INTELLIGENT TECHNOLOGY Co.,Ltd.

Address before: 518000 202-B, 2 floor, block C, office building, Hua Han Innovation Park, 16 Langshan Road, Nanshan District, Shenzhen, Guangdong.

Patentee before: SHENZHEN TENDZONE INTELLIGENT TECHNOLOGY Co.,Ltd.

CP02 Change in the address of a patent holder