CN111666100B - 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
CN111666100B
CN111666100B CN202010400319.9A CN202010400319A CN111666100B CN 111666100 B CN111666100 B CN 111666100B CN 202010400319 A CN202010400319 A CN 202010400319A CN 111666100 B CN111666100 B CN 111666100B
Authority
CN
China
Prior art keywords
module
module structure
node
software framework
text information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010400319.9A
Other languages
Chinese (zh)
Other versions
CN111666100A (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 Software Technology Co Ltd
Original Assignee
Shenzhen Ideamake Software 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 Software Technology Co Ltd filed Critical Shenzhen Ideamake Software 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

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 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 hierarchy relation; 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, performing configuration processing on the node templates corresponding to the module structure to generate a software framework corresponding to the directory text information. The method can automatically generate the software framework by simply inputting the directory text according to the structure level, any person can operate the software framework, and the technical threshold for building the software framework is reduced. In addition, the node template in the method has no function, and the node template has a corresponding function through 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, a device, electronic equipment and a storage medium.
Background
In the existing software framework generation technology, in the software development process, a developer is usually required to write codes and build file path structures for project structures to generate a software framework. 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 low maintainability, low development efficiency, and easy occurrence of problems such as disordered storage of resources. At present, in order to improve development efficiency, some methods for generating a software framework by using fixed template development are proposed, however, the software framework constructed by using the fixed template has high coupling with resources, the framework is stiff, the processing condition is single, the customization requirement is difficult to process, and the situation of variable requirements cannot be responded quickly.
Disclosure of Invention
In view of this, the embodiments of the present application provide a method, an apparatus, an electronic device, and a storage medium for generating a software framework, which can reduce the technical threshold for building the software framework, and can flexibly respond to the design requirements of various customized software frameworks.
A first aspect of an embodiment of the present application provides a method for generating a software framework, including:
receiving directory text information input by a user, wherein the directory text information contains a module structure recorded according to a structure hierarchy relation;
matching corresponding node templates for the module structures according to the structure hierarchy relation among the module structures in the directory text information;
and according to the module structure, carrying out configuration processing on the node template corresponding to the module structure, and generating 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 between all nodes stored by the parent node, and the child node template defines a configuration manner of the 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, for the module structure, a corresponding node template according to a structure hierarchy relationship between each module structure in the directory text information includes:
traversing the directory text information, and judging whether a module structure in the directory text information has a subordinate module structure or not;
if the module structure has a lower-level module structure, the module structure is matched with a parent node template, otherwise, the module structure is matched 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 the module structure with the corresponding node template according to a structure hierarchical relationship between the module structures in the directory text information, the method further includes:
naming the node templates so that the node templates have corresponding naming information;
the step of configuring the node template corresponding to the module structure according to the module structure to generate a software frame corresponding to the directory text information, and the step of further comprises:
and generating a navigation menu corresponding to the software framework by adopting naming information corresponding to the node templates in combination with configuration and layout of parent node templates in the software framework.
With reference to the first aspect, in a fourth possible implementation manner of the first aspect, after the step of matching a corresponding node template for the module structure according to a structure hierarchy relationship between the module structures in the directory text information, 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 presentation form configuration file to a 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 the module structure, the method further includes:
dividing 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 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 frame generating apparatus, including:
the receiving module is used for receiving directory text information input by a user, wherein the directory text information contains a module structure recorded according to a structure hierarchy relation;
the matching module is used for matching the corresponding node templates for the module structures according to the structure hierarchical relation among the module structures in the directory text information;
and the generating module is used for carrying out configuration processing on the node templates corresponding to the module structure according to the module structure and generating a software frame corresponding to the directory text information.
A third aspect of an embodiment of the present application provides an electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the software framework generating method according to any one of the first aspects when executing the computer program.
A fourth aspect of an embodiment of the present application provides a computer-readable storage medium storing a computer program which, when executed by a processor, implements the steps of the software framework generating method according to any one of the first aspects.
Compared with the prior art, the embodiment of the application has the beneficial effects that:
the method can automatically generate the software framework by simply inputting the directory text according to the structure level, can be operated by any person, and reduces the technical threshold for constructing the software framework. Moreover, the node template does not have any function, and after the node template is matched with the text of the module structure according to the structure level, the association relation among the module structures in the built software frame is determined according to the configuration and the layout of the father node template; by configuring the module structure text into the corresponding matched node templates, the corresponding functions of the node templates are endowed by the module structure text. The node templates have 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 of the embodiments of the present application, the drawings that are needed in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of a basic method of a software framework generating method according to an embodiment of the present application;
FIG. 2 is a schematic flow chart of a method for matching node templates for a module structure in a software framework generating method according to an embodiment of the present application;
FIG. 3 is a flowchart illustrating a method for generating a navigation menu in a software framework generating method according to an embodiment of the present application;
FIG. 4 is a schematic flow chart of a method for configuring a display form for a node template in a software framework generating method according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a software framework generating device according to an embodiment of the present application;
fig. 6 is a schematic diagram of an electronic device for implementing a software framework generating 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 the particular system architecture, 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 should 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 the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
As used in the present description and the appended claims, the term "if" may be interpreted as "when..once" or "in response to a determination" or "in response to detection" depending on the context. Similarly, the phrase "if a determination" or "if a [ described condition or event ] is detected" may be interpreted in the context of meaning "upon determination" or "in response to determination" or "upon detection of a [ described condition or event ]" or "in response to detection of a [ described condition or event ]".
Furthermore, the terms "first," "second," "third," and the like in the description of the present specification and in the appended claims, are used for distinguishing between descriptions and not necessarily for indicating or implying a relative importance.
Reference in the 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 application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise.
In order to illustrate the technical scheme of the application, the following description is made by specific examples.
The embodiment of the application aims to provide a software frame generating tool capable of flexibly responding to various customized design requirements when customizing software frames for various products of various developers, and the tool can be operated by anyone to automatically generate the software frames by inputting frame levels in a relatively simple mode, so that repeated and complicated code writing work and file path structure construction work are reduced, the efficiency of software development is improved, and meanwhile, the technical threshold for constructing the software frames is also reduced.
In some embodiments of the present application, referring to fig. 1, fig. 1 is a schematic flow chart of a basic method of a software framework generating method according to an embodiment 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 contains a module structure entered according to a structure hierarchy relationship.
In this embodiment, the user uses the module structure required for building the software framework as the directory text information entered by the user by inputting the module structure in text form. In a specific implementation, based on a software frame generating tool, a user generates a catalog text message by inputting module structure text messages required to be built for a software frame in the software frame generating tool according to a structure hierarchical relation designed for the software frame, so that the catalog text message contains a module structure input according to the structure hierarchical relation. Therefore, the structure hierarchy relation among all the module structures required to be built of the software framework can be displayed in the directory text information, the operation of automatically building the software framework can be realized according to the hierarchy relation, codes are not required to be written, a file path structure is not required to be built, any person can use the tool to complete the building operation of the software framework, and the technical threshold for 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 this embodiment is composed of a plurality of nodes, and thus, the software framework can be built by creating nodes. Wherein, a node is correspondingly configured with a module structure required to be built by a software framework. In this embodiment, two node templates, namely a parent node template and a child node template, are stored in the software frame generating tool, where one or more parent node templates/child node templates may be stored in the parent node template. Note that the node template itself does not have any function, and can be given its function by definition and configuration. The parent node template is different from the child node template in that the parent node template defines the configuration mode among all nodes stored in the parent node, and the child node template defines the configuration mode of the child node itself. The configuration mode defined by the node template includes, but is not limited to, a layout mode for configuring the nodes, attributes of the nodes, an interaction mode of the nodes and the like. Therefore, the embodiment can select the node template adopted when the node is created for each module structure according to the structure hierarchy relation among the module structures in the directory text information so as to complete the node template matching operation. Furthermore, after the corresponding node template is selected for each module structure, the association relation among the module structures in the built software framework can be reflected according to the configuration and layout of the parent node template, and definition is not needed by manual work.
In step S103, a configuration process is performed on the node templates corresponding to the module structures based on the module structures to generate software frames corresponding to the directory text information.
In this embodiment, after all the 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 corresponding node templates in a one-to-one correspondence manner, so that each node template is endowed with a function corresponding to the module structure, and a software framework corresponding to the directory text information is generated.
The software frame generating method provided by the embodiment can automatically generate the software frame by simply inputting the directory text according to the structure hierarchy relation in the software frame generating tool, any person can operate, and the technical threshold for building the software frame is reduced. Moreover, the node template does not have any function, and after the node template is matched with the text of the module structure according to the structure level, the association relation among the module structures in the built software frame is determined according to the configuration and the layout of the father node template; by configuring the module structure text into the corresponding matched node templates, the corresponding functions of the node templates are endowed by the module structure text. The node templates have 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, referring to fig. 2, fig. 2 is a flowchart of a method for matching node templates for a module structure in a software framework generating method according to an embodiment of the present application. The details are as follows:
in step S201, the directory text information is traversed, and whether the module structure recorded in the directory text information has a lower-level module structure is determined;
in step S202, if the module structure has a lower module structure, the parent node template is matched for the module structure, otherwise, the child node template is matched for the module structure.
In this embodiment, by traversing the directory text information, searching the directory text information according to recursive logic, identifying the relationship between each module structure recorded in the directory text information and other module structures one by one, and determining whether the module structure is the bottommost module structure, 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 to have no lower-level module structure, and if the module structure is confirmed to be the lowest module structure, the module structure is judged to have the lower-level module structure. For a module structure with a lower level, a parent node template is matched for creating a frame node corresponding to the module structure by calling the parent node template. And for a module structure without a lower level, matching a child node template for the module structure to create a frame node corresponding to the module structure by calling the child node template. And integrating the node templates corresponding to and matched with all the module structures in the directory text information after all the module structures in the directory text information are matched with the corresponding node templates, and reflecting the association relation among the module structures in the built software framework according to the configuration and layout of the parent node templates.
For example, in a software framework that real estate developers need to build, the user enters the text information of the floor directory as follows:
1. world location (1)
Brand value (2)
2. Project location (3)
Traffic network (4)
Rail (5)
At this time, the "world location" module structure is determined to have a lower-level module structure by traversing the directory text information, for example, by searching to find that the lower-level of the "world location" module structure has a "brand value" module structure, so that the parent node template is invoked to match the "world location" module structure, thereby creating a parent node for the software framework to be used for building the "world location" module structure. And the brand value module structure is found to have no lower-level template structure through searching, so that the brand value module structure is confirmed to be the lowest-level module structure, and the sub-node template is called to be matched with the brand value module structure, so that a sub-node is created for the software framework to be used for building the brand value module structure. And searching and judging the module structures such as the project locations, the traffic road network, the tracks and the like in the same way so as to traverse and finish 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, fig. 3 is a flowchart illustrating a method for generating a navigation menu in the software framework generating method according to an embodiment of the present application. The details are as follows:
in step S301, naming is performed on the node templates, so that the node templates have corresponding naming information;
in step S302, in combination with the configuration and layout of the parent node templates in the software framework, the navigation menu corresponding to the software framework is generated using the naming information corresponding to the node templates.
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 content of the module structure in the software framework. In a specific implementation, naming is performed on each node template configured in the software framework, for example, naming is performed according to the number information or the name information of the module structure configured corresponding to the node template, so that each node template in the software framework has corresponding naming information. For example, taking the parent node template matched with the building inventory text information as the "world location" module structure as an example, the parent node template may be named as "number (1)" or as "world location". After naming all the node templates, when generating the software framework, the naming information of each node template is obtained through calling. The configuration and the layout of the father node template in the software frame can be obtained after each module structure is matched with the corresponding node template, and the configuration and the layout of the father node template can reflect the association relation among the module structures in the software frame. In the navigation menu, the naming information of each node template is used as a catalog identifier, and each catalog identifier correspondingly creates a link so as to link with a corresponding template structure in the software framework, so that any module structure in the software framework can be searched and positioned through the navigation menu. Thereby, the construction of the complete frame is completed.
In some embodiments of the present application, referring to fig. 4, fig. 4 is a flowchart of a method for configuring and displaying a node template in a software framework generating method according to an embodiment 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 display form configuration file corresponding to the module type is obtained from a preset display form configuration library;
in step S403, the presentation profile is applied in the node templates matched for the module structure.
In this embodiment, the module structures may be configured in a software framework for display. In this embodiment, the module structure is classified and divided according to industry characteristics or project characteristics, etc., so as to obtain a plurality of different module types. A corresponding display form configuration file is designed in advance for each module type, and the display form configuration file is stored in a preset display form configuration library and is mapped and associated with the corresponding module type. The pre-designed display form configuration file contains one or more of a layout mode, an attribute and an interaction mode of the module structure. After receiving the catalog text information which is input by a user and is used for constructing the software framework, the module type identification can be carried out on the module structure recorded in the catalog text information to confirm the module type corresponding to the module structure, and then according to the module type, the display form configuration file corresponding to the module type is obtained from a preset display form configuration library by combining the mapping relation between the preset display form configuration file and the module type. Furthermore, the obtained 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 can be respectively displayed, 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, a software framework designed for various products of a real estate developer is classified in advance according to industry characteristics or project characteristics, so as to obtain the module structure required to be built in the software framework, which generally comprises a main framework, a location, a sand table, roaming, an axis side and other module types. The main frame is a module structure which reflects the global frame, and the areas, the sand tables, the roaming, the axial sides and the like are the module structures of the local frames which are divided according to functions. The presentation profile pre-designed for the module type may be as follows:
for the main framework module type, the module structure presents a 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 to be that the navigation menu is positioned below the page and only describes one-level menu, and the switching effect among the module structures in the one-level menu is a shutter effect; the attribute of the main frame module structure is configured as rich text attribute, and the interaction mode of the main frame module structure is configured as double-finger left-right/up-down interaction.
For the zone module type, the module structure presents 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 to be that the navigation menu is positioned above the page and describes all the layers of menus, and the switching effect among the module structures in the menu is a gradual-in gradual-out effect; the attribute of the location module structure is configured as rich text attribute, and the interaction mode of the location module structure is single-finger left-right/up-down interaction.
For the sand table module type, the module structure presents a building of a miniature entity. In the corresponding presentation form configuration file, the layout mode of the sand table module structure can be configured in such a way that a navigation menu is positioned at the upper right of a page and only describes a first-level sand table interface, and each module structure in the menu is forbidden to be switched by gestures and can only be switched by jumping; the attribute of the sand table module structure is configured as a sequence frame attribute, and the interaction mode of the sand table module structure is configured as a click.
For the roaming module type, the module structure presents a three-dimensional panoramic map. In the corresponding presentation form configuration file, the layout mode of the roaming module structure can be configured to be that a navigation menu is positioned at the left side of the page and only one-level roaming page is described, and the module structures in the menu are forbidden to be switched by gestures; the attribute of the roaming module structure is configured as a panorama attribute, and the interaction mode of the roaming module structure is configured as a click.
For the axis side module type, the module structure presents a three-dimensional model of the templet house. In the corresponding display form configuration file, the layout mode of the axial side module structure can be configured to be that the navigation menu is positioned at the left side of the page and only one-level roaming page is described, and the module structures in the menu are forbidden to be switched by gestures; the attribute of the configuration of the shaft side module structure is a three-dimensional model attribute, and the interaction mode of the configuration of the shaft side module structure is double-finger left-right stretching and amplifying, double-finger left-right extrusion and shrinking, single click display of floors, double-click display of global, double-finger up-down stretching and layering, and double-finger up-down extrusion and merging.
It should be understood that, the sequence number of each step in the foregoing embodiment does not mean the execution sequence, and the execution sequence of each process should be determined by the function and the internal logic, and should not limit the implementation process of the embodiment of the present application.
In some embodiments of the present application, please refer to fig. 5, fig. 5 is a schematic structural diagram of a software framework generating apparatus according to an embodiment of the present application, which is described in detail below:
the software framework generating apparatus includes: 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 contains a module structure recorded according to a structure hierarchical relationship. The matching module 502 is configured to match a corresponding node template for the module structure according to a structure hierarchy relationship between the module structures in the directory text information. The generating module 503 is configured to perform configuration processing on 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 frame generating device is in one-to-one correspondence with the software frame generating method.
In some embodiments of the present application, please refer to fig. 6, fig. 6 is a schematic diagram of an electronic device for implementing a software framework generating method according to an embodiment of the present application. As shown in fig. 6, the electronic device 6 of this embodiment includes: a processor 61, a memory 62 and a computer program 63, e.g. a software framework generation program, stored in said memory 62 and executable on said processor 61. The steps of the various software framework generation method embodiments described above are implemented when the processor 61 executes the computer program 62. Alternatively, the processor 61, when executing the computer program 63, performs the functions of the modules/units in the above-described device embodiments.
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 complete the present application. The one or more modules/units may be a series of computer program instruction segments capable of performing the specified functions for describing the execution of the computer program 63 in the electronic device 6. For example, the computer program 63 may be split into:
the receiving module is used for receiving directory text information input by a user, wherein the directory text information contains a module structure recorded according to a structure hierarchy relation;
the matching module is used for matching the corresponding node templates for the module structures according to the structure hierarchical relation among the module structures in the directory text information;
and the generating module is used for carrying out configuration processing on the node templates corresponding to the module structure according to the module structure and generating a software frame corresponding to the directory text information.
The electronic device may include, but is not limited to, a processor 61, a memory 62. It will be appreciated by those skilled in the art that fig. 6 is merely an example of the electronic device 6 and is not meant to be limiting as the electronic device 6 may include more or fewer components than shown, or may combine certain components, or different components, e.g., the electronic device may further include an input-output device, a network access device, a bus, etc.
The processor 61 may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. 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) or 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 to store the computer program as well as 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, because the content of information interaction and execution process between the above devices/units is based on the same concept as the method embodiment of the present application, specific functions and technical effects thereof may be referred to in the method embodiment section, and will not be described herein.
Embodiments of the present application also provide a computer readable storage medium storing a computer program which, when executed by a processor, implements steps for implementing the various method embodiments described above.
Embodiments of the present application provide a computer program product which, when run on a mobile terminal, causes the mobile terminal to perform steps that enable the implementation of the method embodiments described above.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, the specific names of the functional units and modules are only for distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
The integrated modules/units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present application may implement all or part of the flow of the method of the above embodiment, or may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the computer program may implement the steps of each of the method embodiments described above. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth. It should be noted that the computer readable medium may include content that is subject to appropriate increases and decreases as required by jurisdictions in which such content is subject to legislation and patent practice, such as in certain jurisdictions in which such content is not included as electrical carrier signals and telecommunication signals.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
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 solution. 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 manners. For example, the apparatus/terminal device embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical function division, and there may be additional divisions in actual implementation, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via interfaces, devices or units, which may be in electrical, mechanical or other forms.
The units described as separate units may or may not be physically separate, and units shown 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 may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
The above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.

