A method, device, equipment, storage medium and program product for constructing a multi-station floor plan
By analyzing the requirements description files and site graphic description files of multi-site floor plans, generating station equipment related information, the automated construction of multi-site floor plans is realized, and the problem of manual drawing is time-consuming, labor-intensive and error-prone, and the construction efficiency and accuracy are improved.
Patent Information
- Application Number
- CN202510031703.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-09
- Publication Date
- 2025-04-22
- Estimated Expiration
- 2045-01-09
AI Technical Summary
In the prior art, manual drawing of multi-site planners is time-consuming and labor-intensive, prone to errors, and relies on unique tools and has poor operability.
By analyzing the requirements description files for multi-site yards to be constructed, the station yard graphic description files of each single-site yard are obtained and the file analysis is performed, and the station equipment related information of each single-site yard is generated, and the multi-site yard plan is constructed based on this information.
The automated construction of multi-site floor plan is realized, which improves the construction efficiency and accuracy, and avoids manual drawing time and errors.
Smart Images

Figure CN119444926B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a method, device, equipment, storage medium and program product for constructing a multi-station floor plan. Background Art
[0002] The station plan is mainly used to illustrate and display the key railway signal equipment. In the field of railway dispatching and command, including interlocking systems and other dispatching information systems, the station plan is mostly used as a carrier to command and dispatch trains. Among them, the station plan can be divided into single-station plan and multi-station plan according to the scope of jurisdiction.
[0003] The existing single-station floor plans are all drawn manually using specific tools, and the single-station floor plan graphic description files are formed according to standard specifications. Similarly, the construction process of multi-station floor plans and single-station floor plans are all drawn manually, and the section description files are formed according to standard specifications. However, the manual drawing method is time-consuming and labor-intensive, prone to errors, and relies on tools unique to each manufacturer, with poor operability. Therefore, how to improve the efficiency and accuracy of the construction of multi-station floor plans has become a technical problem that relevant technicians need to solve urgently. Summary of the invention
[0004] The present invention provides a method, device, equipment, storage medium and program product for constructing a multi-station floor plan to improve the efficiency and accuracy of constructing the multi-station floor plan.
[0005] According to one aspect of the present invention, a method for constructing a multi-station floor plan is provided, comprising:
[0006] Parsing the demand description file of the multi-station to be constructed, obtaining the attribute information of each single-station included in the multi-station to be constructed and the station association information between each single-station;
[0007] Obtaining the station field graphic description file of each of the single station fields, and parsing each of the station field graphic description files to obtain the device name, device coordinates and device connection relationship corresponding to each of the single station fields;
[0008] Generate station equipment information of each single station field according to the equipment name, equipment coordinates and equipment connection relationship corresponding to each single station field;
[0009] According to the attribute information of each single station yard of the multi-station yard to be constructed and the station yard association relationship between each single station yard, and based on the station yard equipment related information of each single station yard, a multi-station yard plan of the multi-station yard to be constructed is constructed.
[0010] According to another aspect of the present invention, there is provided a device for constructing a multi-station site plan, comprising:
[0011] A requirement description file parsing module is used to parse the requirement description file of the multi-station to be constructed, and obtain the attribute information of each single station included in the multi-station to be constructed and the station association information between each single station;
[0012] A graphic description file parsing module is used to obtain the station field graphic description file of each of the single station fields, and parse each of the station field graphic description files to obtain the device name, device coordinates and device connection relationship corresponding to each of the single station fields;
[0013] A generating module, used for generating the station equipment related information of each single station field according to the equipment name, equipment coordinates and equipment connection relationship respectively corresponding to each single station field;
[0014] A construction module is used to construct a multi-station field plan of the multi-station field to be constructed based on the attribute information of each single station field of the multi-station field to be constructed and the field association relationship between each single station field, and based on the field equipment related information of each single station field.
[0015] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0016] at least one processor; and
[0017] a memory communicatively connected to the at least one processor; wherein,
[0018] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the method for constructing a multi-station site plan as described in any embodiment of the present invention.
[0019] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to implement the method for constructing a multi-station site plan as described in any embodiment of the present invention when executed by a processor.
[0020] According to another aspect of the present invention, a computer program product is provided. The computer program product includes a computer program. When the computer program is executed by a processor, the method for constructing a multi-station site plan as described in any embodiment of the present invention is implemented.
[0021] The technical solution of the embodiment of the present invention is to parse the demand description file of the multi-station field to be constructed, obtain the attribute information of each single station field contained in the multi-station field to be constructed and the station field association information between each single station field; obtain the station field graphic description file of each single station field, and parse each station field graphic description file to obtain the device name, device coordinates and device connection relationship corresponding to each single station field; generate the station field equipment related information of each single station field according to the device name, device coordinates and device connection relationship corresponding to each single station field; according to the attribute information of each single station field of the multi-station field to be constructed and the station field association relationship between each single station field, based on the station field equipment related information of each single station field, construct the multi-station field plan of the multi-station field to be constructed. This technical solution can be based on the station field graphic description file of the single station field, and according to the acquired attribute information of each single station field and the station field association information between each single station field, realize the automatic construction of the multi-station field plan. The invention solves the problem that the construction of multi-station floor plans by manual drawing in the prior art is time-consuming, labor-intensive and error-prone, and improves the construction efficiency and accuracy of multi-station floor plans.
[0022] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0024] Figure 1A is a flow chart of a method for constructing a multi-station site plan according to Embodiment 1 of the present invention;
[0025] Figure 1B is a schematic diagram of a single station site plan provided according to Embodiment 1 of the present invention;
[0026] Figure 2 is a flow chart of a method for constructing a multi-station field plan according to Embodiment 2 of the present invention;
[0027] Figure 3 It is a schematic diagram of the structure of a device for constructing a multi-station site plan view according to Embodiment 3 of the present invention;
[0028] Figure 4 The invention is a schematic diagram of the structure of an electronic device for implementing the method for constructing a multi-station field plan according to an embodiment of the present invention. DETAILED DESCRIPTION
[0029] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0030] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0031] Embodiment 1
[0032] Figure 1A A flowchart of a method for constructing a multi-station floor plan is provided for the first embodiment of the present invention. This embodiment is applicable to the case where a multi-station floor plan is constructed based on a station graphic description file of a single station. The method can be executed by a device for constructing a multi-station floor plan. The device for constructing a multi-station floor plan can be implemented in the form of hardware and / or software. The device for constructing a multi-station floor plan can be configured in an electronic device. Figure 1A As shown, the method includes:
[0033] S110, parsing the demand description file of the multi-station to be constructed, obtaining the attribute information of each single station included in the multi-station to be constructed and the station association information between each single station.
[0034] The multiple stations to be constructed may be multiple stations for which a plan view needs to be constructed, and specifically may be multiple stations that actually exist in a train operation line. The requirement description file may be a file for recording and generating station information of each single station in the multiple stations to be constructed, and specifically may include attribute information of each single station and station association information between each single station.
[0035] Among them, the attribute information of each single station yard may include the up and down directions of each station yard and the set of station yard equipment types, and the station yard association information may be the connection sequence between each single station yard and the connection relationship between each single station yard equipment. It should be noted that the attribute information of each single station yard and the station yard association relationship between each single station yard can be determined based on the single station yard actually existing in the train operation line.
[0036] Specifically, the relevant technical personnel may select different numbers of single-station yards according to actual needs and generate a demand description file for multiple-station yards to be constructed, thereby obtaining the attribute information of each single-station yard and the station yard association information between each single-station yard. Alternatively, according to the joint control requirements of the station yards during the train operation, the single-station yards that need to be jointly controlled are automatically determined and associated, and the attribute information of the single-station yards that need to be jointly controlled and the station yard association information between the stations are obtained.
[0037] S120, acquiring the station field graphic description file of each single station field, and parsing each station field graphic description file to obtain the device name, device coordinates and device connection relationship corresponding to each single station field.
[0038] The station field graphic description file may be a plan view for recording the station field information of each single station field, and may specifically include station field information such as the equipment name, equipment coordinates, and equipment connection relationship in each single station field. The equipment connection relationship may be used to determine the adjacent relationship between the equipment in each single station field. It should be noted that each single station field graphic description file may be pre-built according to the actual station field.
[0039] Specifically, Figure 1B As shown in the provided single station yard plan. Among them, station A can include signal equipment such as 0502, 0515, 0520 and 0529, and can also include turnout equipment such as No. 1 and No. 3. Among them, the equipment coordinates of the 0502 signal are (17, 18), the equipment coordinates of the 0515 signal are (18, 16), the equipment coordinates of the 0520 signal are (20, 18), and the equipment coordinates of the 0529 signal are (22, 16). It can be determined that the equipment connection relationship is that the 0502 and 0520 signal equipment are connected; it can also be determined that the 0515 and 0529 signal equipment are connected. Specifically, it can be directly parsed according to the pre-built single station yard plan to obtain the equipment name, equipment coordinates and equipment connection relationship corresponding to each single station yard.
[0040] S130. Generate station equipment related information of each single station according to the equipment name, equipment coordinates and equipment connection relationship corresponding to each single station.
[0041] Among them, generating the station equipment related information of each single station yard can specifically be to place the equipment of each single station yard into the corresponding equipment set. Continuing with the above example, for example, the equipment set of station yard A can be generated, and signal equipment such as 0502, 0515, 0520 and 0529 can be obtained, and turnout equipment such as No. 1 and No. 3 can also be included, as well as the equipment coordinates of the 0502 signal (17, 18), the equipment coordinates of the 0515 signal (18, 16), the equipment coordinates of the 0520 signal (20, 18), and the equipment coordinates of the 0529 signal (22, 16), and it can be determined that the 0502 signal and the 0520 signal are on the same line, and the equipment association relationship between the 0515 and 0529 signal equipment on the same line is stored in the equipment set of station yard A.
[0042] S140. Construct a multi-station plan of the multi-station to be constructed according to the attribute information of each single station of the multi-station to be constructed and the station association relationship between each single station, and based on the station equipment related information of each single station.
[0043] Specifically, Figure 1B As shown in the provided single-station yard plan, the B station yard can also be included. Among them, the B station yard can include signal equipment such as 0538, 0541, 0555 and 0556, as well as turnout equipment such as No. 2, No. 4, No. 6 and No. 8. Exemplarily, according to the attribute information of each single-station yard to be constructed for multiple stations and the station yard association relationship between each single-station yard, it can be determined that the A station yard is connected to the B station yard, and the connection order is from left to right for the A station yard and the B station yard. Specifically, the 0529 signal in the A station yard can be connected to the 0541 signal in the B station yard, and the 0520 signal in the A station yard can also be connected to the 0538 signal in the B station yard. Further, according to the equipment information in the A station yard and the B station yard, the corresponding station yard plan can be connected to construct the station yard plan of multiple stations.
[0044] It should be noted that the multi-station yard plan may include at least two single-station yard plans, which may be manually set by relevant technical personnel according to actual needs, or the multi-station yard plan may be automatically selected and constructed according to the needs of station yard joint control for train operation.
[0045] The technical solution of the embodiment of the present invention is to parse the demand description file of the multi-station field to be constructed, obtain the attribute information of each single station field contained in the multi-station field to be constructed and the station field association information between each single station field; obtain the station field graphic description file of each single station field, and parse each station field graphic description file to obtain the equipment name, equipment coordinates and equipment connection relationship corresponding to each single station field; generate the station field equipment related information of each single station field according to the equipment name, equipment coordinates and equipment connection relationship corresponding to each single station field; according to the attribute information of each single station field of the multi-station field to be constructed and the station field association relationship between each single station field, based on the station field equipment related information of each single station field, construct the multi-station field plan of the multi-station field to be constructed. This technical solution is based on the station field graphic description file of the single station field, and then realizes the automatic construction of the multi-station field plan according to the acquired attribute information of each single station field and the station field association information between each single station field. The invention solves the problem that the construction of multi-station floor plans by manual drawing in the prior art is time-consuming, labor-intensive and error-prone, and improves the construction efficiency and accuracy of multi-station floor plans.
[0046] Embodiment 2
[0047] Figure 2 This is a flow chart of a method for constructing a multi-station floor plan provided in the second embodiment of the present invention. Based on the above embodiments, this embodiment further optimizes the method for constructing a multi-station floor plan.
[0048] Furthermore, the step "generates the station equipment related information of each single station field according to the equipment name, equipment coordinates and equipment connection relationship corresponding to each single station field" is refined into "for any single station field, determine the first uplink and downlink direction of the single station field according to the equipment name and equipment coordinates contained in the single station field; determine the second uplink and downlink direction of the single station field according to the station field graphic description file of the single station field; if the first uplink and downlink direction of the single station field is consistent with the second uplink and downlink direction, update the equipment coordinates of the single station field according to the equipment connection relationship; generate the station equipment related information of each single station field according to the equipment name, equipment connection relationship and updated equipment coordinates of the single station field." to improve the construction method of multi-station field plan. Figure 2 As shown, the method includes:
[0049] S210, parsing the demand description file of the multi-station to be constructed, obtaining the attribute information of each single station included in the multi-station to be constructed and the station association information between each single station.
[0050] S220, obtaining the station field graphic description file of each single station field, and parsing each station field graphic description file to obtain the device name, device coordinates and device connection relationship corresponding to each single station field.
[0051] S230: For any single station site, determine the first uplink and downlink direction of the single station site according to the device name and device coordinates contained in the single station site.
[0052] Among them, the first up and down direction can be the actual up and down direction of a single station yard set up in an actual train running line, and can also be the up and down direction of the single station yard in the plan view of multiple stations to be constructed.
[0053] Specifically, the device names and device coordinates in a single station field can be obtained by parsing the demand description file of the multi-station field to be constructed. For example, Figure 1B As shown, signal devices including 0502, 0515, 0520 and 0529 and the corresponding device coordinates can be obtained in station A, and the up and down directions of station A can be determined according to the size relationship between the horizontal coordinate values of the corresponding device coordinates.
[0054] Optionally, for any single-station field, the first uplink and downlink directions of the single-station field are determined according to the equipment name and equipment coordinates contained in the single-station field, including: for any single-station field, the first station field equipment and the second station field equipment that meet the preset type judgment conditions are determined according to the equipment coordinates of the first station field equipment and the equipment coordinates of the second station field equipment.
[0055] Among them, the preset type judgment condition may be the type of equipment that can judge the up and down directions of the station field according to the equipment name. Among them, the first station field equipment and the second station field equipment may be station field equipment of the same equipment type. Exemplarily, it may be the first station field equipment whose equipment name is "S" (up) and whose equipment type is a light indicating the direction of receiving and sending vehicles found in the equipment set of a single station field, and the second station field equipment whose equipment name is "X" (down) and whose equipment type is a light indicating the direction of receiving and sending vehicles. Furthermore, the starting point horizontal coordinate values X1 and X2 of the first station field equipment and the second station field equipment may also be obtained. If X1 is less than X2, it may be determined that the first up and down directions of the single station field in the multi-station field to be constructed are the up directions. Otherwise, the first up and down directions may be the down directions.
[0056] S240: Determine a second uplink and downlink direction of the single station yard according to the station yard graphic description file of the single station yard.
[0057] The second uplink and downlink directions may be marked according to the single-station site plan. The uplink and downlink positions of the single-station site may be specifically the uplink and downlink directions of the site set by relevant technicians when constructing the single-station site plan according to the plan construction requirements. The uplink and downlink directions may be consistent with the actual uplink and downlink directions of the single-station site or may be inconsistent. For example, Figure 1B From the single station schematic diagram shown, it can be determined that station A is in the upward direction, and station B is in the downward direction.
[0058] S250: If the first uplink and downlink directions of the single station are consistent with the second uplink and downlink directions of the single station, the device coordinates of the single station are updated according to the device connection relationship.
[0059] Among them, if the first uplink and downlink directions are consistent with the second uplink and downlink directions, it can indicate that the uplink and downlink directions of the single-station yard and the multi-station yard to be constructed are consistent.
[0060] Specifically, when the first uplink and downlink directions of the single-station field are consistent, the single-station field plan can be directly connected to the previous single-station field plan based on the equipment connection relationship between the single-station field and the previous single-station field, and the equipment coordinate value of the single-station field can be updated based on the equipment coordinate value of the previous single-station field.
[0061] Specifically, the single-station field plane can be connected with the previous single-station field plane image according to the field equipment connection relationship obtained in the multi-station field requirement description file to be constructed. Exemplarily, the connection processing method can be that according to the equipment connection relationship between each single-station field, the device coordinates (Xmax, Y1) with the largest horizontal coordinate value in the previous single-station field and the device coordinates (Xmin, Y2) with the smallest horizontal coordinate value in the single-station field can be obtained, and the horizontal coordinate values can be summed, that is, Xmax+Xmin, and the summation result is used as the horizontal coordinate value of the updated device coordinates of the single-station field, and the horizontal coordinate value of the device coordinates in the single-station field can be processed in this way; the vertical coordinate value of the device coordinate can also be assigned, which can be to make Y1=Y2. The device coordinates in the single-station field are updated according to the connection relationship between the devices in the single-station field, and this embodiment is not specifically limited by comparison.
[0062] Optionally, updating the equipment coordinates of the single-station field according to the equipment connection relationship includes: determining at least one equipment combination having a connection relationship between the equipment of the single-station field and the equipment of the previous field according to the equipment connection relationship; sorting the equipment coordinates of each single-station field in each equipment combination to obtain a first sorting result, and sorting the equipment coordinates of the previous field in each equipment combination to obtain a second sorting result; and updating the equipment coordinates of the single-station field according to the first sorting result and the second sorting result.
[0063] The first sorting result may be the result of equipment sorting according to the equipment coordinates in the single station yard. Continuing with the above example, if the equipment coordinates of the 0502 signal are (17, 18), the equipment coordinates of the 0515 signal are (18, 16), the equipment coordinates of the 0520 signal are (20, 18), and the equipment coordinates of the 0529 signal are (22, 16), then the first sorting result may be obtained that the 0502 signal is connected to the 0520 signal, and the 0515 signal is connected to the 0529 signal.
[0064] The second sorting result may be a result of sorting the equipment in the previous single-station field based on the coordinates of the equipment in the previous single-station field. Specifically, the device coordinates of the single station field can be updated by obtaining the set of connected devices between the single station field and the previous single station field, such as the set of connected devices between the A station field and the B station field {[A1, B1], [A2, B2]... [An, Bn]}, and sorting the device coordinates of the A station field from large to small to obtain a first sorting result, which can be (xA1, yA1), (xA2, yA2)... (xAn, yAn); the device coordinates of the B station field can also be sorted from small to large to obtain a second sorting result, which can be (xB1, yB1), (xB2, yB2)... (xBn, yBn), and then, according to the first sorting result and the second sorting result, the device coordinates of the B station field can be updated, such as xA1=xB1, xA2=xB2,..., xAn=xBn; it can also be yA1=yB1, yA2=yB2,..., pAn=yBn. Specifically, the coordinate updating method may be to update the coordinates of the device with the largest horizontal coordinate value in station A and the device with the smallest horizontal coordinate value in station B according to the sorting result, and so on, to update the coordinates of the device in station B.
[0065] In an optional scheme of the present embodiment, it can be combined with one or more optional schemes of the present embodiment. Optionally, if the first uplink and downlink directions of the single station field are inconsistent with the second uplink and downlink directions, the coordinates of the station field center point of the single station field relative to the station field graphic description file to which it belongs are determined according to the device coordinates of each device in the single station field; according to the coordinates of the station field center point, the coordinates of each device are flipped to obtain the flipped device coordinates corresponding to each device; according to the device connection relationship, the flipped device coordinates corresponding to each device are updated to obtain the target device coordinates.
[0066] Among them, the inconsistency between the first uplink and downlink direction and the second uplink and downlink direction may indicate that the uplink and downlink directions of the single-station yard and the multi-station yard to be constructed are inconsistent. Figure 1BAs shown in the schematic diagram of the plan view of a single station yard, the multiple stations to be constructed may include station yard A and station yard B, wherein station yard A and station yard B may both be single station yards in the train route connecting S and L, and station yard A and station yard B are connected to each other.
[0067] The flip device coordinates may be the device coordinates of each device in a single station field, and the device coordinates are calculated based on the center point coordinates of the station field. The calculation method may be as follows: the flip device coordinates are equal to twice the difference between the center point coordinates of the station field and the device coordinates.
[0068] Exemplarily, the uplink and downlink directions of the multi-station field to be constructed are downlink directions, wherein according to the A station field graphic description file, it can be obtained that the A station field is in the downlink direction, which is the same as the uplink and downlink directions of the multi-station field to be constructed. According to the B station field graphic description file, it can be obtained that the B station field is in the uplink direction, which is inconsistent with the uplink and downlink directions of the multi-station field to be constructed. Then, the device coordinates (Xman, Ymax) with the largest coordinate value in the B station field and the device coordinates (Xmin, Ymin) with the smallest coordinate value can be obtained, and the coordinates of the station field center point (Xc, Yc) of the station field graphic description file of the B station field can be calculated. The calculation method can be as follows Xc=Xmin+Xmax) / 2, Yc=(Ymin+Ymax) / 2. The specific calculation method can be set according to the relevant technical personnel, and this embodiment makes specific restrictions on this.
[0069] Specifically, the following operation can be performed on the device coordinates in the device set of the B station field according to the obtained station field center point coordinates (Xc, Yc): Xb=2*Xc-X, Yb=2*Yc-Y. Among them, Xb can refer to the horizontal coordinate value of the flipped device coordinates, Yb can refer to the vertical coordinate value of the flipped device coordinates, X can refer to the horizontal coordinate of the device coordinates of any single station field, and Y can refer to the vertical coordinate of the device coordinates of any single station field.
[0070] Optionally, based on the device connection relationship, the flip device coordinates corresponding to each device are updated to obtain the target device coordinates, including: based on the device connection relationship, determining at least one device combination that has a connection relationship between the equipment of each single station field and the equipment of the previous station field; determining the offset corresponding to each device combination; based on the offset of each device combination, determining the target offset; based on the target offset, updating the flip device coordinates corresponding to each device to obtain the target device coordinates.
[0071] The offset may refer to the difference between the coordinate values of the device coordinates in a device combination having a connection relationship.
[0072] Continuing with the above example, we can obtain the connection relationship between the station devices in the multi-station demand description file, such as the device connection relationship between station A and station B, and obtain the connection device set between station A and station B {[A1, B1], [A2, B2]... [An, Bn]}, and obtain the device coordinates with the smallest horizontal coordinate value in the device set of station B (X B min,Y B ), and the coordinates of the device with the largest horizontal coordinate value in the equipment set of station A (X A max,Y A ), calculate the offset between the two OS (x1, y1): x1 = X A max-X B min,y1=Y A -Y B The specific calculation method can be preset by relevant technical personnel. The offset set OS can be calculated S ={(x1,y1),(x2,y2)...(xn,yn)}, and get the target offset (xx,yx). According to the target offset, perform the following operation on the corresponding flip device of each device Xb b =Xb-xx,Yb b =Yb-yx. Among them, Xb b It can be the horizontal coordinate value of the device coordinate after the horizontal coordinate value of the flipped device coordinate is updated based on the target offset, Yb b The vertical coordinate value of the device coordinate may be updated based on the target offset after the vertical coordinate value of the flipped device coordinate is updated.
[0073] S260. Generate station equipment related information of each single station according to the equipment name, equipment connection relationship and updated equipment coordinates of the single station.
[0074] S270. Construct a multi-station plan for the multi-station to be constructed according to the attribute information of each single station of the multi-station to be constructed and the station association relationship between each single station, and based on the station equipment related information of each single station.
[0075] The technical solution of the embodiment of the present invention determines the first up-down and down-down directions of any single station field according to the equipment name and equipment coordinates contained in any single station field; and determines the second up-down and down-down directions of the single station field according to the field graphic description file of the single station field. Furthermore, according to the relationship between the first up-down and down-down directions and the second up-down and down-down directions of the single station field and the equipment connection relationship, the equipment coordinates of the single station field are updated, and at least one equipment combination with a connection relationship is generated to update the equipment coordinates of the single station field. This technical solution analyzes the field graphic description file of any station field, and then determines the equipment coordinates of any single station field and the connection relationship between the field equipment and other single station fields, updates the equipment coordinates of the single station field equipment, and realizes the construction of multi-station field plan. It solves the problem that the construction of multi-station field plan by manual drawing in the prior art is time-consuming, labor-intensive and error-prone, and improves the construction efficiency and accuracy of multi-station field plan.
[0076] Embodiment 3
[0077] Figure 3 The present invention provides a schematic diagram of the structure of a device for constructing a multi-station floor plan according to the third embodiment of the present invention. The device for constructing a multi-station floor plan according to the embodiment of the present invention can be applied to the case where a multi-station floor plan is constructed according to a station graphic description file of a single station. The device for constructing a multi-station floor plan can be implemented in the form of hardware and / or software, such as Figure 3 As shown, it specifically includes: a demand description file parsing module 310, a graphic description file parsing module 320, a generation module 330 and a construction module 340. Among them,
[0078] The requirement description file parsing module 310 is used to parse the requirement description file of the multi-station to be constructed, and obtain the attribute information of each single station included in the multi-station to be constructed and the station association information between each single station.
[0079] The graphic description file parsing module 320 is used to obtain the station field graphic description file of each of the single station fields, and parse each of the station field graphic description files to obtain the device name, device coordinates and device connection relationship corresponding to each of the single station fields.
[0080] The generating module 330 is used to generate the station equipment related information of each single station field according to the equipment name, equipment coordinates and equipment connection relationship respectively corresponding to each single station field.
[0081] The construction module 340 is used to construct a multi-station field plan of the multi-station field to be constructed based on the attribute information of each single station field of the multi-station field to be constructed and the field association relationship between each single station field, and based on the field equipment related information of each single station field.
[0082] This technical solution is based on the station field graphic description file of a single station field, and then realizes the automatic construction of the multi-station field plan according to the acquired attribute information of each single station field and the station field association information between each single station field. It solves the problem that the construction of multi-station field plan by manual drawing in the prior art is time-consuming, labor-intensive and prone to errors, and improves the construction efficiency and accuracy of multi-station field plan.
[0083] Optionally, the generation module 330 is specifically used to, for any single-station field, determine the first uplink and downlink direction of the single-station field according to the equipment name and equipment coordinates contained in the single-station field; determine the second uplink and downlink direction of the single-station field according to the field graphic description file of the single-station field; if the first uplink and downlink direction of the single-station field is consistent with the second uplink and downlink direction, update the equipment coordinates of the single-station field according to the equipment connection relationship; generate field equipment related information of each single-station field according to the equipment name, equipment connection relationship and updated equipment coordinates of the single-station field.
[0084] Optionally, the generation module 330 is also used to determine, based on the equipment connection relationship, at least one equipment combination that has a connection relationship between the equipment of the single-station field and the equipment of the previous field; sort the equipment coordinates of each single-station field in each of the equipment combinations to obtain a first sorting result, and sort the equipment coordinates of the previous field in each of the equipment combinations to obtain a second sorting result; and update the equipment coordinates of the single-station field based on the first sorting result and the second sorting result.
[0085] Optionally, the apparatus further includes: a device coordinate processing module 350;
[0086] Optionally, the device coordinate processing module 350 is used to determine the coordinates of the station center point of the single station relative to the station graphic description file to which it belongs based on the device coordinates of each device in the single station if the first uplink and downlink directions of the single station are inconsistent; perform a coordinate flip operation on each of the device coordinates based on the station center point coordinates to obtain the flipped device coordinates corresponding to each device; and update the flipped device coordinates corresponding to each of the devices based on the device connection relationship to obtain the target device coordinates.
[0087] Optionally, the device coordinate processing module 350 is also used to determine, based on the device connection relationship, at least one device combination that has a connection relationship between the equipment of each single station field and the equipment of the previous station field; determine the offset corresponding to each of the device combinations; determine the target offset based on the offset of each of the device combinations; and update the flip device coordinates corresponding to each of the devices based on the target offset to obtain the target device coordinates.
[0088] Optionally, the generation module 330 is also specifically used to, for any single station field, determine the first station field equipment and the second station field equipment that meet the preset type judgment conditions according to the equipment names contained in the single station field; and determine the first uplink and downlink directions of the single station field according to the equipment coordinates of the first station field equipment and the equipment coordinates of the second station field equipment.
[0089] The device for constructing a multi-station site plan provided in an embodiment of the present invention can execute the method for constructing a multi-station site plan provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0090] Embodiment 4
[0091] Figure 4 A schematic diagram of an electronic device 40 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0092] like Figure 4 As shown, the electronic device 40 includes at least one processor 41, and a memory connected to the at least one processor 41, such as a read-only memory (ROM) 42, a random access memory (RAM) 43, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 41 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 42 or the computer program loaded from the storage unit 48 to the random access memory (RAM) 43. In the RAM 43, various programs and data required for the operation of the electronic device 40 can also be stored. The processor 41, the ROM 42, and the RAM 43 are connected to each other through a bus 44. An input / output (I / O) interface 45 is also connected to the bus 44.
[0093] A number of components in the electronic device 40 are connected to the I / O interface 45, including: an input unit 46, such as a keyboard, a mouse, etc.; an output unit 47, such as various types of displays, speakers, etc.; a storage unit 48, such as a disk, an optical disk, etc.; and a communication unit 49, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 49 allows the electronic device 40 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0094] The processor 41 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 41 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 41 executes the various methods and processes described above, such as a method for constructing a multi-station floor plan.
[0095] In some embodiments, the method for constructing a multi-station floor plan may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 48. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 40 via the ROM 42 and / or the communication unit 49. When the computer program is loaded into the RAM 43 and executed by the processor 41, one or more steps of the method for constructing a multi-station floor plan described above may be performed. Alternatively, in other embodiments, the processor 41 may be configured to execute the method for constructing a multi-station floor plan in any other appropriate manner (e.g., by means of firmware).
[0096] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0097] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0098] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, device, or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0099] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0100] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0101] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0102] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0103] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for constructing a multi-station floor plan, characterized in that: include: Parsing the demand description file of the multi-station to be constructed, obtaining the attribute information of each single-station included in the multi-station to be constructed and the station association information between each single-station; Obtaining the station field graphic description file of each of the single station fields, and parsing each of the station field graphic description files to obtain the device name, device coordinates and device connection relationship corresponding to each of the single station fields; Generate station equipment information of each single station field according to the equipment name, equipment coordinates and equipment connection relationship corresponding to each single station field; Constructing a multi-station plan of the multi-station to be constructed according to the attribute information of each single-station of the multi-station to be constructed and the station association relationship between each single-station, and based on the station equipment related information of each single-station; Wherein, generating the station equipment related information of each single station field according to the equipment name, equipment coordinates and equipment connection relationship respectively corresponding to each single station field includes: For any single station site, determine the first uplink and downlink direction of the single station site according to the equipment name and equipment coordinates contained in the single station site; Determine the second uplink and downlink direction of the single station yard according to the station yard graphic description file of the single station yard; If the first uplink and downlink directions of the single station field are consistent with the second uplink and downlink directions, updating the device coordinates of the single station field according to the device connection relationship; Generate station equipment related information of each single station according to the equipment name, equipment connection relationship and updated equipment coordinates of the single station; Wherein, for any single station field, determining the first uplink and downlink direction of the single station field according to the device name and device coordinates contained in the single station field includes: For any single station field, determine the first station field equipment and the second station field equipment that meet the preset type judgment condition according to the equipment names contained in the single station field; The first up and down directions of the single station are determined according to the equipment coordinates of the first station equipment and the equipment coordinates of the second station equipment; wherein the first up and down directions are the actual up and down directions of the single station set up in the actual train operation line, or the up and down directions of the single station in the multi-station plan to be constructed.
2. The method according to claim 1, characterized in that The updating of the device coordinates of the single station field according to the device connection relationship includes: According to the equipment connection relationship, determining at least one equipment combination having a connection relationship between the equipment of the single station field and the equipment of the previous station field; Sorting the device coordinates of each single station field in each of the device combinations to obtain a first sorting result, and sorting the device coordinates of the previous station field in each of the device combinations to obtain a second sorting result; The equipment coordinates of the single-station field are updated according to the first sorting result and the second sorting result.
3. The method according to claim 1, characterized in that The method further comprises: If the first uplink and downlink directions of the single station field are inconsistent with the second uplink and downlink directions, determining the station field center point coordinates of the single station field relative to the station field graphic description file to which it belongs according to the device coordinates of each device in the single station field; According to the coordinates of the center point of the station field, a coordinate flipping operation is performed on the coordinates of each device to obtain the flipped device coordinates corresponding to each device; According to the device connection relationship, the flip device coordinates corresponding to each of the devices are updated to obtain the target device coordinates.
4. The method according to claim 3, characterized in that The updating of the flip device coordinates corresponding to each of the devices according to the device connection relationship to obtain the target device coordinates includes: According to the equipment connection relationship, determining at least one equipment combination having a connection relationship between the equipment of each single station field and the equipment of the previous station field; Determine the offsets corresponding to each of the device combinations; Determining a target offset according to the offsets of each of the device combinations; According to the target offset, the flip device coordinates corresponding to each of the devices are updated to obtain the target device coordinates.
5. A device for constructing a multi-station floor plan, characterized in that: include: A requirement description file parsing module is used to parse the requirement description file of the multi-station to be constructed, and obtain the attribute information of each single station included in the multi-station to be constructed and the station association information between each single station; A graphic description file parsing module is used to obtain the station field graphic description file of each of the single station fields, and parse each of the station field graphic description files to obtain the device name, device coordinates and device connection relationship corresponding to each of the single station fields; A generating module, used for generating the station equipment related information of each single station field according to the equipment name, equipment coordinates and equipment connection relationship respectively corresponding to each single station field; A construction module, configured to construct a multi-station field plan of the multi-station field to be constructed based on the attribute information of each single-station field of the multi-station field to be constructed and the field association relationship between each single-station field, and based on the field equipment related information of each single-station field; The generating module is specifically used to determine the first uplink and downlink direction of any single station field according to the equipment name and equipment coordinates contained in the single station field; Determine the second uplink and downlink direction of the single station yard according to the station yard graphic description file of the single station yard; If the first uplink and downlink directions of the single station field are consistent with the second uplink and downlink directions, updating the device coordinates of the single station field according to the device connection relationship; Generate station equipment related information of each single station according to the equipment name, equipment connection relationship and updated equipment coordinates of the single station; The generation module is further used to determine, for any single station field, the first station field equipment and the second station field equipment that meet the preset type judgment condition according to the equipment names contained in the single station field; The first up and down directions of the single station are determined according to the equipment coordinates of the first station equipment and the equipment coordinates of the second station equipment; wherein the first up and down directions are the actual up and down directions of the single station set up in the actual train operation line, or the up and down directions of the single station in the multi-station plan to be constructed.
6. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the method for constructing a multi-station site plan according to any one of claims 1 to 4.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method for constructing a multi-station site plan according to any one of claims 1 to 4 when executed.
8. A computer program product, characterized in that The computer program product comprises a computer program, which, when executed by a processor, implements the method for constructing a multi-station site plan according to any one of claims 1 to 4.
Citation Information
Patent Citations
TDCS system station graph splicing display method
CN112882670A