CN111666100A - Software framework generation method and device, electronic equipment and storage medium - Google Patents

Software framework generation method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111666100A
CN111666100A CN202010400319.9A CN202010400319A CN111666100A CN 111666100 A CN111666100 A CN 111666100A CN 202010400319 A CN202010400319 A CN 202010400319A CN 111666100 A CN111666100 A CN 111666100A
Authority
CN
China
Prior art keywords
module
software framework
module structure
text information
node template
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.)
Granted
Application number
CN202010400319.9A
Other languages
Chinese (zh)
Other versions
CN111666100B (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 Ideamake Technology Co Ltd
Original Assignee
Shenzhen Ideamake 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 Ideamake Technology Co Ltd filed Critical Shenzhen Ideamake Technology Co Ltd
Priority to CN202010400319.9A priority Critical patent/CN111666100B/en
Publication of CN111666100A publication Critical patent/CN111666100A/en
Application granted granted Critical
Publication of CN111666100B publication Critical patent/CN111666100B/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/70Software maintenance or management
    • G06F8/73Program documentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Abstract

The application provides a software framework generation method, a software framework generation device, electronic equipment and a storage medium, wherein the method comprises the following steps: receiving directory text information input by a user, wherein the directory text information contains a module structure recorded according to a structure hierarchical relationship; matching corresponding node templates for the module structures according to the structure hierarchical relation among the module structures in the directory text information; and according to the module structure, configuring the node template corresponding to the module structure to generate a software framework corresponding to the directory text information. According to the method, the software framework can be automatically generated by simply inputting the catalogue text according to the structural hierarchy, and any person can operate the software framework, so that the technical threshold for building the software framework is reduced. The node template in the method has no function, and the corresponding function is given to the node template by the module structure text, so that the coupling between the node template and the software framework is low, and the design requirements of various customized software frameworks can be flexibly responded.

Description

Software framework generation method and device, electronic equipment and storage medium
Technical Field
The application belongs to the technical field of internet, and particularly relates to a software framework generation method and device, an electronic device and a storage medium.
Background
In the existing software framework generation technology, a developer is generally required to write codes and build a file path structure aiming at a project structure to generate a software framework in a software development process. However, a software framework manually written based on a project structure is easily affected by the technical level and operation habit of a developer, and has problems of low maintainability, low development efficiency, and easy occurrence of resource storage confusion. At present, methods for developing and generating a software framework by using a fixed template are provided for improving the development efficiency, however, the software framework built by using the fixed template has too high coupling with resources, the framework is rigid, the processing condition is single, the customized requirement is difficult to process, and the condition of variable requirements cannot be quickly responded.
Disclosure of Invention
In view of this, embodiments of the present application provide a software framework generation method, an apparatus, an electronic device, and a storage medium, which can reduce a technical threshold for building a software framework and flexibly respond to design requirements of various customized software frameworks.
A first aspect of an embodiment of the present application provides a software framework generation method, including:
receiving directory text information input by a user, wherein the directory text information contains a module structure recorded according to a structure hierarchical relationship;
matching corresponding node templates for the module structures according to the structure hierarchy relationship among the module structures in the directory text information;
and according to the module structure, configuring the node template corresponding to the module structure to generate a software framework corresponding to the directory text information.
With reference to the first aspect, in a first possible implementation manner of the first aspect, the node templates include a parent node template and a child node template, where the parent node template defines a configuration manner among all nodes stored in a parent node, and the child node template defines a configuration manner of a child node itself.
With reference to the first aspect or the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, the step of matching, according to a structure hierarchy relationship between each module structure in the directory text information, a corresponding node template for the module structure includes:
traversing the directory text information, and judging whether a module structure in the directory text information has a lower-level module structure;
and if the module structure has a lower-level module structure, matching the module structure with a father node template, otherwise, matching the module structure with a child node template.
With reference to the second possible implementation manner of the first aspect, in a third possible implementation manner of the first aspect, after the step of matching, according to the structure hierarchy relationship between the module structures in the directory text information, the module structure with the corresponding node template, the method further includes:
naming a node template to enable the node template to have corresponding naming information;
the step of configuring the node template corresponding to the module structure according to the module structure to generate the software framework corresponding to the directory text information further includes:
and generating a navigation menu corresponding to the software frame by adopting the naming information corresponding to the node template in combination with the configuration and layout of the father node template in the software frame.
With reference to the first aspect, in a fourth possible implementation manner of the first aspect, after the step of matching, according to a structure hierarchy relationship between each module structure in the directory text information, a corresponding node template for the module structure, the method further includes:
identifying a module type corresponding to the module structure;
acquiring a display form configuration file corresponding to the module type from a preset display form configuration library;
and applying the display form configuration file to the node template matched with the module structure.
With reference to the fourth possible implementation manner of the first aspect, in a fifth possible implementation manner of the first aspect, before the step of identifying a module type corresponding to a module structure, the method further includes:
and dividing the module types, designing corresponding display form configuration files for the module types and storing the display form configuration files in a preset display form configuration library.
With reference to the fourth possible implementation manner of the first aspect, in a sixth possible implementation manner of the first aspect, the presentation form configuration file includes one or more of the following: the layout mode of the module structure in the software framework, the attribute of the module structure and the interaction mode of the module structure in the software framework.
A second aspect of an embodiment of the present application provides a software framework generation apparatus, including:
the receiving module is used for receiving the directory text information input by the user, wherein the directory text information contains a module structure recorded according to the structure hierarchical relationship;
the matching module is used for matching the module structures with corresponding node templates according to the structure hierarchy relationship among the module structures in the directory text information;
and the generating module is used for configuring the node template corresponding to the module structure according to the module structure and generating a software framework corresponding to the directory text information.
A third aspect of embodiments of the present application provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the software framework generation method according to any one of the first aspect when executing the computer program.
A fourth aspect of embodiments of the present application provides a computer-readable storage medium, which stores a computer program, and the computer program, when executed by a processor, implements the steps of the software framework generation method according to any one of the first aspect.
Compared with the prior art, the embodiment of the application has the advantages that:
according to the method and the device, the software framework can be automatically generated by simply inputting the catalogue text according to the structural hierarchy, and any person can operate, so that the technical threshold for building the software framework is reduced. Moreover, the node template does not have any function, and after the node template is matched with the module structure text according to the structure hierarchy, the incidence relation among the module structures in the built software framework is determined according to the configuration and the layout of a father node template; the module structure text is configured into the corresponding matched node template, so that the corresponding function given to the node template by the module structure text is realized. The node template has low coupling with the software framework, and can flexibly respond to the design requirements of various customized software frameworks.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic flowchart of a basic method of a software framework generation method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a method for matching node templates for module structures in a software framework generation method according to an embodiment of the present application;
fig. 3 is a schematic flowchart of a method for generating a navigation menu in a software framework generation method according to an embodiment of the present application;
fig. 4 is a schematic flowchart of a method for configuring a presentation form for a node template in a software framework generation method according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a software framework generating apparatus according to an embodiment of the present application;
fig. 6 is a schematic view of an electronic device implementing a software framework generation method according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to" determining "or" in response to detecting ". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
Furthermore, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used for distinguishing between descriptions and not necessarily for describing or implying relative importance.
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
In order to explain the technical solution described in the present application, the following description will be given by way of specific examples.
The software framework generation tool capable of flexibly responding to various customization design requirements is provided for various products of various developers when the software framework is customized, the tool can be operated by anyone, the framework hierarchy is input in a relatively simple mode to automatically generate the software framework, repeated and complicated code compiling work and file path structure building work are reduced, software development efficiency is improved, and meanwhile, the technical threshold for building the software framework is also reduced.
In some embodiments of the present application, please refer to fig. 1, and fig. 1 is a basic method flowchart of a software framework generation method provided in the embodiments of the present application. The details are as follows:
in step S101, directory text information entered by a user is received, where the directory text information includes a module structure entered according to a structure hierarchy relationship.
In the embodiment, a user inputs a module structure required when the software framework is built in a text form to serve as the directory text information input by the user. In the specific implementation, based on a software framework generation tool, a user inputs module structure text information required to be built by the software framework in the software framework generation tool according to a structure hierarchical relationship designed for the software framework, and generates a catalog text information, so that the catalog text information contains a module structure input according to the structure hierarchical relationship. Therefore, the structure hierarchical relationship among the module structures required to be built by the software framework can be presented in the directory text information, the operation of automatically building the software framework can be realized according to the hierarchical relationship, any person can use the tool to complete the building operation of the software framework without compiling codes and building a file path structure, and the technical threshold of building the software framework is reduced.
In step S102, corresponding node templates are matched for the module structures according to the structure hierarchy relationship between the module structures in the directory text information.
The software framework in the embodiment is composed of a plurality of nodes, and therefore, the software framework can be built in a mode of creating the nodes. And one node is correspondingly configured with a module structure required to be built by the software framework. In this embodiment, two node templates, namely a parent node template and a child node template, are stored in the software framework generation tool, where one or more parent node templates/child node templates may be stored in the parent node template. It should be noted that the node template itself does not have any function, and the function may be given by definition and configuration. The parent node template is different from the child node template in that the parent node template defines the configuration of all nodes stored in the parent node, and the child node template defines the configuration of the child node itself. The configuration mode defined by the node template includes, but is not limited to, a layout mode of configuration nodes, attributes of the nodes, an interaction mode of the nodes, and the like. Therefore, the present embodiment can select the node template used when creating the node for each module structure according to the structure hierarchical relationship among the module structures in the directory text information, so as to complete the node template matching operation. Furthermore, after a corresponding node template is selected for each module structure, the incidence relation between the module structures in the built software framework can be reflected according to the configuration and layout of the father node template, and manual definition is not needed.
In step S103, based on the module structure, a node template corresponding to the module structure is subjected to configuration processing to generate a software framework corresponding to the directory text information.
In this embodiment, after all module structure texts in the directory text information are matched with the corresponding node templates, the module structures are configured in the node templates matched with the module structures in a one-to-one correspondence manner, so as to give a function corresponding to the module structure to each node template, thereby generating a software framework corresponding to the directory text information.
According to the software framework generation method provided by the embodiment, the software framework can be automatically generated by simply inputting the catalogue text according to the structure hierarchical relationship in the software framework generation tool, any person can operate, and the technical threshold for building the software framework is reduced. Moreover, the node template does not have any function, and after the node template is matched with the module structure text according to the structure hierarchy, the incidence relation among the module structures in the built software framework is determined according to the configuration and the layout of a father node template; the module structure text is configured into the corresponding matched node template, so that the corresponding function given to the node template by the module structure text is realized. The node template has low coupling with the software framework, and can flexibly respond to the design requirements of various customized software frameworks.
In some embodiments of the present application, please refer to fig. 2, and fig. 2 is a schematic flow chart illustrating a method for matching node templates for a module structure in a software framework generation method according to an embodiment of the present application. The details are as follows:
in step S201, the directory text information is traversed to determine whether the module structure recorded in the directory text information has a lower module structure;
in step S202, if the module structure has a lower module structure, the module structure is matched with the parent node template, otherwise, the module structure is matched with the child node template.
In this embodiment, the directory text information is searched according to recursive logic by traversing the directory text information, the relationship between each module structure recorded in the directory text information and other module structures is identified one by one, and whether the module structure is the lowest module structure is determined, so as to determine whether the module structure has a corresponding lower module structure. If the module structure is confirmed to be the lowest module structure, the module structure is judged not to have a lower module structure, and if the module structure is confirmed to be the lowest module structure, the module structure is judged to have a lower module structure. And matching a parent node template for the module structure with the lower level so as to create a frame node corresponding to the module structure by calling the parent node template. And matching a child node template for the module structure without the lower level so as to create the frame node corresponding to the module structure by calling the child node template. And after all the module structures in the directory text information are matched with the corresponding node templates, integrating the node templates which are correspondingly matched with all the module structures in the directory text information, and reflecting the incidence relation among all the module structures in the built software framework according to the configuration and the layout of the father node template.
For example, in a software framework that a real estate developer needs to build, the text information of the building catalog entered by the user is as follows:
1. world zone bit (1)
Brand value (2)
2. Project zone bit (3)
Traffic road network (4)
Rail (5)
At the moment, through traversing the directory text information, if the fact that the subordinate of the 'world location bit' module structure has the 'brand value' module structure is found through searching, the fact that the 'world location bit' module structure has the subordinate module structure is judged, and therefore a father node template is called to be matched with the 'world location bit' module structure, and therefore a father node is created for the software framework and used for building the 'world location bit' module structure. And the 'brand value' module structure is found to have no lower-level template structure through retrieval, so that the 'brand value' module structure is confirmed to be the bottommost module structure, and at the moment, the child node template is called to be matched with the 'brand value' module structure, so that a child node is created for the software framework and used for building the 'brand value' module structure. And searching and judging the module structures such as the item zone bit, the traffic network, the track and the like in the same way to traverse all the module structures in the directory text information until each module structure in the directory text information is matched with a corresponding node template.
In some embodiments of the present application, please refer to fig. 3, and fig. 3 is a flowchart illustrating a method for generating a navigation menu in a software framework generation method according to an embodiment of the present application. The details are as follows:
in step S301, naming a node template so that the node template has corresponding naming information;
in step S302, a navigation menu corresponding to the software frame is generated by using the naming information corresponding to the node template in combination with the configuration and layout of the parent node template in the software frame.
In this embodiment, a navigation menu that can be used to search and locate any module structure in the software framework may also be generated based on the module structure content in the software framework. In a specific implementation, each node template configured in the software framework is named, for example, according to the number information or name information of the module structure configured corresponding to the node template, so that each node template in the software framework has one corresponding naming information. For example, taking the above listed parent node template for matching the "world location" module structure in the text information of the building directory as an example, the parent node template may be named as "number (1)" or "world location". After naming all the node templates, when a software framework is generated, firstly, naming information of each node template is obtained through calling. After each module structure is matched with the corresponding node template, the configuration and layout of the father node template in the software frame can be obtained, and the configuration and layout of the father node template can reflect the incidence relation among the module structures in the software frame. In the navigation menu, the naming information of each node template is used as a directory identifier, and a link is correspondingly created for each directory identifier so as to be linked with the corresponding template structure in the software frame, thereby realizing that any module structure in the software frame can be searched and positioned through the navigation menu. Thus, the construction of the complete frame is completed.
In some embodiments of the present application, please refer to fig. 4, and fig. 4 is a schematic flow chart illustrating a method for configuring a presentation form for a node template in a software framework generation method provided in the embodiments of the present application. The details are as follows:
in step S401, a module type corresponding to the module structure is identified;
in step S402, a presentation form configuration file corresponding to the module type is acquired from a preset presentation form configuration library;
in step S403, the presentation form configuration file is applied to the node template matched for the module structure.
In this embodiment, the display forms may also be configured for the module structures in the software framework. In this embodiment, the module structure is classified and divided according to industry features or project features, so as to obtain a plurality of different module types. And designing a corresponding display form configuration file for each module type in advance, storing the display form configuration file in a preset display form configuration library and mapping and associating the display form configuration file with the corresponding module type. The pre-designed display form configuration file comprises one or more of a layout mode, an attribute and an interaction mode of a module structure. After receiving catalog text information which is input by a user and used for building a software framework, identifying the module type of the module structure recorded in the catalog text information to confirm the module type corresponding to the module structure, and then acquiring a display form configuration file corresponding to the module type from a preset display form configuration library according to the module type by combining a mapping relation between a display form configuration file and the module type which are established in advance. And then, the acquired display form configuration file is applied to the node templates matched with the module structures, so that the display forms configured for the module structures respectively can be realized, and at the moment, the layout mode, the attribute, the interaction mode and the like of each module structure are defined through the node templates in the built software framework.
In a specific implementation, for example, software frameworks designed for various products of a real estate developer are classified in advance according to industry features or project features, and a module structure required to be built in the software framework generally includes module types such as a main framework, a zone bit, a sand table, a roaming module, a shaft side module and the like. The main frame is a module structure which embodies a global frame, and zone bits, sand tables, roaming, shaft sides and the like are module structures of local frames which are divided according to functions. The presentation form configuration file pre-designed for the module type may be as follows:
for the main framework module type, the module structure represents the global framework of the software framework. In the corresponding display form configuration file, the layout mode of the main frame module structure can be configured in such a way that the navigation menu is positioned below the page and only describes a first-level menu, and the switching effect among the module structures in the first-level menu is a shutter effect; configuring the attribute of the main frame module structure as a rich text attribute, and configuring the interaction mode of the main frame module structure as double-finger left-right/up-down interaction.
For location module types, the module structure represents the location of the building and the spatial relationship between the building and other things. In the corresponding display form configuration file, the layout mode of the zone bit module structure can be configured in such a way that the navigation menu is positioned above the page and describes menus of all levels, and the switching effect among the module structures in the menu is a gradually-in and gradually-out effect; configuring the property of the zone bit module structure as a rich text property, and configuring the zone bit module structure in an interactive mode of single-finger left-right/up-down interaction.
For the sand table module type, the module structure represents a building of miniature entities. In the corresponding display form configuration file, the layout mode of the sand table module structures can be configured in such a way that the navigation menu is positioned at the upper right of the page and only describes a first-level sand table interface, and the module structures in the menu are forbidden to be switched by gestures and can only be switched by skipping; and configuring the attribute of the sand table module structure as a sequence frame attribute, and configuring the interactive mode of the sand table module structure as single click.
For the roaming module type, the module structure presents a three-dimensional panoramic map. In the corresponding display form configuration file, the layout mode of the roaming module structure can be configured in such a way that the navigation menu is positioned at the left side of the page and only describes a first-level roaming page, and the switching of the module structures in the menu through gestures is forbidden; and configuring the attribute of the roaming module structure as a panorama attribute, and configuring the interactive mode of the roaming module structure as single click.
For the side-of-axis module type, the module structure represents a three-dimensional sample house model. In the corresponding display form configuration file, the layout mode of the axis side module structure can be configured in such a way that the navigation menu is positioned at the left side of the page and only describes a first-level roaming page, and the switching of all module structures in the menu through gestures is forbidden; the attribute of the axis side module structure is configured to be a three-dimensional model attribute, and the interaction mode for configuring the axis side module structure is double-finger left-right stretching and amplifying, double-finger left-right squeezing and shrinking, floor clicking display, double-click display of global situation, double-finger up-down stretching and layering, and double-finger up-down squeezing and merging.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
In some embodiments of the present application, please refer to fig. 5, and fig. 5 is a schematic structural diagram of a software framework generating apparatus provided in the embodiments of the present application, which is detailed as follows:
the software framework generation device comprises: a receiving module 501, a matching module 502 and a generating module 503. The receiving module 501 is configured to receive directory text information entered by a user, where the directory text information includes a module structure recorded according to a structure hierarchical relationship. The matching module 502 is configured to match a corresponding node template for each module structure according to a structure hierarchy relationship between the module structures in the directory text information. The generating module 503 is configured to configure a node template corresponding to the module structure according to the module structure, and generate a software framework corresponding to the directory text information.
The software framework generation device corresponds to the software framework generation method one by one.
In some embodiments of the present application, please refer to fig. 6, and fig. 6 is a schematic diagram of an electronic device implementing a software framework generation method according to an embodiment of the present application. As shown in fig. 6, the electronic apparatus 6 of this embodiment includes: a processor 61, a memory 62 and a computer program 63, such as a software framework generator, stored in said memory 62 and executable on said processor 61. The processor 61 implements the steps in the various software framework generation method embodiments described above when executing the computer program 62. Alternatively, the processor 61 implements the functions of the modules/units in the above-described device embodiments when executing the computer program 63.
Illustratively, the computer program 63 may be partitioned into one or more modules/units that are stored in the memory 62 and executed by the processor 61 to accomplish the present application. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program 63 in the electronic device 6. For example, the computer program 63 may be divided into:
the receiving module is used for receiving the directory text information input by the user, wherein the directory text information contains a module structure recorded according to the structure hierarchical relationship;
the matching module is used for matching the module structures with corresponding node templates according to the structure hierarchy relationship among the module structures in the directory text information;
and the generating module is used for configuring the node template corresponding to the module structure according to the module structure and generating a software framework corresponding to the directory text information.
The electronic device may include, but is not limited to, a processor 61, a memory 62. Those skilled in the art will appreciate that fig. 6 is merely an example of an electronic device 6, and does not constitute a limitation of the electronic device 6, and may include more or fewer components than shown, or some components in combination, or different components, e.g., the electronic device may also include input-output devices, network access devices, buses, etc.
The Processor 61 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 62 may be an internal storage unit of the electronic device 6, such as a hard disk or a memory of the electronic device 6. The memory 62 may also be an external storage device of the electronic device 6, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the electronic device 6. Further, the memory 62 may also include both an internal storage unit and an external storage device of the electronic device 6. The memory 62 is used for storing the computer program and other programs and data required by the electronic device. The memory 62 may also be used to temporarily store data that has been output or is to be output.
It should be noted that, for the information interaction, execution process, and other contents between the above-mentioned devices/units, the specific functions and technical effects thereof are based on the same concept as those of the embodiment of the method of the present application, and specific reference may be made to the part of the embodiment of the method, which is not described herein again.
The embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps in the above-mentioned method embodiments.
The embodiments of the present application provide a computer program product, which when running on a mobile terminal, enables the mobile terminal to implement the steps in the above method embodiments when executed.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method of the embodiments described above can be realized by a computer program, which can be stored in a computer-readable storage medium and can realize the steps of the embodiments of the methods described above when the computer program is executed by a processor. . Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain other components which may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media which may not include electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other ways. For example, the above-described embodiments of the apparatus/terminal device are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A method for generating a software framework, comprising:
receiving directory text information input by a user, wherein the directory text information contains a module structure recorded according to a structure hierarchical relationship;
matching corresponding node templates for the module structures according to the structure hierarchy relationship among the module structures in the directory text information;
and according to the module structure, configuring the node template corresponding to the module structure to generate a software framework corresponding to the directory text information.
2. The software framework generation method according to claim 1, wherein the node templates include a parent node template and a child node template, wherein the parent node template defines a configuration manner among all nodes stored in the parent node, and the child node template defines a configuration manner of the child node itself.
3. The method for generating a software framework according to claim 2, wherein the step of matching the module structures with the corresponding node templates according to the structure hierarchy relationship among the module structures in the directory text information includes:
traversing the directory text information, and judging whether a module structure in the directory text information has a lower-level module structure;
and if the module structure has a lower-level module structure, matching the module structure with a father node template, otherwise, matching the module structure with a child node template.
4. The method according to claim 3, wherein after the step of matching the module structures with the corresponding node templates according to the structure hierarchy relationship between the module structures in the directory text information, the method further comprises:
naming a node template to enable the node template to have corresponding naming information;
the step of configuring the node template corresponding to the module structure according to the module structure to generate the software framework corresponding to the directory text information further includes:
and generating a navigation menu corresponding to the software frame by adopting the naming information corresponding to the node template in combination with the configuration and layout of the father node template in the software frame.
5. The method for generating a software framework according to claim 1, wherein after the step of matching the module structures with the corresponding node templates according to the structure hierarchy relationship among the module structures in the directory text information, the method further comprises:
identifying a module type corresponding to the module structure;
acquiring a display form configuration file corresponding to the module type from a preset display form configuration library;
and applying the display form configuration file to the node template matched with the module structure.
6. The method according to claim 5, wherein the step of identifying the module type corresponding to the module structure further comprises:
and dividing the module types, designing corresponding display form configuration files for the module types and storing the display form configuration files in a preset display form configuration library.
7. The software framework generation method of claim 5, wherein the presentation form configuration file comprises one or more of the following: the layout mode of the module structure in the software framework, the attribute of the module structure and the interaction mode of the module structure in the software framework.
8. A software framework generation apparatus, characterized in that the software framework generation apparatus comprises:
the receiving module is used for receiving the directory text information input by the user, wherein the directory text information contains a module structure recorded according to the structure hierarchical relationship;
the matching module is used for matching the module structures with corresponding node templates according to the structure hierarchy relationship among the module structures in the directory text information;
and the generating module is used for configuring the node template corresponding to the module structure according to the module structure and generating a software framework corresponding to the directory text information.
9. An electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the software framework generation method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the software framework generation method according to any one of claims 1 to 7.
CN202010400319.9A 2020-05-13 2020-05-13 Software framework generation method and device, electronic equipment and storage medium Active CN111666100B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010400319.9A CN111666100B (en) 2020-05-13 2020-05-13 Software framework generation method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010400319.9A CN111666100B (en) 2020-05-13 2020-05-13 Software framework generation method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111666100A true CN111666100A (en) 2020-09-15
CN111666100B CN111666100B (en) 2023-12-15

Family

ID=72383503

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010400319.9A Active CN111666100B (en) 2020-05-13 2020-05-13 Software framework generation method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111666100B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112347277A (en) * 2020-10-28 2021-02-09 同辉佳视(北京)信息技术股份有限公司 Menu generation method and device, electronic equipment and readable storage medium
CN112415913A (en) * 2020-11-06 2021-02-26 北京航天自动控制研究所 Simulation software management method, device and storage medium
CN112486481A (en) * 2020-12-03 2021-03-12 北京展心展力信息科技有限公司 Multi-module layered architecture implementation method, device, electronic equipment and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070076628A1 (en) * 2005-09-19 2007-04-05 Li Chris C Network modeling system and method of simulating network operation with configurable node models
CN101256492A (en) * 2008-03-31 2008-09-03 宋乃辉 Software development method and system for executing model drive structure
CN107450902A (en) * 2016-04-29 2017-12-08 埃森哲环球解决方案有限公司 System architecture with visual modeling tool
CN110647320A (en) * 2019-08-14 2020-01-03 平安普惠企业管理有限公司 Project framework construction method and device, computer equipment and storage medium
CN110990053A (en) * 2019-12-04 2020-04-10 第四范式(北京)技术有限公司 Method for creating and using machine learning scheme template and device
CN111092933A (en) * 2019-11-20 2020-05-01 泰康保险集团股份有限公司 Business process management method, system, medium and electronic device for micro-service architecture

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070076628A1 (en) * 2005-09-19 2007-04-05 Li Chris C Network modeling system and method of simulating network operation with configurable node models
CN101256492A (en) * 2008-03-31 2008-09-03 宋乃辉 Software development method and system for executing model drive structure
CN107450902A (en) * 2016-04-29 2017-12-08 埃森哲环球解决方案有限公司 System architecture with visual modeling tool
CN110647320A (en) * 2019-08-14 2020-01-03 平安普惠企业管理有限公司 Project framework construction method and device, computer equipment and storage medium
CN111092933A (en) * 2019-11-20 2020-05-01 泰康保险集团股份有限公司 Business process management method, system, medium and electronic device for micro-service architecture
CN110990053A (en) * 2019-12-04 2020-04-10 第四范式(北京)技术有限公司 Method for creating and using machine learning scheme template and device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112347277A (en) * 2020-10-28 2021-02-09 同辉佳视(北京)信息技术股份有限公司 Menu generation method and device, electronic equipment and readable storage medium
CN112415913A (en) * 2020-11-06 2021-02-26 北京航天自动控制研究所 Simulation software management method, device and storage medium
CN112486481A (en) * 2020-12-03 2021-03-12 北京展心展力信息科技有限公司 Multi-module layered architecture implementation method, device, electronic equipment and medium
CN112486481B (en) * 2020-12-03 2024-03-19 北京展心展力信息科技有限公司 Multi-module layered architecture implementation method and device, electronic equipment and medium

Also Published As

Publication number Publication date
CN111666100B (en) 2023-12-15

Similar Documents

Publication Publication Date Title
US10579344B2 (en) Converting visual diagrams into code
CN111414166B (en) Code generation method, device, equipment and storage medium
CN111666100B (en) Software framework generation method and device, electronic equipment and storage medium
CN111666526A (en) Page generation method, device, equipment and storage medium
CN115617327A (en) Low code page building system, method and computer readable storage medium
CN107562777B (en) Data processing method and apparatus thereof
CN101887464B (en) Method and device for displaying data in database
CN102831167B (en) XML (extensive makeup language) processing method and device for graph structure
CN114116065B (en) Method and device for acquiring topological graph data object and electronic equipment
CN113535165A (en) Interface generation method and device, electronic equipment and computer readable storage medium
CN110806873A (en) Target control determining method and device, electronic equipment and storage medium
KR102351420B1 (en) Create search results-based listings in a single view
CN110727869A (en) Page construction method and device
US20110126171A1 (en) Dynamic native editor code view facade
CN113407284A (en) Navigation interface generation method and device, storage medium and electronic equipment
JP2020535570A (en) Generation of representative image
CN104834759A (en) Realization method and device for electronic design
CN111427577A (en) Code processing method and device and server
CN103678687A (en) Project establishment method and device based on configuration system
CN108255486B (en) View conversion method and device for form design and electronic equipment
CN114564854B (en) Operation method and equipment of data node supporting FMEA bidirectional relationship tree
CN111694992A (en) Data processing method and device
CN111813407B (en) Game development method, game running device and electronic equipment
CN109471410B (en) Dynamic preview generation in a product lifecycle management environment
CN105938431A (en) Web page developing method and device

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