CN107808060B - Industrial electronic system is crosslinked the automatic placement method and apparatus of figure - Google Patents

Industrial electronic system is crosslinked the automatic placement method and apparatus of figure Download PDF

Info

Publication number
CN107808060B
CN107808060B CN201711133200.4A CN201711133200A CN107808060B CN 107808060 B CN107808060 B CN 107808060B CN 201711133200 A CN201711133200 A CN 201711133200A CN 107808060 B CN107808060 B CN 107808060B
Authority
CN
China
Prior art keywords
bus
equipment
sequence
crosslinking
weights
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
Application number
CN201711133200.4A
Other languages
Chinese (zh)
Other versions
CN107808060A (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.)
Hangzhou Shanshi Technology Co Ltd
Original Assignee
Hangzhou Shanshi Technology 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 Hangzhou Shanshi Technology Co Ltd filed Critical Hangzhou Shanshi Technology Co Ltd
Priority to CN201711133200.4A priority Critical patent/CN107808060B/en
Publication of CN107808060A publication Critical patent/CN107808060A/en
Application granted granted Critical
Publication of CN107808060B publication Critical patent/CN107808060B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/30Circuit design
    • G06F30/39Circuit design at the physical level
    • G06F30/392Floor-planning or layout, e.g. partitioning or placement

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Architecture (AREA)
  • Evolutionary Computation (AREA)
  • Geometry (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Design And Manufacture Of Integrated Circuits (AREA)

Abstract

The present invention provides the automatic placement method and apparatus that industrial electronic system is crosslinked figure, including:The number of devices of carry in every bus is obtained, and using number of devices as the weights of corresponding bus;The weights of bus are handled by figure arrangement algorithm, obtain bus apparatus layout viewing;Bus apparatus layout viewing is handled by line arrangement algorithm, the first crosslinking annexation figure is obtained, the connecting line between equipment and bus is made not intersect, arrangement is relatively uniform.

Description

Industrial electronic system is crosslinked the automatic placement method and apparatus of figure
Technical field
The present invention relates to industrial electronic technical fields, and the automatic placement method of figure is crosslinked more particularly, to industrial electronic system And device.
Background technology
Industrial electronic system crosslinking figure (referred to as crosslinking figure) refers to the carry relationship figure by equipment in system and bus Mode showed, allow user to have visual understanding to system structure, user facilitated to carry out global design.But crosslinking figure is wanted The crosslinking relationship of equipment and bus is sought, arrangement is neat and uniform, and relationship connecting line will avoid intersecting as possible.And in current industrial Electronic field, crosslinking figure can not reach above-mentioned requirements.
Invention content
In view of this, the purpose of the present invention is to provide the automatic placement method and apparatus that industrial electronic system is crosslinked figure, The connecting line between equipment and bus is set not intersect, arrangement is relatively uniform.
In a first aspect, an embodiment of the present invention provides the automatic placement method that industrial electronic system is crosslinked figure, the method Including:
The number of devices of carry in every bus is obtained, and using the number of devices as the weights of corresponding bus;
The weights of the bus are handled by figure arrangement algorithm, obtain bus apparatus layout viewing;
The bus apparatus layout viewing is handled by line arrangement algorithm, obtains the first crosslinking annexation figure.
With reference to first aspect, an embodiment of the present invention provides the first possible embodiments of first aspect, wherein institute It states and handles the weights of the bus by figure arrangement algorithm, obtain bus apparatus layout viewing, including:
The weights of the bus are arranged according to the first sequence, obtain the bus of the first sequence;
The bus of first sequence is evenly spaced on painting canvas, crosslinking figure is obtained;
Bus in the crosslinking figure is re-started into number according to the second sequence, obtains the bus of the second sequence, In, the bus of second sequence corresponds to corresponding number;
The corresponding bus of each equipment is obtained, the quantity of bus and each equipment pair are corresponded to according to each equipment The corresponding number for answering bus obtains the weights of each equipment;
The weights that the quantity and each equipment of bus are corresponded to according to each equipment, to the equipment according to third Sequence is ranked up, the equipment for obtaining third sequence;
The equipment of the bus of second sequence and the third sequence is arranged, the bus apparatus arrangement is obtained Figure.
The possible embodiment of with reference to first aspect the first, an embodiment of the present invention provides second of first aspect Possible embodiment, wherein the equipment by the bus of second sequence and the third sequence arranges, and obtains The bus apparatus layout viewing, including:
Weights phase corresponding with the equipment of third sequence is chosen from the corresponding number of bus of second sequence Deng bus, and the equipment is arranged in the side with the bus existing device negligible amounts;
If the number of devices of the upper and lower sides of the bus is equal, the equipment is placed on to the upside of the bus.
With reference to first aspect, an embodiment of the present invention provides the third possible embodiments of first aspect, wherein institute It states and handles the bus apparatus layout viewing by line arrangement algorithm, obtain the first crosslinking annexation figure, including:
Obtain current location of the equipment in the bus apparatus layout viewing;
According to the neighbouring relations of the current location of the equipment and the corresponding bus of the equipment, the second crosslinking is obtained Annexation figure;
Determine the position relationship of the equipment corresponding bus and the equipment;
According to the position relationship of the equipment corresponding bus and the equipment, pass through in the crosslinking annexation figure Connecting line is attached, and obtains the first crosslinking annexation figure.
The third possible embodiment with reference to first aspect, an embodiment of the present invention provides the 4th kind of first aspect Possible embodiment, wherein the position relationship according to the equipment corresponding bus and the equipment, in the crosslinking It is attached by connecting line in annexation figure, obtains the first crosslinking annexation figure, including:
If the corresponding bus of the equipment in the lower section of the current location of the equipment, and with the institute of the equipment It is non-adjacent relationship to state current location, then it is end to regard the left side of the equipment as starting point, the corresponding bus of the equipment Point is attached by the connecting line.
The 4th kind of possible embodiment with reference to first aspect, an embodiment of the present invention provides the 5th kind of first aspect Possible embodiment, wherein the position relationship according to the equipment corresponding bus and the equipment, in the crosslinking It is attached by connecting line in annexation figure, obtains the first crosslinking annexation figure, further include:
If the corresponding bus of the equipment in the top of the current location of the equipment, and with the institute of the equipment It is non-adjacent relationship to state current location, then it is end to regard the right side of the equipment as starting point, the corresponding bus of the equipment Point is attached by the connecting line, to obtain the first crosslinking annexation figure.
Second aspect, the embodiment of the present invention also provide the automatic placement device of industrial electronic system crosslinking figure, described device Including:
Acquisition module, the number of devices for obtaining carry in every bus, and using the number of devices as corresponding The weights of bus;
First processing module obtains bus and sets for handling the weights of the bus by figure arrangement algorithm Standby layout viewing;
Second processing module obtains first for handling the bus apparatus layout viewing by line arrangement algorithm It is crosslinked annexation figure.
In conjunction with second aspect, an embodiment of the present invention provides the first possible embodiments of second aspect, wherein institute Stating first processing module includes:
The weights of the bus are arranged according to the first sequence, obtain the bus of the first sequence;
The bus of first sequence is evenly spaced on painting canvas, crosslinking figure is obtained;
Bus in the crosslinking figure is re-started into number according to the second sequence, obtains the bus of the second sequence, In, the bus of second sequence corresponds to corresponding number;
The corresponding bus of each equipment is obtained, the quantity of bus and each equipment pair are corresponded to according to each equipment The corresponding number for answering bus obtains the weights of each equipment;
The weights that the quantity and each equipment of bus are corresponded to according to each equipment, to the equipment according to third Sequence is ranked up, the equipment for obtaining third sequence;
The equipment of the bus of second sequence and the third sequence is arranged, the bus apparatus arrangement is obtained Figure.
In conjunction with the first possible embodiment of second aspect, an embodiment of the present invention provides second of second aspect Possible embodiment, wherein the first processing module includes:
Weights phase corresponding with the equipment of third sequence is chosen from the corresponding number of bus of second sequence Deng bus, and the equipment is arranged in the side with the bus existing device negligible amounts;
If the number of devices of the upper and lower sides of the bus is equal, the equipment is placed on to the upside of the bus.
In conjunction with second aspect, an embodiment of the present invention provides the third possible embodiments of second aspect, wherein institute Stating Second processing module includes:
Obtain current location of the equipment in the bus apparatus layout viewing;
According to the neighbouring relations of the current location of the equipment and the corresponding bus of the equipment, the second crosslinking is obtained Annexation figure;
Determine the position relationship of the equipment corresponding bus and the equipment;
According to the position relationship of the equipment corresponding bus and the equipment, pass through in the crosslinking annexation figure Connecting line is attached, and obtains the first crosslinking annexation figure.
An embodiment of the present invention provides the automatic placement method and apparatus that industrial electronic system is crosslinked figure, including:It obtains every The number of devices of carry in bus, and using number of devices as the weights of corresponding bus;The weights of bus are passed through into figure Arrangement algorithm is handled, and bus apparatus layout viewing is obtained;Bus apparatus layout viewing is handled by line arrangement algorithm, is obtained To the first crosslinking annexation figure, the connecting line between equipment and bus is set not intersect, arrangement is relatively uniform.
Other features and advantages of the present invention will illustrate in the following description, also, partly become from specification It obtains it is clear that understand through the implementation of the invention.The purpose of the present invention and other advantages are in specification, claims And specifically noted structure is realized and is obtained in attached drawing.
To enable the above objects, features and advantages of the present invention to be clearer and more comprehensible, preferred embodiment cited below particularly, and coordinate Appended attached drawing, is described in detail below.
Description of the drawings
It, below will be to specific in order to illustrate more clearly of the specific embodiment of the invention or technical solution in the prior art Embodiment or attached drawing needed to be used in the description of the prior art are briefly described, it should be apparent that, in being described below Attached drawing is some embodiments of the present invention, for those of ordinary skill in the art, before not making the creative labor It puts, other drawings may also be obtained based on these drawings.
Fig. 1 is the automatic placement method flow diagram for the industrial electronic system crosslinking figure that the embodiment of the present invention one provides;
Step S102 in the automatic placement method for the industrial electronic system crosslinking figure that Fig. 2 provides for the embodiment of the present invention one Flow chart;
Fig. 3 is the crosslinking pictorial diagram that the embodiment of the present invention one provides;
Fig. 4 is the bus apparatus layout viewing that the embodiment of the present invention one provides;
Step S103 in the automatic placement method for the industrial electronic system crosslinking figure that Fig. 5 provides for the embodiment of the present invention one Flow chart;
Fig. 6 is the second crosslinking annexation figure that the embodiment of the present invention one provides;
Fig. 7 is one of the first crosslinking annexation figure that the embodiment of the present invention one provides;
Fig. 8 is the two of the first crosslinking annexation figure that the embodiment of the present invention one provides;
Fig. 9 is the automatic placement schematic device that industrial electronic system provided by Embodiment 2 of the present invention is crosslinked figure.
Icon:
10- acquisition modules;20- first processing modules;30- Second processing modules.
Specific implementation mode
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with attached drawing to the present invention Technical solution be clearly and completely described, it is clear that described embodiments are some of the embodiments of the present invention, rather than Whole embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not making creative work premise Lower obtained every other embodiment, shall fall within the protection scope of the present invention.
For ease of understanding the present embodiment, describe in detail below to the embodiment of the present invention.
Embodiment one:
Fig. 1 is the automatic placement method flow diagram that industrial electronic system provided in an embodiment of the present invention is crosslinked figure.
Referring to Fig.1, this approach includes the following steps:
Step S101 obtains the number of devices of carry in every bus, and using number of devices as the power of corresponding bus Value.
Here, the relationship of equipment and bus can be that carry and non-carry, equipment are mounted in bus, claim equipment and bus It is provided with connection relation.One bus can be mounted on multiple bus with carry multiple equipment, an equipment.Equipment can be with It is indicated with rectangle, bus can be indicated with straight line.Wherein, the carry relationship of bus and equipment is as shown in table 1:
Table 1
As shown in Table 1, device A carry is on bus A and bus D, and equipment B carries are on bus C.
In addition, be mounted with device A, equipment E, equipment G, equipment J and equipment M on bus A, be mounted in bus B equipment C, Equipment F, equipment H, equipment L, equipment M and equipment O, therefore the quantity of carry equipment is 5 on bus A, the number of carry equipment in bus B Amount is 6, and the quantity of other bus carry equipment can specifically as shown in table 2:
Table 2
Herein, using the quantity of bus carry equipment as the weights of bus.
The weights of bus are handled by figure arrangement algorithm, obtain bus apparatus layout viewing by step S102.
Bus apparatus layout viewing is handled by line arrangement algorithm, obtains the first crosslinking connection relation by step S103 Figure.
Further, include the following steps with reference to Fig. 2, step S102:
The weights of bus are arranged according to the first sequence, obtain the bus of the first sequence by step S201;
Here, the first sequence refers to sequence from big to small, by the weights of bus according to being ranked sequentially from big to small, such as The corresponding weights of fruit bus are equal, then are ranked up by bus lexicographic order, for example, the corresponding weights of bus C are 8 in table 2, always The corresponding weights of line E are 8, then, when being ranked up to bus, just it is ranked up according to the sequence of bus word table, then again It is renumberd to bus, and since number 1, it is specific as shown in table 3:
Table 3
The bus of first sequence is evenly spaced on painting canvas by step S202, obtains crosslinking figure;
Here, the bus of the first sequence is placed in the way of alternatively up and down on painting canvas, detailed process is:By bus 1 It is placed in painting canvas center, bus 2 is placed on bus 1, and bus 3 is placed under bus 1, and bus 4 is placed on bus 2, and bus 5 is set Under bus 3.And so on, all buses are evenly arranged on painting canvas, referring in particular to Fig. 3.
The bus being crosslinked in figure is re-started number according to the second sequence, obtains the total of the second sequence by step S203 Line, wherein the bus of the second sequence corresponds to corresponding number;
Here, the second sequence refers in accordance with the order from top to bottom, to the bus in crosslinking figure into line renumbering, having Body is as shown in table 4:
Table 4
Step S204 obtains the corresponding bus of each equipment, and the quantity of bus and each equipment are corresponded to according to each equipment The corresponding number of corresponding bus, obtains the weights of each equipment;
Here, the number of the bus of connection relation will is added with the equipment, the sum of number that will add up divided by these are total The quantity of line obtains the weights of the equipment.Referring in particular to table 5:
Table 5
Specifically, it is 6 that the bus of the carry of device A, which is the sum of corresponding number of bus A and bus D, bus A and bus D, Then 6/2=3, then, the weights of device A are 3.If result of calculation is decimal, retain one decimal place.
Step S205 corresponds to the weights of the quantity and each equipment of bus according to each equipment, suitable according to third to equipment Sequence is ranked up, the equipment for obtaining third sequence;
Here, third sequence refers to being ranked up according to sequence from small to large, by equipment according to the bus number of connection Ascending sequence, if the connection number of equipment is equal, according to the ascending sequence of the weights of equipment, if the weights of equipment Also equal, then it is ranked up, and the equipment after sequence is numbered, is numbered since 1 according to the sequence of device name letter, Referring in particular to table 6:
Table 6
Step S206 arranges the equipment of the bus of the second sequence and third sequence, obtains bus apparatus layout viewing.
Specifically, step S206 includes the following steps:
Step S301 chooses weights phase corresponding with the equipment of third sequence from the corresponding number of bus of the second sequence Deng bus, and equipment is arranged in the side with bus existing device negligible amounts;
Equipment is placed on the upside of bus by step S302 if the number of devices of the upper and lower sides of bus is equal.
Here, the blank space being successively put into equipment between bus, is discharged according to step S301 and step S302, tool Body is with reference to Fig. 4.
Further, include the following steps with reference to Fig. 5, step S103:
Step S401 obtains current location of the equipment in bus apparatus layout viewing;
Step S402 obtains the second crosslinking company according to the neighbouring relations of the current location of equipment and the corresponding bus of equipment Connect relational graph;
Here, line starting point equipment upside center or downside hit exactly, terminal in corresponding bus, referring in particular to Fig. 6, such as the corresponding buses of equipment E are bus A, bus C and bus E, and equipment E and bus A and bus E is in neighbouring relations, Therefore by the upside of equipment E just in and downside center be connected respectively with bus A and bus E.
Step S403 determines the position relationship of equipment corresponding bus and equipment;
Step S404 passes through company according to the position relationship of equipment corresponding bus and equipment in being crosslinked annexation figure Wiring is attached, and obtains the first crosslinking annexation figure.
Specifically, step S404 includes the following steps:
Step S501, if the corresponding bus of equipment in the lower section of the current location of equipment, and with the current location of equipment For non-adjacent relationship, then using the left side of equipment as starting point, the corresponding bus of equipment is terminal, is connected by connecting line It connects.
Specifically, relationship of the selection bus below equipment, is drawn in crosslinking figure with line.Line starting point is being set Standby left side, terminating point is in corresponding bus.
The preferential line for drawing position equipment on the lower.It is preferential to draw shorter line for an equipment.If an only company Line is on the left of equipment, then the starting point of line is hit exactly on the left of equipment;If there is a plurality of line, then the starting point of each line is with an equipment left side It uniformly arranges centered on center side.Referring in particular to Fig. 7, the corresponding buses of equipment E are bus A, bus C and bus E, and bus C exists The lower section of equipment E is starting point from the left side of equipment E, and bus C is terminal, is attached by connecting line.
Step S502, if the corresponding bus of equipment in the top of the current location of equipment, and with the current location of equipment For non-adjacent relationship, then using the right side of equipment as starting point, the corresponding bus of equipment is terminal, is connected by connecting line It connects, to obtain the first crosslinking annexation figure.
Specifically, relationship of the selection bus above equipment, is drawn in crosslinking figure with line.Line starting point is being set Standby right side, terminating point is in corresponding bus.The preferential line for drawing the top equipment in position;For an equipment, preferential picture is shorter Line.If on the right side of equipment, the starting point of line is hit exactly an only line on the right side of equipment;If there is a plurality of line, then The starting point of each line is uniformly arranged on the right side of equipment centered on center.Referring in particular to Fig. 8, for example, the corresponding buses of equipment F are total Line B, bus C, bus D and bus E, bus C and bus E are in the top of equipment F, using the right side of equipment F as starting point, bus C and Bus E is terminal, is attached by connecting line, wherein the starting point of each line is uniformly arranged on the right side of equipment centered on center.
Embodiment two:
Fig. 9 is the automatic placement schematic device that industrial electronic system provided by Embodiment 2 of the present invention is crosslinked figure.
With reference to Fig. 9, which includes acquisition module 10, first processing module 20 and Second processing module 30.
Acquisition module 10, the number of devices for obtaining carry in every bus, and using number of devices as corresponding total The weights of line;
First processing module 20 obtains bus apparatus for handling the weights of bus by figure arrangement algorithm Layout viewing;
Second processing module 30 obtains the first friendship for handling bus apparatus layout viewing by line arrangement algorithm Join annexation figure.
Further, first processing module 20 includes:
The weights of bus are arranged according to the first sequence, obtain the bus of the first sequence;
The bus of first sequence is evenly spaced on painting canvas, crosslinking figure is obtained;
The bus being crosslinked in figure is re-started into number according to the second sequence, obtains the bus of the second sequence, wherein the The bus of two sequences corresponds to corresponding number;
The corresponding bus of each equipment is obtained, the quantity of bus is corresponded to according to each equipment and each equipment corresponds to bus Corresponding number, obtains the weights of each equipment;
The weights that the quantity and each equipment of bus are corresponded to according to each equipment arrange equipment according to third sequence Sequence, the equipment for obtaining third sequence;
The equipment of the bus of second sequence and third sequence is arranged, bus apparatus layout viewing is obtained.
Further, first processing module 10 includes:
The bus that selection weights corresponding with the equipment of third sequence are equal from the bus corresponding number of the second sequence, And equipment is arranged in the side with bus existing device negligible amounts;
If the number of devices of the upper and lower sides of bus is equal, equipment is placed on to the upside of bus.
Further, Second processing module 20 includes:
Obtain current location of the equipment in bus apparatus layout viewing;
According to the neighbouring relations of the current location of equipment and the corresponding bus of equipment, the second crosslinking connection relation is obtained Figure;
Determine the position relationship of equipment corresponding bus and the equipment;
According to the position relationship of equipment corresponding bus and equipment, connected by connecting line in being crosslinked annexation figure It connects, obtains the first crosslinking annexation figure.
An embodiment of the present invention provides the automatic placement method and apparatus that industrial electronic system is crosslinked figure, including:It obtains every The number of devices of carry in bus, and using number of devices as the weights of corresponding bus;The weights of bus are passed through into figure Arrangement algorithm is handled, and bus apparatus layout viewing is obtained;Bus apparatus layout viewing is handled by line arrangement algorithm, is obtained To the first crosslinking annexation figure, the connecting line between equipment and bus is set not intersect, arrangement is relatively uniform.
The embodiment of the present invention also provides a kind of electronic equipment, including memory, processor and storage are on a memory and can The computer program run on a processor, processor realize the industrial electronic that above-described embodiment provides when executing computer program System is crosslinked the step of automatic placement method of figure.
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium Calculation machine program executes the automatic placement of the industrial electronic system crosslinking figure of above-described embodiment when computer program is run by processor The step of method.
The computer program product that the embodiment of the present invention is provided, including store the computer-readable storage of program code Medium, the instruction that said program code includes can be used for executing the method described in previous methods embodiment, and specific implementation can be joined See embodiment of the method, details are not described herein.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description It with the specific work process of device, can refer to corresponding processes in the foregoing method embodiment, details are not described herein.
In addition, in the description of the embodiment of the present invention unless specifically defined or limited otherwise, term " installation ", " phase Even ", " connection " shall be understood in a broad sense, for example, it may be being fixedly connected, may be a detachable connection, or be integrally connected;It can Can also be electrical connection to be mechanical connection;It can be directly connected, can also indirectly connected through an intermediary, Ke Yishi Connection inside two elements.For the ordinary skill in the art, above-mentioned term can be understood at this with concrete condition Concrete meaning in invention.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product It is stored in a computer read/write memory medium.Based on this understanding, technical scheme of the present invention is substantially in other words The part of the part that contributes to existing technology or the technical solution can be expressed in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention. And storage medium above-mentioned includes:USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic disc or CD.
In the description of the present invention, it should be noted that term "center", "upper", "lower", "left", "right", "vertical", The orientation or positional relationship of the instructions such as "horizontal", "inner", "outside" be based on the orientation or positional relationship shown in the drawings, merely to Convenient for the description present invention and simplify description, do not indicate or imply the indicated device or element must have a particular orientation, With specific azimuth configuration and operation, therefore it is not considered as limiting the invention.In addition, term " first ", " second ", " third " is used for description purposes only, and is not understood to indicate or imply relative importance.
Finally it should be noted that:Embodiment described above, only specific implementation mode of the invention, to illustrate the present invention Technical solution, rather than its limitations, scope of protection of the present invention is not limited thereto, although with reference to the foregoing embodiments to this hair It is bright to be described in detail, it will be understood by those of ordinary skill in the art that:Any one skilled in the art In the technical scope disclosed by the present invention, it can still modify to the technical solution recorded in previous embodiment or can be light It is readily conceivable that variation or equivalent replacement of some of the technical features;And these modifications, variation or replacement, do not make The essence of corresponding technical solution is detached from the spirit and scope of technical solution of the embodiment of the present invention, should all cover the protection in the present invention Within the scope of.Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (6)

1. a kind of automatic placement method of industrial electronic system crosslinking figure, which is characterized in that the method includes:
The number of devices of carry in every bus is obtained, and using the number of devices as the weights of corresponding bus;
The weights of the bus are handled by figure arrangement algorithm, obtain bus apparatus layout viewing;
The bus apparatus layout viewing is handled by line arrangement algorithm, obtains the first crosslinking annexation figure;
The weights by the bus are handled by figure arrangement algorithm, obtain bus apparatus layout viewing, including:
The weights of the bus are arranged according to the first sequence, obtain the bus of the first sequence;
The bus of first sequence is evenly spaced on painting canvas, crosslinking figure is obtained;
Bus in the crosslinking figure is re-started into number according to the second sequence, obtains the bus of the second sequence, wherein institute The bus for stating the second sequence corresponds to corresponding number;
The corresponding bus of each equipment is obtained, the quantity of bus is corresponded to according to each equipment and each equipment corresponds to always The corresponding number of line obtains the weights of each equipment;
The weights that the quantity and each equipment of bus are corresponded to according to each equipment, to the equipment according to third sequence It is ranked up, the equipment for obtaining third sequence;
The equipment of the bus of second sequence and the third sequence is arranged, the bus apparatus layout viewing is obtained;
It is described to handle the bus apparatus layout viewing by line arrangement algorithm, the first crosslinking annexation figure is obtained, is wrapped It includes:
Obtain current location of the equipment in the bus apparatus layout viewing;
According to the neighbouring relations of the current location of the equipment and the corresponding bus of the equipment, the second crosslinking connection is obtained Relational graph;
Determine the position relationship of the equipment corresponding bus and the equipment;
According to the position relationship of the equipment corresponding bus and the equipment, pass through connection in the crosslinking annexation figure Line is attached, and obtains the first crosslinking annexation figure.
2. the automatic placement method of industrial electronic system crosslinking figure according to claim 1, which is characterized in that described by institute The equipment of the bus and the third sequence of stating the second sequence is arranged, and the bus apparatus layout viewing is obtained, including:
It is chosen from the corresponding number of bus of second sequence equal with the corresponding weights of equipment of third sequence Bus, and the equipment is arranged in the side with the bus existing device negligible amounts;
If the number of devices of the upper and lower sides of the bus is equal, the equipment is placed on to the upside of the bus.
3. the automatic placement method of industrial electronic system crosslinking figure according to claim 1, which is characterized in that the basis The position relationship of the equipment corresponding bus and the equipment, is connected in the crosslinking annexation figure by connecting line It connects, obtains the first crosslinking annexation figure, including:
If the corresponding bus of the equipment is worked as in the lower section of the current location of the equipment, and with described in the equipment Anteposition is set to non-adjacent relationship, then using the left side of the equipment as starting point, the corresponding bus of the equipment is terminal, is led to The connecting line is crossed to be attached.
4. the automatic placement method of industrial electronic system crosslinking figure according to claim 3, which is characterized in that the basis The position relationship of the equipment corresponding bus and the equipment, is connected in the crosslinking annexation figure by connecting line It connects, obtains the first crosslinking annexation figure, further include:
If the corresponding bus of the equipment is worked as in the top of the current location of the equipment, and with described in the equipment Anteposition is set to non-adjacent relationship, then using the right side of the equipment as starting point, the corresponding bus of the equipment is terminal, is led to It crosses the connecting line to be attached, to obtain the first crosslinking annexation figure.
5. a kind of automatic placement device of industrial electronic system crosslinking figure, which is characterized in that described device includes:
Acquisition module, the number of devices for obtaining carry in every bus, and using the number of devices as corresponding bus Weights;
First processing module obtains bus apparatus row for handling the weights of the bus by figure arrangement algorithm Butut;
Second processing module obtains the first crosslinking for handling the bus apparatus layout viewing by line arrangement algorithm Annexation figure;
The first processing module includes:
The weights of the bus are arranged according to the first sequence, obtain the bus of the first sequence;
The bus of first sequence is evenly spaced on painting canvas, crosslinking figure is obtained;
Bus in the crosslinking figure is re-started into number according to the second sequence, obtains the bus of the second sequence, wherein institute The bus for stating the second sequence corresponds to corresponding number;
The corresponding bus of each equipment is obtained, the quantity of bus is corresponded to according to each equipment and each equipment corresponds to always The corresponding number of line obtains the weights of each equipment;
The weights that the quantity and each equipment of bus are corresponded to according to each equipment, to the equipment according to third sequence It is ranked up, the equipment for obtaining third sequence;
The equipment of the bus of second sequence and the third sequence is arranged, the bus apparatus layout viewing is obtained;
The Second processing module includes:
Obtain current location of the equipment in the bus apparatus layout viewing;
According to the neighbouring relations of the current location of the equipment and the corresponding bus of the equipment, the second crosslinking connection is obtained Relational graph;
Determine the position relationship of the equipment corresponding bus and the equipment;
According to the position relationship of the equipment corresponding bus and the equipment, pass through connection in the crosslinking annexation figure Line is attached, and obtains the first crosslinking annexation figure.
6. the automatic placement device of industrial electronic system crosslinking figure according to claim 5, which is characterized in that described first Processing module includes:
It is chosen from the corresponding number of bus of second sequence equal with the corresponding weights of equipment of third sequence Bus, and the equipment is arranged in the side with the bus existing device negligible amounts;
If the number of devices of the upper and lower sides of the bus is equal, the equipment is placed on to the upside of the bus.
CN201711133200.4A 2017-11-15 2017-11-15 Industrial electronic system is crosslinked the automatic placement method and apparatus of figure Active CN107808060B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711133200.4A CN107808060B (en) 2017-11-15 2017-11-15 Industrial electronic system is crosslinked the automatic placement method and apparatus of figure

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711133200.4A CN107808060B (en) 2017-11-15 2017-11-15 Industrial electronic system is crosslinked the automatic placement method and apparatus of figure

Publications (2)

Publication Number Publication Date
CN107808060A CN107808060A (en) 2018-03-16
CN107808060B true CN107808060B (en) 2018-10-19

Family

ID=61580386

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711133200.4A Active CN107808060B (en) 2017-11-15 2017-11-15 Industrial electronic system is crosslinked the automatic placement method and apparatus of figure

Country Status (1)

Country Link
CN (1) CN107808060B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103942345A (en) * 2014-05-13 2014-07-23 国家电网公司 Method for automatically generating IED network graph
CN105138764A (en) * 2015-08-20 2015-12-09 国网山东省电力公司电力科学研究院 Automatic power grid thematic map model generating method based on multi-objective optimization
CN105205203A (en) * 2015-08-14 2015-12-30 国网技术学院 Boundless crossed line distribution method of power distribution feeder line single line diagram

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103942345A (en) * 2014-05-13 2014-07-23 国家电网公司 Method for automatically generating IED network graph
CN105205203A (en) * 2015-08-14 2015-12-30 国网技术学院 Boundless crossed line distribution method of power distribution feeder line single line diagram
CN105138764A (en) * 2015-08-20 2015-12-09 国网山东省电力公司电力科学研究院 Automatic power grid thematic map model generating method based on multi-objective optimization

Also Published As

Publication number Publication date
CN107808060A (en) 2018-03-16

Similar Documents

Publication Publication Date Title
US10560511B2 (en) Adaptive tile framework
CN108470374A (en) Mass cloud data processing method and processing device
CN102929464B (en) A kind of touch panel device and touch-screen body thereof
US20190205342A1 (en) Identifying and structuring related data
CN109165781B (en) Method and device for calculating single line diagram connection line path of electric power system and terminal equipment
JP2022547230A (en) Method, device, electronic device and storage medium for determining storage location
CN105338537B (en) A kind of method and terminal of the shared analysis of newly-increased base station site
JP6865763B2 (en) Data processing method and equipment
CN107808060B (en) Industrial electronic system is crosslinked the automatic placement method and apparatus of figure
CN110377342B (en) Video memory processing method and device based on convolutional neural network and storage medium
CN110969000A (en) Data merging processing method and device
CN106407383A (en) Picture ranking method and device
CN110661893A (en) Data center management method and data center management system
CN103903200A (en) Electronic menu system
CN108399093A (en) Node Processing Method, device and electronic equipment
CN109144624B (en) Method, storage medium, device and system for displaying unequal height lists in IOS
CN105468325B (en) Information processing method and electronic equipment
CN110213355A (en) The method and its application of search terminal in local area network
CN109271583A (en) Service push method and relevant apparatus
CN108229734A (en) Paths planning method and device
CN107967341A (en) A kind of image display method, terminal device and storage medium
CN103064983A (en) Method for multi-stage dynamic displaying of power supply and distribution layer diagrams
CN102369528A (en) Ordering method and device based on multivalued attribute
CN205366389U (en) Mobile phone packaging box
CN108491548A (en) Setting-out processing method based on map and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant