Axle counting equipment station yard graph generation method, related device and storage medium

By responding to user operations, generating and adjusting the element templates and properties of the station site diagram of the axle counting equipment, the problem of inaccurate generation of station site diagrams in the prior art is solved, and an accurate station site diagram suitable for detection of the axle counting system is realized. Generate and display.

CN119397628APending Publication Date: 2025-02-07CRSC (XI AN) RAIL TRANSIT IND GRP CO LTD BEIJING BRANCH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411774096.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-04
Publication Date
2025-02-07

AI Technical Summary

Technical Problem

The prior art cannot accurately generate a station diagram of the axle counter equipment that can be used for detection of axle counter system, and errors are prone to occur, and key information cannot be displayed effectively.

Method used

A method for generating station maps of axle counting equipment is provided, and an accurate station map is generated and saved by responding to user's element definition, drawing, adjustment and attribute configuration operations. The method includes generating an element template, drawing an element in a canvas, adjusting the redraw element according to the user, configuring element properties, and saving the site map.

Benefits of technology

It realizes the accurate generation of the station diagram of the axle counter equipment suitable for the detection of the axle counter system, avoids the occurrence of errors and can effectively display various status information of the station.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119397628A_ABST
    Figure CN119397628A_ABST
Patent Text Reader

Abstract

The invention discloses an axle counting equipment station yard graph generation method, a related device and a storage medium, and the method comprises the steps: responding to a definition operation of a user on a primitive of a station yard graph of axle counting equipment, and generating each primitive template of the station yard graph of the axle counting equipment according to a data structure of the primitive defined by the user; responding to the use operation of a user on any primitive template, and drawing an axle counting equipment primitive consistent with the operated primitive template in the canvas; whenever a user performs adjustment operation on any axle counting equipment graphic element in the canvas, redrawing the axle counting equipment graphic element on the canvas according to the adjustment operation of the user; in response to an attribute configuration operation of a user on the graphic elements of the axle counting equipment, configuring the attributes of the graphic elements of the axle counting equipment by utilizing the information of each component element of the axle counting equipment; and in response to a saving operation of the user, saving the station yard graph formed by the axle counting equipment primitives on the current canvas.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of station map drawing, and in particular to a method for generating a station map of an axle counting device and related devices and storage media. Background Art

[0002] The urban rail transit station map is a graphic abstraction of various facilities in the station, and is widely used in the fields of station computer simulation, interlocking, etc. The axle counting device is a railway signal device that can detect the passing wheels. It is a safety device used to check the idleness and occupancy of track sections. The entire system consists of the axle counting device and the axle counting maintenance and diagnosis system. Among them, the axle counting maintenance and diagnosis system can monitor the number of axles in the section, the section status, the sensor status and the alarm status in real time. Therefore, the station map can be applied to the axle counting device to achieve more intuitive detection.

[0003] Currently, the editing of station diagrams is mainly achieved through secondary development of computer-aided design (CAD). A specific method is to generate a microcomputer interlocking system lens database through CAD technology, and finally verify the correctness and detectability of the generated static database. Another method is to use the corresponding programming language to conduct secondary development of CAD and apply it to the design of signal plan layout.

[0004] However, these current methods are not designed for axle counting equipment, so there will be many incompatibility issues, which will lead to errors in the station diagram of the axle counting equipment, and in the application process of the station diagram, some key information often cannot be displayed. Summary of the invention

[0005] Based on the above-mentioned deficiencies of the prior art, the present application provides a method for generating a station map of an axle counting device and related devices and storage media to solve the problem that the prior art cannot accurately generate a station map of an axle counting device that can be used for axle counting system detection.

[0006] In order to achieve the above objectives, this application provides the following technical solutions:

[0007] The first aspect of the present application provides a method for generating a station diagram of an axle counting device, comprising:

[0008] In response to a user's definition operation of a graphic element of a station field diagram of an axle counting device, generating graphic element templates of the station field diagram of the axle counting device according to a data structure of the graphic element defined by the user;

[0009] In response to the user's operation of using any one of the primitive templates, drawing an axle counting device primitive consistent with the operated primitive template in the canvas;

[0010] Whenever the user performs an adjustment operation on any of the axle counting device primitives in the canvas, the axle counting device primitives on the canvas are redrawn according to the adjustment operation of the user;

[0011] In response to the user's operation of configuring the properties of the axle counting device primitive, the properties of each of the axle counting device primitives are configured using information of each component element of the axle counting device;

[0012] In response to the user's save operation, the station map composed of the axle counting equipment graphics elements on the current canvas is saved.

[0013] Optionally, in the above-mentioned method for generating an axle counting equipment station diagram, the step of responding to the user's operation of using any one of the graphic element templates and drawing an axle counting equipment graphic element consistent with the operated graphic element template in the canvas comprises:

[0014] In response to the user's dragging operation on any one of the primitive templates, the axle counting device primitive consistent with the primitive template is drawn at the position where the user drags in the canvas according to the default attributes of the primitive template using the GDI redrawing technology.

[0015] Optionally, in the above-mentioned method for generating an axle counting equipment station map, the adjustment operation is an alignment operation, and whenever the user performs an adjustment operation on any of the axle counting equipment primitives in the canvas, the axle counting equipment primitives on the canvas are redrawn according to the user's adjustment operation, including:

[0016] Whenever the user performs an alignment operation on any of the axle counting device primitives in the canvas, determining the position coordinates of the axle counting device primitive selected by the user as a reference;

[0017] According to the position coordinates of the axle counting device primitive used as a reference, each axle counting device primitive in the area selected by the user is erased and redrawn, so that each axle counting device primitive in the area selected by the user is aligned in the same straight line with the axle counting device primitive used as a reference.

[0018] Optionally, in the above-mentioned method for generating an axle counting equipment station map, whenever the user performs an adjustment operation on any of the axle counting equipment graphic elements in the canvas, the axle counting equipment graphic elements on the canvas are redrawn according to the user's adjustment operation, including:

[0019] Whenever the user performs an adjustment operation on any of the axle counting device primitives in the canvas, a redrawing area of ​​the axle counting device primitive is determined according to the adjustment operation of the user;

[0020] Erasing the axle counting device primitive and the redrawing area of ​​the axle counting device primitive on the canvas by using GDI redrawing technology;

[0021] The axle counting device primitive and the image before the redrawing area of ​​the axle counting device primitive is erased are redrawn in the redrawing area of ​​the axle counting device primitive by using the GDI redrawing technology.

[0022] Optionally, in the above-mentioned method for generating an axle counting equipment station diagram, before redrawing the axle counting equipment graphic element on the canvas, it also includes:

[0023] Performing drawing timing for the axle counting device graphic element;

[0024] Before the drawing timing reaches a preset time, real-time monitoring is performed to determine whether a new redrawing instruction is received by the axle counting device graphic element;

[0025] Wherein, if no new redrawing instruction is received for the axle counting device primitive before the drawing timing reaches a preset time length, redrawing the axle counting device primitive on the canvas is executed;

[0026] If a new redraw instruction is received for the axle counting device primitive before the drawing timing reaches the preset time, the drawing timing is reset to zero, and the drawing timing for the axle counting device primitive is returned to be executed.

[0027] Optionally, in the above-mentioned method for generating axle counting equipment station diagram, it further includes:

[0028] In response to the user's branch road configuration operation, the corresponding axle counting device diagram element in the canvas draws each branch road according to the branch road information configured by the user; wherein the branch road information at least includes the position, quantity, direction and angle of the branch road.

[0029] Optionally, in the above-mentioned method for generating a station diagram of an axle counting device, after the station diagram composed of the axle counting device graphic elements on the current canvas is saved in response to the user's save operation, the method further comprises:

[0030] In response to the target system's call request for the station field map through the dynamic link library, the battlefield map is loaded through the dynamic link library, and the station field map is displayed to display the various real-time states of the corresponding station field through the station field map; wherein the target system is an axle counting diagnosis system or a centralized detection system.

[0031] A second aspect of the present application provides a device for generating a station diagram of an axle counting device, comprising:

[0032] A definition unit, configured to respond to a user's definition operation on a graphic element of a station field diagram of an axle counting device, and generate graphic element templates of the station field diagram of the axle counting device according to a data structure of the graphic element defined by the user;

[0033] A drawing unit, configured to respond to the user's operation of using any one of the primitive templates and draw an axle counting device primitive consistent with the operated primitive template in a canvas;

[0034] a redrawing unit, configured to redraw the axle counting device primitive on the canvas according to the user's adjustment operation whenever the user performs an adjustment operation on any of the axle counting device primitives on the canvas;

[0035] a configuration unit, configured to respond to the user's attribute configuration operation on the axle counting device primitive, and configure the attributes of each of the axle counting device primitives using information of each component element of the axle counting device;

[0036] The saving unit is used to respond to the user's saving operation and save the station map composed of the axle counting equipment graphics elements on the current canvas.

[0037] Optionally, in the above-mentioned axle counting equipment station map generating device, the drawing unit includes:

