CN108319449B - Application program architecture determining method and device - Google Patents

Application program architecture determining method and device Download PDF

Info

Publication number
CN108319449B
CN108319449B CN201710028552.7A CN201710028552A CN108319449B CN 108319449 B CN108319449 B CN 108319449B CN 201710028552 A CN201710028552 A CN 201710028552A CN 108319449 B CN108319449 B CN 108319449B
Authority
CN
China
Prior art keywords
target
application program
program
architecture
picture
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
CN201710028552.7A
Other languages
Chinese (zh)
Other versions
CN108319449A (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.)
Beijing Kingsoft Cloud Network Technology Co Ltd
Beijing Kingsoft Cloud Technology Co Ltd
Original Assignee
Beijing Kingsoft Cloud Network Technology Co Ltd
Beijing Kingsoft Cloud 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 Beijing Kingsoft Cloud Network Technology Co Ltd, Beijing Kingsoft Cloud Technology Co Ltd filed Critical Beijing Kingsoft Cloud Network Technology Co Ltd
Priority to CN201710028552.7A priority Critical patent/CN108319449B/en
Publication of CN108319449A publication Critical patent/CN108319449A/en
Application granted granted Critical
Publication of CN108319449B publication Critical patent/CN108319449B/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/10Requirements analysis; Specification techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design

Landscapes

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

Abstract

The embodiment of the invention provides a method and a device for determining an application program architecture, wherein the method comprises the following steps: acquiring program characteristic values of a target application program aiming at various preset program characteristics; determining the type of the target application program according to the acquired characteristic value; and determining the target architecture of the target application program according to the type of the target application program and the corresponding relation between the type of the application program and the architecture of the application program, which is stored in advance. By applying the embodiment provided by the invention, the utilization efficiency of the architecture is improved.

Description

