CN109190326A - Generate the method and device of process flow chart - Google Patents
Generate the method and device of process flow chart Download PDFInfo
- Publication number
- CN109190326A CN109190326A CN201811396956.2A CN201811396956A CN109190326A CN 109190326 A CN109190326 A CN 109190326A CN 201811396956 A CN201811396956 A CN 201811396956A CN 109190326 A CN109190326 A CN 109190326A
- Authority
- CN
- China
- Prior art keywords
- node
- equipment
- interface
- flow chart
- technique
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 272
- 230000008569 process Effects 0.000 title claims abstract description 169
- 238000004590 computer program Methods 0.000 claims description 15
- 238000003860 storage Methods 0.000 claims description 11
- 230000008859 change Effects 0.000 claims description 9
- 238000009826 distribution Methods 0.000 claims description 6
- 230000006870 function Effects 0.000 claims description 5
- 241000239290 Araneae Species 0.000 claims description 3
- 239000004744 fabric Substances 0.000 claims description 3
- 238000004364 calculation method Methods 0.000 claims description 2
- 241000933832 Broussonetia Species 0.000 claims 2
- 239000002131 composite material Substances 0.000 description 28
- 238000010586 diagram Methods 0.000 description 17
- 238000012545 processing Methods 0.000 description 12
- 238000012360 testing method Methods 0.000 description 8
- 238000013461 design Methods 0.000 description 7
- 238000005367 electrostatic precipitation Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 4
- 238000004519 manufacturing process Methods 0.000 description 4
- 235000013399 edible fruits Nutrition 0.000 description 3
- 238000005286 illumination Methods 0.000 description 2
- 241000705930 Broussonetia papyrifera Species 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000015572 biosynthetic process Effects 0.000 description 1
- 150000001875 compounds Chemical class 0.000 description 1
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000010422 painting Methods 0.000 description 1
- 238000004451 qualitative analysis Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/60—Editing figures and text; Combining figures or text
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2119/00—Details relating to the type or aim of the analysis or the optimisation
- G06F2119/18—Manufacturability analysis or optimisation for manufacturability
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Evolutionary Computation (AREA)
- Geometry (AREA)
- General Engineering & Computer Science (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention discloses a kind of method and devices for generating process flow chart, this method comprises: obtaining process structure tree, wherein include the connection relationship in technique between each equipment and each equipment in process structure tree;According to process structure tree, distributing position of each equipment on interface in technique is determined;According to equipment each in technique on interface distributing position and process structure tree in include each equipment between connection relationship, on interface generate technique process flow chart.The present invention can automatically generate process flow chart according to process structure tree, improve the drawing efficiency of process flow chart and the accuracy of drawing result.
Description
Technical field
The present invention relates to production technology field more particularly to a kind of method and devices for generating process flow chart.
Background technique
This part intends to provides background or context for the embodiment of the present invention stated in claims.Description herein
Recognize it is the prior art not because not being included in this section.
Process flow chart is the critical file of technological design, with the figure of image, symbol, code name, is indicated in technical process
Connection relationship between the equipment arrangement used and equipment, can express the production in entire factory or workshop very clearly
Process.
In the prior art, when draw craft flow chart, need staff suitable according to designed process flow
Equipment and the technological process line are unfolded picture in one plane from left to right, and are subject to necessary mark or explanation by sequence.Obviously,
For designed process flow, the mode of this artificial draw craft flow chart, not only drawing efficiency is low, but also because of people
Work maloperation, will lead to process flow chart and process flow there is a problem of it is inconsistent.
Currently, being badly in need of a kind of mode for quickly generating process flow chart according to technical flow design, to improve process flow
The drafting efficiency of figure and accuracy.
Summary of the invention
The embodiment of the present invention provides a kind of method for generating process flow chart, to solve in the prior art, using artificial
Mode according to processing flow sequence draw craft flow chart, the technical problem for causing drawing efficiency and accuracy rate relatively low,
This method comprises: obtain process structure tree, wherein in process structure tree include technique between each equipment and each equipment
Connection relationship;According to process structure tree, distributing position of each equipment on interface in technique is determined;According to each in technique
Equipment on interface distributing position and process structure tree in include each equipment between connection relationship, on interface
Generate the process flow chart of technique.
The embodiment of the present invention also provides a kind of device for generating process flow chart, to solve in the prior art, using people
The mode of work according to processing flow sequence draw craft flow chart, ask by the technology for causing drawing efficiency and accuracy rate relatively low
Topic, which includes: process structure tree acquiring unit, for obtaining process structure tree, wherein includes technique in process structure tree
In connection relationship between each equipment and each equipment;Device distribution position determination unit, for according to process structure tree,
Determine distributing position of each equipment on interface in technique;Process flow chart generation unit, for being set according to each in technique
The connection relationship between each equipment for including in standby distributing position and process structure tree on interface, it is raw on interface
At the process flow chart of technique.
The embodiment of the present invention also provides a kind of computer equipment, is pressed by the way of artificial in the prior art to solve
According to processing flow sequence draw craft flow chart, the technical problem for causing drawing efficiency and accuracy rate relatively low, including storage
Device, processor and storage on a memory and the computer program that can run on a processor, processor execution computer program
The method of Shi Shixian above-mentioned generation process flow chart.
The embodiment of the present invention also provides a kind of computer readable storage medium, to solve in the prior art, using artificial
Mode according to processing flow sequence draw craft flow chart, the technical problem for causing drawing efficiency and accuracy rate relatively low,
Computer-readable recording medium storage has the computer program for the method for executing above-mentioned generation process flow chart.
In the embodiment of the present invention, the connection relationship contained in technique between each equipment and each equipment is being got
Process structure tree after, distributing position of each equipment on interface in technique is determined according to process structure tree, then according to each
A equipment on interface distributing position and process structure tree in include each equipment between connection relationship, on interface
Generate process flow chart.Through the embodiment of the present invention, the purpose that process flow chart is automatically generated according to process structure tree is realized,
Improve the drawing efficiency of process flow chart and the accuracy of drawing result.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.In the accompanying drawings:
Fig. 1 is a kind of method flow diagram for generating process flow chart in the embodiment of the present invention;
Fig. 2 is a kind of optional method flow diagram for generating process flow chart in the embodiment of the present invention;
Fig. 3 divides schematic diagram for serial node region in technique a kind of in the embodiment of the present invention;
Fig. 4 is parallel node region division schematic diagram in technique a kind of in the embodiment of the present invention;
Fig. 5 is device node distributing position schematic diagram in technique a kind of in the embodiment of the present invention;
Fig. 6 is a kind of artistic tree structure tree schematic diagram in the embodiment of the present invention;
Fig. 7 is a kind of process flow chart in the embodiment of the present invention;
Fig. 8 is a kind of schematic device for generating process flow chart in the embodiment of the present invention.
Specific embodiment
Understand in order to make the object, technical scheme and advantages of the embodiment of the invention clearer, with reference to the accompanying drawing to this hair
Bright embodiment is described in further details.Here, the illustrative embodiments of the present invention and their descriptions are used to explain the present invention, but simultaneously
It is not as a limitation of the invention.
A kind of method for generating process flow chart is provided in the embodiment of the present invention.Fig. 1 is to generate in the embodiment of the present invention
The method flow diagram of process flow chart, as shown in Figure 1, this method comprises the following steps:
S101 obtains process structure tree, wherein include in process structure tree in technique each equipment and each equipment it
Between connection relationship;
S102 determines distributing position of each equipment on interface in technique according to process structure tree;
S103, it is each according to include in distributing position of the equipment each in technique on interface and process structure tree
Connection relationship between equipment generates the process flow chart of technique on interface.
Specifically, above-mentioned technique refers to the process of carries out production or processing with multiple equipment, including but unlimited
Producing line, workshop in factory etc..Above-mentioned process structure tree is generated according to the physical couplings of equipment each in technique
For determining the tree of connection relationship between each equipment.By process structure tree can determine in technique each equipment it
Between connection relationship.
In order to provide a user intuitive and qualitative analysis, it usually needs draw craft flow chart, if according to existing
Process flow chart draws mode can be according to the information of each equipment of process structure tree determination after generating process structure tree
And the connection relationship between equipment, mapping software is utilized by technological design personnel, adds equipment figure or symbol one by one
Number mode, the draw craft flow chart in drawing interface.Obviously, the efficiency of this drafting mode is very low, and due to manually grasping
It is easy to appear maloperation, so that the process flow chart drawn may influence to tie with process structure tree there are inconsistent place
The accuracy of fruit.
Since process structure tree specifies the connection relationship between each equipment and each equipment in entire technique, because
And, it may be considered that process flow chart is directly automatically generated according to process structure tree, not only can be improved working efficiency in this way, but also can be with
Avoid manual operation.
From the foregoing, it will be observed that in the above embodiment of the present invention, obtains first and contain in technique each equipment and each set
Then the process structure tree of connection relationship between standby determines point of each equipment on interface in technique according to process structure tree
Cloth position, finally according to each equipment on interface distributing position and process structure tree in include each equipment between
Connection relationship generates process flow chart on interface.Through the embodiment of the present invention, it realizes and is automatically generated according to process structure tree
The purpose of process flow chart improves the drawing efficiency of process flow chart and the accuracy of drawing result, and then solves existing
In technology, according to processing flow sequence draw craft flow chart by the way of artificial, drawing efficiency and accuracy rate is caused to compare
Lower technical problem.
Optionally, above-mentioned process structure tree interior joint can include but is not limited to following four kinds: equipment composite node, equipment
Node, attribute composite node, attribute node.Wherein, device node represents each specific equipment, and equipment subordinate's node includes belonging to
Property node or attribute composite node, attribute node is the attribute limit value for representing each equipment, and the specific attribute of equipment is from data
Inquiry obtains in library, and attribute composite node is to represent the set of attribute node.Equipment composite node represents subordinate as multiple equipment
Perhaps equipment composite node contains the serial or concurrency relation of subordinate's node to node.
It in a kind of optional embodiment, reads and writes for ease of people, also for being easy to machine parsing and generate, this hair
Bright embodiment will be stored in database with process structure tree with JSON (JavaScript Object Notation) data format
In, after getting the process structure tree of each technique, each process structure tree is traversed, setting for every level-one can be got
Connection relationship (serial connection or parallel connection) between standby data and equipment.
For example, the data format of the process structure tree stored in the form of JSON is as follows:
In above-mentioned data format, serial/parallel indicates the physical connection mode between child node, at least n expression logic
Relationship only just indicates that father node state is normal when the normal child node quantity of state is not less than n.For example, if one " sets
Standby composite node is " if below with " parallel, at least two ", then it represents that " equipment composite node is " between following child node for this
It is parallel connection, and is not standby there are two child node under " the equipment composite node ", is needing at least two child node just
Often, being somebody's turn to do " equipment composite node " could be normal;If one " equipment composite node " below with " serial, at least two ", then table
Show between the child node of " equipment composite node " below it is serial connection, and should be saved under " equipment composite node " there are two sub
Point is not standby, needs at least two child node normal, and being somebody's turn to do " equipment composite node " could be normal.
By parsing JSON formatted data, the combination of all devices and the set of all devices composite node are obtained, if
Standby includes subordinate's attribute, and equipment composite node includes the string between subordinate's equipment composite node or device node and subordinate's node
Capable or concurrency relation.
In an alternative embodiment, above-mentioned S102 can specifically include following steps: traverse process structure tree step by step
In each node, obtain the number of devices of serial or parallel in the child node quantity and each child node under each node;
The corresponding region of each node is generated in interface, and is multiple subregions by the corresponding region division of each node, wherein every
Sub-regions correspond to a child node, and under the size of each subregion and corresponding child node serial or parallel number of devices at
Direct ratio;Above-mentioned steps are repeated, until the corresponding child node of each subregion is device node on interface, wherein equipment section
Point is the node that an equipment in technique is indicated in process structure tree, and the corresponding subregion of each device node exists for each equipment
Distributing position on interface.
Based on the above embodiment, as an alternative embodiment, generating the corresponding region of each node in interface,
And by the corresponding region division of each node be multiple subregions, specifically can also include: by the corresponding region edge of first node
First change in coordinate axis direction at interface is divided into multiple subregions, wherein the relationship under first node between each child node is string
Row relationship;The second change in coordinate axis direction by the corresponding region of second node along interface is divided into multiple subregions, wherein the second section
Relationship under point between each child node is concurrency relation.
It should be noted that above-mentioned first reference axis can be the horizontal axis at interface for two-dimentional interface, it is also possible to
The longitudinal axis at interface, correspondingly, in the case that the first reference axis is horizontal axis, the second reference axis is the longitudinal axis;First reference axis is the longitudinal axis
In the case where, the second reference axis is horizontal axis.
Based on any one of the above optional embodiment, as an alternative embodiment, being gone here and there when in process structure tree
In the case that capable number of nodes is more than threshold value, according to distributing position of the equipment each in technique on interface and the work
The connection relationship between each equipment for including in skill structure tree generates the process flow chart of technique on interface, specifically can be with
It include: that interface is divided into multiple sub-interfaces;Node serial in process structure tree is split as multiple node sets, and each
The corresponding flow chart of a node set is generated in sub-interface respectively, wherein serial number of nodes is not in each node set
More than threshold value;According to the Serial Relation between serial node, the line in each sub-interface between flow chart is determined;According to each
Line on flow chart and each sub-interface in a sub-interface between flow chart, generates the process flow chart of technique.
Specifically, above-mentioned interface can be the canvas interface for draw craft flow chart, if serial in entire technique
Or parallel equipment is greater than some threshold value, that is, representing a certain change in coordinate axis direction of the process flow chart can be very elongated, then can will draw
Cloth is divide into upper part and lower part, then root node is divided into two nodes on serial, guarantees the serial number of two nodes not
Limit value can be greater than, the two nodes are put into the top and the bottom of painting canvas, then add the line from upper node to following node.Such as
Fruit is divided into two parts and is divided into three parts with regard to consideration not enough, and so on.
By above embodiment, the situation that the process flow chart drawn appearance can be prevented too elongated, i.e., above-mentioned first
The excessive situation of serial number of devices in reference axis or the second reference axis.
The embodiment of the present invention is illustrated below with reference to Fig. 2.Fig. 2 is a kind of optional generation work in the embodiment of the present invention
The method flow diagram of skill flow chart, as shown in Fig. 2, this method comprises the following steps:
S201 obtains the process structure tree of JSON format.
S202 parses the process structure tree of JSON format, obtains device node set and composite node set.Wherein, if
Slave node includes subordinate's attribute node, and composite node includes the relationship between subordinate's node and node.
S203 traverses all set, obtains the serial number and parallel number of each composite node subordinate equipment.Traversal
All node set in the process structure tree of JSON format storage, it can be deduced that the equipment connect under each composite node it is serial
With parallel number.
S204 obtains each serial number of root node subordinate child node since root node.Since root node, if
Certain node subordinate's child node is Serial Relation, then calculates the number of the serial device of all child nodes of subordinate.Default root node
Between be Serial Relation.
S205 is divided on the horizontal axis of interface according to the serial number proportion of each child node.On interface according to
The region of the node on behalf is divided into the region of child node number, each each child node of Regional Representative by ratio in horizontal axis.
Assuming that there are three serial child nodes, respectively node 1, node 2 and node 3 under some node, wherein node 1
Lower node 2 is lower there are three serial device there are two serial device, and node 3 is lower there are two serial device, then region division such as Fig. 3
Shown, at interface X direction, the region of node 1 occupy the 2/7 of interface zone, and the region of node 2 occupies interface zone
3/7, the region of node 3 occupies the 2/7 of interface zone.
S206 obtains the information of each child node.
S207 judges whether child node is composite node.If child node is composite node, S208 is executed;Such as fruit
Node is device node, then executes S210.
S208 judges whether the relationship between composite node subordinate's child node is serial.If composite node subordinate's sub- section
Point between relationship be it is serial, then return execution S205;If the relationship between composite node subordinate's child node be it is parallel, hold
Row S209.
S209 is divided on the longitudinal axis of interface according to the parallel proportion of each child node.If certain node subordinate's
Node is concurrency relation, then the number of the LPT device of all child nodes of subordinate is calculated, proportionally by the node on behalf
Region is divided in y direction according to child node number, each each child node of Regional Representative.
By taking Fig. 3 interior joint 1 as an example, Fig. 4 is parallel node region division schematic diagram in technique a kind of in the embodiment of the present invention,
Assuming that node 1 is lower, there are three parallel node 1.1, node 1.2 and nodes 1.3, wherein node 1.1 is lower, and there are two serial sons
Node (1.1.1 and 1.1.2), wherein there are two under 1.1.2 LPT device (1.1.2.1 and 1.1.2.2), have one under node 1.2
A equipment, node 1.3 is lower there are two LPT device (1.3.1 and 1.3.2), then region division is as shown in figure 4, the longitudinal axis at interface
Direction, the region of node 1.1 occupy the 2/5 of 1 region of node, and the region of node 1.2 occupies the 1/5 of 1 region of node, node 1.3
Region occupy the 2/5 of 1 region of node.
Equipment is placed on the center of device node by S210.If child node is device node, equipment is placed
In the center of device node.
S211 determines layout of all devices on interface in technique.Above-mentioned S208, S205 and S209 are repeated, directly
It is device node to child node, determines layout of all devices on interface in technique.
Fig. 5 shows device node distributing position schematic diagram in a kind of technique, as shown in figure 5, each Regional Representative one
Equipment.From fig. 5, it can be seen that 1 lower three parallel child node of node, i.e. node 1.1, node 1.2 and node 1.3, wherein node
There are two serial child nodes, i.e. node 1.1.1 and node 1.1.2 under 1.1, wherein has an equipment under node 1.1.1, node
It is 1.1.2 lower that there are two parallel equipment, i.e. device node 1.1.2.1 and device node 1.1.2.2;There is one to set under node 1.2
Standby, node 1.3 is lower, and there are two LPT devices, i.e. device node 1.3.1 and device node 1.3.2.Node 2 is lower, and there are three serially set
It is standby, i.e. node 2.1, node 2.2 and node 2.3;Node 3 is lower, and there are three parallel nodes, i.e. node 3.1, node 3.2 and node
3.3, there is an equipment under node 3.1, node 3.2 is lower, and there are two serial device, i.e. node 3.2.1 and node 3.2.2, nodes
There is an equipment under 3.3.
Each region shown in Fig. 5 represents a device node, corresponding equipment can be placed on each region
Center, to obtain layout of all devices on interface in technique.
S212 determines the position of line between equipment according to the connection relationship between equipment.Each equipment is put in process
It sets behind the center in each region, according to the connection relationship between the equipment for including in process structure tree, determines each set
The position of line between standby.
S213 according to the position draw craft flow chart of line between device layout and equipment, and returns to process flow chart
ID.In determining technique each equipment be laid out on interface and each equipment between line position after, can draw automatically
Process flow chart out.Optionally, each process flow chart can be identified by an ID, and be built with corresponding process structure tree
Vertical corresponding relationship.
S214, client carry out checking process flow chart according to process flow chart ID.
As an alternative embodiment, above-mentioned client can be the terminal device for Process configuration design, packet
Include but be not limited to mobile phone, tablet computer, laptop, computer etc..Technological design personnel can be by client, in WEB
Foreground carries out Process configuration design, including enterprise's subordinate's producing line and producing line subordinate's technique, technique subordinate include various equipment with
And the serial or concurrency relation of equipment room, with formation process structure tree.
It should be noted that the embodiment of the present invention can be by calling the interface of any one graphics software, according to technique
Structure tree generates corresponding process flow chart, client can by the corresponding process flow chart of process flow chart ID range, with
Just technological design personnel intuitively, clearly check the connection relationship in technique between each equipment and each equipment.
Fig. 6 is a kind of artistic tree structure tree schematic diagram in the embodiment of the present invention, as shown in fig. 6, having three under technique groups test
A node, respectively " producing dirty test 1 ", " pollution treatment test 1 " and " row's mouth test 1 ", this three node is composite node, wherein
Produce 2 child nodes for having connection of getting lines crossed under dirty test 1, respectively " 10kV inlet wire " (device node) and " producing dirt 1 " (compound section
Point), there are two equipment of parallel connection, i.e. " workshop total input-wire " and " workshop gateway " under " producing dirt 1 ";Have under " pollution treatment test 1 "
Two child nodes of parallel connection, respectively " pollution treatment test 2 " (composite node) and " air-introduced machine " (device node), " pollution treatment is surveyed
There are two the equipment being connected in series, i.e. " workshop illumination " and " electrostatic precipitation 2 " under examination 2 ";Have under " row mouth test 1 " one it is parallel
Equipment, i.e., " electrostatic precipitation 1 ".
Fig. 7 is the process flow chart generated according to process structure tree shown in fig. 6, as shown in fig. 7, the technique of entire technique
In flow chart, can it is intuitive, it can be clearly seen that each equipment and each equipment (10kV inlet wire, workshop total input-wire, vehicle in technique
Between gateway, workshop illumination, electrostatic precipitation 1, electrostatic precipitation 2 and air-introduced machine) between connection relationship.
A kind of device for generating process flow chart is additionally provided in the embodiment of the present invention, as described in the following examples.By
It is similar to the method for process flow chart is generated in the principle that these modules solve the problems, such as, therefore the standby implementation of these modules can be joined
The implementation of square method, overlaps will not be repeated.
Fig. 8 is a kind of schematic device for generating process flow chart in the embodiment of the present invention, as shown in figure 8, the device packet
It includes: process structure tree acquiring unit 81, device distribution position determination unit 82 and process flow chart generation unit 83.
Wherein, process structure tree acquiring unit 81, for obtaining process structure tree, wherein include work in process structure tree
Connection relationship in skill between each equipment and each equipment;Device distribution position determination unit 82, for according to technique knot
Paper mulberry determines distributing position of each equipment on interface in technique;Process flow chart generation unit 83, for according in technique
Each equipment on interface distributing position and process structure tree in include each equipment between connection relationship, on boundary
The process flow chart of technique is generated on face.
From the foregoing, it will be observed that containing technique by the acquisition of process structure tree acquiring unit 81 in the above embodiment of the present invention
In connection relationship between each equipment and each equipment process structure tree, pass through device distribution position determination unit 82
Distributing position of each equipment on interface in technique is determined according to process structure tree, passes through 83 basis of process flow chart generation unit
Each equipment on interface distributing position and process structure tree in include each equipment between connection relationship, at interface
Upper generation process flow chart.Through the embodiment of the present invention, the mesh that process flow chart is automatically generated according to process structure tree is realized
, the drawing efficiency of process flow chart and the accuracy of drawing result are improved, and then solve in the prior art, using artificial
Mode according to processing flow sequence draw craft flow chart, the technical problem for causing drawing efficiency and accuracy rate relatively low.
In an alternative embodiment, above equipment distributing position determination unit 82 may include: process equipment traversal
Module 821 obtains the child node quantity under each node, and every for traversing each node in process structure tree step by step
The number of devices of serial or parallel in a child node;Equipment region division module 822, for generating each node pair in interface
The region answered, and be multiple subregions by the corresponding region division of each node, wherein the corresponding son section of each subregion
Point, and the size of each subregion is directly proportional to the number of devices of serial or parallel under corresponding child node;Loop control module
823, the function for controlling process equipment spider module and equipment region division module repeats, until height every on interface
The corresponding child node in region is device node, wherein device node is the section that an equipment in technique is indicated in process structure tree
Point, the corresponding subregion of each device node are distributing position of each equipment on interface.
In an alternative embodiment, above equipment region division module 822 may include: that the first sub- equipment region is drawn
Sub-module is divided into multiple subregions for the first change in coordinate axis direction by the corresponding region of first node along interface, wherein the
Relationship under one node between each child node is Serial Relation;Second sub- equipment region division module is used for second node
Second change in coordinate axis direction of the corresponding region along interface is divided into multiple subregions, wherein under second node each child node it
Between relationship be concurrency relation.
Based on the above embodiment, in the case that root node quantity serial in process structure tree is more than threshold value, as one
The optional embodiment of kind, above-mentioned process flow chart generation unit 83 may include: boundary division module 831, be used for interface
It is divided into multiple sub-interfaces;Sub-interface flow chart generation module 832, it is multiple for node serial in process structure tree to be split as
Node set, and generate the corresponding flow chart of a node set respectively in each sub-interface, wherein in each node set
Serial number of nodes is no more than threshold value;Sub-interface line determining module 833, for according to the serial pass between serial node
System, determines the line in each sub-interface between flow chart;Process flow chart generation module 834, for according to each sub-interface
On flow chart and each sub-interface on line between flow chart, generate the process flow chart of technique.
It additionally provides a kind of computer equipment in the embodiment of the present invention, including memory, processor and is stored in memory
Computer program that is upper and can running on a processor, processor is realized in above method embodiment when executing computer program appoints
The method of one generation process flow chart.
A kind of computer readable storage medium is additionally provided in the embodiment of the present invention, computer-readable recording medium storage has
Execute the computer program of any method for generating process flow chart in above method embodiment.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention
Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more,
The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces
The form of product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
Particular embodiments described above has carried out further in detail the purpose of the present invention, technical scheme and beneficial effects
Describe in detail it is bright, it should be understood that the above is only a specific embodiment of the present invention, the guarantor being not intended to limit the present invention
Range is protected, all within the spirits and principles of the present invention, any modification, equivalent substitution, improvement and etc. done should be included in this
Within the protection scope of invention.
Claims (10)
1. a kind of method for generating process flow chart characterized by comprising
Obtain process structure tree, wherein in the process structure tree include technique between each equipment and each equipment
Connection relationship;
According to the process structure tree, distributing position of each equipment on interface in the technique is determined;
It each is set according to include in distributing position of the equipment each in the technique on interface and the process structure tree
Connection relationship between standby, generates the process flow chart of the technique on the interface.
2. the method as described in claim 1, which is characterized in that according to the process structure tree, determine each in the technique
Distributing position of the equipment on interface, comprising:
Each node in the process structure tree is traversed step by step, obtains the child node quantity under each node and every height
The number of devices of serial or parallel on node;
The corresponding region of each node is generated in interface, and is multiple subregions by the corresponding region division of each node,
In, the corresponding child node of each subregion, and the equipment of the size of each subregion and serial or parallel under corresponding child node
Quantity is directly proportional;
Above-mentioned steps are repeated, until the corresponding child node of each subregion is device node on interface, wherein the equipment
Node is the node of an equipment in expression technique in the process structure tree, and the corresponding subregion of each device node is each
Distributing position of the equipment on interface.
3. method according to claim 2, which is characterized in that generate the corresponding region of each node in interface, and will be every
The corresponding region division of a node is multiple subregions, comprising:
The first change in coordinate axis direction by the corresponding region of first node along interface is divided into multiple subregions, wherein described first
Relationship under node between each child node is Serial Relation;
The second change in coordinate axis direction by the corresponding region of second node along interface is divided into multiple subregions, wherein described second
Relationship under node between each child node is concurrency relation.
4. such as method any one of claims 1 to 3, which is characterized in that the serial node in the process structure tree
In the case that quantity is more than threshold value, according to distributing position and the technique knot of the equipment each in the technique on interface
The connection relationship between each equipment for including in paper mulberry, generates the process flow chart of the technique on the interface, comprising:
The interface is divided into multiple sub-interfaces;
Node serial in the process structure tree is split as multiple node sets, and generates one respectively in each sub-interface
The corresponding flow chart of a node set, wherein serial number of nodes is no more than the threshold value in each node set;
According to the Serial Relation between the serial node, the line in each sub-interface between flow chart is determined;
According in each sub-interface flow chart and each sub-interface on line between flow chart, generate the work of the technique
Skill flow chart.
5. a kind of device for generating process flow chart characterized by comprising
Process structure tree acquiring unit, for obtaining process structure tree, wherein comprising each in technique in the process structure tree
Connection relationship between equipment and each equipment;
Device distribution position determination unit, for determining that each equipment is at interface in the technique according to the process structure tree
On distributing position;
Process flow chart generation unit, for according to distributing position of the equipment each in the technique on interface and described
The connection relationship between each equipment for including in process structure tree, generates the process flow of the technique on the interface
Figure.
6. device as claimed in claim 5, which is characterized in that the device distribution position determination unit includes:
Process equipment spider module obtains under each node for traversing each node in the process structure tree step by step
The number of devices of serial or parallel in child node quantity and each child node;
Equipment region division module, for generating the corresponding region of each node in interface, and by the corresponding area of each node
Domain is divided into multiple subregions, wherein the corresponding child node of each subregion, and the size of each subregion and corresponding son save
The number of devices of the lower serial or parallel of point is directly proportional;
Loop control module, the function for controlling the process equipment spider module and the equipment region division module repeat
It executes, until the corresponding child node of each subregion is device node on interface, wherein the device node is the technique knot
Indicate that the node of an equipment in technique, the corresponding subregion of each device node are point of each equipment on interface in paper mulberry
Cloth position.
7. device as claimed in claim 6, which is characterized in that the equipment region division module includes:
First sub- equipment region division module is divided for the first change in coordinate axis direction by the corresponding region of first node along interface
For multiple subregions, wherein the relationship under the first node between each child node is Serial Relation;
Second sub- equipment region division module is divided for the second change in coordinate axis direction by the corresponding region of second node along interface
For multiple subregions, wherein the relationship under the second node between each child node is concurrency relation.
8. the device as described in any in claim 5 to 7, which is characterized in that the serial root section in the process structure tree
In the case that point quantity is more than threshold value, the process flow chart generation unit includes:
Boundary division module, for the interface to be divided into multiple sub-interfaces;
Sub-interface flow chart generation module, for node serial in the process structure tree to be split as multiple node sets,
And generate the corresponding flow chart of a node set respectively in each sub-interface, wherein serial section in each node set
Point quantity is no more than the threshold value;
Sub-interface line determining module, for determining in each sub-interface according to the Serial Relation between the serial node
Line between flow chart;
Process flow chart generation module, for according in each sub-interface flow chart and each sub-interface between flow chart
Line, generate the process flow chart of the technique.
9. a kind of computer equipment including memory, processor and stores the meter that can be run on a memory and on a processor
Calculation machine program, which is characterized in that realize that claim 1 to 5 is any described when the processor executes the computer program
The method for generating process flow chart.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has perform claim
It is required that the computer program of 1 to 5 any method for generating process flow chart.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811396956.2A CN109190326B (en) | 2018-11-22 | 2018-11-22 | Method and device for generating process flow chart |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811396956.2A CN109190326B (en) | 2018-11-22 | 2018-11-22 | Method and device for generating process flow chart |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109190326A true CN109190326A (en) | 2019-01-11 |
CN109190326B CN109190326B (en) | 2024-01-30 |
Family
ID=64940482
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811396956.2A Active CN109190326B (en) | 2018-11-22 | 2018-11-22 | Method and device for generating process flow chart |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109190326B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109872124A (en) * | 2019-01-25 | 2019-06-11 | 广州奥咨达医疗器械技术股份有限公司 | Medical instrument research and development project management method and system |
CN110058849A (en) * | 2019-03-13 | 2019-07-26 | 平安普惠企业管理有限公司 | Generation method, device, computer equipment and the storage medium of flow chart |
CN113570683A (en) * | 2021-09-23 | 2021-10-29 | 矿冶科技集团有限公司 | Method and device for generating process flow chart and electronic equipment |
US11360463B2 (en) | 2020-06-16 | 2022-06-14 | Saudi Arabian Oil Company | Dynamic online process flow diagraming |
CN116300749A (en) * | 2023-03-21 | 2023-06-23 | 北京天圣华信息技术有限责任公司 | Process flow editing method and device, control system terminal and storage medium |
CN117035370A (en) * | 2023-10-08 | 2023-11-10 | 北京凯锐远景科技有限公司 | Method, device, equipment and storage medium for generating process route pattern |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101770523A (en) * | 2008-12-29 | 2010-07-07 | 北京卫星环境工程研究所 | Design method of production flow |
CN103020750A (en) * | 2012-11-19 | 2013-04-03 | 北京数码大方科技股份有限公司 | Process report generation method and device |
CN103488479A (en) * | 2013-09-04 | 2014-01-01 | 用友软件股份有限公司 | Dynamic generating device for client end interface and dynamic generating method for client end interface |
CN103714080A (en) * | 2012-09-29 | 2014-04-09 | 北京百度网讯科技有限公司 | Spatial index structure tree based method and device for providing results of searching spatial objects |
CN104331336A (en) * | 2014-11-21 | 2015-02-04 | 北京应用物理与计算数学研究所 | Multilayer nest load balancing method matched with high-performance computer structure |
CN104820764A (en) * | 2015-05-26 | 2015-08-05 | 中国电子科技集团公司第三十八研究所 | Method and device for producing electronic assembly technologic document |
WO2016196163A1 (en) * | 2015-05-29 | 2016-12-08 | Intentional Software Corporation | System and method for combining text editing and tree encoding for computer programs |
CN108319991A (en) * | 2017-01-16 | 2018-07-24 | 航天信息股份有限公司 | A kind of node engineering wiring diagram determines method and device |
CN108540302A (en) * | 2017-03-03 | 2018-09-14 | 腾讯科技(深圳)有限公司 | A kind of method and apparatus of big data processing |
-
2018
- 2018-11-22 CN CN201811396956.2A patent/CN109190326B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101770523A (en) * | 2008-12-29 | 2010-07-07 | 北京卫星环境工程研究所 | Design method of production flow |
CN103714080A (en) * | 2012-09-29 | 2014-04-09 | 北京百度网讯科技有限公司 | Spatial index structure tree based method and device for providing results of searching spatial objects |
CN103020750A (en) * | 2012-11-19 | 2013-04-03 | 北京数码大方科技股份有限公司 | Process report generation method and device |
CN103488479A (en) * | 2013-09-04 | 2014-01-01 | 用友软件股份有限公司 | Dynamic generating device for client end interface and dynamic generating method for client end interface |
CN104331336A (en) * | 2014-11-21 | 2015-02-04 | 北京应用物理与计算数学研究所 | Multilayer nest load balancing method matched with high-performance computer structure |
CN104820764A (en) * | 2015-05-26 | 2015-08-05 | 中国电子科技集团公司第三十八研究所 | Method and device for producing electronic assembly technologic document |
WO2016196163A1 (en) * | 2015-05-29 | 2016-12-08 | Intentional Software Corporation | System and method for combining text editing and tree encoding for computer programs |
CN108319991A (en) * | 2017-01-16 | 2018-07-24 | 航天信息股份有限公司 | A kind of node engineering wiring diagram determines method and device |
CN108540302A (en) * | 2017-03-03 | 2018-09-14 | 腾讯科技(深圳)有限公司 | A kind of method and apparatus of big data processing |
Non-Patent Citations (1)
Title |
---|
张杨等: "三维装配工艺结构树与装配工艺流程映射方法", 《制造业自动化》 * |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109872124A (en) * | 2019-01-25 | 2019-06-11 | 广州奥咨达医疗器械技术股份有限公司 | Medical instrument research and development project management method and system |
CN110058849A (en) * | 2019-03-13 | 2019-07-26 | 平安普惠企业管理有限公司 | Generation method, device, computer equipment and the storage medium of flow chart |
US11360463B2 (en) | 2020-06-16 | 2022-06-14 | Saudi Arabian Oil Company | Dynamic online process flow diagraming |
CN113570683A (en) * | 2021-09-23 | 2021-10-29 | 矿冶科技集团有限公司 | Method and device for generating process flow chart and electronic equipment |
CN116300749A (en) * | 2023-03-21 | 2023-06-23 | 北京天圣华信息技术有限责任公司 | Process flow editing method and device, control system terminal and storage medium |
CN116300749B (en) * | 2023-03-21 | 2023-09-26 | 北京天圣华信息技术有限责任公司 | Process flow editing method and device, control system terminal and storage medium |
CN117035370A (en) * | 2023-10-08 | 2023-11-10 | 北京凯锐远景科技有限公司 | Method, device, equipment and storage medium for generating process route pattern |
CN117035370B (en) * | 2023-10-08 | 2024-03-26 | 北京凯锐远景科技有限公司 | Method, device, equipment and storage medium for generating process route pattern |
Also Published As
Publication number | Publication date |
---|---|
CN109190326B (en) | 2024-01-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109190326A (en) | Generate the method and device of process flow chart | |
CN104616207B (en) | Power network topology visualization system and method | |
CN102663181B (en) | Automatic drawing method of distribution network diagram | |
CN109167686B (en) | Layout and display method based on multilayer complex network topology | |
CN102394778B (en) | The display methods and device of network topology | |
CN111382483A (en) | Station yard graph engineering method, device and equipment | |
CN109192054A (en) | A kind of data processing method and device of map area merging | |
CN102103650A (en) | Three-dimensional simulation arrangement-along construction method for power transmission line | |
CN103208225A (en) | Tile map manufacturing method and system | |
CN110363828A (en) | A kind of method for drawing flow chart and the equipment for drawing flow chart | |
CN105718643A (en) | Optimization view angle based ship production design drawing-inspection device implementation method | |
CN109656654A (en) | The edit methods and computer readable storage medium of large-size screen monitors scene | |
JP7264989B2 (en) | Visualization method, device and recording medium for multi-source earth observation image processing | |
CN105447765A (en) | Distribution network feeder automatic mapping method | |
CN108108194A (en) | User interface edit methods and user interface editing machine | |
CN109324796A (en) | Quick interface arrangement method and device | |
CN104699863A (en) | Webpage data display system | |
CN108595613A (en) | GIS local maps edit methods and device | |
CN109471899A (en) | A kind of method for visualizing, device and its storage medium | |
CN106846431B (en) | Unified Web graph drawing system supporting multiple expression forms | |
CN106296575B (en) | Model and picture merging and separation method and system based on BIM | |
CN108846901A (en) | Model introduction method and device | |
CN111275788B (en) | Graph synthesis method based on commonality template graph and differential topological graph | |
CN109299310A (en) | A kind of screen picture takes color and searching method and system | |
CN103488844B (en) | A kind of Net Frame of Electric Network figure automatic wiring method based on plant stand geography information |
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 |