[0038] The drawing subunit is used to respond to the user's dragging operation on any one of the primitive templates, and use the GDI redrawing technology to draw the axle counting device primitive consistent with the primitive template at the position dragged by the user in the canvas according to the default attributes of the primitive template.

[0039] Optionally, in the above-mentioned axle counting equipment station diagram generating device, when the adjustment operation is an alignment operation, the redrawing unit performs the redrawing of the axle counting equipment graphic element on the canvas according to the user's adjustment operation, and is used to:

[0040] Whenever the user performs an alignment operation on any of the axle counting device primitives in the canvas, determining the position coordinates of the axle counting device primitive selected by the user as a reference;

[0041] According to the position coordinates of the axle counting device primitive used as a reference, each axle counting device primitive in the area selected by the user is erased and redrawn, so that each axle counting device primitive in the area selected by the user is aligned in the same straight line with the axle counting device primitive used as a reference.

[0042] Optionally, in the above-mentioned axle counting equipment station diagram generating device, the redrawing unit includes:

[0043] an area determination unit, configured to determine a redrawing area of ​​the axle counting device primitive according to the user's adjustment operation whenever the user performs an adjustment operation on any of the axle counting device primitives in the canvas;

[0044] An erasing unit, used for erasing the axle counting device primitive and the redrawing area of ​​the axle counting device primitive on the canvas by using a GDI redrawing technology;

[0045] The redrawing unit is used to redraw the axle counting device primitive and the image before erasing the redrawing area of ​​the axle counting device primitive in the redrawing area of ​​the axle counting device primitive by using the GDI redrawing technology.

[0046] Optionally, in the above-mentioned axle counting equipment station diagram generating device, it also includes:

[0047] A timing unit, used for drawing timing for the axle counting device primitive;

[0048] A judgment unit, used for monitoring in real time whether a new redrawing instruction is received by the axle counting device graphic element before the drawing timing reaches a preset time length;

[0049] Wherein, if no new redrawing instruction is received for the axle counting device primitive before the drawing timing reaches a preset time length, the redrawing unit executes the redrawing of the axle counting device primitive on the canvas;

[0050] The reset unit is used to reset the drawing timing to zero and return to the timing unit to execute the drawing timing for the axle counting device primitive when a new redraw instruction is received by the axle counting device primitive before the drawing timing reaches a preset time.

[0051] Optionally, in the above-mentioned axle counting equipment station diagram generating device, it also includes:

[0052] A turnout drawing unit is used to respond to the user's turnout configuration operation and draw each turnout in the corresponding axle counting device diagram element in the canvas according to the turnout information configured by the user; wherein the turnout information at least includes the position, quantity, direction and angle of the turnout.

[0053] Optionally, in the above-mentioned axle counting equipment station diagram generating device, it also includes:

[0054] The application unit is used to respond to the target system's call request for the station field map through the dynamic link library, load the battlefield map through the dynamic link library, and display the station field map to display the real-time status of the corresponding station field through the station field map; wherein the target system is an axle counting diagnosis system or a centralized detection system.

[0055] A third aspect of the present application provides an electronic device, including:

[0056] Memory and processor;

[0057] Wherein, the memory is used to store programs;

[0058] The processor is used to execute the program, and when the program is executed, it is specifically used to implement the method for generating a station diagram of an axle counting device as described in any one of the above.

[0059] A fourth aspect of the present application provides a computer storage medium for storing a computer program, wherein when the computer program is executed by a processor, the computer program is used to implement the method for generating a station diagram of an axle counting device as described in any one of the above.

[0060] The present application provides a method for generating a station map of an axle counting device. In response to a user's definition operation of a graphic element of a station map of an axle counting device, the graphic element templates of the station map of an axle counting device are generated according to the data structure of the graphic element defined by the user. Then, in response to a user's use operation of any graphic element template, an axle counting device graphic element consistent with the operated graphic element template is drawn in a canvas. Moreover, whenever a user adjusts any axle counting device graphic element in the canvas, the axle counting device graphic element on the canvas is redrawn according to the user's adjustment operation. In response to a user's attribute configuration operation of an axle counting device graphic element, the attributes of each axle counting device graphic element are configured using the information of each component element of the axle counting device. Finally, in response to a user's save operation, the station map composed of each axle counting device graphic element on the current canvas is saved, thereby realizing a method for generating a station map for an axle counting device by defining a graphic element template of an axle counting device, drawing using a template, and configuring attributes, which can better adapt to the axle counting device and avoid errors, and can effectively display various states when the station map of the axle counting device is used for monitoring in the future. BRIEF DESCRIPTION OF THE DRAWINGS

[0061] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0062] Figure 1 A schematic diagram of the architecture of a station map generation system for axle counting equipment provided in an embodiment of the present application;

[0063] Figure 2 A flowchart of a method for generating a station diagram of an axle counting device provided in an embodiment of the present application;

[0064] Figure 3 A flowchart of a method for redrawing an axle counting device graphic element on a canvas provided in an embodiment of the present application;

[0065] Figure 4 A flowchart of a method for one-key alignment of axle counting equipment graphic elements provided in an embodiment of the present application;

[0066] Figure 5 A schematic diagram of the architecture of a device for generating a station diagram of an axle counting device provided in an embodiment of the present application;

[0067] Figure 6 A schematic diagram of the architecture of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0068] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0069] In this application, relational terms such as first and second, etc. are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.

[0070] The present application provides a method for generating a station map of an axle counting device, so as to solve the problem that the prior art cannot accurately generate a station map of an axle counting device that can be used for detection of an axle counting system.

[0071] Optionally, in order to implement the method for generating a station map of an axle counting device provided in the present application, the present application embodiment provides a station map generating system for an axle counting device, such as Figure 1 As shown, including:

[0072] Station diagram drawing software, universal station diagram configuration file, station diagram DLL library.

[0073] Among them, the station map drawing software is mainly used to draw the station map of the axle counting equipment. Figure 1 As shown, the site map drawing software can specifically have the functions of opening / saving site maps, template definition, moving and dragging graphic elements, adjusting the size of graphic elements, zooming in / out, rotating, adding / deleting, one-key alignment, etc.

[0074] The general station diagram configuration file is mainly used to configure the properties of all graphics elements in the station diagram. For example, for the segment graphics element, the configured properties may include segment name, segment length, segment axle number, segment alarm, the actual position of the board corresponding to this segment in the axle counter cabinet, the corresponding coordinates of the graphics element in the canvas, etc.

[0075] The station diagram DLL library is a dynamic link library compiled by the station diagram configuration software. The monitoring system calls the XML configuration file through the DLL library to implement monitoring. Figure 1 As shown, the station diagram DLL library has the functions of loading configuration, station diagram display, section real-time status display, axis number real-time status display, sensor real-time status display, alarm real-time status display, etc.

[0076] The axle counting maintenance diagnosis system and the centralized monitoring system call the XML configuration file through the station diagram DLL library to call the station diagram drawn by the station diagram generation software.

[0077] Based on the above-mentioned dedicated station map generation system for axle counting equipment, the embodiment of the present application provides a method for generating a station map for axle counting equipment, such as Figure 2 As shown, the following steps are included:

[0078] S201 . In response to a user's definition operation on graphic elements of a station diagram of an axle counting device, generate graphic element templates of the station diagram of the axle counting device according to a data structure of the graphic elements defined by the user.

[0079] Specifically, the user defines the data combination and data file format of the graphic elements according to the graphic elements required in the axle counting device, so as to construct the graphic element templates of various signal devices in the station field diagram. Specifically, by defining different classes and different attributes, the graphic element templates used in the station field diagram of the axle counting device are defined. The generated graphic element templates may include but are not limited to sections, sensors, section intervals, section switches, driving directions, section axle numbers, platform names, time, legends, etc.

[0080] S202: In response to a user's operation on any graphic element template, an axle counting device graphic element consistent with the operated graphic element template is drawn in a canvas.

[0081] It should be noted that the generated element template will be displayed in the template bar. The template bar is usually set to the left side of the interface, and the canvas is on the right. When the user needs to use a element template to draw, he can select the corresponding element to draw on the canvas, that is, use the element template, and then draw an element consistent with the element template in the screen, so that an axle counting device element is obtained on the canvas.

[0082] Optionally, in another embodiment of the present application, a specific implementation of step S202 includes:

[0083] In response to the user's drag operation on any primitive template, the GDI redraw technology is used to draw the axle counting device primitive consistent with the primitive template at the position where the user drags in the canvas according to the default properties of the primitive template.

[0084] That is, in the embodiment of the present application, the use operation of the primitive template is a drag operation, so that the user can more accurately generate the axle counting device primitive at the desired position. In addition, in order to provide drawing efficiency and reduce lag, the GDI redrawing technology is used to draw the axle counting device primitive at the position where the user stops dragging in the canvas.

[0085] Since only an axle counting device primitive is generated at this time, users can adjust it according to their needs later, so it is generated according to the default properties of the primitive. The default properties usually only include some basic properties, such as size, color, angle, etc., and do not involve the name of the specific axle counting device primitive and other properties associated with the axle counting device.

[0086] Optionally, in another embodiment of the present application, in addition to generating an axle counting device primitive by dragging, in order to more conveniently generate a fork between the axle counting device primitives, another embodiment of the present application may further include a method for generating a fork, specifically including:

[0087] In response to the user's branch road configuration operation, each branch road is drawn in the corresponding axle counting equipment diagram element in the canvas according to the branch road information configured by the user.

[0088] The branch road information at least includes the location, quantity, direction and angle of the branch roads.

[0089] Therefore, in the embodiment of the present application, the user does not need to draw each fork road one by one, but can use the code to implement one-click configuration of the position, number, direction and angle of the fork roads, and then input the relevant parameters to automatically generate them.

[0090] S203. Whenever the user performs an adjustment operation on any axle counting device primitive in the canvas, the axle counting device primitive on the canvas is redrawn according to the user's adjustment operation.

[0091] It should be noted that the axle counting device primitive generated in step S202 is a default axle counting device primitive, and the axle counting device primitive can be adjusted in different ways according to needs in the subsequent design process. Specifically, the axle counting device primitive can be moved, enlarged and reduced, rotated, added and deleted. Therefore, it is necessary to redraw the adjusted axle counting device primitive on the screen according to the user's adjustment operation.

[0092] Optionally, the adjustment operation of the axle counting device primitive may be specifically performed by using a mouse, such as dragging the axle counting device primitive, rotating the axle counting device primitive, etc. It may also be achieved by modifying the corresponding attributes of the axle counting device primitive, such as moving the axle counting device primitive by modifying the coordinates of the axle counting device primitive, selecting the axle counting device primitive by modifying the angle of the axle counting device primitive, and adjusting the size of the axle counting device primitive by modifying the length and width of the axle counting device primitive.

[0093] Optionally, in another embodiment of the present application, a specific implementation of step S203 is as follows: Figure 3 As shown, the following steps are included:

[0094] S301. Whenever a user performs an adjustment operation on any axle counting device primitive in a canvas, a redrawing area of ​​the axle counting device primitive is determined according to the user's adjustment operation.

[0095] It should be noted that in order to improve drawing efficiency and avoid freezes, in an embodiment of the present application, only the area where the drawn axle counting device primitive changes is redrawn during redrawing. Therefore, it is necessary to first determine the area where the axle counting device primitive is located after the adjustment operation, that is, the redrawing area of ​​the axle counting device primitive.

[0096] S302: Erasing the axle counting device primitive and the redrawing area of ​​the axle counting device primitive on the canvas by using the GDI redrawing technology.

[0097] It should be noted that, since redrawing is required, the axle counting device primitive at the original location of the axle counting device primitive must exist, so it is aligned and erased. The redrawing area of ​​the axle counting device primitive needs to be redrawn, so it is also necessary to erase the area to facilitate subsequent redrawing on the area.

[0098] S303 , redrawing the axle counting device primitive and the image before erasing the redrawing area of ​​the axle counting device primitive in the redrawing area of ​​the axle counting device primitive by using the GDI redrawing technology.

[0099] Because other graphics may exist in the redrawing area of ​​the axle counting device graphic element before erasing, it is necessary to comprehensively consider the axle counting device graphic element and the graphics before erasing when redrawing.

[0100] Optionally, in another embodiment of the present application, when the adjustment operation is an alignment operation, a specific implementation of step S203 is as follows: Figure 4 As shown, the following steps are included:

[0101] S401. Whenever the user performs an alignment operation on any axle counting device primitive in the canvas, determine the position coordinates of the axle counting device primitive selected by the user as a reference.

[0102] In order to facilitate the alignment of the position and length of each axle counting device primitive in a section, a one-key alignment function is implemented in the embodiment of the present application. Specifically, when alignment is required, the user selects the axle counting device primitive as the reference, and the position coordinates of the axle counting device primitive are obtained. Of course, if length alignment is to be achieved, the length of the axle counting device primitive can also be obtained.

[0103] S402 . Erase and redraw each axle counting device primitive in the area selected by the user according to the position coordinates of the axle counting device primitive used as a reference, so that each axle counting device primitive in each area selected by the user is aligned in the same straight line with the axle counting device primitive used as a reference.

[0104] Specifically, the user can select an area by box selection, so as to consistently select all axle counting equipment primitives in the same section. At this time, the axle counting equipment primitives in the area selected by the user will be erased and redrawn according to the position coordinates of the axle counting equipment primitive used as the reference, so that the axle counting equipment primitives in the area selected by the user are aligned in the same straight line with the axle counting equipment primitive used as the reference.

[0105] Optionally, considering that the user may perform frequent operations when performing adjustment operations, for example, when moving the axle counter device primitive, it may be moved continuously because it cannot be accurately moved to the desired position. Therefore, in another embodiment of the present application, in order to avoid freezing and waste of resources, before redrawing the axle counter device primitive on the canvas, it further includes:

[0106] The drawing timing is performed for the axle counting device primitive, and before the drawing timing reaches the preset duration, it is monitored in real time whether a new axle counting device primitive receives a redrawing instruction.

[0107] If no new axle counting device primitive receives a redrawing instruction before the drawing timing reaches the preset time, the axle counting device primitive on the canvas is redrawn in step S203. If a new axle counting device primitive receives a redrawing instruction before the drawing timing reaches the preset time, the drawing timing is reset to zero, and the drawing timing for the axle counting device primitive is returned.

[0108] That is, in the embodiment of the present application, delayed drawing is used when redrawing, that is, redrawing is performed after a preset delay, for example, redrawing is performed after a delay of 10ms. When redrawing is triggered again within the preset time, the preset time will start again, so that drawing will not be performed every time, thereby avoiding frequent user operations causing stuck segments.

[0109] S204 , in response to the user's operation of configuring the properties of the axle counting device primitive, the properties of each axle counting device primitive are configured using the information of each component element of the axle counting device.

[0110] The various components of the axle counting device may include sections, sensors and other components that constitute the axle counting device.

[0111] Specifically, according to the structure of the axle counting device primitive, the properties of each axle counting device primitive are configured using the configuration information of each component element of the axle counting device. For example, the structure of a segment includes the segment name, segment length, segment axis number, segment alarm, the actual position of the board corresponding to the segment in the axle counting cabinet, the coordinates of the primitive in the canvas, etc.

[0112] S205. In response to the user's save operation, the station map composed of the axle counting equipment graphics elements on the current canvas is saved.

[0113] Specifically, after the drawing is completed, when the user performs a save operation, the XML serialization class is called to serialize and store the class of the station map element. Optionally, the format of the stored file can be XML format, which is convenient for the station map generation software and the monitoring system to call.

[0114] Optionally, in another embodiment of the present application, after executing step S205, the following may be further performed:

[0115] Respond to the target system's call request for the station map through the dynamic link library, load the battlefield map through the dynamic link library, and display the station map to display the real-time status of the corresponding station through the station map.

[0116] The target system is an axle counting diagnosis system or a centralized detection system.

[0117] The embodiment of the present application provides a method for generating a station map of an axle counting device, which responds to a user's definition operation of a graphic element of a station map of an axle counting device, and generates graphic element templates of each graphic element of the station map of an axle counting device according to the data structure of the graphic element defined by the user. Then, in response to a user's use operation of any graphic element template, an axle counting device graphic element consistent with the operated graphic element template is drawn in a canvas. Moreover, whenever a user adjusts any axle counting device graphic element in the canvas, the axle counting device graphic element on the canvas is redrawn according to the user's adjustment operation. In response to a user's attribute configuration operation of an axle counting device graphic element, the attributes of each axle counting device graphic element are configured using information of each component element of the axle counting device. Finally, in response to a user's save operation, the station map composed of each axle counting device graphic element on the current canvas is saved, thereby realizing a method for generating a station map for an axle counting device by defining a graphic element template of an axle counting device, drawing using a template, and configuring attributes, which can better adapt to the axle counting device and avoid errors, and can further include the subsequent use of the station map of the axle counting device for monitoring, and can effectively display various states.

[0118] Another embodiment of the present application provides a device for generating a station diagram of an axle counting device, such as Figure 5 As shown, including:

[0119] The definition unit 501 is used to respond to the user's definition operation on the graphic element of the station field diagram of the axle counting equipment, and generate various graphic element templates of the station field diagram of the axle counting equipment according to the data structure of the graphic element defined by the user.

[0120] The drawing unit 502 is used to respond to the user's operation on any primitive template and draw an axle counting device primitive consistent with the operated primitive template in the canvas.

[0121] The redrawing unit 503 is configured to redraw the axle counting device primitive on the canvas according to the user's adjustment operation whenever the user performs an adjustment operation on any axle counting device primitive on the canvas.

[0122] The configuration unit 504 is used to respond to the user's attribute configuration operation on the axle counting device primitive, and configure the attributes of each axle counting device primitive using the information of each component element of the axle counting device.

[0123] The saving unit 505 is used to respond to the user's saving operation and save the station map composed of various axle counting equipment graphics elements on the current canvas.