Application program architecture determining method and device
Technical Field
The present invention relates to the field of computer application technologies, and in particular, to a method and an apparatus for determining an application architecture.
Background
The application is software developed by a user for a specific purpose, and different applications correspond to different application architectures, which refer to services and connections between services that are used for the application to be able to normally use.
Taking the game architecture as an example, the services involved in the game architecture may include: database services, security services, load balancing services, etc., which communicate according to a pre-configured communication protocol and data transmission address to enable communication between users and servers, and interaction between users and users.
In the prior art, an application program framework is designed by developers one to one according to the characteristics of an application program, and because each developer is independent, the frameworks developed by each developer cannot be shared. The architecture for each application is a new design for the developer, and therefore, the architecture is inefficient to use.
Disclosure of Invention
The embodiment of the invention aims to provide a method and a device for determining an application program architecture so as to improve the utilization efficiency of the architecture. The specific technical scheme is as follows:
to achieve the above object, an embodiment of the present invention provides an application architecture determining method, where the method includes:
acquiring program characteristic values of a target application program aiming at various preset program characteristics;
determining the type of the target application program according to the acquired characteristic value;
and determining the target architecture of the target application program according to the type of the target application program and the corresponding relation between the type of the application program and the architecture of the application program, which is stored in advance.
Optionally, the method further includes:
displaying the target architecture;
receiving an architecture selection instruction, and selecting an architecture from the target architecture as a first architecture according to the architecture selection instruction;
receiving an editing instruction aiming at the first architecture, and editing the first architecture according to the first architecture editing instruction;
and auditing the edited first architecture, and configuring the edited first architecture after the auditing is passed.
Optionally, the method further includes:
displaying the target architecture;
receiving an editing instruction aiming at the target architecture, and editing the target architecture according to the editing instruction;
receiving a framework selection instruction, and selecting a framework from the edited framework as a second framework according to the framework selection instruction;
and auditing the second architecture, and configuring the second architecture after the second architecture passes the auditing.
Optionally, the presenting the target architecture includes:
determining a service in the target architecture;
and displaying the service information of the determined service.
Optionally, the determining the type of the target application according to the obtained feature value includes:
according to the preset weight of each type of preset program features, carrying out weighted calculation on the obtained program feature value to obtain a target comprehensive program feature value of the target application program;
determining similar application programs of the target application program from the application programs according to the target comprehensive program characteristic value and the comprehensive program characteristic value of each application program of the recorded program information in the first database, wherein the comprehensive program characteristic value of each application program is as follows: the application program is obtained by carrying out weighted calculation on the program characteristic values of the application program aiming at various preset characteristics according to the weights of the various preset program characteristics;
and determining the classification of the target application program according to the classification to which the similar application program belongs.
Optionally, when the similar applications include at least two applications, before determining the classification of the target application according to the classification to which the similar applications belong, the method further includes:
obtaining the similarity probability of each similar application program and the target application program according to the target comprehensive program characteristic value and the comprehensive program characteristic value of the similar application program;
respectively calculating the absolute value of the difference between every two obtained similarity probabilities;
determining the maximum value in the absolute values obtained by calculation, re-acquiring the program characteristic values of the target application program aiming at various preset program characteristics under the condition that the maximum value is larger than a preset index value, and returning to execute the weighting calculation of the acquired program characteristic values according to preset weights of various preset program characteristics to obtain the target comprehensive program characteristic value of the target application program.
Optionally, the preset program feature includes one of the following features:
a paint feature of the application;
the operating mode characteristics of the application;
a network connection status characteristic of the application;
the operating mode characteristics of the application.
Optionally, when the preset program feature includes a drawing feature of an application program, the obtaining a program feature value of the target application program for each type of preset program feature includes:
obtaining a target picture of the target application program;
searching a first picture similar to the target picture in a second database, wherein the second database is used for storing pictures of all application programs;
determining a first application program corresponding to the searched first picture;
and acquiring the characteristic value of the target application program aiming at the picture characteristic according to the determined characteristic value of the first application program aiming at the picture characteristic.
Optionally, the searching for the first picture similar to the target picture in the second database includes:
acquiring picture characteristic values of the target picture aiming at various preset picture characteristics;
according to the preset weight of each type of preset picture features, carrying out weighted calculation on the obtained picture feature value to obtain a target comprehensive picture feature value of the target picture;
searching a first picture similar to the target picture in a second database through a first heuristic search algorithm according to the target comprehensive picture characteristic value and the comprehensive picture characteristic value of each picture in the second database, wherein the comprehensive picture characteristic value of each application program is as follows: and carrying out weighted calculation on the application program aiming at various preset picture characteristics according to the weights of the various preset picture characteristics.
Optionally, when the preset program feature includes an operation mode feature of an application program, the obtaining a program feature value of the target application program for each type of preset program feature includes:
judging whether the target application program has a server side or not;
if so, determining that the characteristic value of the target application program aiming at the operation mode characteristic is a characteristic value representing a network version operation mode;
and if not, determining that the characteristic value of the target application program aiming at the operation mode characteristic is a characteristic value representing a single-version operation mode.
Optionally, when the preset program feature includes a network connection state feature of an application program, after determining that a feature value of the target application program for the operation mode feature is a feature value representing a network version operation mode, the method further includes:
determining a target charging mode of the target application program according to a transmission control protocol adopted by the target application program;
and determining a characteristic value of the target application program aiming at the network connection state characteristic according to the target charging mode.
Optionally, when the preset program feature includes an operation mode feature of an application program, the obtaining a feature value of the target application program for each type of preset feature includes:
acquiring target operation data of the target application program;
performing statistical analysis on the target operation data to determine the incidence relation between the target operation data and time;
inputting the target operation data and the association relation into a pre-established operation mode classification model to obtain a classification result of the target application program for an operation mode, wherein the operation mode classification model is as follows: pre-training the obtained operation data, the incidence relation between the operation data and time and the corresponding relation model among the operation mode classification;
and obtaining a characteristic value of the target application program aiming at the operation mode characteristic according to the classification result.
Optionally, the operation mode classification model is as follows: and the classification model is solved by adopting a second heuristic search algorithm.
To achieve the above object, an embodiment of the present invention provides an application architecture determining apparatus, including:
the acquisition module is used for acquiring program characteristic values of the target application program aiming at various preset program characteristics;
the first determining module is used for determining the type of the target application program according to the acquired characteristic value;
and the second determining module is used for determining the target architecture of the target application program according to the type of the target application program and the corresponding relation between the type of the application program and the architecture of the application program, which is stored in advance.
Optionally, the apparatus further comprises:
the first display module is used for displaying the target architecture;
the first receiving module is used for receiving an architecture selection instruction and selecting an architecture from the target architecture as a first architecture according to the architecture selection instruction;
the first editing module is used for receiving an editing instruction aiming at the first framework and editing the first framework according to the first framework editing instruction;
and the first auditing module is used for auditing the edited first architecture and configuring the edited first architecture after the first architecture passes the auditing.
Optionally, the apparatus further comprises:
the second display module is used for displaying the target architecture;
the second editing module is used for receiving an editing instruction aiming at the target architecture and editing the target architecture according to the editing instruction;
the second receiving module is used for receiving the architecture selection instruction and selecting an architecture from the edited architectures according to the architecture selection instruction to serve as a second architecture;
and the second auditing module is used for auditing the second architecture and configuring the second architecture after the second architecture passes the auditing.
Optionally, the first display module and the second display module are specifically configured to:
determining a service in the target architecture; and displaying the service information of the determined service.
Optionally, the first determining module includes:
the first obtaining submodule is used for carrying out weighted calculation on the obtained program characteristic value according to the preset weight of various preset program characteristics to obtain a target comprehensive program characteristic value of the target application program;
a first determining submodule, configured to determine, according to the target integrated program feature value and an integrated program feature value of each application program of which program information has been recorded in a first database, a similar application program of the target application program from each application program, where the integrated program feature value of each application program is: the application program is obtained by carrying out weighted calculation on the program characteristic values of the application program aiming at various preset characteristics according to the weights of the various preset program characteristics;
and the second determining submodule is used for determining the classification of the target application program according to the classification to which the similar application program belongs.
Optionally, when the similar application includes at least two applications, the first determining module further includes:
a second obtaining submodule, configured to obtain, according to the target integrated program feature value and the integrated program feature value of the similar application program, a similarity probability between each similar application program and the target application program;
the calculation submodule is used for respectively calculating the absolute value of the difference value between every two obtained similarity probabilities;
and the reacquisition submodule is used for determining the maximum value in the absolute values obtained by calculation, reacquiring the program characteristic values of the target application program aiming at various preset program characteristics under the condition that the maximum value is greater than a preset index value, and returning to execute the first acquisition submodule.
Optionally, the preset program feature includes one of the following features:
a paint feature of the application;
the operating mode characteristics of the application;
a network connection status characteristic of the application;
the operating mode characteristics of the application.
Optionally, when the preset program feature includes a drawing feature of an application program, the obtaining module includes:
a third obtaining submodule, configured to obtain a target screen of the target application;
the searching submodule is used for searching a first picture similar to the target picture in a second database, wherein the second database is used for storing pictures of all application programs;
the third determining submodule is used for determining the first application program corresponding to the searched first picture;
and the first obtaining submodule is used for obtaining the characteristic value of the target application program aiming at the picture characteristic according to the determined characteristic value of the first application program aiming at the picture characteristic.
Optionally, the search submodule includes:
the acquisition unit is used for acquiring the picture characteristic values of the target picture aiming at various preset picture characteristics;
the calculating unit is used for carrying out weighted calculation on the acquired picture characteristic value according to the preset weight of various preset picture characteristics to obtain a target comprehensive picture characteristic value of the target picture;
a searching unit, configured to search, according to the target integrated picture feature value and the integrated picture feature value of each picture in a second database, a first picture similar to the target picture in the second database through a first heuristic search algorithm, where the integrated picture feature value of each application is: and carrying out weighted calculation on the application program aiming at various preset picture characteristics according to the weights of the various preset picture characteristics.
Optionally, when the preset program feature includes an operation mode feature of an application program, the obtaining module includes:
the judging submodule is used for judging whether the target application program has a server side or not;
a fourth determining submodule, configured to determine, when a determination result of the determining submodule is yes, that a feature value of the target application program for the operation mode feature is a feature value representing a network version operation mode;
and a fifth determining submodule, configured to determine that the feature value of the target application program for the operation mode feature is a feature value representing a single-machine operation mode if the determination result of the determining submodule is negative.
Optionally, the obtaining module further includes:
a sixth determining submodule, configured to determine a target charging manner of the target application according to a transmission control protocol adopted by the target application;
and the seventh determining submodule is used for determining a characteristic value of the target application program aiming at the network connection state characteristic according to the target charging mode.
Optionally, when the preset program feature includes an operation mode feature of an application program, the obtaining module includes:
the second acquisition submodule is used for acquiring target operation data of the target application program;
the eighth determining submodule is used for performing statistical analysis on the target operation data and determining the incidence relation between the target operation data and time;
a fourth obtaining sub-module, configured to input the target operation data and the association relationship into a pre-established operation manner classification model, and obtain a classification result of the target application program for an operation manner, where the operation manner classification model is: pre-training the obtained operation data, the incidence relation between the operation data and time and the corresponding relation model among the operation mode classification;
and the ninth determining submodule is used for obtaining the characteristic value of the target application program aiming at the operating mode characteristic according to the classification result.
Optionally, the operation mode classification model is as follows: and the classification model is solved by adopting a second heuristic search algorithm.
According to the application program architecture determining method and device provided by the embodiment of the invention, the type of the target application program can be determined according to the acquired program characteristic values of the target application program aiming at various preset program characteristics, and then the target architecture of the target application program is determined according to the type of the target application program and the corresponding relation between the type of the application program and the application program architecture which is stored in advance. The embodiment of the invention determines the target architecture of the target application program by determining the type of the target application program and according to the corresponding relationship between the type of the application program and the architecture of the application program, which is stored in advance, and because one type of the application program can contain a plurality of application programs, the problem that the utilization efficiency of the architecture is low because the application programs and the corresponding architecture are in one-to-one relationship and the architecture sharing cannot be realized in the prior art is solved, and therefore, the utilization rate of the architecture is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a first flowchart illustrating an application architecture determining method according to an embodiment of the present invention;
fig. 2 is a second flowchart illustrating an application architecture determining method according to an embodiment of the present invention;
fig. 3 is a third flowchart illustrating an application architecture determining method according to an embodiment of the present invention;
FIG. 4 is a fourth flowchart illustrating an application architecture determining method according to an embodiment of the present invention
Fig. 5 is a fifth flowchart illustrating an application architecture determining method according to an embodiment of the present invention
Fig. 6 is a sixth flowchart illustrating an application architecture determining method according to an embodiment of the present invention
FIG. 7 is a first structural diagram of an application architecture determining apparatus according to an embodiment of the present invention;
FIG. 8 is a diagram illustrating a second structure of an application architecture determining apparatus according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a third exemplary embodiment of an application architecture determining apparatus.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the execution subject of the application architecture determining method provided by the embodiment of the present invention may be an application architecture determining apparatus. In practical applications, the application architecture determining apparatus may be a terminal for a developer, and the developer may use the terminal for application architecture development and design.
To solve the problems in the prior art, embodiments of the present invention provide a method and an apparatus for determining an application architecture, which are described in detail below.
Fig. 1 is a first flowchart of a method for determining an application architecture according to an embodiment of the present invention, where the method includes:
s101, acquiring program characteristic values of the target application program aiming at various preset program characteristics.
In an embodiment of the present invention, the preset program feature may include one of the following features: a paint feature of the application; the operating mode characteristics of the application; a network connection status characteristic of the application; the operating mode characteristics of the application.
It should be noted that the drawing referred to herein refers to the stroke and composition of the picture in the application scene, and may be understood as the aesthetic style of the drawing, and the game is an exemplary application, and taking the game as an example, the drawing features of the game may include: swordsmen write a real painting style, a swordsmen beautiful painting style, a cartoon Q edition painting style, a western magic painting style, a Japanese cartoon painting style and the like; the stroke of the application of the reading class may include: a realistic painting style, a cartoon painting style, a wash painting style, and the like.
For example, the operation mode features of the application program may include: the system comprises a single-machine version operation mode and a network version operation mode, wherein the single-machine version operation mode can be understood as an application program with the single-machine version operation mode, and can be normally operated without a special server; the network version operation mode can be an application program which is understood to have the network version operation mode, and a special server is required to be relied on for normal operation.
Illustratively, the network networking status characteristics of the application include: the system comprises a strong networking and a weak networking, wherein the strong networking is used for keeping connection with a special server in real time in the running process of an application program to exchange data so as to facilitate the normal running of the application program; the weak networking is that during the operation of the application program, the connection with a special server is mainly used for data storage, charging and other operations, and it can be understood that when the connection with the special server is disconnected, the application program can be operated, and when the connection with the special server is connected, a specific function can be realized or specific content can be operated. It will be appreciated that weakly networked applications may also operate in situations where the network environment is unstable. The specialized server referred to herein is a server that the application operator specifically configures for the application so that the application can be remotely connected to the specialized server over a network.
Exemplary operating mode features of the application may include: mouse operation mode, keyboard operation mode, touch operation mode, handle operation mode and the like. The mouse operation mode means that the application program is mainly operated by the mouse in operation; the keyboard operation mode means that the application program is operated mainly through a keyboard; the touch operation mode means that the operation of the application program is mainly realized by the touch mode; for example, a target application program is installed in the touch screen mobile phone, and when the target application program runs, operations such as clicking, sliding, dragging and the like can be performed on the screen of the touch screen mobile phone to realize control over the target application program; the handle operation mode is to operate the application program through a handle corresponding to the application program.
It should be noted that, the same application is installed on different devices, and the operation modes may be different, for example, the application is installed on a touch device, the operation mode characteristic of the application may be a touch operation mode, and the application is installed on a computer, and the operation mode characteristic of the application may be a mouse operation mode, a keyboard operation mode, or a handle operation mode; the operating mode of the application program can be characterized as a handle operating mode when the application program is installed on a television.
It should be noted that after various preset program features of the target application program are determined, the program feature values of the target application program for the various preset application programs can be obtained according to the corresponding relationship between the preset program features and the program feature values, and for example, if the painting feature of the target application program is swordsmen painting, the program feature values corresponding to the swordsmen painting can be obtained. It should be noted that each type of preset program feature may include a plurality of program sub-features, and each sub-program feature is set with a weight, so that a target comprehensive program feature value is calculated more accurately, for example, the preset program feature is a paint feature, and then the paint sub-feature corresponding to the paint feature is: scene sub-features, character image sub-features, and the like.
A tag may be understood as a categorical label of a thing, from the perspective of an application, a tag is a categorical label of some function or content of the application. It is understood that, in the embodiment of the present invention, each type of the preset program features corresponds to a type of the tag, for example, if the painting of the application is swordsmen painting, the painting tag of the application may be swordsmen painting. In the embodiment of the invention, the application programs are classified, namely, the application programs are added with the labels according to the classification result, so that a user can select the application programs of the mood instrument according to the labels of the application programs, and the user experience is improved.
As shown in fig. 2, fig. 2 is a second flowchart of the method for determining an application architecture according to an embodiment of the present invention, where when the preset program feature includes a painting feature of an application program, acquiring a program feature value of a target application program for each type of preset program feature (S101) may include: s101a1, S101a2, S101A3, S101a 4; wherein,
S101A1, obtaining the target picture of the target application program.
In practical application, pictures in different scenes of a target application program can be captured as target pictures, and specifically, the pictures can be captured at the same time interval in different scenes; and capturing pictures in different scenes in the target application program in real time, and taking the captured pictures as target pictures. Furthermore, the captured pictures need to be preprocessed, repeated pictures in the captured pictures are removed, and pictures which are unclear or have picture quality which does not meet the preset requirements in the captured pictures are removed, so that interference pictures are removed, and the determined characteristic value of the target application program for the characteristics of the picture style is more accurate. The target screen includes at least one screen.
S101a2, searching a second database for the first picture similar to the target picture, wherein the second database is used for storing pictures of each application program.
The second database may be the same as or different from the first database. In practical applications, the first screen may be determined by searching in the screens stored in the second database and comparing the searched screen with the target screen, where the searching may be performed one by one or according to a certain rule, and of course, the searching is not limited to the above-mentioned searching method, and is not listed here.
Specifically, the searching for the first picture similar to the target picture in the second database may include: acquiring a picture characteristic value of the target picture aiming at various preset picture characteristics; according to the preset weight of each type of preset picture features, carrying out weighted calculation on the obtained picture feature value to obtain a target comprehensive picture feature value of the target picture; searching a first picture similar to the target picture in a second database through a first heuristic search algorithm according to the target comprehensive picture characteristic value and the comprehensive picture characteristic value of each picture in the second database, wherein the comprehensive picture characteristic value of each application program is as follows: and carrying out weighted calculation on the application program aiming at various preset picture characteristics according to the weights of the various preset picture characteristics.
The picture characteristics are basic elements which have infection value and can embody the design connotation. For example, the target application is a game, and the preset screen features may include: game scenes, special effects, props, roles, or UI (User Interface) designs, etc., and when the target application is a reading application, the preset screen features may include: background, font, buttons, interactive means, etc. After the target picture is determined, the specific content of each type of preset picture feature is determined accordingly, and the picture feature values of the target picture for each type of preset picture feature can be obtained according to the corresponding relation between each type of preset picture feature and the picture feature value.
It should be noted that, for different preset picture features, the same weight may be set, or different weights may be set, and in practical application, after normalization processing is performed on the weights set for various picture features, the sum of all weights is equal to 1. Specifically, the principle of obtaining the target integrated picture characteristic value is similar to the principle of obtaining the target integrated program characteristic value, and is not described herein again.
It should be noted that, in the embodiment of the present invention, various preset image features in a searched image are identified through an image identification algorithm, and a comprehensive image feature value of an application program corresponding to the searched image is determined according to a corresponding relationship between the identified various preset image features and feature values, where the image identification algorithm is an image identification algorithm, and is an algorithm for processing, analyzing, and understanding an image by using a computer to identify various targets and objects in different modes. Specifically, the principle of obtaining the first picture by searching is similar to the principle of obtaining the similar application program, and details are not described here.
By applying the embodiment of the invention, the similar application programs of the target application programmers are determined according to the target comprehensive program characteristic value of the target application program and the comprehensive program characteristic value of each application program, and the classification of the target application programs is determined according to the classification to which the similar application programs belong.
S101a3, the first application corresponding to the searched first screen is determined.
In practical application, there is a corresponding relationship between the screen and the application program, and when one of the screen and the application program is determined, the other one is also determined, and the first application program corresponding to the first screen can be determined according to the corresponding relationship.
S101A4, obtaining the characteristic value of the target application program for the painting feature according to the determined characteristic value of the first application program for the painting feature.
Since the first frame is a similar frame of the target frame, the probability that the feature values of the first application program and the target application program for the frame features are similar is high, and therefore, the feature value of the target application program for the frame features can be acquired according to the determined feature value of the first application program for the frame features.
In the embodiment of the present invention, if there is one first application, the characteristic value of the first application for the wind-drawing characteristic is the characteristic value of the target application for the wind-drawing, for example, the wind-drawing characteristic of the first application is a swordsman beautiful wind-drawing, and according to the relationship between the wind-drawing characteristic and the characteristic value, assuming that the characteristic value corresponding to the swordsman beautiful wind-drawing is determined to be 10, the wind-drawing characteristic of the target application is a swordsman beautiful wind-drawing, and the characteristic value for the wind-drawing characteristic is 10. If a plurality of first application programs exist, setting a weight for the characteristic value of the painting characteristic of each application program, and performing weighted calculation on the characteristic value of the painting characteristic of each application program to obtain a comprehensive painting characteristic value of the first application program; the target application program takes the characteristic value of the integrated drawing as the characteristic value of the drawing; the application program with the highest similarity to the target application program may also be selected from the first application programs, and the feature value of the target application program for the painting is the feature value of the painting feature of the selected application program.
In an embodiment of the present invention, a drawing feature of a target application program and a feature value for the drawing feature may be determined. Determining the painting characteristics of the target application program, and classifying the target application program based on the painting characteristic dimension, namely adding the labels of the painting characteristics to the target and the application program to realize the detailed classification of the application program. Meanwhile, the user can select interested application programs according to the labels of the painting features, and user experience is improved.
By applying the embodiment of the invention, the similar application programs of the target application programmers are determined according to the target comprehensive program characteristic value of the target application program and the comprehensive program characteristic value of each application program, and the classification of the target application programs is determined according to the classification to which the similar application programs belong.
As shown in fig. 3, fig. 3 is a third flowchart illustrating an application architecture determining method according to an embodiment of the present invention, where when the preset program features include operation mode features of an application program, acquiring program feature values of a target application program for various preset program features (S101) may include: S101B1, S101B2, S1011B 3; wherein,
S101B1, judging whether the target application program has a server side; if so, go to S101B 2; if not, S1011B3 is executed.
In practical application, various types of data of the target application program can be collected and recorded, a callback value for testing whether the target application program has a service end program exists in the recorded data, and whether the target application program has the service end is judged according to the callback value.
And S101B2, determining the characteristic value of the target application program for the operation mode characteristic as a characteristic value representing the network version operation mode.
In practical application, if the callback value is a preset value, it can be determined that the target application program exists in the server, the operation mode characteristic of the target application program is determined to be a network version operation mode, and meanwhile, the characteristic value of the target application program for the operation mode characteristic is determined according to the preset characteristic value corresponding to the network version operation mode.
And S1011B3, determining the characteristic value of the target application program for the operation mode characteristic as a characteristic value representing a single-machine operation mode.
In practical application, if the callback value is a non-preset value, it can be determined that the target application program does not have a server, the operation mode characteristic of the target application program is determined to be a single-machine operation mode, and meanwhile, the characteristic value of the target application program for the operation mode characteristic is determined according to the preset characteristic value corresponding to the single-machine operation mode.
In the embodiment of the invention, the operation mode characteristic of the target application program and the characteristic value aiming at the operation mode characteristic can be determined. The operation mode characteristics of the target application program are determined, and the target application program can be classified based on the operation mode characteristic dimension, namely, the target and the application program are added with the label of the operation mode characteristics, so that the application program is classified in detail. Meanwhile, the user can select interested application programs according to the labels of the running mode characteristics, and user experience is improved.
By applying the embodiment of the invention, the similar application programs of the target application programmers are determined according to the target comprehensive program characteristic value of the target application program and the comprehensive program characteristic value of each application program, and the classification of the target application programs is determined according to the classification to which the similar application programs belong.
When the preset feature includes the network connection feature of the application program, after S101B2, the method further includes:
determining a target charging mode of the target application program according to a transmission control protocol adopted by the target application program; and determining a characteristic value of the target application program aiming at the network connection state characteristic according to the target charging mode.
The Transmission Control Protocol (TCP) is a connection-oriented, reliable transport layer communication Protocol based on a byte stream. According to the TCP protocol, a target charging mode is determined by judging whether a target application program performs data transmission with a special server in real time, if so, the target charging mode can be determined to be charging under the stable condition of WIFI (Wireless Fidelity) or GPRS (General Packet Radio Service), and if not, the target charging mode can be determined to be short message charging. The charging mentioned here is the cost of data transmission between the target application program and the special server, for example, the cost may be the consumption of network traffic, and the short message charging may be the cost of converting the consumption of network traffic into money, and the cost is charged to the user of the target application program through the short message. It should be noted that, if WIFI or GPRS is unstable, and data transmission between the target application and the dedicated server cannot be performed normally, the target application cannot operate normally.
In practical application, if the target charging mode is short message charging, it indicates that the target application program does not need to exchange data with a special server in real time, and can determine that the target application program is a weak networking characteristic aiming at the network connection state characteristic; if the target charging mode is charging under the stable WIFI or GPRS condition, it indicates that the target application program needs to exchange data with a special server in real time, and the target application program can be determined to be a strong networking characteristic aiming at the network connection state characteristic.
The strong networking characteristic and the weak networking characteristic respectively correspond to preset characteristic values, and once the target application program determines the network connection state characteristic, the characteristic values of the network connection state characteristic are determined accordingly.
In an embodiment of the present invention, a network connection status characteristic of a target application and a characteristic value for the network connection status characteristic may be determined. The network connection state characteristics of the target application program are determined, and the target application program can be classified based on the network connection state characteristic dimension, namely, the label of the network connection state characteristics is added to the target and the application program, so that the application program is classified in detail. Meanwhile, the user can select interested application programs according to the label of the network connection state characteristics, and the user experience is improved.
By applying the embodiment of the invention, the similar application programs of the target application programmers are determined according to the target comprehensive program characteristic value of the target application program and the comprehensive program characteristic value of each application program, and the classification of the target application programs is determined according to the classification to which the similar application programs belong.
As shown in fig. 4, fig. 4 is a fourth flowchart illustrating an application architecture determining method according to an embodiment of the present invention, where when the preset program features include operation mode features of the application program, acquiring program feature values of the target application program for various preset program features (S101) may include: S101C1, S101C2, S101C3, S101C 4; wherein,
and S101C1, acquiring target operation data of the target application program.
The operation data is data generated by operating an application program being executed. Specifically, the method for acquiring the operation data comprises the following steps: the application program acquisition system acquires the operation data of the user of the application program, the mobile phone end testing machine and the computer simulator when the target application program runs,
in the embodiment of the invention, the operation data acquired by the application acquisition system can be extracted through the application information filtering system, the extracted operation data is preprocessed, repeated operation data is removed, and operation data obviously irrelevant to the required data in the extracted operation data is removed, so that the target operation data is obtained. It should be noted that, acquiring data, storing data, and extracting data are all prior art, and are not described herein again.
For example, the obtained target operation data may be: the mouse click rate, the dragging frequency and the dragging rate, the keyboard tap frequency and the high-frequency keyboard keys, and the mouse click rate, the click times, the dragging frequency and the dragging times in a specific timestamp, wherein the high-frequency keyboard keys are keyboard keys with the use times before a preset ranking or exceeding a preset threshold value in a statistical time period.
S101C2, performing statistical analysis on the target operation data, and determining the incidence relation between the target operation data and time.
In the embodiment of the present invention, when the target operation data includes a plurality of types of data, the number of times, frequency, rate, and the like of occurrence of each type of data in a fixed time interval may be counted, and for example, when the target operation data includes the number of mouse clicks, the number of mouse clicks in 2 seconds may be counted. After the target operation data is subjected to statistics, the target operation data after the statistics is analyzed in relation to time, and in an exemplary way, the change trend of the target operation data after the statistics is analyzed along with the time. Specifically, a graph of the counted target operation data and time is established, and the relationship between the target operation data and the time is analyzed according to the graph, so as to determine the association relationship between the target operation data and the time. It should be noted that, an existing statistical analysis method may be used to perform statistical analysis on the target operation data, or a statistical analysis method may be designed to perform statistical analysis on the target operation data.
S101C3, inputting the target operation data and the incidence relation into a pre-established operation mode classification model, and obtaining a classification result of the target application program for the operation mode, wherein the operation mode classification model is as follows: and pre-training the obtained operation data, the incidence relation between the operation data and time and the corresponding relation model among the operation mode classification.
Specifically, the operation mode classification model is as follows: and the classification model is solved by adopting a second heuristic search algorithm.
It should be noted that the operation manner classification model may be a mathematical model, which is established according to the correspondence between the operation data, the time and the operation manner classification obtained by pre-training, and the operation manner classification models adopted by the application programs of different types may be the same or different and are mainly determined by the operation manner. In different application scenarios, the same application program can adopt different operation mode classification models because the operation data, the incidence relation between the operation data and time and the corresponding relation among the operation mode classification are different.
And S101C4, obtaining the characteristic value of the target application program for the operation mode characteristic according to the classification result.
In practical application, there is a corresponding relationship between the classification result and the operation mode features, and it can be understood that each operation mode feature corresponds to a numerical range, the classification result is matched with the numerical range of the operation mode features, and the matched operation mode features are determined as the operation mode features of the target application program. Each operation mode characteristic is preset with a characteristic value, and after the operation mode characteristic of the target application program is determined, the characteristic value of the target application program for the operation mode characteristic is also determined.
In the embodiment of the invention, the operation mode characteristic of the target application program and the characteristic value aiming at the operation mode characteristic can be determined. The operation mode characteristics of the target application program are determined, and the target application program can be classified based on the operation mode characteristic dimension, namely, the target application program and the application program are added with labels of the operation mode characteristics, so that the application program can be classified in detail. Meanwhile, the user can select interested application programs according to the labels of the running mode characteristics, and user experience is improved.
It should be noted that, in the embodiment of the present invention, the application programs are classified, results of classification in different dimensions can be selected according to actual situations, and tags are added to the application programs according to the classification results, so that a user can select an application program that is interested in himself according to the tags.
By applying the embodiment of the invention, the similar application programs of the target application programmers are determined according to the target comprehensive program characteristic value of the target application program and the comprehensive program characteristic value of each application program, and the classification of the target application programs is determined according to the classification to which the similar application programs belong.
And S102, determining the type of the target application program according to the acquired characteristic value.
In this embodiment of the present invention, determining the type of the target application according to the obtained feature value may include: according to the preset weight of each type of preset program features, carrying out weighted calculation on the obtained program feature value to obtain a target comprehensive program feature value of the target application program; determining similar application programs of the target application program from the application programs according to the target comprehensive program characteristic value and the comprehensive program characteristic value of each application program of the recorded program information in the first database, wherein the comprehensive program characteristic value of each application program is as follows: the application program is obtained by carrying out weighted calculation on the program characteristic values of the application program aiming at various preset characteristics according to the weights of the various preset program characteristics; and determining the classification of the target application program according to the classification to which the similar application program belongs.
It should be noted that, for different preset program features, the same weight may be set, or different weights may be set, and in practical application, after normalization processing is performed on the weights set for various program features, the sum of all the weights is equal to 1.
The weighting calculation is a concept in statistics, and a target comprehensive program characteristic value of the target application program can be calculated according to program characteristic values of various preset program characteristics and weights corresponding to the preset program characteristics.
The integrated program feature value of each application program may be calculated in advance by weighting and stored in the first database, or may be calculated by weighting when the integrated program feature value of the application program is acquired. The calculation method of the integrated program feature value of each application program is the same as the calculation method of the target integrated program feature value of the target application program, and is not described herein again.
In practical applications, the target integrated program feature value may be compared with the integrated program feature values of the respective application programs one by one, an absolute value of a difference between the target integrated program feature value and each integrated program feature value is calculated, and the application program corresponding to the absolute value within the preset threshold value is determined as a similar application program. Of course, the searched comprehensive program characteristic value of the application program can be compared with the target comprehensive program characteristic value according to a heuristic search algorithm, the absolute value of the difference value between the comprehensive program characteristic value and the target comprehensive program characteristic value is recorded, the steps of searching, comparing and recording are repeated until the searching is completed, and the similar application program is determined according to the recorded absolute value.
It can be understood that the heuristic search algorithm is an algorithm that evaluates each searched position by searching in a state space to obtain the best position, and then searches from the position to a target, so that a large number of meaningless search paths can be omitted, and the efficiency is improved. The heuristic search algorithm comprises: the ant colony algorithm is a random search optimization method from nature, is a colony heuristic behavior in the biological world, and is continuously applied to multiple fields of combination optimization, artificial intelligence, communication and the like; genetic Algorithm (Genetic Algorithm) is a calculation model of a biological evolution process simulating natural selection and Genetic mechanism of Darwinian biological evolution theory, and is a method for searching an optimal solution by simulating the natural evolution process; the simulated annealing algorithm is an optimization algorithm which can effectively avoid trapping in a serial structure which is locally minimum and finally tends to global optimum by endowing a search process with time-varying probability jump property and finally tends to zero.
It will be appreciated that in the first database, each application has a classification to which it belongs, and the classification of a similar application is determined to be the classification of the target application. Illustratively, the similar application is game a, and the classification of game a is MMO (Massive Multiplayer Online) type, then the classification of the target application is MMO type; the similar application is application A, and if the classification to which application A belongs is group purchase, the classification of the target application is a group purchase type.
By applying the embodiment of the invention, the similar application programs of the target application programmers are determined according to the target comprehensive program characteristic value of the target application program and the comprehensive program characteristic value of each application program, and the classification of the target application programs is determined according to the classification to which the similar application programs belong.
In this embodiment of the present invention, when the similar application includes at least two applications, before determining the classification of the target application according to the classification to which the similar application belongs, the method further includes: obtaining the similarity probability of each similar application program and the target application program according to the target comprehensive program characteristic value and the comprehensive program characteristic value of the similar application program; respectively calculating the absolute value of the difference between every two obtained similarity probabilities; determining the maximum value in the absolute values obtained by calculation, re-acquiring the program characteristic values of the target application program aiming at various preset program characteristics under the condition that the maximum value is larger than a preset index value, returning to execute the preset weight of various preset program characteristics, and performing weighted calculation on the acquired program characteristic values to obtain the target comprehensive program characteristic value of the target application program.
In practical applications, the similarity probability can be calculated according to the following calculation formula:
Figure BDA0001210371940000201
illustratively, if the target integrated program characteristic value is 50, the similar application is application 1, and the integrated program characteristic value of application 1 is 40, the probability of similarity between the target application and the target application is 80%. Of course, the method for determining the similarity probability is not limited to the above method, and is not listed here.
For example, assume that the similar applications are application 1, application 2, and application 3, and the similarity probabilities of the three applications and the target application are shown in table 1.
TABLE 1
Application program Probability of similarity
Application program 1 80%
Application 2 85%
Application 3 82%
The absolute values of the differences between each two of the three similarity probabilities are calculated, respectively, and the obtained absolute values are shown in table 2.
TABLE 2
Absolute value of difference
Application 1 and application 2 5%
Application 1 and application 3 2%
Application 2 and application 3 3%
Illustratively, as can be seen from table 2, if the maximum value of the difference is 5%, and the preset index value is 3%, the program feature values of the target application program for the various preset program features are obtained again, and weights of the preset various preset program features are returned to execute, and the obtained program feature values are subjected to weighted calculation to obtain a target comprehensive program feature value of the target application program. And if the maximum value in the difference values is not larger than the preset index value, determining the classification of the target application program according to the classification to which the similar application program belongs. And adding labels of the classification result and the similar probability for the target application program according to the similar probability of the target application program and the similar application program.
In the embodiment of the invention, the categories of the target application programs can be automatically distinguished, and the intelligent classification of the application programs is realized. Meanwhile, due to the fact that the application programs are automatically classified, manual classification according to work experience is not needed any more in operation, work pressure of operation and maintenance personnel is relieved, dependence on the work experience of the operation personnel is reduced, and work efficiency is improved.
By applying the embodiment of the invention, the similar application programs of the target application programmers are determined according to the target comprehensive program characteristic value of the target application program and the comprehensive program characteristic value of each application program, and the classification of the target application programs is determined according to the classification to which the similar application programs belong.
S103, determining the target architecture of the target application program according to the type of the target application program and the corresponding relation between the type of the application program and the architecture of the application program, which is stored in advance.
It is understood that the developer may establish a one-to-one correspondence relationship between the application type and the application architecture in advance, and store the correspondence relationship, as shown in table 3. Illustratively, the JG001 in the application architecture is composed of a plurality of services and their connection relationships, and the services may include a chat service, a shopping service, a load balancing service, a login service, and a related database service, and the services corresponding to the architecture in the embodiment of the present invention are merely exemplary and do not constitute a limitation to the embodiment of the present invention. The process of establishing a corresponding relationship between an application type and a framework is to find at least one framework which enables the application to normally run for an application belonging to one type from a technical point of view, and specifically, the process of establishing a corresponding relationship is the prior art, and is not described herein in detail in the embodiments of the present invention.
Illustratively, the target application is game a, the target application belongs to the MMO type, that is, the MMO type, and the target architecture corresponding to game a can be found according to table 3 as follows: JG001, JG004, and JG006, names of architectures in the embodiments of the present invention are merely exemplary. And the target architecture can be multiple, and the user can select according to own needs, so that the selection range of the developer is enlarged, and the experience of the developer is improved.
TABLE 3
Type (B) Application program architecture
MMO JG001
MPG JG007
MMO JG004
MMO JG006
MPG JG009
By applying the embodiment shown in fig. 1 of the present invention, the type of the target application program can be determined according to the obtained program characteristic values of the target application program for various preset program characteristics, and then the target architecture of the target application program is determined according to the type of the target application program and the corresponding relationship between the application program type and the application program architecture which are stored in advance. The embodiment of the invention determines the target architecture of the target application program by determining the type of the target application program and according to the corresponding relationship between the type of the application program and the architecture of the application program, which is stored in advance, and because one type of the application program can contain a plurality of application programs, the problem that the utilization efficiency of the architecture is low because the application programs and the corresponding architecture are in one-to-one relationship and the architecture sharing cannot be realized in the prior art is solved, and therefore, the utilization rate of the architecture is improved.
Fig. 5 is a fifth flowchart illustrating an application architecture determining method according to an embodiment of the present invention, where the following steps are added on the basis of the embodiment shown in fig. 1:
s201, displaying the target architecture.
It can be understood that after the target architecture of the application is determined, the target architecture needs to be exposed, and for example, the target architecture can be exposed to a developer in the form of a functional module, so that the developer can clearly know which services the target architecture specifically contains. Specifically, the displaying the target architecture includes: determining a service in the target architecture; and displaying the service information of the determined service. The process is a Visualization process of a target architecture, and as will be understood by those skilled in the art, Visualization (Visualization) is a theory, method and technology that converts data into graphics or images to be displayed on a screen by using computer graphics and image processing technology, and performs interactive processing. The services are displayed in a visual mode, and the method has the advantages that the corresponding services in the target architecture can be dragged, copied, deleted and the like, so that a developer can conveniently perform subsequent operations such as service editing and the like, and convenience is provided for the developer to operate the services corresponding to the target architecture.
S202, receiving an architecture selection instruction, and selecting an architecture from the target architecture as a first architecture according to the architecture selection instruction.
In the embodiment of the present invention, a developer issues a selection instruction on a terminal device used by the developer, selects among a plurality of architectures shown in S201, and takes a result of the selection as a first architecture. It can be understood that when a plurality of architectures are shown, a developer can determine which architecture is the most suitable architecture for the developer to use according to observation, evaluation, experience and the like, and then only the selected first architecture is needed in subsequent operations.
S203, receiving an editing instruction aiming at the first architecture, and editing the first architecture according to the first architecture editing instruction.
In S201, it can be known that the visualized target architecture may be subjected to an editing operation, for example, a service is added from a preset service library to a corresponding position of the architecture in a dragging manner. Illustratively, there is no mall service in JG006, and a game with mall service in the same product on the market can obtain better evaluation of the user and increase profit of the merchant, so that the developer can add mall service only by adding mall service to the architecture. For example, the load balancing service is a server for distributing users into games in a balanced manner, and the existing architecture has only one server, so that the load balancing service is not needed and can be deleted. In summary, the editing is to add or delete one or more of the load balancing service, the database service, the security protection service, the operation and maintenance service, and the like in the framework, so that the flexible editing framework according to the requirements of developers can be realized.
And S204, auditing the edited first architecture, and configuring the edited first architecture after the auditing is passed.
It can be understood that, after the developer edits the first framework, it is necessary to confirm whether the editing action is proper, and therefore, the edited first framework needs to be checked, and the checking mode may automatically check the edited first framework logic relationship by using the logic relationship entered in advance, or further manually check the first framework by using the background, so as to ensure that the editing of the first framework is reasonable. Specifically, the pre-entered logical relationship may be an arrangement order of services, a direction of data transmission, and the like. Illustratively, the load balancing service needs to be placed before the login service in order to reasonably allocate the service area of the user, and if the developer places the login service after the load balancing service, the audit is not passed, and a prompt is made that the service does not conform to the logical order. A developer may define the logical relationship according to an actual situation, which is specifically implemented in the prior art, and the embodiment of the present invention is not described herein again.
After the edited first framework passes the audit, data transmission addresses and data transmission protocols among different services in the framework need to be configured, such as access addresses of a database, data transmission protocols of operation and maintenance services and the database, data transmission protocols of storage services and database services, and the like, and the framework can normally operate after the configuration is completed.
By applying the embodiment shown in fig. 5 of the present invention, after the target architecture is determined, the display and selection are performed, the selected first architecture is edited, and the edited first architecture is configured, and this process enables the developer to directly select the required first architecture from the target architecture, and only edit, check and configure the first architecture, and the target performance is strong, so that the processing efficiency of the target architecture can be improved.
Fig. 6 is a sixth flowchart illustrating an application architecture determining method according to an embodiment of the present invention, where on the basis of the embodiment shown in fig. 1, the following steps are added:
s301, displaying the target architecture.
Displaying the target architecture, including: determining a service in the target architecture; and displaying the service information of the determined service.
The specific display process is the same as S201 in the embodiment shown in fig. 5 of the present invention, and details of the embodiment of the present invention are not repeated here.
S302, receiving an editing instruction aiming at the target architecture, and editing the target architecture according to the editing instruction.
It can be understood that, when the target architecture is a plurality of architectures, the displayed target architecture is also a plurality of architectures, and the developer edits the target architecture through the operation instruction, and a specific editing process is the same as S203 in the embodiment shown in fig. 5 of the present invention, which is not described herein again in the embodiment of the present invention.
S303, receiving the architecture selection instruction, and selecting an architecture from the edited architectures according to the architecture selection instruction to be used as a second architecture.
In the embodiment of the invention, after all the targets are edited, the architecture is selected from the edited architecture. Because the architectures have differences, developers can more clearly know the differences among the architectures after the architectures receive editing operation, and therefore more reasonable architectures can be further selected.
S304, auditing the second architecture, and configuring the second architecture after the second architecture passes the auditing.
The specific auditing and configuring processes are the same as S204 in the embodiment shown in fig. 5, and are not described herein again in the embodiment of the present invention.
By applying the embodiment shown in fig. 6 of the present invention, the target architecture is determined and then displayed and edited, the second architecture is selected from the edited architectures, and the second architecture is checked and configured, which enables the developer to compare the edited architectures, thereby selecting a more reasonable architecture.
Fig. 7 is a schematic structural diagram of a first structure of an application architecture determining apparatus according to an embodiment of the present invention, where the apparatus may include: an obtaining module 401, a first determining module 402, and a second determining module 403.
An obtaining module 401, configured to obtain program feature values of a target application program for various preset program features;
specifically, in practical applications, when the preset program feature includes a drawing feature of an application program, the obtaining module 401 may include: a third obtaining submodule, a searching submodule, a third determining submodule and a first obtaining submodule.
A third obtaining submodule, configured to obtain a target screen of the target application;
the searching submodule is used for searching a first picture similar to the target picture in a second database, wherein the second database is used for storing pictures of all application programs;
the third determining submodule is used for determining the first application program corresponding to the searched first picture;
and the first obtaining submodule is used for obtaining the characteristic value of the target application program aiming at the picture characteristic according to the determined characteristic value of the first application program aiming at the picture characteristic.
Specifically, the search sub-module may include: the device comprises an acquisition unit, a calculation unit and a search unit.
The acquisition unit is used for acquiring the picture characteristic values of the target picture aiming at various preset picture characteristics;
the calculating unit is used for carrying out weighted calculation on the acquired picture characteristic value according to the preset weight of various preset picture characteristics to obtain a target comprehensive picture characteristic value of the target picture;
a searching unit, configured to search, according to the target integrated picture feature value and the integrated picture feature value of each picture in a second database, a first picture similar to the target picture in the second database through a first heuristic search algorithm, where the integrated picture feature value of each application is: and carrying out weighted calculation on the application program aiming at various preset picture characteristics according to the weights of the various preset picture characteristics.
Specifically, in practical applications, when the preset program feature includes an operation mode feature of an application program, the obtaining module 401 may include: the judgment submodule, the fourth determination submodule and the fifth determination submodule.
The judging submodule is used for judging whether the target application program has a server side or not;
a fourth determining submodule, configured to determine, when a determination result of the determining submodule is yes, that a feature value of the target application program for the operation mode feature is a feature value representing a network version operation mode;
and a fifth determining submodule, configured to determine that the feature value of the target application program for the operation mode feature is a feature value representing a single-machine operation mode if the determination result of the determining submodule is negative.
Specifically, the obtaining module 401 may further include: a sixth determining submodule and a seventh determining submodule.
A sixth determining submodule, configured to determine a target charging manner of the target application according to a transmission control protocol adopted by the target application;
and the seventh determining submodule is used for determining a characteristic value of the target application program aiming at the network connection state characteristic according to the target charging mode.
Specifically, in practical applications, when the preset program feature includes an operation mode feature of an application program, the obtaining module 401 includes: a second obtaining submodule, an eighth determining submodule, a fourth obtaining submodule and a ninth determining submodule.
The second acquisition submodule is used for acquiring target operation data of the target application program;
the eighth determining submodule is used for performing statistical analysis on the target operation data and determining the incidence relation between the target operation data and time;
a fourth obtaining sub-module, configured to input the target operation data and the association relationship into a pre-established operation manner classification model, and obtain a classification result of the target application program for an operation manner, where the operation manner classification model is: pre-training the obtained operation data, the incidence relation between the operation data and time and the corresponding relation model among the operation mode classification;
and the ninth determining submodule is used for obtaining the characteristic value of the target application program aiming at the operating mode characteristic according to the classification result.
Specifically, the operation mode classification model is as follows: and the classification model is solved by adopting a second heuristic search algorithm.
A first determining module 402, configured to determine a type of the target application according to the obtained feature value;
specifically, the first determining module 402 may include: the device comprises a first obtaining submodule, a first determining submodule and a second determining submodule.
The first obtaining submodule is used for carrying out weighted calculation on the obtained program characteristic value according to the preset weight of various preset program characteristics to obtain a target comprehensive program characteristic value of the target application program;
a first determining submodule, configured to determine, according to the target integrated program feature value and an integrated program feature value of each application program of which program information has been recorded in a first database, a similar application program of the target application program from each application program, where the integrated program feature value of each application program is: the application program is obtained by carrying out weighted calculation on the program characteristic values of the application program aiming at various preset characteristics according to the weights of the various preset program characteristics;
and the second determining submodule is used for determining the classification of the target application program according to the classification to which the similar application program belongs.
When the similar applications include at least two applications, the first determining module 402 may further include: a second obtaining submodule, a calculating submodule and a reacquiring submodule.
A second obtaining submodule, configured to obtain, according to the target integrated program feature value and the integrated program feature value of the similar application program, a similarity probability between each similar application program and the target application program;
the calculation submodule is used for respectively calculating the absolute value of the difference value between every two obtained similarity probabilities;
and the reacquisition submodule is used for determining the maximum value in the absolute values obtained by calculation, reacquiring the program characteristic values of the target application program aiming at various preset program characteristics under the condition that the maximum value is greater than a preset index value, and returning to execute the first acquisition submodule.
A second determining module 403, configured to determine a target architecture of the target application according to the type of the target application and a correspondence between a pre-stored application type and an application architecture.
By applying the embodiment shown in fig. 7 of the present invention, the type of the target application program can be determined according to the obtained program characteristic values of the target application program to be executed for various preset program characteristics, and then the target architecture of the target application program is determined according to the type of the target application program and the corresponding relationship between the application program type and the application program architecture stored in advance. The embodiment of the invention determines the target architecture of the target application program by determining the type of the target application program and according to the corresponding relationship between the type of the application program and the architecture of the application program, which is stored in advance, because one type of the application program can contain a plurality of application programs, the problem that the utilization efficiency of the architecture is low because the application programs and the corresponding architecture are in one-to-one relationship and the architecture sharing cannot be realized in the prior art is solved, and the utilization rate of the architecture is improved.
Fig. 8 is a schematic structural diagram of a second structure of an application architecture determining apparatus according to an embodiment of the present invention, where modules are added on the basis of the embodiment shown in fig. 4: a first display module 501, a first receiving module 502, a first editing module 503, and a first reviewing module 504.
A first display module 501, configured to display the target architecture;
specifically, the first display module 501 may be configured to: determining a service in the target architecture; and displaying the service information of the determined service.
A first receiving module 502, configured to receive an architecture selection instruction, and select an architecture from the target architecture according to the architecture selection instruction, as a first architecture;
a first editing module 503, configured to receive an editing instruction for the first architecture, and edit the first architecture according to the first architecture editing instruction;
the first auditing module 504 is configured to audit the edited first architecture, and configure the edited first architecture after the audit is passed.
By applying the embodiment shown in fig. 8 of the present invention, after the target architecture is determined, the display and selection are performed, the selected first architecture is edited, and the edited first architecture is configured, and this process enables the developer to directly select the required first architecture from the target architecture, and only edit, check and configure the first architecture, and the target performance is strong, so that the processing efficiency of the target architecture can be improved.
Fig. 9 is a schematic structural diagram of a third structure of an application architecture determining apparatus according to an embodiment of the present invention, where modules are added on the basis of the embodiment shown in fig. 4: a second display module 601, a second editing module 602, a second receiving module 603, and a second reviewing module 604.
A second display module 601, configured to display the target architecture;
specifically, the second display module 601 may be configured to: determining a service in the target architecture; and displaying the service information of the determined service.
A second editing module 602, configured to receive an editing instruction for the target architecture, and edit the target architecture according to the editing instruction;
a second receiving module 603, configured to receive a framework selection instruction, and select a framework from the edited framework according to the framework selection instruction, as a second framework;
and a second auditing module 604, configured to audit the second architecture, and configure the second architecture after the second architecture passes the audit.
By applying the embodiment shown in fig. 9 of the present invention, the target architecture is displayed and edited after being determined, the second architecture is selected from the edited architectures, and the second architecture is checked and configured, which enables the developer to compare the edited architectures, thereby selecting a more reasonable architecture.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (20)

1. A method for application architecture determination, the method comprising:
acquiring program characteristic values of a target application program aiming at various preset program characteristics;
determining the type of the target application program according to the acquired characteristic value;
determining the target architecture of the target application program according to the type of the target application program and the corresponding relation between the type of the application program and the application program architecture which is stored in advance;
the pre-program feature comprises one of the following features:
a paint feature of the application;
the operating mode characteristics of the application;
a network connection status characteristic of the application;
operating mode characteristics of the application;
the determining the type of the target application program according to the acquired characteristic value comprises the following steps:
according to the preset weight of each type of preset program features, carrying out weighted calculation on the obtained program feature value to obtain a target comprehensive program feature value of the target application program;
determining similar application programs of the target application program from the application programs according to the target comprehensive program characteristic value and the comprehensive program characteristic value of each application program of the recorded program information in the first database, wherein the comprehensive program characteristic value of each application program is as follows: the application program is obtained by carrying out weighted calculation on the program characteristic values of the application program aiming at various preset characteristics according to the weights of the various preset program characteristics;
determining the classification of the target application program according to the classification to which the similar application program belongs;
when the similar applications include at least two applications, before the determining the classification of the target application according to the classification to which the similar applications belong, the method further includes:
obtaining the similarity probability of each similar application program and the target application program according to the target comprehensive program characteristic value and the comprehensive program characteristic value of the similar application program;
respectively calculating the absolute value of the difference between every two obtained similarity probabilities;
determining the maximum value in the absolute values obtained by calculation, re-acquiring the program characteristic values of the target application program aiming at various preset program characteristics under the condition that the maximum value is larger than a preset index value, and returning to execute the weighting calculation of the acquired program characteristic values according to preset weights of various preset program characteristics to obtain the target comprehensive program characteristic value of the target application program.
2. The method of claim 1, further comprising:
displaying the target architecture;
receiving an architecture selection instruction, and selecting an architecture from the target architecture as a first architecture according to the architecture selection instruction;
receiving an editing instruction aiming at the first architecture, and editing the first architecture according to the first architecture editing instruction;
and auditing the edited first architecture, and configuring the edited first architecture after the auditing is passed.
3. The method of claim 1, further comprising:
displaying the target architecture;
receiving an editing instruction aiming at the target architecture, and editing the target architecture according to the editing instruction;
receiving a framework selection instruction, and selecting a framework from the edited framework as a second framework according to the framework selection instruction;
and auditing the second architecture, and configuring the second architecture after the second architecture passes the auditing.
4. The method according to any of claims 2-3, wherein said exposing the target architecture comprises:
determining a service in the target architecture;
and displaying the service information of the determined service.
5. The method according to claim 1, wherein when the preset program features include a painting feature of an application program, the obtaining program feature values of the target application program for various types of preset program features comprises:
obtaining a target picture of the target application program;
searching a first picture similar to the target picture in a second database, wherein the second database is used for storing pictures of all application programs;
determining a first application program corresponding to the searched first picture;
and acquiring the characteristic value of the target application program aiming at the picture characteristic according to the determined characteristic value of the first application program aiming at the picture characteristic.
6. The method of claim 5, wherein searching the second database for the first picture similar to the target picture comprises:
acquiring picture characteristic values of the target picture aiming at various preset picture characteristics;
according to the preset weight of each type of preset picture features, carrying out weighted calculation on the obtained picture feature value to obtain a target comprehensive picture feature value of the target picture;
searching a first picture similar to the target picture in a second database through a first heuristic search algorithm according to the target comprehensive picture characteristic value and the comprehensive picture characteristic value of each picture in the second database, wherein the comprehensive picture characteristic value of each application program is as follows: and carrying out weighted calculation on the application program aiming at various preset picture characteristics according to the weights of the various preset picture characteristics.
7. The method according to claim 1, wherein when the preset program features include operation mode features of an application program, the obtaining of the program feature values of the target application program for various types of preset program features includes:
judging whether the target application program has a server side or not;
if so, determining that the characteristic value of the target application program aiming at the operation mode characteristic is a characteristic value representing a network version operation mode;
and if not, determining that the characteristic value of the target application program aiming at the operation mode characteristic is a characteristic value representing a single-version operation mode.
8. The method according to claim 7, wherein when the preset program feature comprises a network connection status feature of an application program, after the determining that the feature value of the target application program for the operation mode feature is a feature value representing a network version operation mode, the method further comprises:
determining a target charging mode of the target application program according to a transmission control protocol adopted by the target application program;
and determining a characteristic value of the target application program aiming at the network connection state characteristic according to the target charging mode.
9. The method according to any one of claims 5 to 8, wherein when the preset program features include operation mode features of an application program, the obtaining feature values of the target application program for various types of preset features comprises:
acquiring target operation data of the target application program;
performing statistical analysis on the target operation data to determine the incidence relation between the target operation data and time;
inputting the target operation data and the association relation into a pre-established operation mode classification model to obtain a classification result of the target application program for an operation mode, wherein the operation mode classification model is as follows: pre-training the obtained operation data, the incidence relation between the operation data and time and the corresponding relation model among the operation mode classification;
and obtaining a characteristic value of the target application program aiming at the operation mode characteristic according to the classification result.
10. The method of claim 9,
the operation mode classification model is as follows: and the classification model is solved by adopting a second heuristic search algorithm.
11. An apparatus for determining an application architecture, the apparatus comprising:
the acquisition module is used for acquiring program characteristic values of the target application program aiming at various preset program characteristics;
the first determining module is used for determining the type of the target application program according to the acquired characteristic value;
the second determining module is used for determining the target architecture of the target application program according to the type of the target application program and the corresponding relation between the type of the application program and the architecture of the application program, which is stored in advance;
the pre-program feature comprises one of the following features:
a paint feature of the application;
the operating mode characteristics of the application;
a network connection status characteristic of the application;
operating mode characteristics of the application;
the first determining module includes:
the first obtaining submodule is used for carrying out weighted calculation on the obtained program characteristic value according to the preset weight of various preset program characteristics to obtain a target comprehensive program characteristic value of the target application program;
a first determining submodule, configured to determine, according to the target integrated program feature value and an integrated program feature value of each application program of which program information has been recorded in a first database, a similar application program of the target application program from each application program, where the integrated program feature value of each application program is: the application program is obtained by carrying out weighted calculation on the program characteristic values of the application program aiming at various preset characteristics according to the weights of the various preset program characteristics;
the second determining submodule is used for determining the classification of the target application program according to the classification to which the similar application program belongs;
when the similar applications include at least two applications, the first determining module further includes:
a second obtaining submodule, configured to obtain, according to the target integrated program feature value and the integrated program feature value of the similar application program, a similarity probability between each similar application program and the target application program;
the calculation submodule is used for respectively calculating the absolute value of the difference value between every two obtained similarity probabilities;
and the reacquisition submodule is used for determining the maximum value in the absolute values obtained by calculation, reacquiring the program characteristic values of the target application program aiming at various preset program characteristics under the condition that the maximum value is greater than a preset index value, and returning to execute the first acquisition submodule.
12. The apparatus of claim 11, further comprising:
the first display module is used for displaying the target architecture;
the first receiving module is used for receiving an architecture selection instruction and selecting an architecture from the target architecture as a first architecture according to the architecture selection instruction;
the first editing module is used for receiving an editing instruction aiming at the first framework and editing the first framework according to the first framework editing instruction;
and the first auditing module is used for auditing the edited first architecture and configuring the edited first architecture after the first architecture passes the auditing.
13. The apparatus of claim 11, further comprising:
the second display module is used for displaying the target architecture;
the second editing module is used for receiving an editing instruction aiming at the target architecture and editing the target architecture according to the editing instruction;
the second receiving module is used for receiving the architecture selection instruction and selecting an architecture from the edited architectures according to the architecture selection instruction to serve as a second architecture;
and the second auditing module is used for auditing the second architecture and configuring the second architecture after the second architecture passes the auditing.
14. The device according to any one of claims 12 to 13, wherein the first display module, the second display module, are configured to:
determining a service in the target architecture; and displaying the service information of the determined service.
15. The apparatus of claim 11, wherein when the predetermined program feature comprises a drawing feature of an application program, the obtaining module comprises:
a third obtaining submodule, configured to obtain a target screen of the target application;
the searching submodule is used for searching a first picture similar to the target picture in a second database, wherein the second database is used for storing pictures of all application programs;
the third determining submodule is used for determining the first application program corresponding to the searched first picture;
and the first obtaining submodule is used for obtaining the characteristic value of the target application program aiming at the picture characteristic according to the determined characteristic value of the first application program aiming at the picture characteristic.
16. The apparatus of claim 15, wherein the search submodule comprises:
the acquisition unit is used for acquiring the picture characteristic values of the target picture aiming at various preset picture characteristics;
the calculating unit is used for carrying out weighted calculation on the acquired picture characteristic value according to the preset weight of various preset picture characteristics to obtain a target comprehensive picture characteristic value of the target picture;
a searching unit, configured to search, according to the target integrated picture feature value and the integrated picture feature value of each picture in a second database, a first picture similar to the target picture in the second database through a first heuristic search algorithm, where the integrated picture feature value of each application is: and carrying out weighted calculation on the application program aiming at various preset picture characteristics according to the weights of the various preset picture characteristics.
17. The apparatus according to claim 11, wherein when the preset program feature comprises an operation mode feature of an application program, the obtaining module comprises:
the judging submodule is used for judging whether the target application program has a server side or not;
a fourth determining submodule, configured to determine, when a determination result of the determining submodule is yes, that a feature value of the target application program for the operation mode feature is a feature value representing a network version operation mode;
and a fifth determining submodule, configured to determine that the feature value of the target application program for the operation mode feature is a feature value representing a single-machine operation mode if the determination result of the determining submodule is negative.
18. The apparatus of claim 17, wherein the obtaining module further comprises:
a sixth determining submodule, configured to determine a target charging manner of the target application according to a transmission control protocol adopted by the target application;
and the seventh determining submodule is used for determining a characteristic value of the target application program aiming at the network connection state characteristic according to the target charging mode.
19. The apparatus according to any one of claims 15-18, wherein when the preset program feature comprises an operation mode feature of an application program, the obtaining module comprises:
the second acquisition submodule is used for acquiring target operation data of the target application program;
the eighth determining submodule is used for performing statistical analysis on the target operation data and determining the incidence relation between the target operation data and time;
a fourth obtaining sub-module, configured to input the target operation data and the association relationship into a pre-established operation manner classification model, and obtain a classification result of the target application program for an operation manner, where the operation manner classification model is: pre-training the obtained operation data, the incidence relation between the operation data and time and the corresponding relation model among the operation mode classification;
and the ninth determining submodule is used for obtaining the characteristic value of the target application program aiming at the operating mode characteristic according to the classification result.
20. The apparatus of claim 19,
the operation mode classification model is as follows: and the classification model is solved by adopting a second heuristic search algorithm.
CN201710028552.7A 2017-01-16 2017-01-16 Application program architecture determining method and device Active CN108319449B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710028552.7A CN108319449B (en) 2017-01-16 2017-01-16 Application program architecture determining method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710028552.7A CN108319449B (en) 2017-01-16 2017-01-16 Application program architecture determining method and device

Publications (2)

Publication Number Publication Date
CN108319449A CN108319449A (en) 2018-07-24
CN108319449B true CN108319449B (en) 2021-07-20

Family

ID=62890717

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710028552.7A Active CN108319449B (en) 2017-01-16 2017-01-16 Application program architecture determining method and device

Country Status (1)

Country Link
CN (1) CN108319449B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102880501A (en) * 2012-07-24 2013-01-16 北京奇虎科技有限公司 Realizing method, device and system for recommending applications
CN104424307A (en) * 2013-09-04 2015-03-18 腾讯科技(深圳)有限公司 Intelligent terminal application classifying method, system and intelligent terminal,
CN104765603A (en) * 2015-03-18 2015-07-08 百度在线网络技术(北京)有限公司 Application program building method and device
CN104899009A (en) * 2014-03-03 2015-09-09 可牛网络技术(北京)有限公司 Identification method and device of Android application
CN105677695A (en) * 2015-09-28 2016-06-15 杭州圆橙科技有限公司 Method for calculating similarity of mobile applications based on content
KR101672791B1 (en) * 2015-10-26 2016-11-07 고려대학교 산학협력단 Method and system for detection of vulnerability on html5 mobile web application

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102622229A (en) * 2012-02-24 2012-08-01 北京星网锐捷网络技术有限公司 Fusion method, fusion system and fusion device of development frameworks of different types
CN105487763B (en) * 2016-01-14 2019-12-06 深圳Tcl数字技术有限公司 application program display method and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102880501A (en) * 2012-07-24 2013-01-16 北京奇虎科技有限公司 Realizing method, device and system for recommending applications
CN104424307A (en) * 2013-09-04 2015-03-18 腾讯科技(深圳)有限公司 Intelligent terminal application classifying method, system and intelligent terminal,
CN104899009A (en) * 2014-03-03 2015-09-09 可牛网络技术(北京)有限公司 Identification method and device of Android application
CN104765603A (en) * 2015-03-18 2015-07-08 百度在线网络技术(北京)有限公司 Application program building method and device
CN105677695A (en) * 2015-09-28 2016-06-15 杭州圆橙科技有限公司 Method for calculating similarity of mobile applications based on content
KR101672791B1 (en) * 2015-10-26 2016-11-07 고려대학교 산학협력단 Method and system for detection of vulnerability on html5 mobile web application

Also Published As

Publication number Publication date
CN108319449A (en) 2018-07-24

Similar Documents

Publication Publication Date Title
CN110198310A (en) A kind of anti-cheat method of network behavior, device and storage medium
CN111143697B (en) Content recommendation method and related device
WO2014200517A1 (en) Automatic customization of a software application
CN105893253A (en) Application software testing method, device and equipment
CN111930366B (en) Rule engine implementation method and system based on JIT real-time compilation
CN110363427A (en) Model quality evaluation method and apparatus
CN111417021B (en) Plug-in identification method and device, computer equipment and readable storage medium
CN111401722A (en) Intelligent decision method and intelligent decision system
CN112949172A (en) Data processing method and device, machine readable medium and equipment
CN112837108A (en) Information processing method and device and electronic equipment
CN108197203A (en) A kind of shop front head figure selection method, device, server and storage medium
CN112750030A (en) Risk pattern recognition method, risk pattern recognition device, risk pattern recognition equipment and computer readable storage medium
KR101028810B1 (en) Apparatus and method for analyzing advertisement target
CN114003567A (en) Data acquisition method and related device
US20170277710A1 (en) Data comparison
US12061650B2 (en) Systems, methods, computing platforms, and storage media for comparing non-adjacent data subsets
CN112966756A (en) Visual access rule generation method and device, machine readable medium and equipment
CN111767473A (en) Object selection method and computer-readable storage medium
CN111683280A (en) Video processing method and device and electronic equipment
CN108319449B (en) Application program architecture determining method and device
CN112667869A (en) Data processing method, device, system and storage medium
CN115270923A (en) Scene-based visual intelligent decision method and system
CN110503482B (en) Article processing method, device, terminal and storage medium
JP2019526129A (en) Apparatus and method for digital media measurement including a user panel
CN113159810A (en) Policy evaluation method, device, equipment and 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