Claims (6)

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 hierarchy relation;
according to the structure hierarchy relation among the module structures in the directory text information, matching the corresponding node templates for the module structures, wherein the node templates comprise: traversing the directory text information, and judging whether a module structure in the directory text information has a subordinate module structure or not; if the module structure has a lower-level module structure, matching a parent node template for the module structure, otherwise, matching a child node template for the module structure; the node templates comprise father node templates and child node templates, wherein the father node templates define the configuration modes among all nodes stored in the father node, the child node templates define the configuration modes of the child nodes, the node templates do not have any function, and the functions are given to the node templates through definition and configuration;
naming the node templates so that the node templates have corresponding naming information; 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;
applying the presentation form configuration file to a node template matched with the module structure;
according to the module structure, configuring a node template corresponding to the module structure to generate a software frame corresponding to the directory text information;
and generating a navigation menu corresponding to the software framework by adopting naming information corresponding to the node templates in combination with configuration and layout of parent node templates in the software framework.
2. The method for generating a software framework according to claim 1, further comprising, before the step of identifying the module type corresponding to the module structure:
dividing 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.
3. The software framework generation method of claim 1, wherein the presentation profile comprises one or more of: 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.
4. A software framework generating apparatus, characterized in that the software framework generating apparatus comprises:
the receiving module is used for receiving directory text information input by a user, wherein the directory text information contains a module structure recorded according to a structure hierarchy relation;
the matching module is used for matching the corresponding node templates for the module structures according to the structure hierarchy relation among the module structures in the directory text information, and comprises the following steps: traversing the directory text information, and judging whether a module structure in the directory text information has a subordinate module structure or not; if the module structure has a lower-level module structure, matching a parent node template for the module structure, otherwise, matching a child node template for the module structure; the node templates comprise father node templates and child node templates, wherein the father node templates define the configuration modes among all nodes stored in the father node, the child node templates define the configuration modes of the child nodes, the node templates do not have any function, and the functions are given to the node templates through definition and configuration;
the generation module is used for carrying out configuration processing on the node templates corresponding to the module structure according to the module structure to generate a software frame corresponding to the directory text information;
the software framework generating device is further used for:
naming the node templates so that the node templates have corresponding naming information;
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 presentation form configuration file to a node template matched with the module structure.
5. An electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the software framework generating method as claimed in any of claims 1 to 3 when the computer program is executed.
6. A computer-readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the steps of the software framework generation method of any of claims 1 to 3.
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 CN111666100A (en) 2020-09-15
CN111666100B true 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)

Families Citing this family (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
CN112486481B (en) * 2020-12-03 2024-03-19 北京展心展力信息科技有限公司 Multi-module layered architecture implementation method and device, electronic equipment and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7765093B2 (en) * 2005-09-19 2010-07-27 Itt Manufacturing Enterprises, Inc. Network modeling system and method of simulating network operation with configurable node models

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
CN111666100A (en) 2020-09-15

Similar Documents

Publication Publication Date Title
CN111666100B (en) Software framework generation method and device, electronic equipment and storage medium
CN110764763B (en) Mobile terminal page construction method and system and mobile terminal
CN107562777B (en) Data processing method and apparatus thereof
CN101887464B (en) Method and device for displaying data in database
CN115617327A (en) Low code page building system, method and computer readable storage medium
CN102831167B (en) XML (extensive makeup language) processing method and device for graph structure
CN114115883B (en) Method for quickly constructing front-end application by using middle station service capability
CN114116065B (en) Method and device for acquiring topological graph data object and electronic equipment
CN112906206B (en) Digital twin model construction method and device
CN109491646B (en) Message entry method and device, electronic equipment and readable medium
CN114594927A (en) Low code development method, device, system, server and storage medium
CN110806873A (en) Target control determining method and device, electronic equipment and storage medium
CN112685030A (en) Method, device, storage medium and electronic equipment for generating service code
US20110126171A1 (en) Dynamic native editor code view facade
JP2020535570A (en) Generation of representative image
CN104834759A (en) Realization method and device for electronic design
US20070198928A1 (en) Design method and apparatus for user interface
CN109558118B (en) Method, apparatus, device and storage medium for creating native components of a smart applet
CN114930362A (en) Process mining for multi-instance processes
CN102999556B (en) Text search method, device and terminal device
CN110659393B (en) Method and system for generating xml code
CN102541544A (en) Method, device and system for processing tree control
CN108255486B (en) View conversion method and device for form design and electronic equipment
CN103678687A (en) Project establishment method and device based on configuration system
CN115687704A (en) Information display method and device, electronic equipment and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant