Summary of the invention
The present invention provides a kind of method and device of management service software program, flexibly, quickly and easily to transport to software
Mistake in row is positioned, and the management service efficiency of software product is improved, and reduces maintenance workload.
For this purpose, the invention provides the following technical scheme:
A kind of method of management service software program, comprising:
Management interface frame structure is preset, the management interface is used to manage and maintain function of application module,
Including structural relation and parameter transfer method;
Using the data source and institutional framework in the management interface frame structure, user interface, the user are write
Interface is for showing software program structure and operation information;
When writing software program, each interface in the management interface frame is realized.
Preferably, the management interface frame includes: fundamental objects and spare interface, and the fundamental objects include: node
Object, error handle object and information processing objects.
Preferably, the setting management interface frame includes:
Set the hierarchical relationship between interface class;
Establish message transmission between interface class, message positioning, structure organization mechanism;
Set-up function spare interface.
Preferably, the data source and institutional framework using in the management interface frame structure, writes user circle
Face includes:
The class for realizing the spare interface is shown with rectangle frame;
It is the side of tree node by class loading different in program according to the hierarchical relationship between the interface class
Formula, and successively display downwards;
It shows throw exception in the class for realizing the spare interface, the specific location of mistake occur.
Preferably, the method also includes:
Member defined in the class of spare interface described in Display Realization and method in the rectangle frame.
Preferably, the specific location for showing that throw exception, appearance are wrong in the class for realizing the spare interface includes:
Throw exception in the class for realizing spare interface is shown by particular color and/or font, the specific position of mistake occurs
It sets.
Preferably, the method also includes:
When perceiving clicking operation of the user to the node in the user interface, each layer under the node is successively shown
Attribute information.
A kind of device of management service software program, comprising:
Management interface Frame Design module, for presetting management interface frame structure, the management interface is for managing
Reason and maintenance applications functional module, including structural relation and parameter transfer method;
User interface generation module, for utilizing data source and institutional framework in the management interface frame structure,
User interface is write, the user interface is for showing software program structure and operation information;
Interface realizes module, for when writing software program, realizing each interface in the management interface frame.
Preferably, the management interface Frame Design module includes:
Structural relation setup unit, for setting the hierarchical relationship between interface class;
Unit is established, for establishing message transmission between interface class, message positioning, structure organization mechanism;
Spare interface setup unit is used for set-up function spare interface.
Preferably, the user interface generation module realizes the class of the spare interface specifically for being shown with rectangle frame;
It is the mode of tree node by class loading different in program, and successively according to the hierarchical relationship between the interface class
Display downwards;It shows throw exception in the class for realizing the spare interface, the specific location of mistake occur.
Preferably, described device further include:
Display module, for successively showing when perceiving clicking operation of the user to the node in the user interface
The attribute information of each layer under the node.
The method and device of management service software program provided in an embodiment of the present invention can be connect using management is pre-designed
Mouthful, these management interfaces are realized during written in code, so that software program be made to have label, energy in stage levels structure
It is enough to identify type of error when mistake occurs, and the information such as the position where generation mistake are reported out, easily position mistake
And error reason, software product is managed and maintained so as to conveniently realize, is reduced because of software fault and bring
Application efficiency reduces, difficult in maintenance caused by changing to developer, has more liberated the later maintenance of exploitation, maintenance personnel
Work, and improve the customer satisfaction of software enterprise, the market image.
Specific embodiment
The scheme of embodiment in order to enable those skilled in the art to better understand the present invention with reference to the accompanying drawing and is implemented
Mode is described in further detail the embodiment of the present invention.
As shown in Figure 1, being the flow chart of the method for management service software program of the embodiment of the present invention, comprising the following steps:
Step 101, management interface frame structure is preset, the management interface frame is for managing and maintaining using journey
Sequence functional module, including structural relation and parameter transfer method.
The management interface frame includes a series of hierarchical relationships and inside story transmitting, false judgment tissue
Message structure and significant interface organizations at different levels.The management interface frame identifies program structure relationship in which can be convenient,
Can make an appointment mutual incidence relation between distinct interface.The incidence relation refers to the succession of program file, draws
With, relationships such as compound.Incidence relation in distinct program file, attribute of same program file such as variable name, constant numerical value etc.
It can be transmitted by the management interface.
As shown in Fig. 2, being the schematic diagram of management interface frame structure in the embodiment of the present invention.
In the management interface frame, it is provided with various fundamental objects and spare interface, as shown in Figure 2, basis is right
As having: node object, error handle object and information processing objects.
Step 102, using the data source and institutional framework in the management interface frame structure, user interface is write,
The user interface is for showing software program structure and operation information.
Specifically, the comprehensive means such as shape, color, lines, verbal description be can use, visualization presentation program structure is closed
The information such as system, internalist methodology, field definition and type of error, errors present, to make interface exhibition in vivid, lively, bright
It is clear.
Step 103, when writing software program, each interface in the management interface frame is realized.
That is, designed management interface frame in step 101 is introduced into, complete while writing normal procedure
Interface therein is realized while at normal function, for example calls an interface in program when throw exception, it can be with finder
The position of error and reason etc.;For another example it realizes an interface, hierarchical relationship etc. of the class in program structure can be described.
It should be noted that can use this set of core frame when developing distinct program and show interface,
As long as realizing reserved interface, the problems such as can be carried out graphic software platform, the various information in maintenance program, mistake.
The method of management service software program provided in an embodiment of the present invention can utilize and be pre-designed management interface,
These management interfaces are realized during written in code, so that software program be made to have label, Neng Gou in stage levels structure
Occur to identify type of error when mistake, and be reported out the information such as the position where generation mistake, easily positioning mistake and mistake
Accidentally reason, manages and maintains software product so as to conveniently realize, and reduces because of software fault and bring application
Efficiency reduces, difficult in maintenance caused by changing to developer, has more liberated the later maintenance work of exploitation, maintenance personnel
Make, and improves the customer satisfaction of software enterprise, the market image.
It is previously noted that in embodiments of the present invention, the management interface frame includes a series of hierarchical relationships, below
The foundation of management interface frame is described in further details.
As shown in figure 3, being management interface frame visioning procedure figure in the embodiment of the present invention, comprising the following steps:
Step 301, the hierarchical relationship between interface class is set.
It should be noted that interface class is the abstract of the various node objects being subsequently noted, node object is to interface class
Realization and instantiation, each node object represents a module, can have the hierarchical relationship for including between module, management connects
Mouth frame manages the functional module of application program by these node objects.
In embodiments of the present invention, tree structure is used between all kinds of in management interface frame, expresses the class of infinite layering
Father and son's inheritance, determine which layer, such as Level=3 belonged to the value of Level this variable, then illustrate this interface
Class is in the third level in entire program.In addition, it is necessary to incidence relation and definition top layer between parameter declaration interface class
Module is as big functional node.
Step 302, message transmission between interface class, message positioning, structure organization mechanism are established.
Including the incidence relation established between node object and different node objects, established at mistake according to the incidence relation
Object is managed, information processing objects are established.
Step 303, set-up function spare interface.
The effect of the functionality spare interface is to enable to call this set frame and realize that the program of spare interface possesses
Such as location of mistake, procedural details that this frame is completed are shown, automatic maintenance, report an error function automatically.
As shown in figure 4, being the flow chart for writing user interface in the embodiment of the present invention, comprising the following steps:
Step 401, the class for realizing the spare interface is shown with rectangle frame.
Graphic interface is realized in design, and the class of concrete implementation spare interface is shown with rectangle frame, to realize graphical
Interface can wherein show the specifying informations such as member, method defined in class in rectangle frame.
It step 402, is tree-like section by class loading different in program according to the hierarchical relationship between the interface class
The mode of point, and successively display downwards.
Step 403, it shows throw exception in the class for realizing the spare interface, the specific location of mistake occur.
Specifically, color can be used, the modes such as font show throw exception in the class for realizing the spare interface, occur
The specific location of mistake.
If there are mistake, such as the various exceptions of parameter assignment mistake, emerged in operation etc. in program, meeting in user interface
It is intuitively identified, errors present is positioned for maintenance personnel, quickly and easily to be checked, to be modified.In the operation
Occur abnormal, refer to the run-time exception in object oriented language, for example, there is null pointer, numerical value crosses the border, memory overflows.
At this point it is possible to the position of error is represented with means such as special colors and/or icon in graphical interfaces, specifically any Duan Cheng
Sequence code malfunctions, error substantially the reason is that etc..
It should be noted that in practical applications, being grasped perceiving user to the click of the node in the user interface
When making, the attribute information of each layer under the node can also be successively shown.The attribute information includes: class name, method name, attribute
Name, operating status, whether the information such as mistake, type of error.
In addition, in embodiments of the present invention, automatic heavy duty, zero offset capability can also be provided in user interface, main to correct
Because some components malfunction in registration or loading and what is carried out reload or re-register, automatic amendment refers to certain programs ginsengs
Mistake is counted, then the operation of modification parameter etc. automatically.
The method of management service software program provided in an embodiment of the present invention supports the pipe to program internal code structure
The automatic discovery of the problems such as reason, mistake, exception, automatic report mechanism;Secondly in the process of development by practical source program and in advance
The management interface frame of setting and displaying interface are combined, to possess automatic dimension while realizing software concrete function
Protect the functions such as code, automatic report mistake, graphic software platform program operation information.
Graphically managing, which is safeguarded, to be realized to program code using the method for the embodiment of the present invention, is had the advantage that
(1) actual development function will not be interfered in exploitation using the method for the embodiment of the present invention, as long as additional realize in advance
Interface is stayed, actual functional capability will not generate any conflict with this set enclosed structure.
(2) maintenance and management that later period program can be significantly facilitated using the method for the embodiment of the present invention, in software life
It is of great significance in the very big later maintenance of accounting in period.
(3) the good core frame of primary development and after showing interface, it can be used repeatedly this nested structure, different procedural items
This same set of system can be used, it is very convenient, practical as long as additionally realizing spare interface.
Correspondingly, the embodiment of the present invention also provides a kind of device of management service software program, as shown in figure 5, being the dress
The structural schematic diagram set.
In this embodiment, described device includes:
Management interface Frame Design module 501, for presetting management interface frame structure, the management interface is used for
Manage and maintain function of application module, including structural relation and parameter transfer method;
User interface generation module 502, for utilizing the data source and knot of tissue in the management interface frame structure
Structure writes user interface, and the user interface is for showing software program structure and operation information;
Interface realizes module 503, for when writing software program, realizing each interface in the management interface frame.
Wherein, the management interface Frame Design module 501 includes:
Structural relation setup unit, for setting the hierarchical relationship between interface class;
Unit is established, for establishing message transmission between interface class, message positioning, structure organization mechanism;
Spare interface setup unit is used for set-up function spare interface.
The user interface generation module 502 realizes the class of the spare interface specifically for being shown with rectangle frame;According to
Class loading different in program is the mode of tree node by the hierarchical relationship between the interface class, and successively downwards
Display;It shows throw exception in the class for realizing the spare interface, the specific location of mistake occur.
The device of management service software program provided in an embodiment of the present invention can utilize and be pre-designed management interface,
These management interfaces are realized during written in code, so that software program be made to have mark, Neng Gou in stage levels structure
Occur to identify type of error when mistake, and be reported out the information such as the position where generation mistake, easily positioning mistake and mistake
Accidentally reason, manages and maintains software product so as to conveniently realize, and reduces because of software fault and bring application
Efficiency reduces, difficult in maintenance caused by changing to developer, has more liberated the later maintenance work of exploitation, maintenance personnel
Make, and improves the customer satisfaction of software enterprise, the market image.
It should be noted that in practical applications, in order to which the information for showing user interface is richer, intuitive, facilitating use
Maintenance of the family to program can also further comprise in the device of the embodiment of the present invention: display module (not shown), be used for
When perceiving clicking operation of the user to the node in the user interface, the attribute letter of each layer under the node is successively shown
Breath.The attribute information may include: class name, method name, attribute-name, operating status, whether the information such as mistake, type of error.
The device of management service software program provided in an embodiment of the present invention supports the pipe to program internal code structure
The automatic discovery of the problems such as reason, mistake, exception, automatic report mechanism;Secondly in the process of development by practical source program and in advance
The management interface frame of setting and displaying interface are combined, to possess automatic dimension while realizing software concrete function
Protect the functions such as code, automatic report mistake, graphic software platform program operation information.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device reality
For applying example, since it is substantially similar to the method embodiment, so describing fairly simple, related place is referring to embodiment of the method
Part explanation.The apparatus embodiments described above are merely exemplary, wherein described be used as separate part description
Module and unit may or may not be physically separated, component shown as a unit can be or can also
Not to be physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to reality
Need that some or all of the modules therein is selected to achieve the purpose of the solution of this embodiment.Those of ordinary skill in the art exist
In the case where not making the creative labor, it can understand and implement.
The embodiment of the present invention has been described in detail above, and specific embodiment used herein carries out the present invention
It illustrates, the above description of the embodiments is only used to help understand the method and apparatus of the present invention;Meanwhile for the one of this field
As technical staff, according to the thought of the present invention, there will be changes in the specific implementation manner and application range, to sum up institute
It states, the contents of this specification are not to be construed as limiting the invention.