CN102708252A - Method and device for converting form of networking diagram as well as computer node - Google Patents

Method and device for converting form of networking diagram as well as computer node Download PDF

Info

Publication number
CN102708252A
CN102708252A CN201210153973XA CN201210153973A CN102708252A CN 102708252 A CN102708252 A CN 102708252A CN 201210153973X A CN201210153973X A CN 201210153973XA CN 201210153973 A CN201210153973 A CN 201210153973A CN 102708252 A CN102708252 A CN 102708252A
Authority
CN
China
Prior art keywords
network element
networking diagram
element object
pending
bus
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.)
Granted
Application number
CN201210153973XA
Other languages
Chinese (zh)
Other versions
CN102708252B (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201210153973.XA priority Critical patent/CN102708252B/en
Publication of CN102708252A publication Critical patent/CN102708252A/en
Application granted granted Critical
Publication of CN102708252B publication Critical patent/CN102708252B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The embodiment of the invention discloses a method and device for converting a form of a networking diagram, as well as a computer node, which relate to the field of design of diagrams. The method and the device can automatically convert the form of the networking diagram, so that the processing efficiency of the networking diagram is improved. The method disclosed by the invention comprises the following steps of: obtaining connection information of the networking diagram to be processed, wherein the networking diagram is in a straight-line form or a bus form, and the connection information comprises a connection relation among network elements of the networking diagram to be processed; if the networking diagram to be processed is in the bus form, connecting the network elements of the networking diagram to be processed by straight lines according to the connection information, thus generating a straight-line-formed networking diagram corresponding to the networking diagram to be processed; and if the networking diagram to be processed is in the straight line form, connecting the network elements of the networking diagram to be processed by vertical lines among buses according to the connection information, thereby generating a bus-formed networking diagram corresponding to the networking diagram to be processed. The method and the device disclosed by the invention are applicable to converting the form of the networking diagram.

Description

Method, device and the computer node of conversion networking diagram form
Technical field
The present invention relates to the Graphics Design field, relate in particular to a kind of method, device and computer node of changing the networking diagram form.
Background technology
In design, production and the marketing process of many system class products (like communication system, internet system etc.); Need draw networking diagram according to the composition framework of product, so that designer, producer and client more clearly understand the network architecture situation of product through the networking diagram of product.Networking diagram mainly is divided into the straight line connection and is connected two kinds of forms with bus, each components and parts in the corresponding expression of each network element object system in the networking diagram.The networking diagram that straight line connects is convenient for people to check accurately the annexation between each network element object among the figure, but line is staggered, in disorder, very not attractive in appearance.On the other hand, the networking diagram that bus connects is comparatively neat and artistic, but is not easy to clearly represent the annexation between the network element object.
Under the actual conditions, often need draw the networking diagram of these two kinds of forms simultaneously.The technician needs like Autocad, Matlab etc., remove the networking diagram of the another kind of form of manual drawing through existing drawing instrument according to the networking diagram of existing this a kind of form after having drawn wherein a kind of networking diagram of form.When system need make amendment or remake, because two kinds of networking diagram reflections is same system, then another networking diagram also need carry out corresponding modification even recasting.Promptly the transfer process of two kinds of networking diagrams is manually carried out through drawing instrument by the technician fully.
The inventor finds to exist at least in the prior art following problem:
Wasted time and energy by technician's manual switch networking diagram form, need the labor time, the treatment effeciency of networking diagram is low.
Summary of the invention
Embodiments of the invention provide a kind of method, device and computer node of changing the networking diagram form, can change the form of networking diagram automatically, thereby improve the treatment effeciency of networking diagram.
Embodiments of the invention adopt following technical scheme:
On the one hand, embodiments of the invention provide a kind of method of changing the networking diagram form, comprising:
Obtain the link information of pending networking diagram, said networking diagram is the networking diagram of form of straight lines or the networking diagram of bus form, and said link information comprises the annexation between the network element object in the said pending networking diagram;
If the networking diagram that said pending networking diagram is a bus form then connects the network element object in the said pending networking diagram according to said link information through straight line, with the networking diagram of generation with the corresponding form of straight lines of said pending networking diagram;
If the networking diagram that said pending networking diagram is a form of straight lines; Then be connected the network element object in the said pending networking diagram, to generate the networking diagram with the corresponding bus form of said pending networking diagram according to the perpendicular line of said link information through bus and said bus.
On the other hand, embodiments of the invention provide a kind of device of changing the networking diagram form, comprising:
The link information acquisition module is used to obtain the link information of pending networking diagram, and said networking diagram is the networking diagram of form of straight lines or the networking diagram of bus form, and said link information comprises the annexation between the network element object in the said pending networking diagram;
Bus is changeed linear module; Be used for if the networking diagram that said pending networking diagram is a bus form; Then connect the network element object in the said pending networking diagram through straight line, with the networking diagram of generation with the corresponding form of straight lines of said pending networking diagram according to said link information;
Straight line changes bus module; Be used for if the networking diagram that said pending networking diagram is a form of straight lines; Then be connected the network element object in the said pending networking diagram, to generate the networking diagram with the corresponding bus form of said pending networking diagram according to the perpendicular line of said link information through bus and said bus.
On the one hand, embodiments of the invention provide a kind of computer node, comprising again:
Internal memory is used for the pending networking diagram of buffer memory;
External memory storage is used to store the link information of said pending networking diagram, and said link information comprises the annexation between the network element object in the said pending networking diagram;
Processor; Be used for after obtaining pending networking diagram and said external memory storage from said internal memory and obtaining the link information of said pending networking diagram; Carry out the flow process of conversion networking diagram form; The flow process of said conversion networking diagram form comprises: when said pending networking diagram is the networking diagram of bus form, connect the network element object in the said pending networking diagram according to said link information through straight line; When said pending networking diagram is the networking diagram of straight bus form, be connected the network element object in the said pending networking diagram according to the perpendicular line of said link information through bus and said bus.
Method, device and the computer node of the conversion networking diagram form that the embodiment of the invention provides; Equipment can be according to the link information of network element object in the networking diagram of existing a kind of form; Automatically generate the networking diagram of another kind of form; And whole process is realized by equipment, does not need artificial process of participating in conversion.Compared with prior art, the embodiment of the invention can be changed the form of networking diagram automatically, has saved because of the spent time of manual operation, and has avoided the drawing mistake that causes because of manual operation, has saved the wrong required time of check, thereby has increased work efficiency.
Description of drawings
In order to be illustrated more clearly in the technical scheme in the embodiment of the invention; To do to introduce simply to the accompanying drawing of required use among the embodiment below; Obviously, the accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills; Under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
The process flow diagram of the method for the conversion networking diagram form that Fig. 1 provides for the embodiment of the invention 1;
Fig. 2 a is the synoptic diagram of instantiation of the method for conversion networking diagram form provided by the invention;
Fig. 2 b is the synoptic diagram of instantiation of the method for conversion networking diagram form provided by the invention;
Fig. 2 c is the synoptic diagram of instantiation of the method for conversion networking diagram form provided by the invention;
The process flow diagram of the method for the conversion networking diagram form that Fig. 3 provides for the embodiment of the invention 2;
The synoptic diagram of the instantiation of the method for the conversion networking diagram form that Fig. 4 provides for the embodiment of the invention 2;
The structural drawing of the device of the conversion networking diagram form that Fig. 5 provides for the embodiment of the invention 3;
The structural drawing of the device of the conversion networking diagram form that Fig. 6 provides for the embodiment of the invention 4;
The structural representation of the computer node that Fig. 7 provides for the embodiment of the invention 5.
Embodiment
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making all other embodiment that obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
For the advantage that makes technical scheme of the present invention is clearer, the present invention is elaborated below in conjunction with accompanying drawing and embodiment.
Embodiment 1
Present embodiment provides a kind of method of changing the networking diagram form, and is as shown in Figure 1, and this method comprises:
In the present embodiment; Networking diagram has comprised the networking diagram (shown in Fig. 2 a) of form of straight lines, or these two kinds of forms of the networking diagram of bus form (shown in Fig. 2 b), and the networking diagram of these two kinds of forms is two kinds of different description forms of identical product (system, device); Be the two graphic form different but represented be identical product structure; And the network element object in the networking diagram of two kinds of forms is formed, the network element object's position, and annexations etc. are identical.Wherein, the network element object refers to the graphical symbol in networking diagram, each components and parts in the concrete system of the corresponding expression of each graphical symbol, thus the graphical symbol in the networking diagram is connected the networking diagram that can obtain form of straight lines/bus form through line segment.
The practical implementation process of the method for present embodiment can be realized that wherein, equipment can be computing machine, server, portable terminal etc. by equipment.
Step 101 is obtained the link information of pending networking diagram.
Wherein, networking diagram is the networking diagram of form of straight lines or the networking diagram of bus form, and link information comprises the annexation between the network element object in the pending networking diagram.Concrete, link information can have the multiple form of expression in equipment, for example:
The concrete manifestation form of link information in equipment can be the program language of following form:
<TOPOLOGY>description"
Tester$TSG
link1,DTA?toDTB,DTB?toDTA
link2,DTA?toTester,Tester?toDTA
link3,DTB?toTester,Tester?toDTB"
Foregoing representes that router DTA links to each other with router DTB, and router DTA links to each other with tester Tester, and router DTB links to each other with tester Tester.
Concrete; In the present embodiment; The mode that equipment obtains the link information of pending networking diagram has multiple; For example: equipment can extract the link information between each network element object through the prior art means from pending networking diagram, also can from database/reservoir that equipment is connected obtain link information.
When pending networking diagram is the networking diagram of bus form, in the time of promptly need converting networking diagram into form of straight lines by bus form, execution in step 102; When pending networking diagram is the networking diagram of form of straight lines, in the time of promptly need converting networking diagram into bus form by form of straight lines, execution in step 103.
Step 102 connects the network element object in the said pending networking diagram according to said link information through straight line.
According to the networking diagram of said link information generation with the corresponding form of straight lines of said pending networking diagram.Concrete; In the present embodiment; Equipment can be on the basis of pending networking diagram generates the networking diagram of form of straight lines according to link information; Be that equipment can generate the networking diagram that does not comprise any line segment earlier, and the type of the network element object in this networking diagram, quantity and each network element object position and the network element object in the pending networking diagram in the drawings identical, for example: equipment can be removed all line segments of pending networking diagram through the prior art means; Only keep each network element object among the figure; Such as: in Autocad 2007 engineering drawing software, computing machine can carry the figure layer that plug-in unit is optionally closed the place of the connection line segment between all network element objects in the networking diagram through graphics software, keeps the unlatching of concrete network element object place figure layer simultaneously; Do not comprise line segment thereby can obtain one, only comprise the networking diagram of network element object.Equipment can directly directly adopt straight line to connect each network element object according to link information on the networking diagram of having closed the partial graph layer through selectivity afterwards; Thereby obtained the networking diagram of form of straight lines again; Wherein, The mode that concrete employing straight line connects each network element object can be that existing end points is followed the trail of among the Autocad 2007, according to the tracking point automatic connecting etc.
Step 103 is connected the network element object in the said pending networking diagram according to the perpendicular line of said link information through bus and said bus.
Concrete, in the present embodiment, equipment can generate the networking diagram that does not comprise any line segment earlier.Generate bus and each network element object perpendicular line to bus more on this basis, wherein, the position of bus can be by the equipment algorithm decision preset according to the particular location employing of each network element object in the networking diagram.
The method of the conversion networking diagram form that present embodiment provides; Can be according to the link information of network element object in the networking diagram of existing a kind of form; Automatically generate the networking diagram of another kind of form, and whole process is realized the process that does not need artificial participation to change by equipment.Compared with prior art, the embodiment of the invention can be changed the form of networking diagram automatically, has saved because of the spent time of manual operation, and has avoided the drawing mistake that causes because of manual operation, has saved the wrong required time of check, thereby has increased work efficiency.
Embodiment 2
Present embodiment provides a kind of method of changing the networking diagram form, and is as shown in Figure 3, and this method comprises:
Step 301 is obtained and is specified the network element object.
Wherein, specify a part in all network element objects that the network element object comprises that said pending networking diagram comprises.
Concrete; In the present embodiment; Equipment can obtain the part in all network element objects that pending networking diagram comprises; It is the networking diagram that equipment can only convert the zone at the place of the part network element object in the pending networking diagram into another kind of form; For example: in the tendering process of system class product, the tenderer provides the networking diagram of bus form to the client, and the client hopes to check the router in the system in detail and the connection situation of the upstream plant (promptly specifying the network element object) that is connected with router with the networking diagram of form of straight lines; The upstream plant that this computer-chronograph can be selected router and be connected with router in networking diagram according to client's demand is so that computing machine generates the networking diagram of the upstream plant form of straight lines that has only comprised router and be connected with router.
Wherein, Computing machine confirms to specify the embodiment of network element object can have multiple; Can realize through arbitrary technological means that the technician knew, such as: computing machine is divided networking diagram for a plurality of zones in advance, and each zone has comprised a part of network element object; When triggering by the user when needing one of them regional networking diagram of conversion, computing machine can with by the network element object in the zone that the user triggered as specifying the network element object handles; For another example: computing machine can receive user's selection information; Said selection information is used for identification and specifies the network element object; As in Autocad2007; The user can drag mouse pointer and form choice box, and computing machine can be with this choice box as selection information, everyly in networking diagram, is selected network element object that frame chooses and is and specifies the network element object.
Step 302 is obtained the coordinate of said appointment network element object.
Wherein, the coordinate of network element object is that network element object in the pending networking diagram is with respect to the coordinate of preset coordinate axis.The coordinate of further, specifying the network element object is for specifying the coordinate of network element object with respect to preset coordinate axis.
Concrete; In the present embodiment; The concrete mode that equipment obtains the coordinate of specifying the network element object can be existing any-mode, and for example: in Autocad2007, each figure layer all has preset coordinate axis; All point, line, surface have all identified the coordinate with respect to preset coordinate axis in the figure layer; Because the network element object refers to the graphical symbol (the concrete figure of promptly being made up of point, line, surface) in networking diagram, equipment can through read in the buffer memory or reservoir in the coordinate of each graphical symbol, thereby obtain the coordinate of specifying the network element object.
Step 303 is obtained the network element object information.
Wherein, the network element object information comprises concrete title, model, the factory number of the network element object in the pending networking diagram.
Concrete; In the present embodiment; Equipment final what will be converted to is a kind of networking diagram that is used to describe product; Each components and parts in the corresponding system of network element object wherein, the components and parts that Different products comprised are generally inequality, so also need obtain the network element object information so that confirm concrete title, model, the factory number of the pairing components and parts of each network element object in the described product of networking diagram.For example: in Fig. 2 a, Fig. 2 b and Fig. 2 c, can know according to the network element object information that network element object A is a switch, network element object B, network element object C, network element object D and network element object E are gateways.
Further, the mode that equipment obtains the network element object information can have multiple, can from storage facilities, obtain the network element object information that prestores, or receives the network element object information etc. of user's input, does not do qualification at this.
Further again, step 302 and step 303 can be carried out simultaneously, also can before step 304, carry out according to certain sequencing, do not do qualification at this.
Step 304 generates said initial networking diagram according to the coordinate and the related network element object information of said appointment network element object of said appointment network element object.
Wherein, initial networking diagram comprises specifies the network element object, and each the network element object in the appointment network element object is all on the pairing position of the coordinate of network element object.
For example: shown in Fig. 2 c; Specifying the network element object is network element object A, network element object B, network element object C, network element object D, network element object E; Then equipment is after obtaining the coordinate of above-mentioned 5 network element objects from the pending networking diagram shown in Fig. 2 a; Generate the initial networking diagram shown in Fig. 2 c; Wherein the coordinate of network element object in the initial networking diagram shown in Fig. 2 c and the network element object in the pending networking diagram shown in Fig. 2 a is identical, and equipment generates the line that does not connect each network element object in the initial networking diagram.Optional, initial networking diagram also can generate the method acquisition of the networking diagram that does not comprise any line segment through the equipment described in the embodiment 1.
Step 305 is obtained the link information of said pending networking diagram.
Wherein, the link information of pending networking diagram has comprised the related link information of appointment network element object in the present embodiment.
Step 306 is judged the pattern of said pending networking diagram according to the figure of said pending networking diagram.
Wherein, if the networking diagram that said pending networking diagram is a bus form, then execution in step 307, said pending networking diagram converted into the networking diagram of form of straight lines; If said pending networking diagram is the networking diagram of form of straight lines, then execution in step 308 converts said pending networking diagram into the networking diagram of bus form to step 309.
Concrete; In the present embodiment; Equipment can be discerned the form of pending networking diagram through the prior art means; For example: equipment can be discerned the form of networking diagram through existing algorithm for pattern recognition, such as: equipment can be treated the processing networking diagram and carry out graph scanning, generates a bianry image matrix; Through the profile search technique bianry image matrix that generates is handled again; Because the graphics feature of bus in many networking diagrams is: do not connect other network element objects on two end points of line segment, can judge then two end points that whether have line segment in the pairing pending networking diagram of bianry image matrix all do not connect the line segment of network element object, promptly judge whether there is bus in the pending networking diagram.If there is bus, then be the networking diagram of bus form; If there is not bus, then be the networking diagram of form of straight lines.
Step 307 according to the related link information of said appointment network element object, connects said appointment network element object through straight line.
The networking diagram of form of straight lines is the initial networking diagram that has connected each network element object in the appointment network element object category in the initial networking with straight line.
Step 308 generates said bus according to the coordinate of said appointment network element object in said initial networking diagram.
It is concrete that equipment can be confirmed the position of bus through corresponding algorithm according to the coordinate of the network element object of specifying the network element object, and generates bus in the present embodiment, for example:
As shown in Figure 4, equipment can be confirmed the position of bus model according to the coordinate of the network element object of specifying the network element object, and is concrete, such as: the coordinate of network element object A (x1, y1), the coordinate of network element object B (x2, y2), the coordinate of network element object C (x4, y4).Again according to the coordinate of network element object, the position that obtains bus through corresponding algorithm, such as:
End points 1 coordinate is: (x2-(L* WidFin coefficient), y2-(W* HeiFin coefficient))
End points 2 coordinates are: (x4+ (L* WidFin coefficient), y4-(W* HeiFin coefficient))
The straight line of connection end point 1 and end points 2 is the bus in the networking diagram of bus form.
Wherein, L=x4-x2, W=y4-y1, WidFin coefficient refer to compare the distance that the coordinate of end points increases or reduces on the X axle, and the HeiFin coefficient refers to compare the distance that the coordinate of end points increases or reduces on the Y axle.In the practical application of present embodiment, the concrete numerical value of WidFin coefficient and HeiFin coefficient can be set by equipment or technician as the case may be.
Step 309 generates the perpendicular line of said appointment network element object to said bus according to the related link information of said appointment network element object.
The networking diagram of bus form is the initial networking diagram that has been connected each network element object in the appointment network element object category in the initial networking with bus with perpendicular line.
Specifically in the present embodiment; Equipment can generate appointment network element object in the pending networking diagram according to the link information of the appointment network element object in the pending networking diagram to the perpendicular line of bus; For example: as shown in Figure 4; After having generated bus, equipment need be confirmed link to each other with the bus end points coordinate of perpendicular line of network element object.The end points coordinate of the perpendicular line of network element object A connecting bus is: (x1; Y1+ (W* HeiFin coefficient)); Behind the end points coordinate of confirming the perpendicular line that network element object A links to each other with bus; Method through existing automatic connecting connects network element object A and bus with perpendicular line again, in like manner, connects other network element object and buses.
The method of the conversion networking diagram form that present embodiment provides; The link information of all or part of network element object in can networking diagram according to existing a kind of form; Automatically generate the networking diagram of another kind of form, and whole process is realized the process that does not need artificial participation to change by equipment.Compared with prior art, the embodiment of the invention can be changed the form of networking diagram automatically, has saved because of the spent time of manual operation, and has avoided the drawing mistake that causes because of manual operation, has saved the wrong required time of check, thereby has increased work efficiency.
Embodiment 3
Present embodiment provides a kind of device of changing the networking diagram form, and is as shown in Figure 5, and this device 500 comprises:
Link information acquisition module 51 is used to obtain the link information of pending networking diagram.
Wherein, networking diagram is the networking diagram of form of straight lines or the networking diagram of bus form, and said link information comprises the annexation between the network element object in the said pending networking diagram.
Bus is changeed linear module 52; Be used for if the networking diagram that said pending networking diagram is a bus form; Then connect the network element object in the said pending networking diagram through straight line, with the networking diagram of generation with the corresponding form of straight lines of said pending networking diagram according to said link information.
Straight line changes bus module 53; Be used for if the networking diagram that said pending networking diagram is a form of straight lines; Then be connected the network element object in the said pending networking diagram, to generate the networking diagram with the corresponding bus form of said pending networking diagram according to the perpendicular line of said link information through bus and said bus.
The device of the conversion networking diagram form that present embodiment provides; Can be according to the link information of network element object in the networking diagram of existing a kind of form; Change the networking diagram that bus module generates another kind of form automatically through bus commentaries on classics linear module or straight line, and whole process is realized through corresponding apparatus in the equipment by the equipment utilization computer program.Compared with prior art; The embodiment of the invention can realize the automatic conversion of networking diagram between two kinds of forms, has saved because of the spent time and efforts of manual operation, and has avoided the drawing mistake that causes because of manual operation; Saved the wrong required time of check, thereby increased work efficiency.
Embodiment 4
Present embodiment provides a kind of device of changing the networking diagram form, and is as shown in Figure 6, and this device 600 comprises:
Specify network element object acquisition module 61, coordinate obtaining module 62, network element object information acquisition module 63, initial networking diagram generation module 64, link information acquisition module 65, bus to change linear module 66, straight line commentaries on classics bus module 67.Said straight line changes bus module 67 and comprises: bus generation unit 671, perpendicular line generation unit 672.
Specify network element object acquisition module 61, be used to obtain appointment network element object.
Wherein, specify a part in all network element objects that the network element object comprises that pending networking diagram comprises.
Coordinate obtaining module 62 is used to obtain the coordinate of the network element object of said pending networking diagram.
Wherein, the coordinate of network element object is that network element object in the pending networking diagram is with respect to the coordinate of preset coordinate axis.
Further, said coordinate obtaining module 62 also is used to obtain the coordinate of said appointment network element object.
Network element object information acquisition module 63 is used to obtain the network element object information.
Wherein, the network element object information comprises concrete title, model and/or the factory number of the network element object in the pending networking diagram.
Initial networking diagram generation module 64 is used for generating initial networking diagram according to the coordinate and the said network element object information of said network element object.
Wherein, initial networking diagram comprises the network element object in the pending networking diagram, and the network element object in the initial networking diagram is all on the pairing position of the coordinate of network element object.
Said initial networking diagram generation module 64 also is used for generating said initial networking diagram according to the coordinate and the related network element object information of said appointment network element object of said appointment network element object.
Link information acquisition module 65 is used to obtain the link information of pending networking diagram.
Wherein, networking diagram is the networking diagram of form of straight lines or the networking diagram of bus form, and link information comprises the annexation between the network element object in the pending networking diagram.
Bus is changeed linear module 66, is used for if the networking diagram that said pending networking diagram is a bus form then connects the network element object in the said pending networking diagram according to said link information through straight line.
Said bus is changeed linear module 66, also is used for connecting said appointment network element object according to the related link information of said appointment network element object through straight line.
If straight line changes bus module 67, is used for the networking diagram that said pending networking diagram is a form of straight lines, then is connected the network element object in the said pending networking diagram according to the perpendicular line of said link information through bus and said bus.
Said straight line changes bus module 67 and comprises:
Bus generation unit 671 is used for generating said bus according to the coordinate of said appointment network element object at said initial networking diagram.
Perpendicular line generation unit 672 is used for generating the perpendicular line of said appointment network element object to said bus according to the related link information of said appointment network element object.
The device of the conversion networking diagram form that present embodiment provides; The link information of all or part of network element object in can networking diagram according to existing a kind of form; Change the networking diagram that bus module generates another kind of form automatically through bus commentaries on classics linear module or straight line, and whole process is realized through corresponding apparatus in the equipment by the equipment utilization computer program.Compared with prior art; The embodiment of the invention can realize the automatic conversion of networking diagram between two kinds of forms, has saved because of the spent time and efforts of manual operation, and has avoided the drawing mistake that causes because of manual operation; Saved the wrong required time of check, thereby increased work efficiency.
Embodiment 5
The embodiment of the invention also provides a kind of computer node, and is as shown in Figure 7, and this computer node 700 can comprise:
Input-output device 71, the instruction that is used to receive user's input is to trigger the flow process that processor 72 begins to change the networking diagram form.
Further, said input-output device 71 also is used to accept the network element object appointed information that the user imports, so that said processor 72 filters out said appointment network element object according to said network element object appointed information from said pending networking diagram.
Further, said input-output device 71 also is used for after said processor 72 is accomplished the flow process of conversion networking diagram form the networking diagram after external unit output is changed through said processor 72.
Wherein, external unit can be the equipment that can link to each other with the computer node in the present embodiment arbitrarily that the technician knows, for example: portable hard drive, the webserver etc.
Processor 72 is used for obtaining pending networking diagram from internal memory 73, and from external memory storage (for example disk database) 74, obtains the link information of said pending networking diagram.
Further, said processor 72 also is used for after the link information of having obtained said pending networking diagram and said pending networking diagram, carrying out the flow process of conversion networking diagram form, and the flow process of said conversion networking diagram form comprises:
When said pending networking diagram is the networking diagram of bus form, connect the network element object in the said pending networking diagram through straight line according to said link information;
When said pending networking diagram is the networking diagram of straight bus form, be connected the network element object in the said pending networking diagram according to the perpendicular line of said link information through bus and said bus.
Further, said processor 72 specifically can be further used for:
Obtain said appointment network element object from said input-output device 71.Wherein, specify a part in all network element objects that the network element object comprises that said pending networking diagram comprises.
Obtain the coordinate of said appointment network element object.Wherein, the coordinate of network element object is that network element object in the pending networking diagram is with respect to the coordinate of preset coordinate axis.The coordinate of further, specifying the network element object is for specifying the coordinate of network element object with respect to preset coordinate axis.
From said external memory storage 74, obtain the network element object information.Wherein, the network element object information comprises concrete title, model, the factory number of the network element object in the pending networking diagram.
Coordinate and the related network element object information of said appointment network element object according to said appointment network element object generate said initial networking diagram.Wherein, initial networking diagram comprises specifies the network element object, and each the network element object in the appointment network element object is all on the pairing position of the coordinate of network element object.
The flow process of said processor 72 conversion networking diagram forms also comprises:
When said pending networking diagram is the networking diagram of bus form,, connect said appointment network element object through straight line according to the related link information of said appointment network element object.
When said pending networking diagram is the networking diagram of straight bus form; Coordinate according to said appointment network element object generates said bus in said initial networking diagram, and generates the perpendicular line of said appointment network element object to said bus according to the related link information of said appointment network element object.
Said internal memory 73 is used for the said pending networking diagram of buffer memory.
Said external memory storage 74 is used to store the link information of said pending networking diagram.
Further, said external memory storage 74 also is used to store said network element object information.
Display 75 is used for the networking diagram after changing through said processor 72 is presented at screen.
The equipment of the conversion networking diagram form that present embodiment provides; The link information of all or part of network element object in can networking diagram according to existing a kind of form; Change the whole or local networking diagram that bus module generates another kind of form automatically through bus commentaries on classics linear module or straight line, and whole process is realized through corresponding apparatus in the equipment by the equipment utilization computer program.Compared with prior art; The embodiment of the invention can realize the whole or local automatic conversion between two kinds of forms of networking diagram; Saved because of the spent time and efforts of manual operation; And avoided the drawing mistake that causes because of manual operation, saved the wrong required time of check, thereby increased work efficiency.
Each embodiment in this instructions all adopts the mode of going forward one by one to describe, and identical similar part is mutually referring to getting final product between each embodiment, and each embodiment stresses all is the difference with other embodiment.Especially, for device and apparatus embodiments, because it is basically similar in appearance to method embodiment, so describe fairly simplely, relevant part gets final product referring to the part explanation of method embodiment.
One of ordinary skill in the art will appreciate that all or part of flow process that realizes in the foregoing description method; Be to instruct relevant hardware to accomplish through computer program; Described program can be stored in the computer read/write memory medium; This program can comprise the flow process like the embodiment of above-mentioned each side method when carrying out.Wherein, described storage medium can be magnetic disc, CD, read-only storage memory body (Read-Only Memory, ROM) or at random store memory body (Random Access Memory, RAM) etc.
The above; Be merely embodiment of the present invention, but protection scope of the present invention is not limited thereto, any technician who is familiar with the present technique field is 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 claim.

Claims (17)

1. a method of changing the networking diagram form is characterized in that, comprising:
Obtain the link information of pending networking diagram, said networking diagram is the networking diagram of form of straight lines or the networking diagram of bus form, and said link information comprises the annexation between the network element object in the said pending networking diagram;
If the networking diagram that said pending networking diagram is a bus form then connects the network element object in the said pending networking diagram according to said link information through straight line, with the networking diagram of generation with the corresponding form of straight lines of said pending networking diagram;
If the networking diagram that said pending networking diagram is a form of straight lines; Then be connected the network element object in the said pending networking diagram, to generate the networking diagram with the corresponding bus form of said pending networking diagram according to the perpendicular line of said link information through bus and said bus.
2. the method for conversion networking diagram form according to claim 1; It is characterized in that; Connecting the network element object in the said pending networking diagram through straight line according to said link information; Or be connected before the network element object in the said pending networking diagram according to the perpendicular line of said link information through bus and said bus, said method also comprises:
Obtain the coordinate of the network element object of said pending networking diagram, the coordinate of said network element object is that network element object in the said pending networking diagram is with respect to the coordinate of preset coordinate axis;
Obtain the network element object information, said network element object information comprises concrete title, model, the factory number of the network element object in the said pending networking diagram;
Coordinate and said network element object information according to said network element object generate initial networking diagram; Said initial networking diagram comprises the network element object in the said pending networking diagram, and the network element object in the said initial networking diagram is all on the pairing position of the coordinate of said network element object.
3. the method for conversion networking diagram form according to claim 2 is characterized in that, before the coordinate of the network element object that obtains said pending networking diagram, said method also comprises:
Obtain a part of specifying in all network element objects that network element object, said appointment network element object comprise that said pending networking diagram comprises;
The said coordinate that obtains the network element object of said pending networking diagram is: the coordinate that obtains said appointment network element object;
Said coordinate and network element object information according to said network element object generates initial networking diagram and be: coordinate and the related network element object information of said appointment network element object according to said appointment network element object generate said initial networking diagram.
4. according to the method for claim 1 or 3 described conversion networking diagram forms; It is characterized in that; Saidly through the network element object that straight line connects in the said pending networking diagram be:, connect said appointment network element object through straight line according to the related link information of said appointment network element object according to said link information.
5. according to the method for claim 1 or 3 described conversion networking diagram forms, it is characterized in that the said network element object that is connected in the said pending networking diagram according to the perpendicular line of said link information through bus and said bus comprises:
Coordinate according to said appointment network element object generates said bus in said initial networking diagram;
Generate the perpendicular line of said appointment network element object according to the related link information of said appointment network element object to said bus.
6. a device of changing the networking diagram form is characterized in that, comprising:
The link information acquisition module is used to obtain the link information of pending networking diagram, and said networking diagram is the networking diagram of form of straight lines or the networking diagram of bus form, and said link information comprises the annexation between the network element object in the said pending networking diagram;
Bus is changeed linear module; Be used for if the networking diagram that said pending networking diagram is a bus form; Then connect the network element object in the said pending networking diagram through straight line, with the networking diagram of generation with the corresponding form of straight lines of said pending networking diagram according to said link information;
Straight line changes bus module; Be used for if the networking diagram that said pending networking diagram is a form of straight lines; Then be connected the network element object in the said pending networking diagram, to generate the networking diagram with the corresponding bus form of said pending networking diagram according to the perpendicular line of said link information through bus and said bus.
7. the device of conversion networking diagram form according to claim 6; It is characterized in that; Connecting the network element object in the said pending networking diagram through straight line according to said link information; Or be connected before the network element object in the said pending networking diagram according to the perpendicular line of said link information through bus and said bus, said device also comprises:
Coordinate obtaining module is used to obtain the coordinate of the network element object of said pending networking diagram, and the coordinate of said network element object is that network element object in the said pending networking diagram is with respect to the coordinate of preset coordinate axis;
Network element object information acquisition module is used to obtain the network element object information, and said network element object information comprises concrete title, model and/or the factory number of the network element object in the said pending networking diagram;
Initial networking diagram generation module; Be used for generating initial networking diagram according to the coordinate and the said network element object information of said network element object; Said initial networking diagram comprises the network element object in the said pending networking diagram, and the network element object in the said initial networking diagram is all on the pairing position of the coordinate of said network element object.
8. the device of conversion networking diagram form according to claim 7 is characterized in that, before the coordinate of the network element object that obtains said pending networking diagram, said device also comprises:
Specify network element object acquisition module, be used to obtain a part of specifying in all network element objects that network element object, said appointment network element object comprise that said pending networking diagram comprises;
The said coordinate that obtains the network element object of said pending networking diagram is: the coordinate that obtains said appointment network element object;
Said coordinate and network element object information according to said network element object generates initial networking diagram and be: coordinate and the related network element object information of said appointment network element object according to said appointment network element object generate said initial networking diagram.
9. according to the device of claim 6 or 8 described conversion networking diagram forms, it is characterized in that said bus is changeed linear module, also is used for connecting said appointment network element object according to the related link information of said appointment network element object through straight line.
10. according to the device of claim 6 or 8 described conversion networking diagram forms, it is characterized in that said straight line changes bus module and comprises:
The bus generation unit is used for generating said bus according to the coordinate of said appointment network element object at said initial networking diagram;
The perpendicular line generation unit is used for generating the perpendicular line of said appointment network element object to said bus according to the related link information of said appointment network element object.
11. a computer node is characterized in that, comprising:
Internal memory is used for the pending networking diagram of buffer memory;
External memory storage is used to store the link information of said pending networking diagram, and said link information comprises the annexation between the network element object in the said pending networking diagram;
Processor; Be used for after obtaining pending networking diagram and said external memory storage from said internal memory and obtaining the link information of said pending networking diagram; Carry out the flow process of conversion networking diagram form; The flow process of said conversion networking diagram form comprises: when said pending networking diagram is the networking diagram of bus form, connect the network element object in the said pending networking diagram according to said link information through straight line; When said pending networking diagram is the networking diagram of straight bus form, be connected the network element object in the said pending networking diagram according to the perpendicular line of said link information through bus and said bus.
12. computer node according to claim 11 is characterized in that, said external memory storage also is used to store said network element object information, and said network element object information comprises concrete title, model, the factory number of the network element object in the pending networking diagram.
13. computer node according to claim 12 is characterized in that, said processor also is used for said external memory storage and obtains the network element object information.
14. computer node according to claim 11; It is characterized in that; Said computer node also comprises input-output device, and said input-output device is used to accept the network element object appointed information of user's input; So that said processor filters out a part of specifying in all network element objects that network element object, said appointment network element object comprise that said pending networking diagram comprises from said pending networking diagram according to said network element object appointed information.
15. computer node according to claim 14 is characterized in that, said processor also is used to obtain the coordinate of said appointment network element object, and the coordinate of said appointment network element object is for specifying the coordinate of network element object with respect to preset coordinate axis.
16. according to claim 13 or 15 described computer nodes; It is characterized in that; Said processor; Also be used for generating initial networking diagram according to the coordinate and the related network element object information of said appointment network element object of said appointment network element object, said initial networking diagram comprises specifies the network element object, and each the network element object in the appointment network element object is all on the pairing position of the coordinate of network element object;
The flow process of said processor conversion networking diagram form also comprises:
When said pending networking diagram is the networking diagram of bus form,, connect said appointment network element object through straight line according to the related link information of said appointment network element object;
When said pending networking diagram is the networking diagram of straight bus form; Coordinate according to said appointment network element object generates said bus in said initial networking diagram, and generates the perpendicular line of said appointment network element object to said bus according to the related link information of said appointment network element object.
17. computer node according to claim 11 is characterized in that, said computer node also comprises display, and said display is used for the networking diagram after changing through said processor is presented at screen.
CN201210153973.XA 2012-05-17 2012-05-17 Method and device for converting form of networking diagram as well as computer node Active CN102708252B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210153973.XA CN102708252B (en) 2012-05-17 2012-05-17 Method and device for converting form of networking diagram as well as computer node

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210153973.XA CN102708252B (en) 2012-05-17 2012-05-17 Method and device for converting form of networking diagram as well as computer node

Publications (2)

Publication Number Publication Date
CN102708252A true CN102708252A (en) 2012-10-03
CN102708252B CN102708252B (en) 2014-07-30

Family

ID=46901015

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210153973.XA Active CN102708252B (en) 2012-05-17 2012-05-17 Method and device for converting form of networking diagram as well as computer node

Country Status (1)

Country Link
CN (1) CN102708252B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002368743A (en) * 2001-06-05 2002-12-20 Iiga Co Ltd Network design support system
KR20060077328A (en) * 2004-12-30 2006-07-05 주식회사 엔타시스 A method to connect bundle nets on schematic diagrams
CN101834745A (en) * 2010-05-17 2010-09-15 中兴通讯股份有限公司 Method, server and system for automatically generating ONU (Optical Network Unit) network element topology

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002368743A (en) * 2001-06-05 2002-12-20 Iiga Co Ltd Network design support system
KR20060077328A (en) * 2004-12-30 2006-07-05 주식회사 엔타시스 A method to connect bundle nets on schematic diagrams
CN101834745A (en) * 2010-05-17 2010-09-15 中兴通讯股份有限公司 Method, server and system for automatically generating ONU (Optical Network Unit) network element topology

Also Published As

Publication number Publication date
CN102708252B (en) 2014-07-30

Similar Documents

Publication Publication Date Title
CN113033811B (en) Processing method and device for two-quantum bit logic gate
CN105389402A (en) Big-data-oriented ETL (Extraction-Transformation-Loading) method and device
Stork Visual computing challenges of advanced manufacturing and industrie 4.0 [Guest editors' introduction]
CA2386272A1 (en) Collaborative design
CN104391868B (en) The device and method of dynamic page static
CN105589748A (en) Service request processing method and apparatus
CN104484163B (en) A kind of isomery model conversion method based on unified Modeling environment
CN114202027A (en) Execution configuration information generation method, model training method and device
CN105512380A (en) Hydraulic system CAD collaborative design system and construction method thereof
CN107590592A (en) Job dependence relation method for expressing, operation displaying and dispatch control method and device
Kamal et al. Impact of LoRA and 5G on Smart Manufacturing from Automation Perspective.
CN104392104A (en) Determination method for length and number of low-frequency cable conductors of spacecraft
CN111600735B (en) Sample data processing method, system and device
Caiza et al. Digital twin for monitoring an industrial process using augmented reality
CN110324220A (en) Support device, computer readable storage medium, setting method
CN105224327A (en) A kind of embedded equipment variable exchanges transport address off-line distribution method
CN102708252A (en) Method and device for converting form of networking diagram as well as computer node
CN110544284A (en) method for automatically planning optimal layout flow chart
CN105074703A (en) Method for processing a set of data to be used subsequently with a view to graphically generating an electrical diagram of an electrical system
CN108748259B (en) Robot model generation method and device
US20110258567A1 (en) Register configurator and register configuration method
CN106599244B (en) General original log cleaning device and method
CN103106270A (en) Method and system of cloud data fusion
CN104239049A (en) Method and system for processing photos in text edit box
CN103399985A (en) Distribution network wiring diagram generating algorithm based on geographical topology

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant