CN107808060A - 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
CN107808060A
CN107808060A CN201711133200.4A CN201711133200A CN107808060A CN 107808060 A CN107808060 A CN 107808060A CN 201711133200 A CN201711133200 A CN 201711133200A CN 107808060 A CN107808060 A CN 107808060A
Authority
CN
China
Prior art keywords
bus
equipment
order
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.)
Granted
Application number
CN201711133200.4A
Other languages
Chinese (zh)
Other versions
CN107808060B (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 invention provides the automatic placement method and apparatus of industrial electronic system crosslinking figure, including:Obtain the number of devices of carry in every bus, and by number of devices be used as corresponding to bus weights;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 not intersected, arrange than more 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 field, more particularly, to the automatic placement method of industrial electronic system crosslinking figure And device.
Background technology
Industrial electronic system crosslinking figure (referred to as crosslinking figure) refers to the carry relation figure by equipment in system and bus Mode showed, allow user to have visual understanding to system architecture, facilitate user to carry out global design.But crosslinking figure will The crosslinking relation of equipment and bus is sought, arrangement is neat and uniform, and relation connecting line will avoid intersecting as far as possible.And in current industrial Electronic applications, crosslinking figure can not reach above-mentioned requirements.
The content of the invention
In view of this, it is an object of the invention to provide industrial electronic system crosslinking figure automatic placement method and apparatus, The connecting line between equipment and bus is not intersected, arrange than more uniform.
In a first aspect, the embodiments of the invention provide the automatic placement method of industrial electronic system crosslinking figure, methods described Including:
Obtain the number of devices of carry in every bus, and using the weights of number of devices bus as corresponding to;
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 in a first aspect, the embodiments of the invention provide the possible embodiment of the first of first aspect, wherein, institute State and handled 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 order, obtain the bus of the first order;
The bus of first order is evenly spaced on painting canvas, obtains being crosslinked figure;
Bus in the crosslinking figure is re-started into numbering according to the second order, obtains the bus of the second order, its In, the corresponding corresponding numbering of bus of second order;
Bus corresponding to each equipment is obtained, the quantity of bus and each equipment pair are corresponded to according to each equipment The corresponding numbering of bus is answered, obtains the weights of each equipment;
The quantity of bus and the weights of each equipment are corresponded to according to each equipment, to the equipment according to the 3rd Order is ranked up, and obtains the equipment of the 3rd order;
The equipment of the bus of second order and the 3rd order is arranged, obtains the bus apparatus arrangement Figure.
With reference to the first possible embodiment of first aspect, the embodiments of the invention provide second of first aspect Possible embodiment, wherein, the equipment by the bus of second order and the 3rd order is arranged, and is obtained The bus apparatus layout viewing, including:
Weights phase corresponding with the equipment of the 3rd order is chosen in numbering corresponding to bus from second order Deng bus, and the equipment is arranged on 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 in a first aspect, the embodiments of the invention provide the possible embodiment of the third of first aspect, wherein, institute State and handled 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 bus corresponding to the current location of the equipment and the equipment, the second crosslinking is obtained Annexation figure;
Determine the position relationship of bus corresponding to the equipment and the equipment;
According to the position relationship of bus corresponding to the equipment and the equipment, pass through in the crosslinking annexation figure Connecting line is attached, and obtains the first crosslinking annexation figure.
With reference to the third possible embodiment of first aspect, the embodiments of the invention provide the 4th of first aspect kind Possible embodiment, wherein, the position relationship of the bus according to corresponding to the equipment and the equipment, in the crosslinking It is attached in annexation figure by connecting line, obtains the first crosslinking annexation figure, including:
If bus corresponding to the equipment in the lower section of the current location of the equipment, and with the institute of the equipment It is non-adjacent relation to state current location, then using the left side of the equipment as starting point, bus corresponding to the equipment is eventually Point, it is attached by the connecting line.
With reference to the 4th kind of possible embodiment of first aspect, the embodiments of the invention provide the 5th of first aspect kind Possible embodiment, wherein, the position relationship of the bus according to corresponding to the equipment and the equipment, in the crosslinking It is attached in annexation figure by connecting line, obtains the first crosslinking annexation figure, in addition to:
If bus corresponding to the equipment in the top of the current location of the equipment, and with the institute of the equipment It is non-adjacent relation to state current location, then using the right side of the equipment as starting point, bus corresponding to the equipment is eventually Point, it is attached by the connecting line, so as 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, for obtaining the number of devices of carry in every bus, and using the number of devices as corresponding to The weights of bus;
First processing module, for the weights of the bus to be handled by figure arrangement algorithm, obtain bus and set Standby layout viewing;
Second processing module, for the bus apparatus layout viewing to be handled by line arrangement algorithm, obtain first It is crosslinked annexation figure.
With reference to second aspect, the embodiments of the invention provide the possible embodiment of the first of second aspect, wherein, institute Stating first processing module includes:
The weights of the bus are arranged according to the first order, obtain the bus of the first order;
The bus of first order is evenly spaced on painting canvas, obtains being crosslinked figure;
Bus in the crosslinking figure is re-started into numbering according to the second order, obtains the bus of the second order, its In, the corresponding corresponding numbering of bus of second order;
Bus corresponding to each equipment is obtained, the quantity of bus and each equipment pair are corresponded to according to each equipment The corresponding numbering of bus is answered, obtains the weights of each equipment;
The quantity of bus and the weights of each equipment are corresponded to according to each equipment, to the equipment according to the 3rd Order is ranked up, and obtains the equipment of the 3rd order;
The equipment of the bus of second order and the 3rd order is arranged, obtains the bus apparatus arrangement Figure.
With reference to the first possible embodiment of second aspect, the embodiments of the invention provide second of second aspect Possible embodiment, wherein, the first processing module includes:
Weights phase corresponding with the equipment of the 3rd order is chosen in numbering corresponding to bus from second order Deng bus, and the equipment is arranged on 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 second aspect, the embodiments of the invention provide the possible embodiment of the third 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 bus corresponding to the current location of the equipment and the equipment, the second crosslinking is obtained Annexation figure;
Determine the position relationship of bus corresponding to the equipment and the equipment;
According to the position relationship of bus corresponding to the equipment and the equipment, pass through in the crosslinking annexation figure Connecting line is attached, and obtains the first crosslinking annexation figure.
The embodiments of the invention provide the automatic placement method and apparatus of industrial electronic system crosslinking figure, including:Obtain every The number of devices of carry in bar bus, and by number of devices be used as corresponding to bus weights;The weights of bus are passed through into figure Arrangement algorithm is handled, and obtains bus apparatus layout viewing;Bus apparatus layout viewing is handled by line arrangement algorithm, obtained To the first crosslinking annexation figure, the connecting line between equipment and bus is not intersected, arrange than more uniform.
Other features and advantages of the present invention will illustrate in the following description, also, partly become from specification Obtain it is clear that or being understood by implementing the present invention.The purpose of the present invention and other advantages are in specification, claims And specifically noted structure is realized and obtained in accompanying drawing.
To enable the above objects, features and advantages of the present invention to become apparent, preferred embodiment cited below particularly, and coordinate Appended accompanying drawing, is described in detail below.
Brief description of the drawings
, below will be to specific in order to illustrate more clearly of the specific embodiment of the invention or technical scheme of the prior art The required accompanying drawing used is briefly described in embodiment or description of the prior art, it should be apparent that, in describing below Accompanying drawing is some embodiments of the present invention, for those of ordinary skill in the art, before creative work is not paid Put, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is the automatic placement method flow diagram that the industrial electronic system that the embodiment of the present invention one provides is crosslinked figure;
Fig. 2 is that the industrial electronic system that the embodiment of the present invention one provides is crosslinked step S102 in the automatic placement method of figure 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;
Fig. 5 is that the industrial electronic system that the embodiment of the present invention one provides is crosslinked step S103 in the automatic placement method of figure Flow chart;
Fig. 6 is the second crosslinking annexation figure that the embodiment of the present invention one provides;
Fig. 7 is one of 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 the industrial electronic system that the embodiment of the present invention two provides is crosslinked figure.
Icon:
10- acquisition modules;20- first processing modules;30- Second processing modules.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with accompanying drawing to the present invention Technical scheme be clearly and completely described, it is clear that described embodiment is part of the embodiment of the present invention, rather than Whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art are not making creative work premise Lower obtained every other embodiment, belongs to the scope of protection of the invention.
For ease of understanding the present embodiment, the embodiment of the present invention is described in detail below.
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.
Reference picture 1, this method comprises the following steps:
Step S101, obtain every bus on carry number of devices, and by number of devices be used as corresponding to bus power Value.
Here, the relation of equipment and bus can be that carry and non-carry, equipment are mounted in bus, claim equipment and bus It is provided with annexation.One bus can be mounted on multiple bus with carry multiple equipment, an equipment.Equipment can be with Represented with rectangle, bus can be represented with straight line.Wherein, the carry relation 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 with 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 Measure as 6, the quantity of other bus carry equipment can be specifically as shown in table 2:
Table 2
Herein, the weights using the quantity of bus carry equipment as bus.
Step S102, the weights of bus are handled by figure arrangement algorithm, obtain bus apparatus layout viewing.
Step S103, bus apparatus layout viewing is handled by line arrangement algorithm, obtains the first crosslinking annexation Figure.
Further, reference picture 2, step S102 comprise the following steps:
Step S201, the weights of bus are arranged according to the first order, obtain the bus of the first order;
Here, the first order refers to order from big to small, the weights of bus is arranged according to order from big to small, such as Weights corresponding to fruit bus are equal, then are ranked up by bus lexicographic order, for example, weights corresponding to bus C are 8 in table 2, always Weights corresponding to line E are 8, then, when being ranked up to bus, just it is ranked up according to the order of bus word table, Ran Houzai Renumberd to bus, and since numbering 1, it is specific as shown in table 3:
Table 3
Step S202, the bus of the first order is evenly spaced on painting canvas, obtains being crosslinked figure;
Here, the bus of the first order is placed on painting canvas in the way of alternatively up and down, detailed process is:By bus 1 Painting canvas center is placed in, 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 put Under bus 3.By that analogy, all buses are evenly arranged on painting canvas, referring in particular to Fig. 3.
Step S203, the bus being crosslinked in figure is re-started into numbering according to the second order, obtains the total of the second order Line, wherein, the corresponding corresponding numbering of bus of the second order;
Here, the second order refers in accordance with the order from top to bottom, enters line renumbering to the bus in crosslinking figure, has Body is as shown in table 4:
Table 4
Step S204, bus corresponding to each equipment is obtained, the quantity of bus and each equipment are corresponded to according to each equipment The corresponding numbering of corresponding bus, obtains the weights of each equipment;
Here, the numbering for the bus for having annexation with the equipment is added, the numbering sum that will add up divided by these are total The quantity of line, obtain the weights of the equipment.Referring in particular to table 5:
Table 5
Specifically, the bus of the carry of device A is that the corresponding numbering sum of bus A and bus D, bus A and bus D is 6, Then 6/2=3, then, the weights of device A are 3.If result of calculation is decimal, retain one decimal place.
Step S205, the quantity of bus and the weights of each equipment are corresponded to according to each equipment, it is suitable according to the 3rd to equipment Sequence is ranked up, and obtains the equipment of the 3rd order;
Here, the 3rd order refers to be ranked up according to order from small to large, the bus number by equipment according to 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 it is equal, then it is ranked up according to the order of device name letter, and the equipment after sequence is numbered, number since 1, Referring in particular to table 6:
Table 6
Step S206, the equipment of the bus of the second order and the 3rd order is arranged, obtain bus apparatus layout viewing.
Specifically, step S206 comprises the following steps:
Step S301, weights phase corresponding with the equipment of the 3rd order is chosen in numbering corresponding to the bus from the second order Deng bus, and equipment is arranged on the side with bus existing device negligible amounts;
Step S302, if the number of devices of the upper and lower sides of bus is equal, equipment is placed on to the upside of bus.
Here, the blank space being successively put into equipment between bus, is discharged according to step S301 and step S302, is had Body reference picture 4.
Further, reference picture 5, step S103 comprise the following steps:
Step S401, obtain current location of the equipment in bus apparatus layout viewing;
Step S402, according to the neighbouring relations of bus corresponding to the current location of equipment and equipment, obtain the second crosslinking company Connect graph of a relation;
Here, line starting point equipment upside center or downside center, terminal in corresponding bus, referring in particular to Fig. 6, such as bus corresponding to 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 equipment E upside just in and downside center be connected respectively with bus A and bus E.
Step S403, determine the position relationship of bus corresponding to equipment and equipment;
Step S404, the position relationship of bus and equipment according to corresponding to equipment, pass through company in annexation figure is crosslinked Wiring is attached, and obtains the first crosslinking annexation figure.
Specifically, step S404 comprises the following steps:
Step S501, if bus corresponding to equipment in the lower section of the current location of equipment, and with the current location of equipment For non-adjacent relation, then using the left side of equipment as starting point, bus corresponding to equipment is terminal, is connected by connecting line Connect.
Specifically, relation of the bus below equipment is selected, 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.An if only company Line is on the left of equipment, then the starting point of line is hit exactly on the left of equipment;If a plurality of line, then the starting point of each line is left with equipment Uniformly arranged centered on center side.Referring in particular to Fig. 7, bus corresponding to equipment E is bus A, bus C and bus E, and bus C exists Equipment E lower section, slave unit E left side is starting point, and bus C is terminal, is attached by connecting line.
Step S502, if bus corresponding to equipment in the top of the current location of equipment, and with the current location of equipment For non-adjacent relation, then using the right side of equipment as starting point, bus corresponding to equipment is terminal, is connected by connecting line Connect, so as to obtain the first crosslinking annexation figure.
Specifically, relation of the bus above equipment is selected, 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.On the right side of equipment, if the starting point of line is hit exactly an only line on the right side of equipment;If a plurality of line, then The starting point of each line is uniformly arranged centered on being hit exactly on the right side of equipment.Referring in particular to Fig. 8, for example, bus corresponding to equipment F is total Line B, bus C, bus D and bus E, bus C and bus E are in equipment F top, using equipment F right side 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 the industrial electronic system that the embodiment of the present invention two provides is crosslinked figure.
Reference picture 9, the device include acquisition module 10, first processing module 20 and Second processing module 30.
Acquisition module 10, for obtaining the number of devices of carry in every bus, and by number of devices be used as corresponding to it is total The weights of line;
First processing module 20, for the weights of bus to be handled by figure arrangement algorithm, obtain bus apparatus Layout viewing;
Second processing module 30, for bus apparatus layout viewing to be handled by line arrangement algorithm, obtain the first friendship Join annexation figure.
Further, first processing module 20 includes:
The weights of bus are arranged according to the first order, obtain the bus of the first order;
The bus of first order is evenly spaced on painting canvas, obtains being crosslinked figure;
The bus being crosslinked in figure is re-started into numbering according to the second order, obtains the bus of the second order, wherein, the The corresponding corresponding numbering of the bus of two orders;
Bus corresponding to each equipment is obtained, the quantity of bus is corresponded to according to each equipment and each equipment corresponds to bus Corresponding numbering, obtains the weights of each equipment;
The quantity of bus and the weights of each equipment are corresponded to according to each equipment, equipment is arranged according to the 3rd order Sequence, obtain the equipment of the 3rd order;
The equipment of the bus of second order and the 3rd order is arranged, obtains bus apparatus layout viewing.
Further, first processing module 10 includes:
The selection bus equal with weights corresponding to the equipment of the 3rd order in numbering corresponding to bus from the second order, And equipment is arranged on 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 bus corresponding to the current location of equipment and equipment, the second crosslinking annexation is obtained Figure;
Determine the position relationship of bus corresponding to equipment and the equipment;
The position relationship of bus and equipment according to corresponding to equipment, connected in annexation figure is crosslinked by connecting line Connect, obtain the first crosslinking annexation figure.
The embodiments of the invention provide the automatic placement method and apparatus of industrial electronic system crosslinking figure, including:Obtain every The number of devices of carry in bar bus, and by number of devices be used as corresponding to bus weights;The weights of bus are passed through into figure Arrangement algorithm is handled, and obtains bus apparatus layout viewing;Bus apparatus layout viewing is handled by line arrangement algorithm, obtained To the first crosslinking annexation figure, the connecting line between equipment and bus is not intersected, arrange than more 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, the industrial electronic that above-described embodiment provides is realized during computing device 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 recording medium, and meter is stored with computer-readable recording medium Calculation machine program, the automatic placement of the industrial electronic system crosslinking figure of above-described embodiment is performed 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 described program code includes can be used for performing the method described in previous methods embodiment, and specific implementation can be joined See embodiment of the method, will not be repeated here.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description With the specific work process of device, the corresponding process in preceding method embodiment is may be referred to, will not be repeated here.
In addition, in the description of the embodiment of the present invention, unless otherwise clearly defined and limited, term " installation ", " phase Even ", " connection " should be interpreted broadly, for example, it may be being fixedly connected or being detachably connected, or be integrally connected;Can To be mechanical connection or electrical connection;Can be joined directly together, can also be indirectly connected by intermediary, Ke Yishi The connection of two element internals.For the ordinary skill in the art, with concrete condition above-mentioned term can be understood at this Concrete meaning in invention.
If the function is realized in the form of SFU software functional unit and is used as independent production marketing or in use, can be with It is stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words The part to be contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter Calculation machine software product is stored in a storage medium, including some instructions are causing a computer equipment (can be People's computer, server, or network equipment etc.) perform all or part of step of each embodiment methods described of the present invention. And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), arbitrary access are deposited Reservoir (RAM, Random Access Memory), magnetic disc or CD etc. are various can be with the medium of store program codes.
In the description of the invention, it is necessary to explanation, term " " center ", " on ", " under ", "left", "right", " vertical ", The orientation or position relationship of the instruction such as " level ", " interior ", " outer " be based on orientation shown in the drawings or position relationship, merely to Be easy to the description present invention and simplify description, rather than instruction or imply signified device or element must have specific orientation, With specific azimuth configuration and operation, therefore it is not considered as limiting the invention.In addition, term " first ", " second ", " the 3rd " is only used for describing purpose, and it is not intended that instruction or hint relative importance.
Finally it should be noted that:Embodiment described above, it is only the embodiment of the present invention, to illustrate the present invention Technical scheme, rather than its limitations, protection scope 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 within the art that:Any one skilled in the art The invention discloses technical scope in, it can still modify to the technical scheme described in previous embodiment or can be light Change is readily conceivable that, or equivalent substitution is carried out to which part technical characteristic;And these modifications, change or replacement, do not make The essence of appropriate technical solution departs from the spirit and scope of technical scheme of the embodiment of the present invention, should all cover the protection in the present invention Within the scope of.Therefore, protection scope of the present invention described should be defined by scope of the claims.

Claims (10)

  1. A kind of 1. automatic placement method of industrial electronic system crosslinking figure, it is characterised in that methods described includes:
    Obtain the number of devices of carry in every bus, and using the weights of number of devices bus as corresponding to;
    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.
  2. 2. the automatic placement method of industrial electronic system crosslinking figure according to claim 1, it is characterised in that described by institute The weights for stating bus are handled by figure arrangement algorithm, obtain bus apparatus layout viewing, including:
    The weights of the bus are arranged according to the first order, obtain the bus of the first order;
    The bus of first order is evenly spaced on painting canvas, obtains being crosslinked figure;
    Bus in the crosslinking figure is re-started into numbering according to the second order, obtains the bus of the second order, wherein, institute State the corresponding corresponding numbering of bus of the second order;
    Obtain bus corresponding to each equipment, the quantity of bus correspond to according to each equipment and each equipment correspond to it is total The corresponding numbering of line, obtain the weights of each equipment;
    The quantity of bus and the weights of each equipment are corresponded to according to each equipment, to the equipment according to the 3rd order It is ranked up, obtains the equipment of the 3rd order;
    The equipment of the bus of second order and the 3rd order is arranged, obtains the bus apparatus layout viewing.
  3. 3. the automatic placement method of industrial electronic system crosslinking figure according to claim 2, it is characterised in that described by institute The equipment of the bus and the 3rd order of stating the second order is arranged, and obtains the bus apparatus layout viewing, including:
    Selection is equal with weights corresponding to the equipment of the 3rd order in numbering corresponding to bus from second order Bus, and the equipment is arranged on 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.
  4. 4. the automatic placement method of industrial electronic system crosslinking figure according to claim 1, it is characterised in that described by institute State bus apparatus layout viewing to be handled 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 bus corresponding to the current location of the equipment and the equipment, the second crosslinking connection is obtained Graph of a relation;
    Determine the position relationship of bus corresponding to the equipment and the equipment;
    According to the position relationship of bus corresponding to the equipment and the equipment, pass through connection in the crosslinking annexation figure Line is attached, and obtains the first crosslinking annexation figure.
  5. 5. the automatic placement method of industrial electronic system crosslinking figure according to claim 4, it is characterised in that the basis The position relationship of bus corresponding to the equipment and the equipment, connected in the crosslinking annexation figure by connecting line Connect, obtain the first crosslinking annexation figure, including:
    If bus corresponding to the equipment is in the lower section of the current location of the equipment, and with working as described in the equipment Anteposition is set to non-adjacent relation, then using the left side of the equipment as starting point, bus corresponding to the equipment is terminal, leads to The connecting line is crossed to be attached.
  6. 6. the automatic placement method of industrial electronic system crosslinking figure according to claim 5, it is characterised in that the basis The position relationship of bus corresponding to the equipment and the equipment, connected in the crosslinking annexation figure by connecting line Connect, obtain the first crosslinking annexation figure, in addition to:
    If bus corresponding to the equipment is in the top of the current location of the equipment, and with working as described in the equipment Anteposition is set to non-adjacent relation, then using the right side of the equipment as starting point, bus corresponding to the equipment is terminal, leads to Cross the connecting line to be attached, so as to obtain the first crosslinking annexation figure.
  7. 7. a kind of automatic placement device of industrial electronic system crosslinking figure, it is characterised in that described device includes:
    Acquisition module, for obtaining the number of devices of carry in every bus, and using the number of devices as corresponding to bus Weights;
    First processing module, for the weights of the bus to be handled by figure arrangement algorithm, obtain bus apparatus row Butut;
    Second processing module, for the bus apparatus layout viewing to be handled by line arrangement algorithm, obtain the first crosslinking Annexation figure.
  8. 8. the automatic placement device of industrial electronic system crosslinking figure according to claim 7, it is characterised in that described first Processing module includes:
    The weights of the bus are arranged according to the first order, obtain the bus of the first order;
    The bus of first order is evenly spaced on painting canvas, obtains being crosslinked figure;
    Bus in the crosslinking figure is re-started into numbering according to the second order, obtains the bus of the second order, wherein, institute State the corresponding corresponding numbering of bus of the second order;
    Obtain bus corresponding to each equipment, the quantity of bus correspond to according to each equipment and each equipment correspond to it is total The corresponding numbering of line, obtain the weights of each equipment;
    The quantity of bus and the weights of each equipment are corresponded to according to each equipment, to the equipment according to the 3rd order It is ranked up, obtains the equipment of the 3rd order;
    The equipment of the bus of second order and the 3rd order is arranged, obtains the bus apparatus layout viewing.
  9. 9. the automatic placement device of industrial electronic system crosslinking figure according to claim 8, it is characterised in that described first Processing module includes:
    Selection is equal with weights corresponding to the equipment of the 3rd order in numbering corresponding to bus from second order Bus, and the equipment is arranged on 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.
  10. 10. the automatic placement device of industrial electronic system according to claim 7 crosslinking figure, it is characterised in that described the Two processing modules include:
    Obtain current location of the equipment in the bus apparatus layout viewing;
    According to the neighbouring relations of bus corresponding to the current location of the equipment and the equipment, the second crosslinking connection is obtained Graph of a relation;
    Determine the position relationship of bus corresponding to the equipment and the equipment;
    According to the position relationship of bus corresponding to the equipment and the equipment, pass through connection in the crosslinking annexation figure Line is attached, and obtains the first crosslinking annexation figure.
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 true CN107808060A (en) 2018-03-16
CN107808060B 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
CN107808060B (en) 2018-10-19

Similar Documents

Publication Publication Date Title
CN110363456B (en) Method and device for putting articles on shelves
EP2801894B1 (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
CN109165781B (en) Method and device for calculating single line diagram connection line path of electric power system and terminal equipment
CN106502837A (en) A kind of method of data backup, apparatus and system
CN103473238B (en) Dispense address location system and method
CN104598107A (en) Generating method and system of interface control
CN107482709A (en) A kind of charging management method, device, electronic equipment and readable storage medium storing program for executing
CN110191204A (en) A kind of Intranet communication between devices method, system, device and computer storage medium
CN110457346A (en) Data query method, apparatus and computer readable storage medium
CN110377342B (en) Video memory processing method and device based on convolutional neural network and storage medium
CN104009863A (en) Server system and method for automatically acquiring server number
CN107808060A (en) Industrial electronic system is crosslinked the automatic placement method and apparatus of figure
CN104519553B (en) Access point selection system and method
CN105159881B (en) The method and device of data module in a kind of aggregation page
CN109753353A (en) Resources of virtual machine distribution method, device and electronic equipment
CN105939388A (en) Method for pushing business content and content controller
CN109975608A (en) The power grid type judgement method of three-phase electric energy meter, device and system
EP3166009A1 (en) Data processing method and device for storage card
CN108399093A (en) Node Processing Method, device and electronic equipment
CN113378069B (en) Main and distribution network automatic drawing method based on intelligent recommendation algorithm
CN109710409A (en) A kind of EMS memory management process, system, device and readable storage medium storing program for executing
CN105786333A (en) Method and device for operating mobile terminal
CN108229734A (en) Paths planning method 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