CN102708252B - 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 PDFInfo
- Publication number
- CN102708252B CN102708252B CN201210153973.XA CN201210153973A CN102708252B CN 102708252 B CN102708252 B CN 102708252B CN 201210153973 A CN201210153973 A CN 201210153973A CN 102708252 B CN102708252 B CN 102708252B
- Authority
- CN
- China
- Prior art keywords
- network element
- networking diagram
- element object
- bus
- pending
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
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
Technical field
The present invention relates to graphic designs field, relate in particular to a kind of method, device and computer node of changing networking diagram form.
Background technology
In design, production and the marketing process of many system class products (as communication system, internet system etc.), need to draw networking diagram according to the structure composed of product, so that designer, producer and client more clearly understand the network architecture situation of product by the networking diagram of product.Networking diagram is mainly divided into straight line connection and is connected two kinds of forms with bus, each components and parts in the corresponding expression system of each Network element object in networking diagram.The networking diagram that straight line connects is convenient for people to check accurately the annexation between each Network element object in 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 Network element object.
Under actual conditions, often need to draw the networking diagram of these two kinds of forms simultaneously.Technician needs by existing drawing instrument after a kind of networking diagram of form having drawn wherein, as Autocad, Matlab etc., removes the networking diagram of the another kind of form of manual drawing according to the networking diagram of existing this kind of form.In the time that system need to be modified or remake, due to the reflection of two kinds of networking diagrams be same system, another networking diagram also needs to carry out even recasting of corresponding amendment.The transfer process of two kinds of networking diagrams is manually carried out by drawing instrument by technician completely.
Inventor finds that in prior art, at least there are the following problems:
Wasted time and energy by technician's manual switch networking diagram form, need to expend the plenty of 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 networking diagram form, can automatically change the form of networking diagram, 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 networking diagram form, comprising:
Obtain the link information of pending networking diagram, the networking diagram that described networking diagram is form of straight lines or the networking diagram of bus form, described link information comprises the annexation between the Network element object in described pending networking diagram;
If the networking diagram that described pending networking diagram is bus form, connects the Network element object in described pending networking diagram according to described link information by straight line, to generate and the networking diagram of the corresponding form of straight lines of described pending networking diagram;
If the networking diagram that described pending networking diagram is form of straight lines, be connected the Network element object in described pending networking diagram according to described link information by the perpendicular line of bus and described bus, to generate and the networking diagram of the corresponding bus form of described pending networking diagram.
On the other hand, embodiments of the invention provide a kind of device of changing networking diagram form, comprising:
Link information acquisition module, for obtaining the link information of pending networking diagram, the networking diagram that described networking diagram is form of straight lines or the networking diagram of bus form, described link information comprises the annexation between the Network element object in described pending networking diagram;
Bus turns linear module, if the networking diagram that is bus form for described pending networking diagram, connect the Network element object in described pending networking diagram according to described link information by straight line, to generate and the networking diagram of the corresponding form of straight lines of described pending networking diagram;
Straight line turns bus module, if the networking diagram that is form of straight lines for described pending networking diagram, be connected the Network element object in described pending networking diagram according to described link information by the perpendicular line of bus and described bus, to generate and the networking diagram of the corresponding bus form of described pending networking diagram.
On the one hand, embodiments of the invention provide a kind of computer node, comprising again:
Internal memory, for the pending networking diagram of buffer memory;
External memory storage, for storing the link information of described pending networking diagram, described link information comprises the annexation between the Network element object in described pending networking diagram;
Processor, for obtaining the link information of described pending networking diagram obtaining pending networking diagram and described external memory storage from described internal memory, carry out the flow process of conversion networking diagram form, the described flow process of changing networking diagram form comprises: in the time of networking diagram that described pending networking diagram is bus form, connect the Network element object in described pending networking diagram according to described link information by straight line; In the time of networking diagram that described pending networking diagram is straight bus form, be connected the Network element object in described pending networking diagram according to described link information by the perpendicular line of bus and described bus.
Method, device and the computer node of the conversion networking diagram form that the embodiment of the present 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, do not need the artificial process that participates in conversion.Compared with prior art, the embodiment of the present invention can be changed the form of networking diagram automatically, has saved the time spent because of manual operation, and has avoided the drawing mistake causing because of manual operation, has saved the wrong required time of check, thereby has increased work efficiency.
Brief description of the drawings
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, to the accompanying drawing of required use in embodiment be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
The process flow diagram of the method for the conversion networking diagram form that Fig. 1 provides for the embodiment of the present invention 1;
Fig. 2 a is the schematic diagram of the instantiation of the method for conversion networking diagram form provided by the invention;
Fig. 2 b is the schematic diagram of the instantiation of the method for conversion networking diagram form provided by the invention;
Fig. 2 c is the schematic diagram of the 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 present invention 2;
The schematic diagram of the instantiation of the method for the conversion networking diagram form that Fig. 4 provides for the embodiment of the present invention 2;
The structural drawing of the device of the conversion networking diagram form that Fig. 5 provides for the embodiment of the present invention 3;
The structural drawing of the device of the conversion networking diagram form that Fig. 6 provides for the embodiment of the present invention 4;
The structural representation of the computer node that Fig. 7 provides for the embodiment of the present invention 5.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art, not making all other embodiment that obtain under creative work prerequisite, belong to the scope of protection of the invention.
For making the advantage of technical solution of the present invention clearer, below in conjunction with drawings and Examples, the present invention is elaborated.
Embodiment 1
The present embodiment provides a kind of method of changing networking diagram form, and as shown in Figure 1, the method comprises:
In the present embodiment, networking diagram has comprised the networking diagram (as shown in Figure 2 a) of form of straight lines, or these two kinds of forms of the networking diagram of bus form (as shown in Figure 2 b), 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 composition in the networking diagram of two kinds of forms, Network element object position, annexations etc. are identical.Wherein, Network element object refers to the graphical symbol in networking diagram, corresponding each components and parts that represent in concrete system of each graphical symbol, thus the graphical symbol in networking diagram is connected to the networking diagram that can obtain form of straight lines/bus form by line segment.
The specific implementation process of the method for the present embodiment can be realized by equipment, and wherein, equipment can be computing machine, server, mobile terminal etc.
Step 101, obtains the link information of pending networking diagram.
Wherein, the networking diagram that networking diagram is form of straight lines or the networking diagram of bus form, link information comprises the annexation between the Network element object in pending networking diagram.Concrete, link information can have many forms 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 represents, router DTA is connected with router DTB, and router DTA is connected with tester Tester, and router DTB is connected 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 from pending networking diagram by prior art means, also can from the database/reservoir being connected with equipment, obtain link information.
In the time of networking diagram that pending networking diagram is bus form, while needing networking diagram to be converted to form of straight lines by bus form, execution step 102; In the time of networking diagram that pending networking diagram is form of straight lines, while needing networking diagram to be converted to bus form by form of straight lines, execution step 103.
Step 102, connects the Network element object in described pending networking diagram according to described link information by straight line.
Networking diagram according to described link information generation with the corresponding form of straight lines of described pending networking diagram.Concrete, in the present embodiment, equipment can generate the networking diagram of form of straight lines on the basis of pending networking diagram according to link information, be that equipment can first generate the networking diagram that does not comprise any line segment, and the type of the Network element object in this networking diagram, quantity and each Network element object position in the drawings identical with the Network element object in pending networking diagram, for example: equipment can be removed all line segments of pending networking diagram by prior art means, only retain each Network element object in figure, such as: in Autocad 2007 engineering drawing software, the figure layer that computing machine can carry plug-in unit and optionally cuts out the connecting line segment place between all Network element objects in networking diagram by graphics software, retain the unlatching of concrete Network element object place figure layer simultaneously, thereby can obtain one and not comprise line segment, 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 partial graph layer through selectivity afterwards, thereby again obtain the networking diagram of form of straight lines, wherein, concrete employing straight line connects the mode of each Network element object can be followed the trail of for existing end points in Autocad 2007, according to tracking point automatic connecting etc.
Step 103, is connected the Network element object in described pending networking diagram according to described link information by the perpendicular line of bus and described bus.
Concrete, in the present embodiment, equipment can first generate the networking diagram that does not comprise any line segment.Generate on this basis bus and each Network element object perpendicular line to bus, wherein, the position of bus can adopt default algorithm to determine according to the particular location of each Network element object in networking diagram by equipment again.
The method of the conversion networking diagram form that the 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 the networking diagram of the another kind of form of generation, and whole process is realized by equipment, does not need the artificial process that participates in conversion.Compared with prior art, the embodiment of the present invention can be changed the form of networking diagram automatically, has saved the time spent because of manual operation, and has avoided the drawing mistake causing because of manual operation, has saved the wrong required time of check, thereby has increased work efficiency.
Embodiment 2
The present embodiment provides a kind of method of changing networking diagram form, and as shown in Figure 3, the method comprises:
Step 301, obtains appointment Network element object.
Wherein, specify the part in all Network element objects that Network element object comprises that described 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 be converted to the region at the part Network element object place in pending networking diagram another kind of form, for example: in the tendering process of system class product, tenderer provides the networking diagram of bus form to client, and client wishes to check in detail the router in system and the connection of the upstream plant (specifying 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 according to client's demand in networking diagram, 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 determines that the embodiment of appointment Network element object can have multiple, can realize by the known arbitrary technological means of technician, such as: computing machine is divided networking diagram for multiple regions in advance, each region has comprised a part of Network element object, when being triggered need to change the networking diagram in one of them region time by user, computing machine can using by the Network element object in the region that user triggered as specifying Network element object processing; For another example: computing machine can receive user's selection information, described selection information is used for identifying appointment Network element object, as in Autocad2007, user can drag mouse pointer and form choice box, computing machine can be using this choice box as selection information, and every Network element object that selected frame is chosen in networking diagram is appointment Network element object.
Step 302, obtains the coordinate of described appointment Network element object.
Wherein, the coordinate of Network element object is Network element object in the pending networking diagram coordinate with respect to default coordinate axis.Further, specifying the coordinate of Network element object is to specify the coordinate of Network element object with respect to default coordinate axis.
Concrete, in the present embodiment, the concrete mode that equipment obtains the coordinate of specifying Network element object can be existing any-mode, for example: in Autocad2007, each figure layer has default coordinate axis, in figure layer, all point, line, surface have all identified the coordinate with respect to default coordinate axis, because Network element object refers to the graphical symbol (the concrete figure being made up of point, line, surface) in networking diagram, equipment can by read in buffer memory or reservoir in the coordinate of each graphical symbol, thereby obtain the coordinate of specifying Network element object.
Step 303, obtains Network element object information.
Wherein, Network element object information comprises concrete title, model, the factory number of the Network element object in pending networking diagram.
Concrete, in the present embodiment, what equipment finally will be converted to is a kind of for describing the networking diagram of product, each components and parts in Network element object correspondence system wherein, the components and parts that different products comprises are generally not identical, therefore also need to obtain Network element object information to determine concrete title, model, the factory number of the corresponding 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, known according to Network element object information, Network element object A is 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 Network element object information can have multiple, can from storage facilities, obtain the Network element object information prestoring, or receives the Network element object information etc. of user's input, does not limit at this.
Further, step 302 and step 303 can be carried out simultaneously, also can before step 304, carry out according to certain sequencing, do not limit at this.
Step 304, according to initial networking diagram described in the coordinate of described appointment Network element object and the related Network element object Information generation of described appointment Network element object.
Wherein, initial networking diagram comprises appointment Network element object, and specifies each Network element object in Network element object on the corresponding position of coordinate of Network element object.
For example: as shown in Figure 2 c, specifying Network element object is Network element object A, Network element object B, Network element object C, Network element object D, Network element object E, equipment obtaining after 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 Network element object in the initial networking diagram shown in Fig. 2 c is identical with the coordinate of the Network element object in the pending networking diagram shown in Fig. 2 a, and equipment generates the line that does not connect each Network element object in initial networking diagram.Optionally, the method that initial networking diagram also can generate the networking diagram that does not comprise any line segment by the equipment described in embodiment 1 obtains.
Step 305, obtains the link information of described pending networking diagram.
Wherein, the link information of pending networking diagram has comprised and in the present embodiment, has specified the related link information of Network element object.
Step 306, judges the pattern of described pending networking diagram according to the figure of described pending networking diagram.
Wherein, if the networking diagram that described pending networking diagram is bus form performs step 307, described pending networking diagram is converted to the networking diagram of form of straight lines; If described pending networking diagram is the networking diagram of form of straight lines, perform step 308 to step 309, described pending networking diagram is converted to the networking diagram of bus form.
Concrete, in the present embodiment, equipment can be identified by prior art means the form of pending networking diagram, for example: equipment can be by the form of existing algorithm for pattern recognition identification networking diagram, such as: equipment can be treated processing networking diagram and carry out graph scanning, generate a bianry image matrix, by Contour searching technology, the bianry image matrix generating is processed 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 all line segments of connection network meta object not of two end points that whether have line segment in the corresponding pending networking diagram of bianry image matrix, judge and in pending networking diagram, whether have bus.If there is bus, it is the networking diagram of bus form; If there is not bus, it is the networking diagram of form of straight lines.
Step 307, according to the related link information of described appointment Network element object, connects described appointment Network element object by 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 initial networking with straight line.
Step 308 generates described bus according to the coordinate of described appointment Network element object in described initial networking diagram.
It is concrete that equipment can be determined the position of bus according to the coordinate of the Network element object of specifying Network element object by corresponding algorithm, and generates bus in the present embodiment, for example:
As shown in Figure 4, equipment can be determined according to the coordinate of the Network element object of appointment Network element object the position of bus model, concrete, such as: the coordinate (x1 of Network element object A, y1), the coordinate (x2 of Network element object B, y2), the coordinate (x4, y4) of Network element object C.According to the coordinate of Network element object, obtain the position of bus by corresponding algorithm again, 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))
Connection end point 1 and the straight line of end points 2 are the bus in the networking diagram of bus form.
Wherein, L=x4-x2, W=y4-y1, WidFin coefficient refers to compare the distance that the coordinate of end points increases or reduces in X-axis, and HeiFin coefficient refers to compare the distance that the coordinate of end points increases or reduces in Y-axis.In the practical application of the present embodiment, the concrete numerical value of WidFin coefficient and HeiFin coefficient can be set as the case may be by equipment or technician.
Step 309, generates the perpendicular line of described appointment Network element object to described bus according to the related link information of described appointment Network element object.
The networking diagram of bus form is the initial networking diagram of each Network element object in the appointment Network element object category being connected with perpendicular line by bus in initial networking.
Specifically in the present embodiment, equipment can generate appointment Network element object in the pending networking diagram perpendicular line to bus according to the link information of the appointment Network element object in pending networking diagram, for example: as shown in Figure 4, generating after bus, equipment need to be determined be connected with the bus end points coordinate of perpendicular line of Network element object.The end points coordinate that Network element object A connects the perpendicular line of bus is: (x1, y1+ (W* HeiFin coefficient)), determining after the end points coordinate of the perpendicular line that Network element object A is connected with bus, again by perpendicular line connection network meta object A and the bus for method of existing automatic connecting, in like manner, connect other Network element objects and bus.
The method of the conversion networking diagram form that the present embodiment provides, can be according to the link information of all or part of Network element object in the networking diagram of existing a kind of form, automatically the networking diagram of the another kind of form of generation, and whole process is realized by equipment, does not need the artificial process that participates in conversion.Compared with prior art, the embodiment of the present invention can be changed the form of networking diagram automatically, has saved the time spent because of manual operation, and has avoided the drawing mistake causing because of manual operation, has saved the wrong required time of check, thereby has increased work efficiency.
Embodiment 3
The present embodiment provides a kind of device of changing networking diagram form, and as shown in Figure 5, this device 500 comprises:
Link information acquisition module 51, for obtaining the link information of pending networking diagram.
Wherein, the networking diagram that networking diagram is form of straight lines or the networking diagram of bus form, described link information comprises the annexation between the Network element object in described pending networking diagram.
Bus turns linear module 52, if the networking diagram that is bus form for described pending networking diagram, connect the Network element object in described pending networking diagram according to described link information by straight line, to generate and the networking diagram of the corresponding form of straight lines of described pending networking diagram.
Straight line turns bus module 53, if the networking diagram that is form of straight lines for described pending networking diagram, be connected the Network element object in described pending networking diagram according to described link information by the perpendicular line of bus and described bus, to generate and the networking diagram of the corresponding bus form of described pending networking diagram.
The device of the conversion networking diagram form that the present embodiment provides, can be according to the link information of Network element object in the networking diagram of existing a kind of form, turn linear module or straight line and turn bus module and automatically generate the networking diagram of another kind of form by bus, and whole process is realized by corresponding equipment in equipment by equipment utilization computer program.Compared with prior art, the embodiment of the present invention can realize the automatic conversion of networking diagram between two kinds of forms, has saved the time and efforts spent because of manual operation, and has avoided the drawing mistake causing because of manual operation, save the wrong required time of check, thereby increased work efficiency.
Embodiment 4
The present embodiment provides a kind of device of changing networking diagram form, and as shown in Figure 6, this device 600 comprises:
Appointment Network element object acquisition module 61, coordinate obtaining module 62, Network element object acquisition of information module 63, initial networking diagram generation module 64, link information acquisition module 65, bus turn linear module 66, straight line turns bus module 67.Described straight line turns bus module 67 and comprises: bus generation unit 671, perpendicular line generation unit 672.
Specify Network element object acquisition module 61, for obtaining appointment Network element object.
Wherein, specify the part in all Network element objects that Network element object comprises that pending networking diagram comprises.
Coordinate obtaining module 62, for obtaining the coordinate of Network element object of described pending networking diagram.
Wherein, the coordinate of Network element object is Network element object in the pending networking diagram coordinate with respect to default coordinate axis.
Further, described coordinate obtaining module 62, also for obtaining the coordinate of described appointment Network element object.
Network element object acquisition of information module 63, for obtaining Network element object information.
Wherein, Network element object information comprises concrete title, model and/or the factory number of the Network element object in pending networking diagram.
Initial networking diagram generation module 64, for according to the coordinate of described Network element object and the initial networking diagram of described Network element object Information generation.
Wherein, initial networking diagram comprises the Network element object in pending networking diagram, and Network element object in initial networking diagram is all on the corresponding position of coordinate of Network element object.
Described initial networking diagram generation module 64, also for according to initial networking diagram described in the coordinate of described appointment Network element object and the related Network element object Information generation of described appointment Network element object.
Link information acquisition module 65, for obtaining the link information of pending networking diagram.
Wherein, the networking diagram that networking diagram is form of straight lines or the networking diagram of bus form, link information comprises the annexation between the Network element object in pending networking diagram.
Bus turns linear module 66, if the networking diagram that is bus form for described pending networking diagram connects the Network element object in described pending networking diagram according to described link information by straight line.
Described bus turns linear module 66, also, for according to the related link information of described appointment Network element object, connects described appointment Network element object by straight line.
Straight line turns bus module 67, if the networking diagram that is form of straight lines for described pending networking diagram is connected the Network element object in described pending networking diagram according to described link information by the perpendicular line of bus and described bus.
Described straight line turns bus module 67 and comprises:
Bus generation unit 671, for generating described bus according to the coordinate of described appointment Network element object at described initial networking diagram.
Perpendicular line generation unit 672, for generating the perpendicular line of described appointment Network element object to described bus according to the related link information of described appointment Network element object.
The device of the conversion networking diagram form that the present embodiment provides, can be according to the link information of all or part of Network element object in the networking diagram of existing a kind of form, turn linear module or straight line and turn bus module and automatically generate the networking diagram of another kind of form by bus, and whole process is realized by corresponding equipment in equipment by equipment utilization computer program.Compared with prior art, the embodiment of the present invention can realize the automatic conversion of networking diagram between two kinds of forms, has saved the time and efforts spent because of manual operation, and has avoided the drawing mistake causing because of manual operation, save the wrong required time of check, thereby increased work efficiency.
Embodiment 5
The embodiment of the present invention also provides a kind of computer node, and as shown in Figure 7, this computer node 700 can comprise:
Input-output device 71, starts to change the flow process of networking diagram form to trigger processor 72 for receiving the instruction of user input.
Further, described input-output device 71, also for accepting the Network element object appointed information of user's input, so that described processor 72 filters out described appointment Network element object from described pending networking diagram according to described Network element object appointed information.
Further, described input-output device 71, also, for completing at described processor 72 after the flow process of conversion networking diagram form, exports the networking diagram after described processor 72 is changed to external unit.
Wherein, external unit can be the known equipment that can be connected with the computer node in the present embodiment arbitrarily of technician, for example: portable hard drive, the webserver etc.
Processor 72 for obtaining pending networking diagram from internal memory 73, and for example, obtains the link information of described pending networking diagram from external memory storage (disk database) 74.
Further, described processor 72, also, for carrying out the flow process of conversion networking diagram form after the link information having obtained described pending networking diagram and described pending networking diagram, the flow process of described conversion networking diagram form comprises:
In the time of networking diagram that described pending networking diagram is bus form, connect the Network element object in described pending networking diagram according to described link information by straight line;
In the time of networking diagram that described pending networking diagram is straight bus form, be connected the Network element object in described pending networking diagram according to described link information by the perpendicular line of bus and described bus.
Further, described processor 72, specifically can be further used for:
Obtain described appointment Network element object from described input-output device 71.Wherein, specify the part in all Network element objects that Network element object comprises that described pending networking diagram comprises.
Obtain the coordinate of described appointment Network element object.Wherein, the coordinate of Network element object is Network element object in the pending networking diagram coordinate with respect to default coordinate axis.Further, specifying the coordinate of Network element object is to specify the coordinate of Network element object with respect to default coordinate axis.
From described external memory storage 74, obtain Network element object information.Wherein, Network element object information comprises concrete title, model, the factory number of the Network element object in pending networking diagram.
According to initial networking diagram described in the coordinate of described appointment Network element object and the related Network element object Information generation of described appointment Network element object.Wherein, initial networking diagram comprises appointment Network element object, and specifies each Network element object in Network element object on the corresponding position of coordinate of Network element object.
The flow process that described processor 72 is changed networking diagram form also comprises:
In the time of networking diagram that described pending networking diagram is bus form, according to the related link information of described appointment Network element object, connect described appointment Network element object by straight line.
In the time of networking diagram that described pending networking diagram is straight bus form, in described initial networking diagram, generate described bus according to the coordinate of described appointment Network element object, and generate the perpendicular line of described appointment Network element object to described bus according to the related link information of described appointment Network element object.
Described internal memory 73, for pending networking diagram described in buffer memory.
Described external memory storage 74, for storing the link information of described pending networking diagram.
Further, described external memory storage 74, also for storing described Network element object information.
Display 75, for being presented at screen by the networking diagram after described processor 72 is changed.
The equipment of the conversion networking diagram form that the present embodiment provides, can be according to the link information of all or part of Network element object in the networking diagram of existing a kind of form, turn linear module or straight line and turn bus module and automatically generate the whole or local networking diagram of another kind of form by bus, and whole process is realized by corresponding equipment in equipment by equipment utilization computer program.Compared with prior art, the embodiment of the present invention can realize the whole or local automatic conversion between two kinds of forms of networking diagram, save the time and efforts spent because of manual operation, and avoid the drawing mistake causing because of manual operation, save 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, between each embodiment identical similar part mutually referring to, what each embodiment stressed is and the difference of other embodiment.Especially,, for device and apparatus embodiments, because it is substantially similar in appearance to embodiment of the method, so describe fairly simplely, relevant part is referring to the part explanation of embodiment of the method.
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method, can carry out the hardware that instruction is relevant by computer program to complete, described program can be stored in a computer read/write memory medium, this program, in the time carrying out, can comprise as the flow process of the embodiment of above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited to this, any be familiar with those skilled in the art the present invention disclose technical scope in; the variation that can expect easily or replacement, within all should being encompassed in 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 (6)
1. a method of changing networking diagram form, is characterized in that, comprising:
Obtain the link information of pending networking diagram, the networking diagram that described networking diagram is form of straight lines or the networking diagram of bus form, described link information comprises the annexation between the Network element object in described pending networking diagram;
If the networking diagram that described pending networking diagram is bus form, connects the Network element object in described pending networking diagram according to described link information by straight line, to generate and the networking diagram of the corresponding form of straight lines of described pending networking diagram;
If the networking diagram that described pending networking diagram is form of straight lines, be connected the Network element object in described pending networking diagram according to described link information by the perpendicular line of bus and described bus, to generate and the networking diagram of the corresponding bus form of described pending networking diagram;
Wherein, connecting the Network element object in described pending networking diagram by straight line according to described link information, or before being connected the Network element object in described pending networking diagram according to described link information by the perpendicular line of bus and described bus, described method also comprises: obtain the coordinate of the Network element object of described pending networking diagram, the coordinate of described Network element object is Network element object in the described pending networking diagram coordinate with respect to default coordinate axis; Obtain Network element object information, described Network element object information comprises concrete title, model, the factory number of the Network element object in described pending networking diagram; According to the coordinate of described Network element object and the initial networking diagram of described Network element object Information generation, described initial networking diagram comprises the Network element object in described pending networking diagram, and Network element object in described initial networking diagram is all on the corresponding position of coordinate of described Network element object;
Wherein, before the coordinate of the described Network element object that obtains described pending networking diagram, described method also comprises: obtain appointment Network element object, described appointment Network element object comprises the part in all Network element objects that described pending networking diagram comprises; The coordinate of the described Network element object that obtains described pending networking diagram is: the coordinate that obtains described appointment Network element object; Describedly according to the coordinate of described Network element object and the initial networking diagram of Network element object Information generation be: according to initial networking diagram described in the coordinate of described appointment Network element object and the related Network element object Information generation of described appointment Network element object.
2. the method for conversion networking diagram form according to claim 1, it is characterized in that, the described Network element object connecting in described pending networking diagram by straight line according to described link information is: according to the related link information of described appointment Network element object, connect described appointment Network element object by straight line.
3. the method for conversion networking diagram form according to claim 1, is characterized in that, the described Network element object being connected in described pending networking diagram by the perpendicular line of bus and described bus according to described link information comprises:
In described initial networking diagram, generate described bus according to the coordinate of described appointment Network element object;
Generate the perpendicular line of described appointment Network element object to described bus according to the related link information of described appointment Network element object.
4. a device of changing networking diagram form, is characterized in that, comprising:
Link information acquisition module, for obtaining the link information of pending networking diagram, the networking diagram that described networking diagram is form of straight lines or the networking diagram of bus form, described link information comprises the annexation between the Network element object in described pending networking diagram;
Bus turns linear module, if the networking diagram that is bus form for described pending networking diagram, connect the Network element object in described pending networking diagram according to described link information by straight line, to generate and the networking diagram of the corresponding form of straight lines of described pending networking diagram;
Straight line turns bus module, if the networking diagram that is form of straight lines for described pending networking diagram, be connected the Network element object in described pending networking diagram according to described link information by the perpendicular line of bus and described bus, to generate and the networking diagram of the corresponding bus form of described pending networking diagram;
Wherein, connecting the Network element object in described pending networking diagram by straight line according to described link information, or before being connected the Network element object in described pending networking diagram according to described link information by the perpendicular line of bus and described bus, described device also comprises:
Coordinate obtaining module, for obtaining the coordinate of Network element object of described pending networking diagram, the coordinate of described Network element object is Network element object in the described pending networking diagram coordinate with respect to default coordinate axis;
Network element object acquisition of information module, for obtaining Network element object information, described Network element object information comprises concrete title, model and/or the factory number of the Network element object in described pending networking diagram;
Initial networking diagram generation module, be used for according to the coordinate of described Network element object and the initial networking diagram of described Network element object Information generation, described initial networking diagram comprises the Network element object in described pending networking diagram, and Network element object in described initial networking diagram is all on the corresponding position of coordinate of described Network element object;
Wherein, before the coordinate of Network element object that obtains described pending networking diagram, described device also comprises:
Specify Network element object acquisition module, for obtaining appointment Network element object, described appointment Network element object comprises the part in all Network element objects that described pending networking diagram comprises;
The coordinate of the described Network element object that obtains described pending networking diagram is: the coordinate that obtains described appointment Network element object;
Describedly according to the coordinate of described Network element object and the initial networking diagram of Network element object Information generation be: according to initial networking diagram described in the coordinate of described appointment Network element object and the related Network element object Information generation of described appointment Network element object.
5. the device of conversion networking diagram form according to claim 4, is characterized in that, described bus turns linear module, also, for according to the related link information of described appointment Network element object, connects described appointment Network element object by straight line.
6. the device of conversion networking diagram form according to claim 4, is characterized in that, described straight line turns bus module and comprises:
Bus generation unit, for generating described bus according to the coordinate of described appointment Network element object at described initial networking diagram;
Perpendicular line generation unit, for generating the perpendicular line of described appointment Network element object to described bus according to the related link information of described appointment Network element object.
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 CN102708252A (en) | 2012-10-03 |
CN102708252B true 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 (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101834745A (en) * | 2010-05-17 | 2010-09-15 | 中兴通讯股份有限公司 | Method, server and system for automatically generating ONU (Optical Network Unit) network element topology |
Family Cites Families (2)
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 |
-
2012
- 2012-05-17 CN CN201210153973.XA patent/CN102708252B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101834745A (en) * | 2010-05-17 | 2010-09-15 | 中兴通讯股份有限公司 | Method, server and system for automatically generating ONU (Optical Network Unit) network element topology |
Non-Patent Citations (1)
Title |
---|
JP特开2002-368743A 2002.12.20 |
Also Published As
Publication number | Publication date |
---|---|
CN102708252A (en) | 2012-10-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105005911B (en) | The arithmetic system and operation method of deep neural network | |
CN101957745B (en) | Method for converting ladder diagram language into structure text language | |
JP7343963B2 (en) | Dataset for learning functions that take images as input | |
WO2016082311A1 (en) | System and method for generating machining control data of numerical control machine tool | |
CN109240670A (en) | Modular software development methodology, system, equipment and medium | |
CN103440357A (en) | Virtual reality roaming scene generation method and system | |
CN104985939B (en) | A kind of laser marking machine control method and laser marking machine | |
CN107609302B (en) | Method and system for generating product process structure | |
CN109272571B (en) | System and method for converting PDS three-dimensional data into Flowmaster model | |
CN104391991A (en) | Method for converting AutoCAD data into GIS spatial data | |
CN112818457A (en) | BIM (building information modeling) model intelligent generation method and system based on CAD (computer-aided design) drawing | |
CN110633959A (en) | Method, device, equipment and medium for creating approval task based on graph structure | |
CN105117555A (en) | On-line browsing system of nuclear power three-dimensional design model | |
CN108874808A (en) | A kind of page elements interlock method, device and server | |
CN107885840A (en) | Urban information model service method and system | |
CN103578020A (en) | Commodity information pushing system and method | |
CN104375814A (en) | Generation method and device of an interface document | |
CN112685409B (en) | PAAS application service topology generation method and device and readable storage medium | |
CN109697281A (en) | The online method, apparatus and electronic equipment for merging document | |
CN102930581A (en) | General representations for data frame animations | |
CN103279420B (en) | The application program for mobile terminal automated testing method optimized and system | |
CN102708252B (en) | Method and device for converting form of networking diagram as well as computer node | |
CN110312990A (en) | Configuration method and system | |
CN106903890A (en) | A kind of 3D clothes printer | |
Song et al. | Development of a lightweight CAE middleware for CAE data exchange |
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 |