Draw veneer and connect fine distribution method and the system that schemes preceding veneer coordinate
Technical field
The present invention relates to optical communication field, relate in particular to a kind of distribution method and system that veneer connects the preceding veneer coordinate of fine figure of drawing.
Background technology
Along with developing rapidly of optical-fiber network; The optical-fiber network website becomes increasingly complex, and classifies according to function, and the optical-fiber network website comprises OTM (Optical Touch Module; Optical terminus is multiplexing) website, OADM (Optical Add-Drop Multiplexer; OADM) website, OLA (Optical Line Amplifier, optical link amplifies) website, ROADM (Reconfigurable Optical Add-Drop Multiplexer, configurable OADM) website; Each website all can comprise a plurality of dissimilar veneers, links to each other through optical fiber between veneer.Board type be broadly divided into amplify a type veneer, close partial wave class veneer, service class veneer, power division class veneer, protection type veneer etc.A lot of different veneers are arranged again below each board type, below amplification type veneer, power amplification veneer, rearmounted veneer, the node amplification veneer etc. of amplifying are arranged.
The veneer that different optical-fiber network websites are configured is relevant with type of site, website dimension, website institute loaded service, wave number, optical fiber parameter etc.; Can also carry out particular arrangement to veneer according to special requirement, the veneer that therefore different engineering configured is generally all different.For example, two ROADM websites, only this attribute of directional dependency is different, and the veneer that both configured is just far from each other.
Sometimes for requirement of engineering, need obtain the fine relation of property of single plate, the company between veneer of different optical-fiber network websites, and be depicted as drawing.Veneer connects the engineering drawing that fine figure is the optical fiber connection relation between veneer in the reflection optical-fiber network website.Veneer connects the groove bit address of the flow direction that fine figure not only identified light signal in a certain website, veneer and connects fine port, has also reflected the position relation between veneer or has connected fine relation.Before drawing the even fine figure of veneer, need obtain the attribute of veneer earlier, and be the veneer coordinates assigned.
Prior art is the veneer coordinates assigned through following method generally:
With (the Optical Distribution Frame of the ODF in the website; Fibre distribution frame) as origin coordinates; Search the fine relation of company between veneer along a direction of current A, promptly search the contiguous veneer that connects ODF, again according to the input port of port rule through this contiguous veneer according to the output port of ODF; Search the output port of this vicinity veneer; Search next piece veneer through the output port that finds then, search downwards successively, till ODF that finds other dimension or following road veneer by this rule.With same method, search the fine relation of company between veneer along another direction of current B, till ODF that finds other dimension or following road veneer.In the said method, whenever finding a veneer, just equally spaced is the veneer coordinates assigned that finds.
There is following shortcoming in prior art: 1) when the electric current of A direction and B direction during all through same veneer (is two-way shared veneer to call this veneer in the following text), this two-way shared veneer possibly be assigned with two coordinates, has the mistake of coordinate duplicate allocation; 2) can not effectively support the coordinate assignment of vertical direction (usually up and down the road veneer is drawn by vertical direction), expansion bothers with self-defined coordinate assignment rule; 3) coordinate assignment efficient is low, and coordinate assignment does not meet artificial experience; 4) the veneer drafting is attractive in appearance inadequately, especially for multidimensional ROADM website, can't see the flow direction relation of signal clearly very clearly, and ease for use is bad.
Summary of the invention
The objective of the invention is to, a kind of distribution method and system that veneer connects the preceding veneer coordinate of fine figure of drawing is provided, distribute veneer coordinate time, the problem that coordinate assignment efficient is low, coordinate assignment does not meet artificial experience to solve prior art.
The present invention solves the problems of the technologies described above through following technical scheme:
A kind of veneer of drawing connects the fine distribution method of scheming preceding veneer coordinate, and said method may further comprise the steps:
The veneer of coordinate to be allocated is constructed with the veneer object of drawing attribute, and above-mentioned veneer object is saved in the memory device that is loaded with the veneer template;
In above-mentioned veneer template, search the drawing attribute target single board object consistent, and give above-mentioned current single board object the veneer coordinate assignment of above-mentioned target single board object with the drawing attribute of current single board object.
After finding above-mentioned target single board, give above-mentioned current single board object with the veneer coordinate assignment of above-mentioned target single board object before, also carry out following steps:
Judge whether above-mentioned current single board object is the two-way shared veneer object that was assigned with coordinate, if not, then:
Judge above-mentioned current single board object previous veneer object board type whether with the board type coupling of the previous veneer object of above-mentioned target single board object, if, then:
Judge above-mentioned current single board object a back veneer object board type whether with the board type coupling of the back veneer object of above-mentioned target single board object; If then carry out the step of the coordinate assignment of above-mentioned target single board object being given above-mentioned current single board object.
Before the veneer of coordinate to be allocated is constructed with the veneer object of drawing attribute, further comprising the steps of:
Create the veneer template, on above-mentioned veneer module, be provided with and a plurality ofly preset the veneer object, and drawing attribute and coordinate attributes are set for each above-mentioned veneer object that presets.
Above-mentioned drawing attribute comprises light type of site, light website dimension, crowd road or road, signal move towards up and down; Above-mentioned coordinate attributes comprises that above-mentioned veneer coordinate, the veneer that presets veneer object correspondence moves towards, moves towards at interval and the above-mentioned board type that presets a previous and back veneer object of veneer object; Above-mentioned veneer trend comprises straight up, straight down, level left, level to the right.
The veneer object step that the veneer of coordinate to be allocated is constructed with drawing attribute specifically comprises:
In the optical-fiber network website, be starting point with the fibre distribution frame, searchlight signal stream all veneers and the port of process, and the veneer that searches is made as the veneer of coordinate to be allocated;
The veneer of above-mentioned coordinate to be allocated is configured to the veneer object; According to the pairing smooth type of site of the veneer of above-mentioned coordinate to be allocated, light website dimension, crowd road or road, signal trend up and down, be that the pairing veneer object of the veneer of above-mentioned coordinate to be allocated distributes drawing attribute;
Obtain last No. one veneer and the board type of next road veneer of the veneer of above-mentioned coordinate to be allocated, and it is saved in the pairing veneer object of veneer of above-mentioned coordinate to be allocated.
The veneer coordinate assignment of above-mentioned target single board object is given after the above-mentioned current single board object, further comprising the steps of:
Judge and be assigned with in the veneer object of coordinate; Whether there be the drawing attribute similar veneer object consistent with the drawing attribute of above-mentioned current single board object; And the board type of the board type of the previous veneer object of above-mentioned similar veneer object and the previous veneer object of above-mentioned current single board object coupling, the board type coupling of the board type of a back veneer object of above-mentioned similar veneer object and a back veneer object of above-mentioned current single board object;
If then horizontal ordinate or the ordinate to all similar veneer objects takes absolute value, find out the maximum similar veneer object of absolute value, and it is made as benchmark veneer object;
Move towards, move towards at interval according to the veneer coordinate of said reference veneer object and the veneer of above-mentioned target single board object, the veneer coordinate of above-mentioned current single board object is reseted.
Move towards, move towards at interval according to the veneer coordinate of said reference veneer object and the veneer of above-mentioned target single board object, the veneer coordinate of above-mentioned current single board object is reseted step specifically comprise:
If the veneer of above-mentioned target single board object trend is for straight up, then the ordinate with said reference veneer object adds moving towards at interval of above-mentioned target single board object, and the ordinate that calculates is made as the new ordinate of above-mentioned current single board object;
If the veneer of above-mentioned target single board object trend is for straight down, then the ordinate with said reference veneer object deducts moving towards at interval of above-mentioned target single board, and the ordinate that calculates is made as the new ordinate of above-mentioned current single board object;
If the veneer of above-mentioned target single board object trend for level left, then the horizontal ordinate with said reference veneer object deducts moving towards at interval of above-mentioned target single board, and the horizontal ordinate that calculates is made as the new horizontal ordinate of above-mentioned current single board object.
If the veneer of above-mentioned target single board object trend for level to the right, then the horizontal ordinate with said reference veneer object adds moving towards at interval of above-mentioned target single board, and the horizontal ordinate that calculates is made as the new horizontal ordinate of above-mentioned current single board object.
The present invention also adopts following technical scheme:
A kind of veneer coordinate assignment system, said system comprises: veneer object constructing module, drawing attribute matching module and veneer coordinate assignment module;
Above-mentioned veneer object constructing module is used for the veneer of coordinate to be allocated is constructed with the veneer object of drawing attribute, and above-mentioned veneer object is saved in the memory device that is loaded with the veneer template;
Above-mentioned drawing attribute matching module is used for searching the drawing attribute target single board object consistent with the drawing attribute of current single board object in above-mentioned veneer template;
Above-mentioned veneer coordinate assignment module is used for when finding the target single board object, gives above-mentioned current single board object with the veneer coordinate assignment of above-mentioned target single board object.
Said system also comprises: veneer template establishment module, website veneer search module and drawing attribute distribution module;
Above-mentioned veneer template establishment module is used to create the veneer template, on above-mentioned veneer module, is provided with a plurality ofly to preset the veneer object, and for each above-mentioned veneer object that presets drawing attribute and coordinate attributes is set;
Above-mentioned website veneer search module, being used at the optical-fiber network website is starting point with the fibre distribution frame, searchlight signal stream all veneers and the port of process, and the veneer that searches is made as the veneer of coordinate to be allocated;
Above-mentioned drawing attribute distribution module is used for according to the pairing smooth type of site of the veneer of above-mentioned coordinate to be allocated, light website dimension, crowd road or road, signal trend up and down, is that the pairing veneer object of the veneer of above-mentioned coordinate to be allocated distributes drawing attribute.
Said system also comprises: common veneer judge module, last veneer are judged template and back one veneer judge module;
Above-mentioned shared veneer judge module is used to judge whether above-mentioned current single board object is the two-way shared veneer object that was assigned with coordinate;
Above-mentioned last veneer is judged template, be used to judge above-mentioned current single board object previous veneer object board type whether with the board type coupling of the previous veneer object of above-mentioned target single board object;
Above-mentioned back one veneer judge module, be used to judge above-mentioned current single board object a back veneer object board type whether with the board type coupling of the back veneer object of above-mentioned target single board object.
Said system also comprises: module is set for similar veneer judge module, benchmark veneer and the veneer coordinate is reseted module;
Above-mentioned similar veneer judge module; Be used for judging the veneer object that was assigned with coordinate; Whether there be the drawing attribute similar veneer object consistent with the drawing attribute of above-mentioned current single board object; And the board type of the board type of the previous veneer object of above-mentioned similar veneer object and the previous veneer object of above-mentioned current single board object coupling, the board type coupling of the board type of a back veneer object of above-mentioned similar veneer object and a back veneer object of above-mentioned current single board object;
The said reference veneer is provided with module, is used for the horizontal ordinate or the ordinate of all similar veneer objects are taken absolute value, and finds out the maximum similar veneer object of absolute value, and it is made as benchmark veneer object;
Above-mentioned veneer coordinate is reseted module, is used for moving towards, moving towards at interval according to the veneer coordinate of said reference veneer object and the veneer of above-mentioned target single board object, and the veneer coordinate of above-mentioned current single board object is reseted.
Compare with prior art, the present invention has following useful technique effect: 1) the present invention makes full use of the paper space according to artificial experience definition veneer template, according to veneer position, custom location, can improve the ease for use that veneer connects fine figure; 2) veneer model customization property of the present invention is strong, and the veneer coordinate also is configurable, therefore can satisfy different user's requests; 3) favorable expandability of the present invention when newly-increased veneer or veneer configuration rule change, only needs to revise a veneer template and gets final product.
Description of drawings
Accompanying drawing described herein is used to provide further understanding of the present invention, constitutes a part of the present invention, and illustrative examples of the present invention and explanation thereof are used to explain the present invention, does not constitute improper qualification of the present invention.In the accompanying drawings:
Fig. 1 draws the process flow diagram that veneer connects the distribution method of the preceding veneer coordinate of fine figure in the preferred embodiment of the present invention;
Fig. 2 is the module frame chart of veneer coordinate assignment system in the preferred embodiment of the present invention.
Embodiment
In order to make technical matters to be solved by this invention, technical scheme and beneficial effect clearer, clear,, the present invention is further elaborated below in conjunction with accompanying drawing and embodiment.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
Fig. 1 draws the process flow diagram that veneer connects the distribution method of the preceding veneer coordinate of fine figure in the preferred embodiment of the present invention.As shown in Figure 1, the method for this preferred embodiment may further comprise the steps:
Step S101: create the veneer template, on above-mentioned veneer module, be provided with and a plurality ofly preset the veneer object, and drawing attribute and coordinate attributes are set for each above-mentioned veneer object that presets;
The present invention is through creating the veneer module; And a plurality of veneers that preset with different drawing attributes are set in the veneer template; Thereby when certain presets the drawing attribute coupling of veneer in the drawing attribute of the veneer object of coordinate to be allocated and the veneer template, can this be preset the veneer object that veneer coordinate assignment in the coordinate attributes of veneer is given coordinate to be allocated.Wherein, drawing attribute can be drawn the optical-fiber network website that veneer connects fine figure as required and is provided with.In the present embodiment, above-mentioned drawing attribute comprises light type of site, light website dimension, crowd road or road, signal move towards up and down.Above-mentioned coordinate attributes comprises that above-mentioned veneer coordinate, the veneer that presets veneer object correspondence moves towards, moves towards at interval and the above-mentioned board type that presets a previous and back veneer object of veneer object.Above-mentioned veneer trend comprises straight up, straight down, level left, level is to the right.
Step S102: in the optical-fiber network website, be starting point with the fibre distribution frame, searchlight signal stream all veneers and the port of process, the veneer that searches out is made as the veneer of coordinate to be allocated;
During search, can be the search starting point with fibre distribution frame ODF, along torrent of light the direction of process search for, up to the ODF that searches another dimension or down till the veneer of road.Because searching method is a prior art, omits further specifying it here.
Step S103: the veneer of above-mentioned coordinate to be allocated is constructed with the veneer object of drawing attribute, obtain the veneer object last No. one veneer and next road veneer board type and it is saved in the above-mentioned veneer object.
In the present embodiment, can according to the pairing smooth type of site of the veneer of above-mentioned coordinate to be allocated, light website dimension, crowd road or road, signal trend be veneer object distribution drawing attribute up and down.The veneer object of coordinate to be allocated and above-mentioned veneer template all can be kept in the computer memory device, and the presetting veneer and all can called and compared by computing machine of the veneer object of coordinate to be allocated and above-mentioned veneer template.
Step S104: the veneer object that takes out a unallocated coordinate is searched the drawing attribute target single board object consistent with the drawing attribute of current single board object as the current single board object in above-mentioned veneer template;
For example, suppose that having one in the veneer template presets the veneer object, its type of site is " a ROADM website "; The website dimension is 2 dimensions; Board type is " OA (Optical Amplifier, optical link an amplifies) veneer ", and the signal trend is " getting into veneer from ODF "; And the current single board object is the OA veneer object on the 2 dimension ROADM websites, and the signal trend is similarly " getting into veneer from ODF ", and it is consistent with the drawing attribute of current single board object to judge that then this presets the veneer object, and this presets veneer and is the target single board object.
Step S105: after finding the target single board object; Judge whether the current single board object is the two-way shared veneer object that was assigned with coordinate; If not, then the board type of the previous veneer of the board type of the previous veneer of current single board object and above-mentioned target single board object is compared;
Present embodiment has been introduced mechanism for correcting errors, if the current single board object is two-way shared veneer, and has been assigned with coordinate time, then no longer for it distributes the veneer coordinate, therefore can avoid the duplicate allocation of veneer coordinate.
Step S106: when comparison is consistent, the board type of the back veneer of the board type of the back veneer of current single board object and above-mentioned target single board object is compared;
Owing to possibly have the identical veneer of a plurality of drawing attributes in the optical-fiber network website; And be distributed in the diverse location of signal flow; Therefore after finding the target single board object; If a previous and back veneer of current single board object is mapped with a previous and back veneer that presets veneer respectively, carry out the board type coupling of adjacent veneer, the accuracy that can improve veneer object coupling.
Step S107: when comparison is consistent, give the current single board object with the veneer coordinate assignment of above-mentioned target single board object;
If the drawing attribute of above-mentioned current single board object is consistent with the drawing attribute of above-mentioned target single board object; And find through comparison: the board type of the previous veneer of above-mentioned current single board object is consistent with the board type of the previous veneer of above-mentioned target single board object, and the board type of a back veneer of above-mentioned current single board object is consistent with the board type of the previous veneer of above-mentioned target single board object; So just can give the current single board object with the veneer coordinate assignment of above-mentioned target single board object.
In step S107, suppose that the veneer coordinate of the above-mentioned target single board object of above-mentioned veneer template is set to (280,110), then this veneer coordinate (280,110) is distributed to above-mentioned current single board object.The veneer coordinate that this moment, the current single board object obtained may conflict with some veneer coordinates that was assigned with the veneer object of coordinate.This is because may have some similar veneers in the optical-fiber network website; Not only drawing attribute is identical; Even the board type of its previous and back veneer is also mutually the same; At this moment these similar veneers can with the same target single board object coupling in the veneer template, so in a single day these similar veneers be assigned with after the veneer coordinate, also need carry out the coordinate adjustment according to the veneer trend of target single board object.Following steps will specify, and the present invention has distributed for the veneer object after the veneer coordinate, the veneer coordinate is optimized the scheme of adjustment.
Step S108: judge to be assigned with in the veneer of coordinate; Whether have the drawing attribute similar veneer object consistent, and the last veneer of board type and the current single board object of its last veneer, back one veneer, the board type of back one veneer are distinguished consistent with the current single board object;
For example; Suppose to be assigned with in the veneer object of coordinate; There is the drawing attribute of two veneer objects all consistent with the current single board object; And the previous veneer of these two veneer objects and current single board object is the OA veneer, and a back veneer is the DCM veneer, and then these two veneer objects are the similar veneer object of current single board object.
Step S109: if then horizontal ordinate or the ordinate to all similar veneer objects takes absolute value, find out the maximum similar veneer object of absolute value, and it is made as benchmark veneer object;
For example, suppose that the current single board object has two similar veneer objects, their veneer coordinate is respectively (280; 110), (280; 115), then the ordinate to them takes absolute value, and finds that the maximum similar veneer of absolute value is (280 to liking coordinate; 115) veneer object is so be provided with benchmark veneer object with it.
Step S110: the veneer coordinate to above-mentioned current single board object is reseted.
In the present embodiment, move towards, move towards at interval according to the veneer coordinate of said reference veneer object and the veneer of above-mentioned target single board object, the veneer coordinate of above-mentioned current single board object is reseted, concrete grammar comprises:
If the veneer of above-mentioned target single board object trend is for straight up, then the ordinate with said reference veneer object adds moving towards at interval of above-mentioned target single board object, and the ordinate that calculates is made as the new ordinate of above-mentioned current single board object;
If the veneer of above-mentioned target single board object trend is for straight down, then the ordinate with said reference veneer object deducts moving towards at interval of above-mentioned target single board object, and the ordinate that calculates is made as the new ordinate of above-mentioned current single board object;
If the veneer of above-mentioned target single board object trend for level left, then the horizontal ordinate with said reference veneer object deducts moving towards at interval of above-mentioned target single board object, and the horizontal ordinate that calculates is made as the new horizontal ordinate of above-mentioned current single board object.
If the veneer of above-mentioned target single board object trend for level to the right, then the horizontal ordinate with said reference veneer object adds moving towards at interval of above-mentioned target single board object, and the horizontal ordinate that calculates is made as the new horizontal ordinate of above-mentioned current single board object.
Likewise, through the explanation that makes an explanation of concrete numeral.For example, found out the benchmark veneer among the step S110 to liking the veneer object of coordinate for (280,115); Suppose that again above-mentioned veneer template is made as 5 with the trend of above-mentioned target single board object at interval; The veneer trend is made as straight up, and the final coordinate of then above-mentioned current single board object is (280,120).
Below introduced the veneer coordinate assignment method of the preferred embodiment of the present invention in detail, it will be appreciated by those skilled in the art that the present invention can be optimized on the basis of said method.For example; The present invention can be provided with drawing element for respectively presetting veneer in the veneer template; Drawing element comprises figure frame, pictograph, connecting line line body, connecting line literal, groove bit address, port title etc.; Simultaneously attributes such as size, font, color, thickness, length and width can also be set for each drawing element; Thereby after having distributed the veneer coordinate for the veneer object, the drawing element and the attribute of the target single board object that can also foundation be complementary with the veneer object carry out graphic plotting to the veneer object.
Fig. 2 is the module frame chart of veneer coordinate assignment system in the preferred embodiment of the present invention.As shown in Figure 2, the system of the preferred embodiment of the present invention comprises: veneer template establishment module 1, website veneer search module 2, veneer object constructing module 3, drawing attribute distribution module 4, drawing attribute matching module 5, common veneer judge module 6, last veneer are judged template 7, back one veneer judge module 8, veneer coordinate assignment module 9, similar veneer judge module 10, module 11 is set the benchmark veneer and the veneer coordinate is reseted module 12.
Above-mentioned veneer template establishment module 1 is used to create the veneer template, on above-mentioned veneer module, is provided with a plurality ofly to preset the veneer object, and for each above-mentioned veneer object that presets drawing attribute and coordinate attributes is set.
Above-mentioned website veneer search module 2, being used at the optical-fiber network website is starting point with the fibre distribution frame, searchlight signal stream all veneers and the port of process, and the veneer that searches is made as the veneer of coordinate to be allocated.
Above-mentioned veneer object constructing module 3 is used for the veneer of coordinate to be allocated is constructed with the veneer object of drawing attribute, and above-mentioned veneer object is saved in the memory device that is loaded with the veneer template.
Above-mentioned drawing attribute distribution module 4 is used for according to the pairing smooth type of site of the veneer of above-mentioned coordinate to be allocated, light website dimension, crowd road or road, signal trend up and down, is that the pairing veneer object of the veneer of above-mentioned coordinate to be allocated distributes drawing attribute.
Above-mentioned drawing attribute matching module 5 is used for searching the drawing attribute target single board object consistent with the drawing attribute of current single board object in above-mentioned veneer template.
Above-mentioned shared veneer judge module 6 is used to judge whether above-mentioned current single board object is the two-way shared veneer object that was assigned with coordinate.
Above-mentioned last veneer is judged template 7, be used to judge above-mentioned current single board object previous veneer object board type whether with the board type coupling of the previous veneer object of above-mentioned target single board object.
Above-mentioned back one veneer judge module 8, be used to judge above-mentioned current single board object a back veneer object board type whether with the board type coupling of the back veneer object of above-mentioned target single board object.
Above-mentioned veneer coordinate assignment module 9 is used for when finding the target single board object, gives above-mentioned current single board object with the veneer coordinate assignment of above-mentioned target single board object.
Above-mentioned similar veneer judge module 10; Be used for judging the veneer object that was assigned with coordinate; Whether there be the drawing attribute similar veneer object consistent with the drawing attribute of above-mentioned current single board object; And the board type of the board type of the previous veneer object of above-mentioned similar veneer object and the previous veneer object of above-mentioned current single board object coupling, the board type coupling of the board type of a back veneer object of above-mentioned similar veneer object and a back veneer object of above-mentioned current single board object.
The said reference veneer is provided with module 11, is used for the horizontal ordinate or the ordinate of all similar veneer objects are taken absolute value, and finds out the maximum similar veneer object of absolute value, and it is made as benchmark veneer object.
Above-mentioned veneer coordinate is reseted module 12, is used for moving towards, moving towards at interval according to the veneer coordinate of said reference veneer object and the veneer of above-mentioned target single board object, and the veneer coordinate of above-mentioned current single board object is reseted.
Above-mentioned explanation illustrates and has described the preferred embodiments of the present invention; But as previously mentioned; Be to be understood that the present invention is not limited to the form that this paper discloses, should do not regard eliminating as, and can be used for various other combinations, modification and environment other embodiment; And can in invention contemplated scope described herein, change through the technology or the knowledge of above-mentioned instruction or association area.And change that those skilled in the art carried out and variation do not break away from the spirit and scope of the present invention, then all should be in the protection domain of accompanying claims of the present invention.