Application program generation method and device, terminal equipment and storage medium
By determining and calling the target application interface in the autonomous driving ride-hailing application, the problems of high development costs and insufficient business logic are solved, efficient application generation is achieved, and development workload is reduced.
Patent Information
- Application Number
- CN202411222589.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-02
- Publication Date
- 2025-01-10
AI Technical Summary
When developing autonomous driving ride-hailing applications, the existing technology has problems such as high development costs and low development speed, and the generated application business logic is insufficient, which requires secondary development, resulting in an increase in development work.
By determining the automatic driving ride-hailing logic to be executed by each application control in the initial application interface, calling the target application interface corresponding to the automatic driving ride-hailing logic, writing the interface to the application control, generating the target application interface, realizing the output of the application, and avoiding the application's output Manual encoding, directly calling the interface to improve development speed and logical integrity.
It effectively reduces the development cost and workload of autonomous driving ride-hailing applications, improves development speed, ensures the business logic integrity of the application, and avoids the increase in workload caused by secondary development.
Smart Images

Figure CN119292587A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of big data technology, and in particular to an application generation method, apparatus, terminal device and storage medium. Background Art
[0002] With the rapid development of autonomous driving technology, the demand for corresponding human-computer interaction is increasing.
[0003] At present, most software companies will deploy different teams to deal with the development needs of autonomous driving ride-hailing applications for different hardware manufacturers, but this operation requires high programming skills from developers, and there are problems of high development costs and low development speed. Based on this problem, it is also conventional to generate autonomous driving ride-hailing applications through some codeless programming and low-code programming tools. Although this operation can avoid the problems of high development costs and low development speed, the generated autonomous driving ride-hailing applications lack business logic and require secondary development, which increases the development workload. Summary of the invention
[0004] The main purpose of this application is to provide an application generation method, apparatus, terminal device and storage medium, aiming to solve the technical problem of how to reduce the development workload while avoiding high development costs and low development speed.
[0005] To achieve the above purpose, the present application proposes an application generation method, which includes:
[0006] Determine the autonomous driving ride-hailing logic to be executed by each application control in the initial application interface;
[0007] Calling a first target application interface corresponding to the autonomous driving ride-hailing logic, writing the first target application interface into an application control to which the autonomous driving ride-hailing logic corresponding to the first target application interface belongs, and obtaining a target application interface, wherein the first target application interface set has functions required to execute the autonomous driving ride-hailing logic;
[0008] Output the target application interface as an application program.
[0009] In one embodiment, before the step of determining the autonomous driving ride-hailing logic to be executed by each application control in the initial application interface, the following steps are included:
[0010] According to the interface design requirement information, determine the attribute information corresponding to each target element on the interactive interface, and place a number of application controls at the target interface of the interactive interface;
[0011] Configure application events for each application control and determine the corresponding autonomous driving ride-hailing logic based on the application events.
[0012] In one embodiment, before the step of calling the first target application interface corresponding to the autonomous driving ride-hailing logic, the step includes:
[0013] Get multiple functions required to run the autonomous driving ride-hailing business on each running software;
[0014] According to the operational logics that can be realized by each function and the operational software required by each function to realize the corresponding operational logic, each function is classified and packaged to obtain multiple application interfaces.
[0015] In one embodiment, the running software includes first running software running on a computer and second running software running on a mobile phone, and the step of calling a first target application interface corresponding to the autonomous driving ride-hailing logic includes:
[0016] In the case where the initial application interface is for display on a computer, among multiple application interfaces, the first target application interface that needs to be run on the first running software and belongs to the running logic corresponding to the autonomous driving ride-hailing logic is called; or, in the case where the initial application interface is for display on a mobile phone, among multiple application interfaces, the first target application interface that needs to be run on the second running software and belongs to the running logic corresponding to the autonomous driving ride-hailing logic is called.
[0017] In one embodiment, after the step of writing the first target application interface into the application control to which the autonomous driving ride-hailing logic corresponding to the first target application interface belongs, the method includes:
[0018] Call the logic configuration file required to execute the autonomous driving ride-hailing logic, and write the logic configuration file to the application control to which the autonomous driving ride-hailing logic corresponding to the logic configuration file belongs.
[0019] In one embodiment, before the step of outputting the target application interface as an application program, the following steps are included:
[0020] Send a startup instruction to each application control, and collect the response logic of each application control after entering the running state in response to the startup instruction;
[0021] Determine whether each response logic is the autonomous driving ride-hailing logic to be executed by the application control to which each response logic belongs;
[0022] If yes, the step of outputting the target application interface as an application program is executed.
[0023] In one embodiment, after the step of outputting the target application interface as an application program, the following steps are included:
[0024] Based on the control logic modification instruction, after determining the application control to be modified in each application control, delete the first target application interface on the application control to be modified, and obtain the new autonomous driving ride-hailing logic of the application control to be modified;
[0025] Among multiple application interfaces, the second target application interface corresponding to the new autonomous driving ride-hailing logic is called, and the second target application interface is written into the application control to which the new autonomous driving ride-hailing logic corresponding to the second target application interface belongs.
[0026] In addition, to achieve the above purpose, the present application also proposes an application generation device, the application generation device comprising:
[0027] A logic determination module, used to determine the autonomous driving ride-hailing logic to be executed by each application control in the initial application interface;
[0028] An interface calling module is used to call a first target application interface corresponding to the autonomous driving ride-hailing logic, write the first target application interface into an application control to which the autonomous driving ride-hailing logic corresponding to the first target application interface belongs, and obtain a target application interface, wherein the first target application interface set has functions required to execute the autonomous driving ride-hailing logic;
[0029] The output module is used to output the target application interface as an application program.
[0030] In addition, to achieve the above-mentioned purpose, the present application also proposes a terminal device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the application generation method as described above.
[0031] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the application generation method described above are implemented.
[0032] One or more technical solutions proposed in this application have at least the following technical effects:
[0033] A method for generating an application is proposed, comprising determining the autonomous driving taxi-hailing logic to be executed by each application control in an initial application interface; calling a first target application interface corresponding to the autonomous driving taxi-hailing logic, writing the first target application interface into the application control to which the autonomous driving taxi-hailing logic corresponding to the first target application interface belongs, and obtaining a target application interface, wherein the first target application interface set has functions required for executing the autonomous driving taxi-hailing logic, outputting the target application interface as an application, and directly writing the corresponding first target application interface on the corresponding application control to directly call the corresponding first target application interface when starting the application control, thereby avoiding the high development cost of manually writing code for the application control, and greatly improving the development speed of the autonomous driving taxi-hailing application. At the same time, because the first target interface set has the functions required for executing the autonomous driving taxi-hailing logic, the function is a complete business logic, thereby avoiding the increase in development workload due to insufficient business logic. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0035] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0036] Figure 1 A flowchart of the first embodiment of the method for generating an application program of the present application is provided;
[0037] Figure 2 A flowchart of the second embodiment of the method for generating an application program of the present application is provided;
[0038] Figure 3 A brief flowchart of the application generation method provided for this application;
[0039] Figure 4 This is a schematic diagram of the module structure of the application generating device according to an embodiment of the present application;
[0040] Figure 5 A schematic diagram of the device structure of the hardware operating environment involved in the application generation method in the embodiment of the present application.
[0041] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0042] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0043] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0044] The main solution of the embodiment of the present application is: determine the autonomous driving taxi-hailing logic to be executed by each application control in the initial application interface, call the first target application interface corresponding to the autonomous driving taxi-hailing logic, write the first target application interface into the application control to which the autonomous driving taxi-hailing logic corresponding to the first target application interface belongs, and obtain the target application interface, wherein the first target application interface set has the functions required to execute the autonomous driving taxi-hailing logic, and output the target application interface as an application.
[0045] At present, most software companies will deploy different teams to deal with the development needs of autonomous driving ride-hailing applications of different hardware manufacturers, but this operation requires high programming skills of developers, and there are problems of high development costs and low development speed. Based on this problem, it is also conventional to generate autonomous driving ride-hailing applications through some codeless programming and low-code programming tools. Although this operation can avoid the problems of high development costs and low development speed, the generated autonomous driving ride-hailing applications lack business logic and require secondary development, which increases the development workload.
[0046] The present application provides a solution, which realizes that when the application control is started, the corresponding first target application interface is directly called by directly writing the corresponding first target application interface on the corresponding application control, thereby avoiding the high development cost of manually writing code for the application control, greatly improving the development speed of the autonomous driving ride-hailing application. At the same time, because the first target interface set has the functions required to execute the autonomous driving ride-hailing logic, the function is a complete business logic, which avoids the increase in development workload caused by insufficient business logic.
[0047] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device, a terminal device, etc. that can realize the above functions. The following terminal device is taken as an example to illustrate this embodiment and the following embodiments.
[0048] Based on this, the present application embodiment provides a method for generating an application program, referring to Figure 1 , Figure 1 This is a flowchart of the first embodiment of the application generation method of the present application.
[0049] In this embodiment, the application generation method includes steps S10 to S30:
[0050] Step S10, determining the autonomous driving ride-hailing logic to be executed by each application control in the initial application interface.
[0051] In conventional application generation schemes, applications are mostly generated through two generation schemes. The first is that developers develop and build codes through Flutter (a cross-platform application development framework) to generate corresponding applications; the second is that relevant personnel directly generate simple applications through some low-code or no-code programming platforms. Among them, the first scheme requires developers to have certain programming knowledge and require developers to manually develop and build, which has high development costs and slow development speed. The simple applications generated by the second scheme are not enough to support the current human-computer interaction needs, and there is a problem of increased development workload caused by the need for secondary development.
[0052] Therefore, based on the above problems, this embodiment proposes a solution to improve the development speed while avoiding the increase of development cost and development workload, which is described in detail as follows:
[0053] First, determine the logic related to the autonomous driving ride-hailing business to be executed by each application control on the initial application interface generated by UI design, that is, the autonomous driving ride-hailing logic, so that each application control can be configured later to ensure the accuracy of the configuration and avoid the failure of the application to run due to configuration errors.
[0054] In a feasible implementation manner, before step S10, steps A11 to A12 may also be included:
[0055] Step S11, determining the attribute information corresponding to each target element on the interactive interface according to the interface design requirement information, and placing a number of application controls at the target interface of the interactive interface.
[0056] Step S12: configure application events of each application control, and determine the corresponding autonomous driving ride-hailing logic based on the application events.
[0057] It should be noted that, in this embodiment, the initial application interface is generated through UI design.
[0058] Specifically, after determining the interface design requirement information corresponding to the autonomous driving ride-hailing application that needs to be generated, on the interactive interface corresponding to the UI design, the color, text and other attribute information on the target elements such as the interface panel, interface menu, application control icon, scroll bar, interface column, or status bar attribute interface are designed according to the interface design requirement information, and then the application controls with the designed attribute information are placed at the target interface of the interactive interface, so that the output target application interface can visually meet the interface design requirement information.
[0059] At this time, the application events of each application control are configured according to the text information designed for each application control. For example, if the text information of a certain application control is the boarding location, the application event corresponding to the application control is that when the application control is triggered, it will recommend nearby boarding locations and output information to prompt the user to enter the boarding location.
[0060] After determining the application event corresponding to the application control, the corresponding autonomous driving taxi-hailing logic needs to be determined based on the application event. For example, if the application event corresponding to a certain application control is that when the application control is triggered, it will recommend nearby pick-up locations and output information prompting the user to enter the pick-up location, then the autonomous driving taxi-hailing logic corresponding to the application event is determined to be that after detecting that the application control is triggered, it searches for nearby pick-up locations and recommends them, and generates output information prompting the user to enter the pick-up location. In this way, the autonomous driving taxi-hailing logic corresponding to each application control is determined to avoid the situation where the application control is triggered incorrectly due to the inconsistent attribute information of the target application interface that is subsequently written to each application control.
[0061] Step S20, calling the first target application interface corresponding to the autonomous driving ride-hailing logic, writing the first target application interface into the application control to which the autonomous driving ride-hailing logic corresponding to the first target application interface belongs, and obtaining the target application interface, wherein the first target application interface set has the functions required to execute the autonomous driving ride-hailing logic.
[0062] It should be noted that this embodiment classifies and encapsulates the functions related to the autonomous driving ride-hailing logic into an application interface in advance, so that when the function corresponding to the autonomous driving ride-hailing logic is needed later, the step of manual code programming can be skipped, and the function can be directly called directly through the call of the corresponding application interface. Because the function is encapsulated by the code that can implement the corresponding autonomous driving ride-hailing logic and can be used multiple times in the program, the direct call of the application interface can not only ensure the application development speed, avoid the situation where repeated code needs to be repeatedly developed, and reduce the amount of code development, but also ensure the integrity of the autonomous driving ride-hailing business logic and avoid the increase in development workload caused by secondary development.
[0063] Among them, step S10 to step S30 are steps for generating an application program, so the first target application interface in this embodiment is an application interface that needs to be written into the application control before generating and outputting an executable application program.
[0064] Specifically, after determining through step S10 that each application control on the initial application interface corresponds to the autonomous driving ride-hailing logic to be executed, the application interface to which the function corresponding to the autonomous driving ride-hailing logic belongs is called among the encapsulated multiple application interfaces, and after the application interface is determined as the first target application interface, the first target application interface is directly written to the application control to which the autonomous driving ride-hailing logic belongs, so that when the application control is triggered, the function on the first target application interface is directly called and run through the written first target application interface, thereby executing the corresponding autonomous driving ride-hailing logic.
[0065] In a feasible implementation manner, before step S20, steps B11 to B12 may also be included:
[0066] Step B11, obtaining multiple functions required to run the autonomous driving ride-hailing service on each running software.
[0067] It should be noted that the autonomous driving ride-hailing service refers to all the autonomous driving ride-hailing logic that needs to be executed in the application that needs to be generated, and the running software includes a first running software running on the computer side and a second running software running on the mobile phone side. Because the operating systems between different sides are different, there are differences in the corresponding required function contents. Therefore, in order to adapt to the generation of applications running on various running software, this embodiment will obtain multiple functions required to run the autonomous driving ride-hailing service on different running software, so that the subsequently generated application interface can facilitate the design of applications running on different running software.
[0068] Step B12, classify and package each function according to the operational logics that can be implemented by each function and the operational software required for each function to implement the corresponding operational logic, and obtain multiple application interfaces.
[0069] Specifically, after determining that each acquired function corresponds to the achievable operating logic and the operating software required to implement the operating logic, each function is classified and packaged into a corresponding application interface.
[0070] For example, if the running logic of a function is capable of triggering a taxi-hailing service, and the function can only be run on the first running software, then the function will be classified into the first application interface library of the first running software, and the function will be encapsulated into an application interface that triggers the taxi-hailing service; if a function can trigger an alarm service, and the function can only be run on the second running software, then the function will be classified into the second application interface library of the second running software, and the function will be encapsulated into an application interface that can trigger the alarm service.
[0071] In a feasible implementation, step S20 may include step S21:
[0072] Step S21, when the initial application interface is used for display on a computer, among multiple application interfaces, call the first target application interface that needs to be run on the first running software and belongs to the running logic corresponding to the autonomous driving car-hailing logic.
[0073] Assuming that the generated application control is running on the first running software, and the application event of the autonomous driving ride-hailing logic corresponding to the application control is that when the application control is triggered, an order notification will be sent to nearby vehicles that can accept orders. Then the application interface whose running logic is to trigger the ride-hailing service in the first application interface library can be determined as the first target application interface and written into the application control.
[0074] It should be noted that, in this implementation, the calling of the first target application interface is executed on the QT platform.
[0075] In another feasible implementation, step S20 may further include step S22:
[0076] Step S22, when the initial application interface is for display on a mobile phone, call the first target application interface among multiple application interfaces, which belongs to the operating logic that needs to be run on the second operating software and corresponds to the autonomous driving taxi-hailing logic.
[0077] Assuming that the generated application control is running on the second running software, and the application event of the autonomous driving ride-hailing logic corresponding to the application control is that when the application control is triggered, it will automatically send an alarm signal and make an alarm call, then the application interface with the running logic for triggering the alarm service in the second application interface library can be determined as the first target application interface and written into the application control.
[0078] It should be noted that, because the second running software is the running software on the mobile phone, and the running software corresponding to mobile phones of different brands on the market is different, in order to ensure that the generated application will not be excluded by the running software, this embodiment proposes a cross-platform function supported by QT (a cross-platform application development framework), which is conducive to the QT pre-compilation instruction to call the first target application interface, so that the called first target application interface can run normally on different second running software, that is, the overall autonomous driving car-hailing logic composed of all the first target application interfaces called by QT is a set of H5 (fifth-generation hypertext markup language) code logic, which can support different second running software.
[0079] In a feasible implementation manner, step S20 may further include step S23:
[0080] Step S23, call the logic configuration file required to execute the autonomous driving ride-hailing logic, and write the logic configuration file to the application control to which the autonomous driving ride-hailing logic corresponding to the logic configuration file belongs.
[0081] The logic configuration file is the application interface calling rules. The application interface calling rules provide channels between different development environments. Some sensitive information on mobile phones / computers that cannot be directly called by other development environments can be called through other development environments-native pages-sensitive information on mobile phones / computers. This solves the problem of calling sensitive information on mobile phones / computers in a mixed development environment, so that when the application control is triggered, the function of the application interface written to the application control can be called normally, ensuring the normal execution of the corresponding autonomous driving ride-hailing logic.
[0082] Step S30: output the target application interface as an application program.
[0083] After the write operation of the first target application interface is executed on each application control on the initial application interface, the triggering of the application control at this time can execute the corresponding autonomous driving taxi-hailing logic. Therefore, the current initial application interface can be directly determined as the target application interface, and the target application interface can be packaged and output as an autonomous driving taxi-hailing application.
[0084] In a feasible implementation manner, step S30 may include steps S31 to S33:
[0085] Step S31, sending a start instruction to each application control, and collecting the response logic of each application control after entering the running state in response to the start instruction.
[0086] Step S32, determining whether each response logic is the autonomous driving taxi-hailing logic to be executed by the application control to which each response logic belongs.
[0087] Step S33: If yes, then execute the step of outputting the target application interface as an application program.
[0088] In order to ensure that the output application can normally execute the corresponding autonomous driving ride-hailing logic and avoid operational confusion, this embodiment also sets a verification stage.
[0089] Before outputting the target application interface as an application program, each application control in the obtained target application interface is verified to verify whether the first target application interface written in each application control is correct.
[0090] Specifically, after sending a startup instruction to each application control, the response logic of each application control after responding to the startup instruction and entering the running state is collected to determine whether each response logic can correspond to the autonomous driving taxi-hailing logic to be executed by the application control to which it belongs. If each response logic can correspond to the autonomous driving taxi-hailing logic to be executed by the application control to which it belongs, it means that there is no operation disorder of the application controls in the target application interface. At this time, the target application interface can be packaged and output as an application.
[0091] If any one or more response logics cannot correspond to the autonomous driving ride-hailing logic to be executed by the application control to which they belong, it means that there is a write error in the first target application interface written into the application control. At this time, the application control with the write error needs to be rewritten, that is, the first target application interface in the application control is deleted, and the first target application interface is called and written again in the corresponding application interface library, and then a new round of verification is performed until the results of verification of all application controls are obtained.
[0092] In this embodiment, the autonomous driving taxi-hailing logic to be executed by each application control in the initial application interface is determined; the first target application interface corresponding to the autonomous driving taxi-hailing logic is called, and the first target application interface is written into the application control to which the autonomous driving taxi-hailing logic corresponding to the first target application interface belongs, to obtain the target application interface, wherein the first target application interface set has the functions required to execute the autonomous driving taxi-hailing logic, and the target application interface is output as an application, and the corresponding first target application interface is directly written to the corresponding application control, so that when the application control is started, the corresponding first target application interface is directly called, thereby avoiding the high development cost of manually writing code for the application control, and greatly improving the development speed of the autonomous driving taxi-hailing application. At the same time, because the first target interface set has the functions required to execute the autonomous driving taxi-hailing logic, the function is a complete business logic, which avoids the increase in development workload due to insufficient business logic.
[0093] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 2 After step S30, the application generation method further includes steps S41 to S42:
[0094] Step S41, based on the control logic modification instruction, after determining the application control to be modified in each application control, delete the first target application interface on the application control to be modified, and obtain the new autonomous driving ride-hailing logic of the application control to be modified.
[0095] If at this time there is a need to modify or update the autonomous driving taxi-hailing logic of the application control on the already output application, then directly based on the modification or update requirements, generate the corresponding control logic modification instruction, respond to the control logic modification instruction, obtain the application control to be modified that needs to be modified or updated in each application control, delete the first target application interface previously written to the application control to be modified, and at the same time determine the autonomous driving taxi-hailing logic after the modification of the application control to be modified according to the control logic modification instruction, that is, the new autonomous driving taxi-hailing logic, so that the new application interface can be called in the corresponding application interface library for writing according to the self-driving taxi-hailing logic, thereby realizing quick modification or update of the application control.
[0096] Step S42: Call the second target application interface corresponding to the new autonomous driving ride-hailing logic among multiple application interfaces, and write the second target application interface into the application control to which the new autonomous driving ride-hailing logic corresponding to the second target application interface belongs.
[0097] It should be noted that the second target application interface in this embodiment is an application interface that needs to be rewritten for the application control that needs to be modified or updated after the executable application is generated and output.
[0098] The calling and writing operations of the second target application interface are the same as those of the first target application interface, in that the application interface corresponding to the new autonomous driving ride-hailing logic is called in the corresponding application interface library, and after the application interface is determined as the second target application interface, the second target application interface is directly written into the corresponding application control, thereby realizing quick update or modification of the application control and avoiding the conventional phenomenon of long application update or modification time that requires re-code programming.
[0099] In this embodiment, based on the control logic modification instruction, after the application control to be modified is determined in each application control, the first target application interface on the application control to be modified is deleted, and the new autonomous driving taxi-hailing logic of the application control to be modified is obtained. Among multiple application interfaces, the second target application interface corresponding to the new autonomous driving taxi-hailing logic is called, and the second target application interface is written into the application control to which the new autonomous driving taxi-hailing logic corresponding to the second target application interface belongs, so as to realize quick update or modification of the application control.
[0100] For example, to help understand the implementation process of the application generation method obtained by combining this embodiment with the above-mentioned embodiment 1, please refer to Figure 3 , Figure 3 A brief flowchart of an application generation method is provided, specifically:
[0101] After designing the initial application interface through the UI design interface, determine the autonomous driving ride-hailing logic to be executed by each application control on the initial application interface (i.e. Figure 3 In step S1), when the initial application interface is used for display on the computer, the first target application interface running on the first running software is called by QT and written into the corresponding application control to form a set of PC (Personal Computer) code logic (i.e. Figure 3 Step S2 in the above); when the initial application interface is used for display on the mobile phone, the first target application interface running on the second running software is called by QT and written into the corresponding application control to form a set of H5 code logic applied to the second running software (i.e. Figure 3 In step S3), after determining that each application control is correctly written into the corresponding first target application interface, the initial application interface at this time is determined as the target application interface, and the target application interface is packaged and output as an application program (i.e. Figure 3 Step S4 in ).
[0102] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the application generation method of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.
[0103] This application also provides an application generation device, please refer to Figure 4 , the application generating device comprises:
[0104] A logic determination module 10, used to determine the autonomous driving ride-hailing logic to be executed by each application control in the initial application interface;
[0105] The interface calling module 20 is used to call the first target application interface corresponding to the autonomous driving ride-hailing logic, write the first target application interface into the application control to which the autonomous driving ride-hailing logic corresponding to the first target application interface belongs, and obtain the target application interface, wherein the first target application interface set has the functions required to execute the autonomous driving ride-hailing logic;
[0106] The output module 30 is used to output the target application interface as an application program.
[0107] The application program generating device further comprises an interface design module 40, which is used for:
[0108] According to the interface design requirement information, determine the attribute information corresponding to each target element on the interactive interface, and place a number of application controls at the target interface of the interactive interface;
[0109] Configure application events for each application control and determine the corresponding autonomous driving ride-hailing logic based on the application events.
[0110] The application program generating device further comprises an interface generating module 50, which is used for:
[0111] Get multiple functions required to run the autonomous driving ride-hailing business on each running software;
[0112] According to the operational logics that can be realized by each function and the operational software required by each function to realize the corresponding operational logic, each function is classified and packaged to obtain multiple application interfaces.
[0113] Furthermore, the interface calling module 20 is also used for:
[0114] In the case where the initial application interface is for display on a computer, among multiple application interfaces, the first target application interface that needs to be run on the first running software and belongs to the running logic corresponding to the autonomous driving ride-hailing logic is called; or, in the case where the initial application interface is for display on a mobile phone, among multiple application interfaces, the first target application interface that needs to be run on the second running software and belongs to the running logic corresponding to the autonomous driving ride-hailing logic is called.
[0115] The application program generating device further comprises a file configuration module 60, which is used to:
[0116] Call the logic configuration file required to execute the autonomous driving ride-hailing logic, and write the logic configuration file to the application control to which the autonomous driving ride-hailing logic corresponding to the logic configuration file belongs.
[0117] Furthermore, the output module 30 is also used for:
[0118] Send a startup instruction to each application control, and collect the response logic of each application control after entering the running state in response to the startup instruction;
[0119] Determine whether each response logic is the autonomous driving ride-hailing logic to be executed by the application control to which each response logic belongs;
[0120] If yes, the step of outputting the target application interface as an application program is executed.
[0121] The application program generating device further comprises an interface modifying module 70, which is used to:
[0122] Based on the control logic modification instruction, after determining the application control to be modified in each application control, delete the first target application interface on the application control to be modified, and obtain the new autonomous driving ride-hailing logic of the application control to be modified;
[0123] Among multiple application interfaces, the second target application interface corresponding to the new autonomous driving ride-hailing logic is called, and the second target application interface is written into the application control to which the new autonomous driving ride-hailing logic corresponding to the second target application interface belongs.
[0124] The application generation device provided by the present application adopts the application generation method in the above embodiment, which can solve the technical problem of how to reduce the development workload while avoiding high development costs and low development speed. Compared with the prior art, the beneficial effects of the application generation device provided by the present application are the same as the beneficial effects of the application generation method provided by the above embodiment, and other technical features in the application generation device are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0125] The present application provides a terminal device, which includes: at least one processor; and a memory that is communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the application generation method in the above-mentioned embodiment one.
[0126] Reference below Figure 5 , which shows a schematic diagram of the structure of a terminal device suitable for implementing the embodiments of the present application. The terminal device in the embodiments of the present application may include but is not limited to mobile terminals such as laptop computers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 5 The terminal device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0127] like Figure 5 As shown, the terminal device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the terminal device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the terminal device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows a terminal device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or provided instead.
[0128] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0129] The terminal device provided by the present application adopts the application generation method in the above embodiment to solve the technical problem. Compared with the prior art, the beneficial effects of the terminal device provided by the present application are the same as the beneficial effects of the application generation method provided by the above embodiment, and the other technical features in the terminal device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0130] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0131] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0132] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the application generation method in the above-mentioned embodiment.
[0133] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM: Random Access Memory), a read-only memory (ROM: Read Only Memory), an erasable programmable read-only memory (EPROM: Erasable Programmable Read Only Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency: Radio Frequency), etc., or any suitable combination of the above.
[0134] The computer-readable storage medium may be included in the terminal device; or may exist independently without being installed in the terminal device.
[0135] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the terminal device, the terminal device: determines the autonomous driving taxi-hailing logic to be executed by each application control in the initial application interface; calls the first target application interface corresponding to the autonomous driving taxi-hailing logic, writes the first target application interface into the application control to which the autonomous driving taxi-hailing logic corresponding to the first target application interface belongs, and obtains the target application interface, wherein the first target application interface set has the functions required to execute the autonomous driving taxi-hailing logic; and outputs the target application interface as an application.
[0136] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0137] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0138] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0139] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned application generation method, and can solve the technical problem of how to reduce the development workload while avoiding high development costs and low development speeds. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the application generation method provided by the above-mentioned embodiment, and will not be repeated here.
[0140] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A method for generating an application, characterized in that: The application generation method comprises: Determine the autonomous driving ride-hailing logic to be executed by each application control in the initial application interface; Calling a first target application interface corresponding to the autonomous driving ride-hailing logic, writing the first target application interface into an application control to which the autonomous driving ride-hailing logic corresponding to the first target application interface belongs, and obtaining a target application interface, wherein the first target application interface set includes functions required to execute the autonomous driving ride-hailing logic; The target application interface is output as an application program.
2. The application generation method according to claim 1, characterized in that: Before the step of determining the autonomous driving ride-hailing logic to be executed by each application control in the initial application interface, the method includes: According to the interface design requirement information, determine the attribute information corresponding to each target element on the interactive interface, and place a number of application controls at the target interface of the interactive interface; Configure application events for each of the application controls, and determine corresponding autonomous driving ride-hailing logic based on the application events.
3. The application generation method according to claim 1, characterized in that: Before the step of calling the first target application interface corresponding to the autonomous driving ride-hailing logic, the method includes: Get multiple functions required to run the autonomous driving ride-hailing business on each running software; According to the operational logics that can be realized by each function and the operational software required by each function to realize the corresponding operational logic, each function is classified and packaged to obtain a plurality of application interfaces.
4. The application generation method according to claim 3, characterized in that: The running software includes a first running software running on a computer and a second running software running on a mobile phone, and the step of calling a first target application interface corresponding to the autonomous driving ride-hailing logic includes: In the case where the initial application interface is for display on a computer, among the multiple application interfaces, the first target application interface to which the operating logic that needs to be run on the first operating software and corresponds to the autonomous driving ride-hailing logic belongs is called; or In the case where the initial application interface is used for display on a mobile phone, among the multiple application interfaces, the first target application interface that belongs to the operating logic that needs to be run on the second operating software and corresponds to the autonomous driving ride-hailing logic is called.
5. The application generation method according to claim 1, characterized in that: After the step of writing the first target application interface into the application control to which the autonomous driving ride-hailing logic corresponding to the first target application interface belongs, the step includes: Call the logic configuration file required to execute the autonomous driving ride-hailing logic, and write the logic configuration file to the application control to which the autonomous driving ride-hailing logic corresponding to the logic configuration file belongs.
6. The application generation method according to claim 1, characterized in that: Before the step of outputting the target application interface as an application program, the method further comprises: Sending a startup instruction to each of the application controls, and collecting response logic after each of the application controls enters a running state in response to the startup instruction; Determine whether each of the response logics is the autonomous driving ride-hailing logic to be executed by the application control to which each of the response logics belongs; If yes, the step of outputting the target application interface as an application program is executed.
7. The application generation method according to claim 3, characterized in that: After the step of outputting the target application interface as an application program, the method further comprises: Based on the control logic modification instruction, after determining the application control to be modified in each of the application controls, delete the first target application interface on the application control to be modified, and obtain the new autonomous driving ride-hailing logic of the application control to be modified; Among the multiple application interfaces, the second target application interface corresponding to the new autonomous driving ride-hailing logic is called, and the second target application interface is written into the application control to which the new autonomous driving ride-hailing logic corresponding to the second target application interface belongs.
8. An application generation device, characterized in that: The application generating device comprises: A logic determination module, used to determine the autonomous driving ride-hailing logic to be executed by each application control in the initial application interface; An interface calling module, used to call a first target application interface corresponding to the autonomous driving ride-hailing logic, write the first target application interface into an application control to which the autonomous driving ride-hailing logic corresponding to the first target application interface belongs, and obtain a target application interface, wherein the first target application interface set has functions required to execute the autonomous driving ride-hailing logic; An output module is used to output the target application interface as an application program.
9. A terminal device, characterized in that: The terminal device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the application generation method according to any one of claims 1 to 7.
10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the application generation method according to any one of claims 1 to 7 are implemented.