[0124] Optionally, in the axle counting equipment station diagram generating device provided in another embodiment of the present application, the drawing unit includes:

[0125] The drawing subunit is used to respond to the user's drag operation on any primitive template, and use GDI redrawing technology to draw the axle counting device primitive consistent with the primitive template at the position where the user drags in the canvas according to the default properties of the primitive template.

[0126] Optionally, in the axle counting equipment station diagram generating device provided in another embodiment of the present application, when the adjustment operation is an alignment operation, the redrawing unit executes the adjustment operation of the user to redraw the axle counting equipment graphic element on the canvas, and is used to:

[0127] Whenever the user performs an alignment operation on any axle counting device primitive in the canvas, the position coordinates of the axle counting device primitive selected by the user as a reference are determined.

[0128] According to the position coordinates of the axle counting device primitive used as a reference, each axle counting device primitive in the area selected by the user is erased and redrawn, so that each axle counting device primitive in each user selected area is aligned with the axle counting device primitive used as a reference in the same straight line.

[0129] Optionally, in the axle counting equipment station diagram generating device provided in another embodiment of the present application, the redrawing unit includes:

[0130] The area determination unit is used to determine the redrawing area of ​​the axle counting device primitive according to the user's adjustment operation whenever the user adjusts any axle counting device primitive in the canvas.

[0131] The erasing unit is used to erase the axle counting device primitive and the redrawing area of ​​the axle counting device primitive on the canvas by using the GDI redrawing technology.

[0132] The redrawing unit is used to redraw the axle counting device primitive and the image before erasing the redrawing area of ​​the axle counting device primitive in the redrawing area of ​​the axle counting device primitive by using the GDI redrawing technology.

[0133] Optionally, in the axle counting equipment station diagram generating device provided in another embodiment of the present application, the device further includes:

[0134] Timing unit, used to time the drawing of the axle counting device primitive.

[0135] The judgment unit is used to monitor in real time whether a new axle counting device graphic element receives a redrawing instruction before the drawing timing reaches a preset time.

[0136] If no new axle counting device primitive receives a redraw instruction before the drawing timing reaches a preset time, the redrawing unit executes redrawing of the axle counting device primitive on the canvas.

[0137] The reset unit is used to reset the drawing timing to zero when a new axle counting device primitive receives a redraw instruction before the drawing timing reaches a preset time, and return to the timing unit to execute drawing timing for the axle counting device primitive.

[0138] Optionally, in the axle counting equipment station diagram generating device provided in another embodiment of the present application, the device further includes:

[0139] The turnout drawing unit is used to respond to the turnout configuration operation of the user, and draw each turnout in the corresponding axle counting equipment diagram element in the canvas according to the turnout information configured by the user. The turnout information at least includes the position, quantity, direction and angle of the turnout.

[0140] Optionally, in the axle counting equipment station diagram generating device provided in another embodiment of the present application, the device further includes:

[0141] The application unit is used to respond to the target system's call request for the station map through the dynamic link library, load the battlefield map through the dynamic link library, and display the station map to display the real-time status of the corresponding station through the station map. Among them, the target system is an axle counting diagnosis system or a centralized detection system.

[0142] It should be noted that the specific working process of each unit provided in the above embodiments of the present application can refer to the implementation process of the corresponding steps in the above method embodiments, and will not be repeated here.

[0143] Another embodiment of the present application provides an electronic device, such as Figure 6 As shown, including:

[0144] Memory 601 and processor 602 .

[0145] The memory 601 is used to store programs.

[0146] The processor 602 is used to execute the program stored in the memory 601. When the program is executed, it is specifically used to implement the method for generating a station diagram of an axle counting device as provided in any one of the above embodiments.

[0147] Another embodiment of the present application provides a computer storage medium for storing a computer program, which, when executed by a processor, is used to implement any of the above methods for generating a station diagram of an axle counting device.

[0148] Computer storage media includes permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include temporary computer-readable media (transitory media), such as modulated data signals and carrier waves.

[0149] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0150] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for generating a station diagram of an axle counting device, characterized in that: include: In response to a user's definition operation of a graphic element of a station field diagram of an axle counting device, generating graphic element templates of the station field diagram of the axle counting device according to a data structure of the graphic element defined by the user; In response to the user's operation of using any one of the primitive templates, drawing an axle counting device primitive consistent with the operated primitive template in the canvas; Whenever the user performs an adjustment operation on any of the axle counting device primitives in the canvas, the axle counting device primitives on the canvas are redrawn according to the adjustment operation of the user; In response to the user's operation of configuring the properties of the axle counting device primitive, the properties of each of the axle counting device primitives are configured using information of each component element of the axle counting device; In response to the user's save operation, the station map composed of the axle counting equipment graphics elements on the current canvas is saved.

