Summary of the invention
In view of this, main purpose of the present invention is to provide a kind of method that shows the telecommunication administration object, by this method, can be according to the needs of user management, demonstrate the hierarchical relationship and the inclusion relation of management object, and, can realize changing according to actual needs the hierarchical relationship and the inclusion relation of shown management object.
For achieving the above object, the invention provides a kind of method that shows the telecommunication administration object, this method comprises:
Steps A: distribute the demonstration node type that shows node type sign (cid) and determine management object for each management object, the cid that passes through to be distributed determines the inclusion relation and the hierarchical relationship of each management object; Wherein, the demonstration node type of described management object comprises physical node and dummy node;
Step B: read the cid of each management object one by one, judge the demonstration node type of the management object read,, the management object that is read is presented at corresponding position according to showing node type and utilizing the inclusion relation and the hierarchical relationship of each management object.
Wherein, steps A further comprises:
Increase management object and be this management object distribution cid, the demonstration node type of determining each management object and definite new inclusion relation and hierarchical relationship.
Wherein, described increase management object and definite new inclusion relation and hierarchical relationship are:
On the text instrument, increase node newly, and change the hierarchical relationship and the inclusion relation of management object by change father node and child node relationships on text instrument.
Wherein, described increase management object and definite new inclusion relation and hierarchical relationship are:
On wscript.exe, increase node newly, and change the hierarchical relationship and the inclusion relation of management object by change father node and child node relationships on this wscript.exe.
Wherein, described definite inclusion relation of steps A and hierarchical relationship are:
Determine father node and child node relationships between the cid of each management object.
Wherein, step B comprises:
Step B1: the cid that reads each management object one by one;
Step B2: according to the cid of the current management object that reads, judge whether this management object is dummy node, if, then with the management object sign (oid) of the father node object of this current dummy node management object oid as this dummy node management object self, utilize step B5 determine the father node object that obtains cid and and the oid of father node obtain father node, this dummy node management object is added to below this father node management object, with the oid and the cid that utilize determined this dummy node self in this step, show this dummy node, then execution in step B6; Otherwise, execution in step B3;
Step B3: read the inclusion relation and the hierarchical relationship of each management object, determine current management object correspondence father node cid and obtain current management object and the oid of current management object father node;
Step B4: cid and oid by the father node of current management object obtain this father node, current management object is added under this father node, and show this current management object according to the cid and the oid of current management object;
Step B5: according to the hierarchical relationship and the inclusion relation of each management object, judge whether current management object has the dummy node subobject, if having, then with the cid of current management object father node cid as these dummy node subobjects; Otherwise, direct execution in step B6;
Step B6: judge whether to have read the cid of all management objects, if, process ends then, otherwise, return step B1, read the cid of next management object, until the cid that has read all management objects.
Wherein, steps A further comprises:
Set the attribute of management object;
Step B3 is described to determine that the cid of the father node of current management object correspondence further comprises:
The situation of a plurality of father node cid judges whether to occur current management object to should be arranged, if, then utilize the alternative condition in inclusion relation and the hierarchical relationship, whether the attribute of judging this current management object satisfies corresponding alternative condition, thereby determines the father node cid that this current management object institute should correspondence.
As seen, by method provided by the present invention, can demonstrate the hierarchical relationship and the inclusion relation of management object according to the needs of user management, thereby satisfied user's managerial demand, and, method provided by the present invention can also further increase dummy node as required, thereby changes hierarchical relationship and inclusion relation between the management object, satisfies the needs of user management.
Embodiment
The present invention is a kind of method that shows the telecommunication administration object, this method is according to user's managerial demand, preestablish display model, utilize this display model that the management object in the information model and hierarchical relationship thereof and inclusion relation are shown, and, this method can also further be changed display model, thereby changes the hierarchical relationship and the inclusion relation of shown management object according to user's needs.
Describe the present invention below in conjunction with accompanying drawing.
Referring to Fig. 1, Fig. 1 has shown the hierarchical relationship and the inclusion relation of the information model of 3GPP, wherein, management object RncFunction comprises two class management object UtranCell and IubLink in this model, as shown in Figure 1, owing under a RncFunction, can there be the example of a plurality of UtranCell and IubLink, therefore, if directly be presented at such hierarchical relationship and inclusion relation on the interface, whole demonstration tree can seem more mixed and disorderly, be unfavorable for management, the user need find certain specific management object from a lot of unordered management objects, and display interface shown in Figure 1 is very disagreeableness concerning the user.
Therefore, for display management object more clearly, make things convenient for the user that equipment is managed, in embodiments of the present invention, in display model, add dummy node UtranCellSet and IubLinkSet, the object of UtranCell class and the object discrimination of IubLink class are come, thus demonstration interface as shown in Figure 2;
Simultaneously, if the Linktype under the IubLink can be further divided into IubSAALLink and two types of IubAlcapLink, then can be under dummy node IubLinkSet, continue two dummy node IubSAALLinkSet of structure and IubAlcapLinkSet, utilize the nested of this dummy node, further divide, thus demonstration interface as shown in Figure 3.
Obviously, Fig. 2 and interface shown in Figure 3 are friendly more and be suitable for the user more and manage according to this interface with respect to interface shown in Figure 1.
Below in conjunction with accompanying drawing, the process that adopts method specific implementation displayed map 2 provided by the present invention and interface shown in Figure 3 is described in detail.
In embodiments of the present invention, show that by each node shows each management object respectively, one shows that node can be used as the father node that other shows node, also can be used as the child node that certain shows node, show each by the corresponding relation between father node and the child node and show hierarchical relationship and inclusion relation between the pairing management object of node;
Wherein, show that node is divided into physical node and dummy node, physical node is used for showing and the corresponding in esse management object of this physical node do not have the corresponding corresponding with it dummy node management object of in esse management for those, then adopts dummy node to show; Unique identification shows node to adopt cid and oid to come respectively, and wherein, cid is for showing the node types sign, and the overall situation is unique; Oid is for the unique identification of the management object that shows the node correspondence, and for there not being the corresponding with it dummy node of management object, the oid of management object of father node correspondence that then adopts this dummy node is as the oid of this dummy node;
Realize that the present invention needs following steps:
Steps A: distribute cid for each management object and also determine the demonstration node type of management object, the cid that passes through to be distributed preserves the inclusion relation and the hierarchical relationship of each management object; Wherein, the demonstration node type of described management object comprises physical node and dummy node; Wherein, also can further comprise the attribute that defines management object in this step;
Step B: read the cid of each management object one by one, judge the demonstration node type of the management object read,, the management object that is read is presented at corresponding position according to showing node type and utilizing the inclusion relation and the hierarchical relationship of each management object.
Respectively the specific implementation of steps A and step B is described in detail below.
One, the specific implementation of steps A:
Steps A 1: distribute cid for each the in esse management object in the information model, the cid that defines the attribute of each management object and pass through to be distributed preserves the inclusion relation and the hierarchical relationship of each management object;
Wherein, in embodiments of the present invention,, and preserve this allocation result for each management object is distributed the cid that the overall situation is unique; Then, hierarchical relationship and inclusion relation according to each management object in the information model, determine and preserve father node and child node relationships between each cid, thereby embody inclusion relation and the hierarchical relationship of the pairing management object of each cid in information model by this father node and child node relationships; According to the cid of each management object, be respectively each management object and determine its attribute and preservation;
In the embodiment of the invention, preserve the allocation result that management object is distributed cid with the class table shown in the table 1; Wherein, be the title of the pairing management object of each cid among one of the Name, whether be used to preserve management object among one of the Mask is dummy node;
cid | Name | Mask | |
1 | Rns | |
2 | RncFunction | |
3 | UtranCell | |
4 | IubLink | |
5 | NodeB | |
Table 1
In the embodiment of the invention, preserve the attribute of each management object with the attribute list shown in the table 2; Wherein, aid is unique in same cid in this table, and for convenience, a lot of attributes that relate in this table remove;
cid |
aid | Attribute Name | |
1 |
1 |
RnsID |
2 |
1 |
RncFunctionID |
2 |
2 |
RNCSysDescr |
3 |
1 |
UtranCellID |
3 |
2 |
RelatedIubLinkID |
4 |
1 |
IubLinkID |
4 |
2 |
IubLinkType |
5 |
1 |
NodeBID |
Table 2
In the embodiment of the invention, the father who preserves between each cid with the inclusion relation table shown in the table 3 saves and child node relationships, just preserves the hierarchical relationship and the inclusion relation of each management object, wherein, Mask in the table is a mask, can define inclusion relation in more detail by this mask;
Parent Cid | Child Cid | Mask |
1 | 2 | |
1 | 5 | |
2 | 3 | |
2 | 4 | |
Table 3
The following description of the embodiment of the invention is all based on above 3 tables, in other embodiment of the present invention, also can adopt alternate manner to preserve allocation result, the attribute of management object and the hierarchical relationship and the inclusion relation of each management object of the cid of management object, adopt these alternate manners, do not influence realization of the present invention;
Steps A 2:, increase management object and also distribute cid, determine whether each management object is dummy node and determines new inclusion relation and hierarchical relationship for this management object according to managerial demand or demonstration needs;
In embodiments of the present invention, increase management object UtranCellSet, IubLinkSet, IubSAALLinkSet and IubAlcapLinkSet newly, these objects are the dummy node management object, in one of Mask, represent by isManObject whether this management object is dummy node, if true then is not a dummy node, if false then is a dummy node; After as above operating, table 1 changes to shown in the table 4:
cid | Name |
Mask | |
1 |
Rns |
isManObject=true |
2 |
RncFunction |
isManObject=true |
3 |
UtranCell |
isManObject=true |
4 |
IubLink |
isManObject=true |
5 |
NodeB |
isManObject=true |
1001 |
UtranCellSet |
isManObject=false |
1002 |
IubLinkSet |
isManObject=false |
1003 |
IubSAALLinkSet |
isManObject=false |
1004 |
IubAlcapLinkSet |
isManObject=false |
Table 4
Owing to increased dummy node management object UtranCellSet and IubLinkSet newly, therefore, the inclusion relation table shown in the table 3 also changes, and is changed to shown in the table 5:
Parent Cid | Child Cid | Condition | |
1 | 2 | |
1 | 5 | |
2 | 1001 | |
2 | 1002 | |
1001 | 3 | |
1002 | 1003 | |
1002 | 1004 | |
1003 | 4 | Value(Aid=2)==1 |
1004 | 4 | Value(Aid=2)==2 |
Table 5
Wherein, because the user wishes in display list IubLink object (cid=4) to be divided into two classes: IubSAALLink and IubAlcapLink, so defined two dummy node IubSAALLinkSet and IubAlcapLinkSet here, so just need different IubLink objects be placed on respectively and go below IubSAALLinkSet and the IubAlcapLinkSet according to the condition among the Condition, in embodiments of the present invention, carry out as giving a definition in the Condition item in the inclusion relation table:
Value (aid=2)==1 explanation: in the object of cid=4, if the property value of aid=2 equals at 1 o'clock, the cid of the father node of this object is exactly 1003 so, and just, the father node of this node is defined as IubSAALLinkSet;
Value (Aid=2)==2 explanation: in the object of cid=4, if the property value of aid=2 equals at 2 o'clock, the cid of the father node of this object is exactly 1004 so, and just, the father node of this node is defined as IubAlcapLinkSet;
Attribute list is as shown in table 6:
cid | Aid | Attribute Name | |
1 | 1 | RnsID |
2 | 1 | RncFunctionID |
2 | 2 | RNCSysDescr |
3 | 1 | UtranCellID |
3 | 2 | RelatedIubLinkID |
4 | 1 | IubLinkID |
5 | 1 | NodeBID |
Table 6
The above each table adopts the mode of configuration file to preserve, and can utilize program language to write this document, and the file that adopts different types of program language to write out in form can be different, but do not influence realization of the present invention;
Two, the specific implementation of step B:
Referring to Fig. 4, performing step B may further comprise the steps:
Step 401: read configuration file, wherein, comprise in this configuration file: the cid that distributes for each management object in the steps A, the attribute of each object, and the inclusion relation of each management object and hierarchical relationship; In embodiments of the present invention, the object that is read is a configuration file of preserving table 4~table 6 content;
Step 402: the cid that reads each management object one by one;
Step 403: according to the cid of the current management object that reads, judge whether this management object is dummy node, if then execution in step 410, otherwise, execution in step 404; Wherein, in the embodiment of the invention, read in the table 4 isManObject with one of the corresponding Mask of the current cid that reads, by judging whether this isManObject is that true judges whether current management object is the dummy node management object, if be true, then not the dummy node management object, if be false then for the dummy node management object;
Step 404: obtain the oid of the current management object that reads and the oid of father's management object; Wherein, oid is for showing the unique identification of node administration object, and for the dummy node that does not have the management object correspondence, the oid of this dummy node is the oid of his father's physical node, and each management object is all allocated oid separately in advance; In other embodiment of the present invention, obtaining this step of oid of the current management object that reads described in this step can carry out in the arbitrary steps before showing current management object, obtaining this step of oid of father's management object of the current management object that reads described in this step can carry out in the arbitrary steps before obtaining the father node of current management object, does not all influence realization of the present invention;
Step 405: read the inclusion relation and the hierarchical relationship of each management object, determine the cid of the father node of current management object correspondence; In embodiments of the present invention, read table 5,, determine the cid of this management object father node by the cid of current management object according to the father node in this table and the corresponding relation of child node;
Wherein, in this step, if current management object to the situation of a plurality of father node cid should be arranged, then also needs further to judge:
Utilize in inclusion relation and the hierarchical relationship the alternative condition further set, judge whether the attribute of this current management object satisfies corresponding alternative condition, thereby determine the father node cid that the cid institute of this current management object should correspondence; Wherein, in embodiments of the present invention, Condition item in the table 5 is preserved the attribute of each management object as the alternative condition of further setting in inclusion relation and the hierarchical relationship in table 6, the embodiment of the invention utilizes table 5 and table 6 to realize described further judgement:
At the cid of current management object is 4 o'clock, because therefore this cid corresponding two father nodes in table 5, read the value of the pairing attribute of this cid from table 6:
If in the object of cid=4, the property value of the aid=2 that is read equals at 1 o'clock, and according to defined content among the Condition in the table 5, the cid of the father node of this object is exactly 1003 so, just, the father node of this node is defined as IubSAALLinkSet;
If in the object of cid=4, the property value of the aid=2 that is read equals at 2 o'clock, and according to defined content among the Condition in the table 5, the cid of the father node of this object is exactly 1004 so, just, the father node of this node is defined as IubAlcapLinkSet;
In this way, determined the cid of father node of the object of this cid=4;
Step 406: according to the father node cid that determines, and the oid of the father node that obtains in step 404 searches the father node that obtains current management object;
Step 407: the current management object that reads is added under the father node management object that finds, and show this management object by the demonstration node according to the cid and the oid of this current management object;
Step 408: according to the hierarchical relationship and the inclusion relation of each management object, judge whether current management object has the dummy node subobject, if having, then with the cid of current management object father node cid as these dummy node subobjects; Otherwise, direct execution in step 409;
Step 409: judge whether to have read the cid of all management objects, if, process ends then, otherwise, return step 402, read the cid of next management object, until the cid that has read all management objects;
Wherein, when judging that in step 403 obtaining the current management object that reads is dummy node, then execution in step 410, with the oid of the father node object of this current dummy node management object oid as this dummy node management object self, owing to determined the cid of its father node in the step 408 for the dummy node management object, therefore, in this step, utilize the cid of the oid of father node object of current dummy node management object and father node to determine the father node management object of this current dummy node management object, this dummy node management object is put into below this father node management object, and, utilize the oid and the cid of determined this dummy node self in this step, show this dummy node, then, execution in step 409 again.
In the present invention, also can further increase dummy node, and the hierarchical relationship and the inclusion relation of the management object of change demonstration, usually adopt text instrument definition display model, the user is newly-increased dummy node on text instrument as required, and change the hierarchical relationship and the inclusion relation of management object by change father node and child node relationships, the user can directly make amendment on text instrument, also can adopt the mode that drags shown management object to realize, wherein driving style is normally used mode in the prior art, those skilled in the art all can directly realize, so be not described in detail at this.
In the present invention, display model adopts script mode to write, and is beneficial to realization and further revises display model based on wscript.exe.
The above only is preferred embodiment of the present invention, and is in order to restriction the present invention, within the spirit and principles in the present invention not all, any modification of being done, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.