Summary of the invention
The invention provides a kind of general object modeling method and general object management system, adopt the multilayered model structure to describe universal model and particular object model, adapt to management many technical fields, multi-specialized field management object.
General object modeling method of the present invention comprises: adopt common object model layer, special object model layer and three layers of object model of applied business logical layer to set up the description and the Application Expansion of managed object; The attribute and the object presentation mode of general object described and defined to described common object model layer, adopts the form of unified standard to describe all managed objects, forms the object of tissue in order; Described special object model layer is in the mutual relationship that further defines on the basis of common object model layer between object and the object, and the specific application implication of object, forms the particular object model of particular technology area; By different mutual relationship between the different objects of definition, generate a plurality of Object Management groups territory in the described special object model layer; Described applied business logical layer further defines specific operation or method and the applied logic relevant with operation or method based on particular object model on the basis of described special object model layer.
The attribute of described general object comprises base attribute, transitive attribute, computation attribute and object properties.
Described object presentation mode comprises that icon presents or line presents; Described icon presentation mode comprises one of icon literal, Icon Color, icon flicker, icon hiding and icon prompting, or wherein arbitrarily both, three, four or whole combinations; Described line presentation mode comprises one of line color, line width, line flicker, line style and line concealing, or wherein arbitrarily both, three, four or whole combinations.
The describing mode of described particular object model comprises: file model describing mode and storehouse table model describing mode; Also comprise: described file model describing mode and storehouse table model describing mode are changed mutually.
Mutual relationship between the described object comprises and comprising, related, carrying or adduction relationship.
Described managed object generates identical or different interface presentation mode in different Object Management group territories, described interface presentation mode comprises topological diagram, tree graph, attributed graph or tabulation figure.
The present invention also provides a kind of general object management system that adopts above-mentioned general object modeling method, comprising: model editing module, Core server module, object importing module, other AIM, Object Management group present module and system and user management module;
Described model editing module realizes setting up the managed object model, and editor, storage and mutual with described Core server module to institute's established model are provided, and realizes the import feature to institute's established model; The concrete grammar that described model editing module is set up the managed object model comprises: adopt common object model layer, special object model layer and three layers of object model of applied business logical layer to set up the description and the Application Expansion of managed object; The attribute and the object presentation mode of general object described and defined to described common object model layer, adopts the form of unified standard to describe all managed objects, forms the object of tissue in order; Described special object model layer is in the mutual relationship that further defines on the basis of common object model layer between object and the object, and the specific application implication of object, forms the particular object model of particular technology area; By different mutual relationship between the different objects of definition, generate a plurality of Object Management groups territory in the described special object model layer; Described applied business logical layer further defines specific operation or method and the applied logic relevant with operation or method based on particular object model on the basis of described special object model layer;
Described Core server module is used for implementation model visit, Object Management group and import operation, and provides object data to safeguard and the memory object maintenance function;
Described object imports module provides object to import rule definition and mutual with described Core server module, realizes the function that object imports;
Described other AIM provide the user to develop the relevant interface library of specific application, and other application program visits object and the model that is stored in this system by this interface library;
Described Object Management group presents module to be provided management object is presented the function that rule presents according to object, provides topological diagram, tree graph, attributed graph or tabulation figure to represent object;
Described system and user management module realize monitoring, management of icons, organizational structure's management, authority and the user management to the general object management system, and realize the control of authority of whole general object management system and the application-specific of framework on this general object management system.
Described managed object model comprises that object basic model, object relationship model, object present model and Object Operations model.Include client application program interface in the described interface library,, realize the object and the model data of another general object management system of visit, realize the transparent access of data message between many cover general object management systems by this interface.
The invention has the advantages that:
1, management object modelling flexibly; By description to the common object model layer, can set up the model of all managed objects, adapt to management to many technical fields, multi-specialized field management object.As in network management, can set up transmission network, transmit the network model of netting, realize the inter-network network management.
2, dispose and do not have the system extension of " cutover " fast; Various definitions method such as provide succession, comprise can be set up the information model of managed object fast by modeling, and the use of the loading technique of dynamic model simultaneously can guarantee that system is not having the quick expansion that realizes function under " cutover " situation.
3, the multisystem dialogue becomes possibility; System adopts the language of popular XML (extending mark language) language as object factory, and XML has standard, characteristics such as easy-to-understand, and can realize mutual with the information of wide area network; On the other hand, the distribution character of Object Management System self and standard interface have also guaranteed the mutual feasibility of system information.
4, the feasible applied logic of the employing of " soft plug-in unit " technology by object model expansion EXPANDING DISPLAY AREA management easily.
Embodiment
General object modeling method of the present invention (abbreviating AMO as) is to adopt common object model, special object model and specific three layers of object model of applied logic to set up the description and the Application Expansion of managed object, as shown in Figure 3, the bottom is common object model layer (Generic Object Model) layer, the attribute and the presentation mode of general object described and defined to the common object model layer, adopt the form of unified standard to describe all management objects, form the object of tissue in order; The second layer is special object model layer (Special Object Model), various relations (as the relation of inclusion between the class, adduction relationship etc.) between special object model layer definition object and the object, and the specific application implication of object, thereby the object model that forms particular technology area is described; The 3rd layer is applied business logical layer (Application LogicProcedure), definition is based on the specific operation or the method for particular object model, and combine with relevant applied logic, as the performance index that can check equipment at a network equipment, can check contact details that personnel are correlated with, performance etc. at personnel.
Based on above-mentioned general object modeling method, the invention provides a kind of general object management system (OMP), after the exploitation of above-mentioned modeling method of utilization and application-specific logic on this system, can realize new exploitation of using fast, and the integrated and message exchange each other of each application of supporting architecture on this OMP system easily; This system is the support platform of an application solution, it provides user interface, intermediary service processing logic and the background data base of unified application integration, finish the general management of managed object and present management function, the interface that presents of the data organization in the real application systems, data access interface and major applications is provided.
The modular structure figure of this OMP system as shown in Figure 4, mainly comprise following six modules composition, that is: Core server module, model editing module, system and user management module, object importing module, other AIM (API) and Object Management group present module.
The Core server module mainly be provided for action needs such as model visit, Object Management group, importing server software, and provide object data to safeguard and the memory object maintenance function, with the access speed of raising system.
The model editing module mainly provides the modeling function to managed object, and editor, storage and import feature to the model of setting up are provided, the syntax check that in importing process, supplies a model and with the comparing function of original model.
System and user management module mainly provide monitoring, management of icons, organizational structure, authority and the subscriber management function of OMP system, realize the control of the authority of total system and framework application-specific thereon.
Object imports module mainly provides object to import rule definition and object import feature.
Other use API provides the user to develop the relevant interface library of specific application, and other application programs can visit object and the model that is stored among the OMP by this interface library.
Object presents module to be provided management object is presented the function that rule presents according to it, provide various ways such as topological diagram, tree graph, attributed graph, tabulation figure to represent object, also be the interface of application integration simultaneously, the user can be integrated into function on the floating menu of the menu at interface and object, realizes the function expansion.
Formed the Core Feature of OMP by above-mentioned module, its groundwork process is as follows:
1, set up the managed object model: comprise that object basic model (Object Model), object relationship model (Special Object Model), object present model (Special Object Model) and Object Operations model (Application Model), the foundation of those models is realized by the model editing module.
2, model is loaded in the system: dynamically generate database table structure according to above-mentioned model by model editing module and common realization of Core server module.
3, object imports: existing data importing in system, is realized jointly by object importing module and Core server module.
4, set up the System Privileges system: set up organizational structure, user right, realize jointly by system user administration module and Core server module.
5, using system: mainly present module and the realization of Core server module by Object Management group.
6, expanding system function: increase new applied logic exploitation, adopt other application programming interfaces (API) to develop.
7, revise system model: revise by model editing module implementation model, and with in the new application insertion system, and system normally moves, and gets back to for the 2nd step then, enters the management system of enhancement function.
More than set forth the modular structure of OMP system and its course of work, described the architecture of system below in detail and how to develop new application and to be integrated into system according to existing API.
Referring to Fig. 5, be OMP internal system structure control synoptic diagram of the present invention.Model editing among the figure (application), Object Management group and present (application), empowerment management (application) and import the user interface that (application) can directly be used or utilize for upper layer application with object, model visit (API), Authority Verification (API) and Object Management group API are that upper layer application can directly be visited the API that calls, wherein model conversion (API) and authority visit (API) is transparent fully to upper layer application, and the frame line is a messaging bus all around.Logical layer wherein moves in application server.
Shown several integrated points in the drawings, at Object Management group API place: the additional logic that upper layer application can be added on Object Creation, deletion or change front/rear needs judges, such logic determines can be used for realizing the integrity checking between the object; In addition, in application server, can also dispose processing action (also can not handle action) to the upper layer application of the various message received.Object Management group with present the place: can be by the action that the configuration file decision will be carried out each integrated application system and each system initialization will be carried out when integrated; For each application of the framework that is integrated on OMP, can determine the menu that this application will occur on main interface by configuration file, determine that by model each is applied in the strong menu in the right side that can occur on each object, and how user system after point is got menu will respond; Simultaneously, an independently message processing module is arranged at this place, the message that each upper layer application need receive and receive message after also can articulate the processing of message by configuration file.
The present invention is according to OO thought, and the data that will manage are carried out abstract, forms class (object after the instantiation is the data that will manage of our reality).Traditional object factory has comprised state (attribute), the executable action of object (method) of object, and in OMP, except foregoing, also how object is presented (display styles) at different management domains (scheme) and be described.Describing mode to class among the OMP is as follows:
One, attribute
Attribute is used to write down the internal state of OMP object, and can be defined in and carry out object properties and be current, how attribute is divided into groups to show (corresponding to the notion of set of properties in OMP), and whether each attribute needs to show (not needing to show that the expression user is indifferent to the value of the corresponding state of object).Attribute type is as shown in the table among the OMP:
Major types |
Little type |
Remarks |
Base attribute |
Integer |
Can be array, |
|
Real number |
|
Character string |
Enumerate |
Date |
Boolean |
Transitive attribute |
Real number |
Relevant with different management domains, support four kinds of delivery rules: the self-defined transfer mode of maximum/minimum/summation |
Computation attribute |
Integer |
Variable wherein can only come from the base attribute of this object, utilizes the attribute of the type to carry out simple analysis to object self |
Real number |
Character string |
Boolean |
Object properties |
The OMP class |
Can be array, utilize it can realize complicated arbitrarily data representation |
Two, scheme
Scheme is used to be described in the relation that can exist between the object in the different Object Management group territories.In real incident, from the same object of different view, can find that its set with relevant object is different, interrelated relation each other also is different.As a concrete router,, can get in touch with a specific supplier from the production angle; From use angle, can get in touch with operator.Complicated contact in this real world, only the attribute with object self is to describe clearly fully, so proposed Object Management group territory---the notion of scheme in OMP, utilizes scheme to describe this relation.Fig. 6 has shown " the network object Topology Management territory " scheme in the Service Activation System of a concrete framework on OMP used.
Show in the scheme: network may be made up of other networks (subnet or network adapter are inherited from network), and port (user terminal) set that exists the user to insert in network connects by link between subnet/network adapter.Link is as the line display object, just is used for and being connected of other object.
Set up in model in the scheme, can comprise class B object as fruit A object, can specify when satisfying which kind of condition between the attribute of A object and B object, the relation of inclusion between two objects can exist.If the line display object, the condition that can also specify condition that the starting point object satisfied and terminal point object to be satisfied.
Three, method
The action that the method representative object can be carried out.Object needs the outside to trigger when carrying out action.ON/OFF action as the electric light in the room needs the people to go to trigger.The action that same object can be carried out can be a lot, but in the different management domains, the action that the user can trigger may be a subclass in the object everything.Based on such fact, when setting up model, for the object definition method time, require to indicate and to trigger Object Management group territory---the scheme that this method is carried out among the OMP.
In the use of reality, OMP is that the method that can't predict object is gathered, and can not determine equally also how an ad hoc approach should be realized, how to cause that the state (attribute) of object changes.Defined method in the modeling has just defined the method interface of object, and the specific implementation of method needs upper layer application to do secondary development, when secondary development, follow interface requirement and the standard of OMP.
OMP of the present invention system provides object-oriented to carry out the abstract and exploitation of model, as shown in Figure 7, carry out the surface chart of model editing for the inheritance tree that adopts class, child node is all inherited from father node, the right is illustrated on the inheritance tree of the left side each attribute of selected class, and (attribute that has continues from parent, the attribute that has is the expansion to parent, is that this subclass is peculiar).Fig. 8 is Object Management group territory development interface figure, shown among the figure and can in same model, set up a plurality of displaying schemes, in each scheme, can be described, only need simple mouse drag can carry out the exploitation of scheme by this kind development interface to relation of inclusion between the class and adduction relationship.Fig. 9 presents development interface figure for object method and object, and as seen from the figure, how system of the present invention can present in different schemes method that object adopted and object is unified customization.
By above description as can be known, method and system of the present invention, abstract by carrying out model, make when carrying out application and development, object abstract---the description of class no longer needs to carry out program development, and only need utilize patterned modeling tool in the OMP of the present invention system, can be described class apace.Like this, when class need be revised, do not need coding, more do not need recompility, the connection of system, import in the middle of our system after only need making amendment, can come into force, realize the modification of business model apace model.
To the description of model, adopted dual mode in the system of the present invention: file model describing mode and storehouse table model describing mode.The file model describing mode mainly provides to the model development personnel and develops, and storehouse table model describing mode mainly is for the day-to-day operation to Object Management group provides support, and by the model transformation tools that system provides, two kinds of describing modes can be changed mutually.
In the management of traditional object-oriented, the presenting of object all needs the developer to encode to show usually, and this has occupied the sizable workload of application and development.In OMP, unified user interface is provided, most object presents work to be realized by system.Simultaneously the user interface that provided of OMP system has taken into full account application need and has carried out the needs that particular interface is integrated, and provides user interface integrated framework, realizes that looking into of user interface pull out function.
In the OMP of the present invention system, same target can have different appearance forms in different management domains, such appearance form do not realize by the upper layer application coding, and only need can realize (referring to shown in Figure 9) by customization in the modeling tool of OMP.It is at present customizable that to present style as shown in the table:
Presentation mode |
Present style |
Remarks |
Icon presents |
The icon literal |
Will be presented at the literal on icon next door, will with Attribute Association |
Icon Color |
The background color of icon will can be different according to the value different background color of specified attribute |
The icon flicker |
The flicker frequency of specified icons will can be different according to the different flicker frequencies of the value of specified attribute |
Icon hiding |
The condition that the specified icons display object will not show |
Icon Tip |
With the literal that is presented among the other ToolTip of icon, will with a given Attribute Association |
Line presents |
Line color |
Can be different according to the not collinear look of the value of specified attribute |
Line width |
The different live widths of value according to specified attribute can be different |
The line flicker |
The frequency of collinear flicker can be different according to the value of specified attribute |
Line style |
Synteny can be different according to the value of specified attribute |
|
Line concealing |
The condition that the specified line display object will not show |
System of the present invention has realized the plug mechanism of master menu and right-click menu: in fact right strong menu has represented the final user by the executable action of object.The action that object can be carried out can have a plurality of, but at different management domains, the executable action of user may be different, and the OMP system customizes by model and realizes rightly being good for menu, and supports this difference.Because right strong menu by the model customization, so right strong menu can add easily, revises or delete, is realized looking into pulling out.The master menu of system can be configured by configuration file, in configuration file, can indicate the title that menu shows, and the action that will carry out, and the OMP system can be automatically according to the content of configuration file, and how the decision menu will be carried out.As long as configuration file changes, the action that menu is carried out has also just changed, and has realized dynamically looking into the mechanism of pulling out.
OMP of the present invention system need carry out the menu item of action for each, and point is got the action that menu may carry out and is divided into two classes: a class will cause the startup of Another application (process); Another kind of needs provide the class name and the method name of an inlet, and it will be in the same process with the interface that presents of OMP, and can have access to the internal state that presents interface application.
The form of the configuration file of master menu is as follows:
<?xml?version=″1.0″encoding=″GB2312″?>
-<DynamicMenuBar>
+<Menu name=" configuration management " short_desc= ' long_desc= ' mnemonic_dey= ' 〉
-<Menu name=" alarm management " short_desc= ' long_desc= ' mnemonic_dey= ' 〉
+<Menultem name=" history alarm inquiry " 〉
-<Menu name=" checks Real-time Alarm " short_desc= ' long_desc= '
mnemonic_key=′>
-<Menultem name=" tabulation figure " 〉
-<action?type=″1″>
<classname?name=″map.omp.ShowAlarmTable″/>
-<invokemethod?name=″showAlarmTable″>
<jarg?javaclass=″java.util.list″
object=″CONTEXT_SELECTED_OBJECTS″/>
</invokemethod>
</action>
</Menultem>
+<Menultem name=" general view " 〉
</Menu>
The Menu name=of+</" warning system management " 〉
The Menu name=of+</" alarm presents setting " 〉
</Menu>
The Menu name=of+</" performance management " 〉
The Menu name=of+</" traffic management " 〉
</Menu name=" routing management "/〉
The Menu name=of+</" Report Server Management " 〉
</DynamicMenuBar>
The present invention has realized the tree-shaped any customization that presents: in the OMP system, relation between objects realizes by hierarchical structure in the different Object Management groups territory.This implementation is for the structure of setting provides condition very easily.As long as hierarchical relationship is constructed in each Object Management group territory between the object, create the root node object that one tree only need be specified an Object Management group territory and tree, OMP presents platform just can construct one tree by the hierarchical structure between the object.In this way, can member many trees arbitrarily, different users pays close attention to different trees, is convenient to realize the control of access rights.
The OMP system provides Object Management group to present module, and the user can add own peculiar user interface and present logic with this module as the starting point that presents (also can not want this starting point and oneself develop again fully) when carrying out secondary development.One object presents surface chart, and the left side is the tree graph zone, is used to represent the tree that login user has authority to see; The upper right corner is topological diagram and tabulation figure viewing area, be used for showing on the tree graph of the left side the object of choosing in corresponding Object Management group territory (scheme) subobject that it comprised annexation (in tabulation figure, enumerating) each other for simple object; The lower right corner is the attributed graph of object, is used for being presented at the various attributes of topological diagram or the selected object of tabulation figure, and the grouping way of attribute during according to modelling presents.On the interface, system utilizes various ways such as icon, color, and the rule that defines in the time of according to modeling carries out the most intuitively that object presents.
OMP of the present invention system provides the complete API of a cover to the object data visit, comprises object API and model API, and the interface integrated framework in the system also is that framework is on the basis of this cover API.When system applies is in distributed environment (many cover OMP unite when using), the data access on the different OMP is transparent.By this cover API, can visit whole OMP object datas, and can realize that additions and deletions change and function such as look into.The different application of utilizing this system is being carried out when integrated, because what adopt is the same foundation platform, so can realize seamless integrated.The seamless integrated interface on back-end data visit and foreground that comprises here presents, because the interface also is unified integrated framework.
In the OMP system, utilize JMS (Java Message Service, Java messenger service), framework the messaging bus of oneself.When in use, only need provide a configuration file, tell system when receiving which kind of message, carry out which kind of user-defined action.Like this, when secondary development, only need provide the processing action of a Profile Description to message, system can automatically handle various message, and needs no longer to realize that the reception to message handles coding.
In order to support the integrated of upper layer application, especially safe is integrated, and OMP provides system and user management module to realize configurable rights management.In this way, unified mandate interface (each system that is integrated no longer needs the mandate interface of oneself) is provided, the unified API of Authority Verification is provided simultaneously, each system is before carrying out resource access like this, the authority API that only need call OMP provides verifies, and need not to be concerned about how permissions data inside organizes, and how repetitive work such as authorize by operation interface.
More system of the present invention can overlap to unite and be useful for large-scale distributed occasion, many covers are meant mainly in the system of systems three-decker that logical layer and data Layer have many covers (referring to Fig. 5), the client of an integrated application only need once be logined, and can automatically have access to its needed correct information that is positioned on each different server.This realization, mainly be to rely on the complete object accesses client application program interface (Client API) of a cover call OMP and provide to realize transparent access, the final user only need correctly dispose each cover system and indicate points relationship between the object data, and Client API can correctly realize the distributed information visit transparent.That is to say that integrated being applied in when carrying out secondary development do not need the distributed nature of taking into account system, this part content is packaged by OMP Client API fully; Equally, integrated application developer does not need to be grasped the relevant knowledge of J2EE could be integrated, because this part content finished by OMP Client API, they need carry out common java and call, and have reduced the requirement to integrated application developer.Figure 10 realizes system architecture synoptic diagram more detailed when distributed (the relevant expression of the modelling instrument and the instrument of mandate when having saved single cover and using for system, do not expand because they do not need integrated application developer to write code again, only need do corresponding change) configuration file.
The dotted line representational level is divided among the figure; The black line of vertical direction band arrow represents to call (request) relation; The cross spider of two band arrows is represented transparent distributed the calling of OMP Client API; The dotted line of horizontal direction band arrow represents that the remote synchronization between the application server calls; Serverl, Servern represent each independently application server; Authority Verification among the figure (API), model visit (API), authority visit (API) Object Management group API represent the API for integrated application call that OMP provides; The inner partial content of realizing of API is represented in each ellipse garden among the figure.
OMP Client API is achieved in that the transparent access of distributed data encapsulation and has a kind of object (can only be articulated under the scheme) that is called agency (Proxy) in OMP inside, this object is actually used in the information of OMP object (OMP Object) in given scheme of pointing on another server (Sever), Client API is when having access to the Proxy object, will be according to the information of the Proxy object that gets access to, send request to another Server once more, obtain relevant information.Each OMP Object all has the Server information under it, and follow-up visit all can directly be visited another OMP Server, thereby realizes distributed visit, provides the transparency to the upper strata caller, and this is similar to the redirect operation among the http.
The above; only for the preferable embodiment of the present invention, but protection scope of the present invention is not limited thereto, and anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; the variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection domain of claims.