2. The method according to claim 1, characterized in that In response to the user's operation of using any one of the primitive templates, drawing an axle counting device primitive consistent with the operated primitive template in the canvas includes: In response to the user's dragging operation on any one of the primitive templates, the axle counting device primitive consistent with the primitive template is drawn at the position where the user drags in the canvas according to the default attributes of the primitive template using the GDI redrawing technology.

3. The method according to claim 1, characterized in that The adjustment operation is an alignment operation, and whenever the user performs an adjustment operation on any of the axle counting device primitives in the canvas, the axle counting device primitives on the canvas are redrawn according to the user's adjustment operation, including: Whenever the user performs an alignment operation on any of the axle counting device primitives in the canvas, determining the position coordinates of the axle counting device primitive selected by the user as a reference; According to the position coordinates of the axle counting device primitive used as a reference, each axle counting device primitive in the area selected by the user is erased and redrawn, so that each axle counting device primitive in the area selected by the user is aligned in the same straight line with the axle counting device primitive used as a reference.

4. The method according to claim 1, characterized in that: Whenever the user performs an adjustment operation on any of the axle counting device primitives in the canvas, redrawing the axle counting device primitives on the canvas according to the user's adjustment operation includes: Whenever the user performs an adjustment operation on any of the axle counting device primitives in the canvas, a redrawing area of ​​the axle counting device primitive is determined according to the adjustment operation of the user; Erasing the axle counting device primitive and the redrawing area of ​​the axle counting device primitive on the canvas by using GDI redrawing technology; The axle counting device primitive and the image before the redrawing area of ​​the axle counting device primitive is erased are redrawn in the redrawing area of ​​the axle counting device primitive by using the GDI redrawing technology.

5. The method according to claim 1, characterized in that Before redrawing the axle counting device primitive on the canvas, the method further includes: Performing drawing timing for the axle counting device graphic element; Before the drawing timing reaches a preset time, real-time monitoring is performed to determine whether a new redrawing instruction is received by the axle counting device graphic element; Wherein, if no new redrawing instruction is received for the axle counting device primitive before the drawing timing reaches a preset time length, redrawing the axle counting device primitive on the canvas is executed; If a new redraw instruction is received for the axle counting device primitive before the drawing timing reaches the preset time, the drawing timing is reset to zero, and the drawing timing for the axle counting device primitive is returned to be executed.

6. The method according to claim 1, characterized in that Also includes: In response to the user's branch road configuration operation, the corresponding axle counting device diagram element in the canvas draws each branch road according to the branch road information configured by the user; wherein the branch road information at least includes the position, quantity, direction and angle of the branch road.

7. The method according to claim 1, characterized in that After the station diagram composed of the axle counting equipment graphic elements on the current canvas is saved in response to the user's save operation, the method further includes: In response to the target system's call request for the station field map through the dynamic link library, the battlefield map is loaded through the dynamic link library, and the station field map is displayed to display the various real-time states of the corresponding station field through the station field map; wherein the target system is an axle counting diagnosis system or a centralized detection system.

8. A device for generating a station diagram of an axle counting device, characterized in that: include: A definition unit, configured to respond to a user's definition operation on a graphic element of a station field diagram of an axle counting device, and generate graphic element templates of the station field diagram of the axle counting device according to a data structure of the graphic element defined by the user; A drawing unit, configured to respond to the user's operation of using any one of the primitive templates and draw an axle counting device primitive consistent with the operated primitive template in a canvas; a redrawing unit, configured to redraw the axle counting device primitive on the canvas according to the user's adjustment operation whenever the user performs an adjustment operation on any of the axle counting device primitives on the canvas; a configuration unit, configured to respond to the user's attribute configuration operation on the axle counting device primitive, and configure the attributes of each of the axle counting device primitives using information of each component element of the axle counting device; The saving unit is used to respond to the user's saving operation and save the station map composed of the axle counting equipment graphics elements on the current canvas.

9. An electronic device, characterized in that: include: Memory and processor; Wherein, the memory is used to store programs; The processor is used to execute the program, and when the program is executed, it is specifically used to implement the method for generating a station diagram of an axle counting device according to any one of claims 1 to 7.

10. A computer storage medium, characterized in that: Used to store a computer program, which, when executed by a processor, is used to implement the method for generating a station diagram of an axle counting device as claimed in any one of claims 1 to 7.