CN107133032B - Graphical interface system of all-line station yard graph - Google Patents

Graphical interface system of all-line station yard graph Download PDF

Info

Publication number
CN107133032B
CN107133032B CN201710229017.8A CN201710229017A CN107133032B CN 107133032 B CN107133032 B CN 107133032B CN 201710229017 A CN201710229017 A CN 201710229017A CN 107133032 B CN107133032 B CN 107133032B
Authority
CN
China
Prior art keywords
icon
elements
index
menu
interface system
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710229017.8A
Other languages
Chinese (zh)
Other versions
CN107133032A (en
Inventor
黎邓根
李娟娟
王丽丽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CRRC Corp Ltd
Hunan CRRC Times Signal and Communication Co Ltd
Original Assignee
CRRC Corp Ltd
Hunan CRRC Times Signal and Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by CRRC Corp Ltd, Hunan CRRC Times Signal and Communication Co Ltd filed Critical CRRC Corp Ltd
Priority to CN201710229017.8A priority Critical patent/CN107133032B/en
Publication of CN107133032A publication Critical patent/CN107133032A/en
Application granted granted Critical
Publication of CN107133032B publication Critical patent/CN107133032B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a whole-line station yard graph graphical interface system which constructs graphs based on XM L language, has rich and detailed graphs, strong data readable expandability and good interactivity and is more convenient to use.

Description

Graphical interface system of all-line station yard graph
Technical Field
The invention relates to a graphical interface system, in particular to a full-line station yard graph graphical interface system in the field of rail transit.
Background
At present, ATS (automatic train monitoring system) station yard graph generation method is mainly based on components. The following description takes an ActiveX component under the Windows platform as an example.
The site map based on the ActiveX mainly comprises different controls, and the basic composition controls comprise a section control, a turnout control, a signal control, a platform control, a train number window control and other controls. Firstly, a reusable station yard graph control needs to be designed and is realized by codes; the task that the design of a reusable component needs to accomplish first is to design the property. The attributes of the site map component are classified into static attributes and dynamic attributes. Static properties refer to some component properties that can be modified when the site map is drawn, which are immutable at system runtime, i.e., static with respect to the running system, once the site map is loaded and generated; the dynamic attribute refers to an attribute that is continuously changed in the running process without setting or only setting by default when the station yard graph is drawn, that is, an attribute that is dynamically changed in the running process. After the components are available, the realized components can be spliced into an actual station yard graph, the static attributes of the components and the positions of the controls are stored, and the station yard graph can be generated by loading and drawing the controls once according to the stored files when the system is operated.
The disadvantages of the component-based approach to generating a site map are: poor flexibility, poor reusability, difficult maintenance and poor compatibility. Redesigning new components once new lines are needed to add new devices; and if the same device needs to have different expressions, different components are needed to realize the device; code recompilation must be modified to generate new or modify old components; such systems are difficult to be compatible with other software.
Disclosure of Invention
The following presents a simplified summary of one or more aspects in order to provide a basic understanding of such aspects. This summary is not an extensive overview of all contemplated aspects, and is intended to neither identify key or critical elements of all aspects nor delineate the scope of any or all aspects. Its sole purpose is to present some concepts of one or more aspects in a simplified form as a prelude to the more detailed description that is presented later.
The invention aims to solve the problems and provides a full-line station yard graph graphical interface system, which constructs graphs based on XM L language, has rich and detailed graphs, strong data reading expandability and good interactivity and is more convenient to use.
The technical scheme of the invention is as follows: the invention discloses a graphical interface system of a full-line station yard graph, which comprises:
the graphic file storage device is used for storing data files required by the station yard graph interface;
the processor loads the data files in the graphic file storage device to generate a station yard graph which dynamically changes in real time;
and the real-time dynamically changed station yard graph generated by the processor is displayed on the display device.
According to an embodiment of the full wire station yard graph graphical interface system of the present invention, the data file of the graph file storage device comprises a root element component, and the root element component further comprises: control element, general information element, interlocking area format element and file menu format element.
According to an embodiment of the full wire yard graph graphical interface system of the present invention, the control elements further comprise: a version number element, an author element, and a CRC check code element.
According to an embodiment of the full wire yard graph graphical interface system of the present invention, the common information element further comprises: a color library element, a font library element, and a picture library element.
According to an embodiment of the all-wire yard graph graphical interface system of the present invention, the color library elements comprise: a color data definition element, a default color index element, a background color index element, a color blinking time interval element.
According to an embodiment of the full line yard graph graphical interface system of the present invention, the color data definition elements comprise: color index attribute, color name element, custom defined ARGB color value element, flicker or not element, where A is transparency.
According to an embodiment of the full line yard graph graphical interface system of the present invention, the font library elements comprise: font data definition element, default font index element.
According to an embodiment of the full-line station yard graph graphical interface system of the present invention, the font data definition elements include a font index attribute, a font name element, a height element for specifying a character unit or character of a font, an element for specifying an average width of a character in the font, an element for specifying a font size, an element for specifying a line width of the font, an element for specifying whether the font is bold, an element for italics, an element for underlining, and an element for deleting a line.
According to an embodiment of the full line station yard graph graphical interface system of the present invention, the picture library element comprises: picture data definition element, default picture index element.
According to an embodiment of the full line station yard graph graphic interface system, the picture data definition elements comprise a picture index attribute and a picture UR L path element.
According to an embodiment of the full wire yard graph graphical interface system of the present invention, the interlocking zones format element comprises an interlocking zones list element, wherein the interlocking zones list element further comprises an interlocking zones index attribute, an element for defining the format of the graphical XM L file icon, and an element for defining the format of the graphical XM L file button.
According to an embodiment of the full line yard graph graphical interface system of the present invention, the elements for defining the format of the graphical XM L file icon further comprise an icon list element further comprising an icon index attribute, a layer element to which the icon belongs, an icon type element, a default color index element, a logical table element associated with the icon, a device index element associated with the icon, a button index element associated with the icon, an element of a filled or unfilled circular icon, a line segment icon element, an element of a filled or unfilled rectangular icon, a text box icon element, a filled or unfilled polygonal icon element.
According to an embodiment of the full wire yard graph graphical interface system of the present invention, the logical table elements associated with the icons further comprise: the simple logic table element comprises a code bit name list element and a color index list element, and the complex logic table element comprises a Boolean logic expression list element, wherein the logic expression list element comprises a Boolean logic expression element consisting of code bit indexes and a color index element displayed by the icon when the Boolean logic expression is true.
According to an embodiment of the full line yard graph graphical interface system of the present invention, the device index element associated with the icon further comprises: device type element, device index element.
According to an embodiment of the full line yard graph graphical interface system of the present invention, the elements of the filled or unfilled circular icons further comprise: the coordinate element of the upper left corner of the circle, the diameter element of the circle, the line width element of the circular frame and whether the element is filled.
According to an embodiment of the full wire yard graph graphical interface system of the present invention, the wire segment icon elements further comprise: line segment starting point coordinate elements, line segment end point coordinate elements and line width elements.
According to an embodiment of the full wire yard graph graphical interface system of the present invention, the elements of the filled or unfilled rectangular icons further comprise: a coordinate element at the upper left corner of the rectangle, a rectangle width element, a rectangle height element, a rectangle line width element, a filling element and a rectangle rotation angle element.
According to an embodiment of the full wire yard graph graphical interface system of the present invention, the filled or unfilled polygon icon elements further comprise: set elements of all paths constituting a polygon, polygon line width elements, and fill or not elements.
According to an embodiment of the full wire yard graph graphical interface system of the present invention, the set elements of all paths that make up a polygon further comprise: a path list element, the path list element comprising one of an element of which the path is a straight line, an element of which the path is a bezier curve, or an element of which the path is an elliptical arc, wherein the element of which the path is a straight line comprises a line segment start element, a line segment end element, the element of which the path is a bezier curve comprises a curve start point element, a curve first control point element, a curve second control point element, a curve end point element, and the element of which the path is an elliptical arc comprises an element of which the position of the upper left corner of the rectangular boundary of the ellipse from which the arc is cut, a wide element of which the rectangular boundary of the ellipse from which the arc is cut, a high element of which the rectangular boundary of the ellipse from which the arc is cut, a start angle element of the arc, and an angle element between the start of the.
According to one embodiment of the full line yard graph graphical interface system of the present invention, the text box icon elements comprise: the character alignment mode element in the text box comprises a horizontal alignment mode element defining the characters in the text box and a vertical alignment mode element defining the characters in the text box.
According to one embodiment of the full wire yard graph graphical interface system of the present invention, the elements used to define the format of the graphical XM L file button include a button list element including a button index attribute, a button type element, a device index element associated with the button, and a button current state element.
According to an embodiment of the full line station yard graph graphical interface system of the present invention, the file menu format elements comprise: a default alignment mode element of the menu text, a default color index element of the menu text, a default font index element of the menu text, a default background color index element of the menu text, and a menu element.
According to an embodiment of the full line yard graph graphical interface system of the present invention, the menu elements comprise: the menu comprises a menu index attribute, a menu popup mode attribute and menu item elements, wherein the menu item elements comprise: the menu item text alignment method comprises an alignment mode attribute of the menu item text, a color index attribute of the menu item text, a menu item background color index attribute, a font index attribute of the menu item text, an icon index attribute displayed on the left side of a menu item, a menu item text element, a menu item available element, a root menu item element and a menu item element, wherein the root menu item element comprises a menu item associated data element and a control code bit type name element.
Compared with the prior art, the station yard graph has the advantages that the station yard graph is divided into two layers which are mutually connected, namely a graph layer and an equipment layer, all possible basic primitives of the station yard graph are included in the graph layer, and the basic primitives mainly comprise straight lines, rectangles, filled rectangles, circles, filled circles, diamonds, triangles, texts and the like.
Drawings
FIG. 1 illustrates a schematic diagram of an embodiment of a full wire yard graph graphical interface system of the present invention.
Fig. 2 shows a graphical interface diagram of a yard graph.
Fig. 3 shows a schematic diagram of the coordinate system of the Icon.
FIG. 4 shows a schematic diagram of Circle elements.
Fig. 5 shows a schematic diagram of the L ine element.
Fig. 6 shows a schematic diagram of a Rect element.
FIG. 7 shows a schematic diagram of a Polygon element
Detailed Description
The above features and advantages of the present disclosure will be better understood upon reading the detailed description of embodiments of the disclosure in conjunction with the following drawings. In the drawings, components are not necessarily drawn to scale, and components having similar relative characteristics or features may have the same or similar reference numerals.
FIG. 1 illustrates a schematic diagram of an embodiment of a full wire yard graph graphical interface system of the present invention. Referring to fig. 1, the graphical interface system of the all-wire station yard graph of the present embodiment includes: a graphic file storage device 1, a processor 2 and a display device 3.
The graphic file storage device 1 stores data files required for the yard graph graphic interface. The processor 2 loads the data files in the graphics file storage to generate a site map that dynamically changes in real time. The display device 3 displays the real-time dynamically changing yard map generated by the processor 2 on the display device 3.
The ATS station yard graph graphic interface data file records static attributes and dynamic display schemes of the station yard graph, menu data and button data related to equipment, a color library, a font library and the like required by station yard graph display.
The site map is composed of a series of icons, all the icons are drawn on the human-computer interface, and the static topology of the whole site map is displayed.
The Icon includes a Device index of the Device, and the Central User Interface Terminal (CUIT) can find the corresponding Device and obtain Device related information through the Device index.
The logic table specifies the dynamic display scheme of Icon when the Device is in different states. Each Icon comprises a logic table, and when the Device state changes, the Icon can obtain a corresponding display scheme through querying the logic table and update the display of the Icon in real time, so that the real-time dynamic display of the station yard graph is realized.
Menu and Button data respectively define device-associated Menu data and Button data for controlling the yard device and the train number window device.
Menu is composed of Menu items and specifies the pop-up mode of the Menu. The CUIT firstly finds a corresponding Device according to the clicked Icon, then finds a corresponding menu according to the Device, and pops up the menu according to a specified menu popup mode (for example, popping up the menu when a right-key Device is clicked). CUIT requires custom menu operation when pressed.
Button has three states of pressed, activated but not pressed and not activated. The client system should set the Button state according to the user operation condition.
The ATS GUI data file is stored in XM L format, is XM L file format standardized and the validity of XM L file verified, and is described in XM L file format by XSD, which is described in detail below, XSD file is encoded in UTF-8 format and can meet international requirements, XSD itself contains an annotation with ID 'CRC' storing the CRC check code of XSD for preventing the XSD file from being tampered unintentionally or maliciously.
The data file in the graphic file storage device 1 includes a root element component, the element CuiGraphic is a root element of an ATS graphic interface data file (hereinafter referred to as a graphic XM L file), and the root element component of CuiGraphic includes a Control element (Control), a general information element (GeneralInfo), an interlocking area format element (Rtus), and a file menu format element (menu). see table 1 below.
TABLE 1CuiGraphic contains elements
Figure DEST_PATH_GDA0001343231790000071
The Control element Control contains all the useful information that the client system uses when creating the graphic XM L file, and the Control element does not need to read or process any other element.
Table 2Control contains elements
Element name Type (B) Number of Main key Description of the invention
Version string
1 Whether or not Version number
Author string
1 Whether or not Authors refer to
CRC string 1 Whether or not A CRC check code.
The generic information element GeneralInfo contains a Color library element (Color L ib), a Font library element (Font L ib) and a picture library element (Image L ib), other elements that need to be referenced by indices when using Color and Font.
TABLE 3 Generallnfo contains elements
Element name Type (B) Number of Main key Description of the invention
ColorLib complexType
1 Whether or not Color library
FontLib complexType
1 Whether or not Font library
ImageLib complexType [0,1] Whether or not Picture library
The Color L ib contains the elements shown in table 4 below, namely, a Color data definition element (Color), a default Color index element (DefaultColor), a background Color index element (background Color), and a Color blinking interval element (FlashingInterval), see table 4 below.
TABLE 4Color L ib contains elements
Figure DEST_PATH_GDA0001343231790000072
Figure DEST_PATH_GDA0001343231790000081
The Color data definition element (Color) contains 1 attribute, i.e., a Color index attribute, which is shown in table 5 below.
Table 5Color contains attributes
Attribute name Type (B) Number of Main key Description of the invention
Index int 1 Is that Color index, starting from 1.
The Color data definition element (Color) contains 3 elements, which are a Color Name element (Name), a client-defined ARGB Color value element (colorvaluelnhost), and a Flash element (Flash). As shown in table 6 below.
TABLE 6Color contains elements
Figure DEST_PATH_GDA0001343231790000082
The Font library element Font L ib contains all fonts, note that at least one Font is included in the Font library as a default Font, and the Font L ib contains a Font data definition element (Font) and a default Font index element (DefaultFont), as shown in table 7 below.
Table 7Font L ib contains elements
Figure DEST_PATH_GDA0001343231790000083
The Font data definition element (Font) contains 1 attribute, i.e., the Font index attribute, see table 8 below.
Table 8Font contains attributes
Attribute name Type (B) Number of Main key Description of the invention
Index int 1 Is that Font index, starting from 1.
The Font data definition element (Font) contains 8 elements, which are a Font Name element (Name), a Height element (Height) for specifying a character unit or character of a Font, an element (Width) for specifying an average Width of characters in a Font, an element (Size) for specifying a Font Size, an element (Weight) for specifying a Font line Width, an element (Bold) for specifying whether a Font is Bold, an element (Italic) for specifying an Italic, an element (underline), and an element (StrokedOut) for specifying a deletion line, respectively. Specifically, the following table 9 shows.
Table 9Font contains elements
Figure DEST_PATH_GDA0001343231790000091
The picture library element (Image L ib) contains all pictures, note that at least one picture is included in the picture library as a default picture, and the picture library element (Image L ib) contains the picture data definition element (Image) and the default picture index element (DefaultImage) listed in table 10 below.
Table 10Font L ib contains elements
Figure DEST_PATH_GDA0001343231790000092
The picture data definition element (Image) includes 1 attribute, i.e., a picture Index attribute (Index), as shown in table 11 below.
Table 11Image contains attributes
Attribute name Type (B) Number of Main key Description of the invention
Index int 1 Is that Picture index, starting with 1.
The picture data definition element (Image) contains 1 element, i.e., a picture UR L path element (Url), as shown in table 12 below.
Table 12Image contains elements
Element name Type (B) Number of Main key Description of the invention
Url string
1 Whether or not Picture Url path.
The interlocking region format element (Rtus) contains all Rtu (interlocking region list elements) and may contain 0's Rtu, as shown in table 13 below.
TABLE 13Rtus contains elements
Element name Type (B) Number of Main key Description of the invention
Rtu complexType [0,∞) Whether or not List of interlocked zones
The interlocking blocks list element (Rtu) describes an interlocking block that contains all of the icons and buttons of the interlocking block, which are not contained in Rtu since Menu is common to all interlocking blocks.
The interlocked-region list element Rtu contains 1 attribute, namely, the interlocked-region index attribute, as shown in table 14 below.
Table 14Rtu contains attributes
Figure DEST_PATH_GDA0001343231790000101
The interlocked area list element Rtu contains 3 elements, respectively, an element (Icons) for defining the format of the graphic XM L file icon and an element (Buttons) for defining the format of the graphic XM L file button, as shown in Table 15 below.
Table 15Rtu contains elements
Element name Type (B) Number of Main key Description of the invention
Icons complexType
1 Whether or not For defining the format of the graphical XM L file icon.
Buttons complexType 1 Whether or not For defining the format of the graphic XM L file button.
The element Icons contains all Icon list elements Icon, which may contain 0 Icons, as shown in table 16 below.
Table 16Icons contains elements
Element name Type (B) Number of Main key Description of the invention
Icon complexType [0,∞) Whether or not Icon list
The graph XM L defines an Icon of the type:
circle: solid or hollow round;
l ine, line segment;
and Rect: the solid rectangle is different from the line segment, the line segment can be oblique line, and the solid rectangle can only be in horizontal or vertical direction;
text: a text;
polygon: solid or hollow polygons.
The CUIT may decide whether the Icon needs to be displayed in units of interlocking zones. In a typical application, a control center workstation needs to display all the Icon of the interlocking area of the whole line, and a station or a vehicle section only needs to display the Icon of the station and the adjacent station.
The reference coordinate system for all Icon coordinates is shown in fig. 3. The Icon coordinate system uses the upper left corner of the full line yard graph as the origin instead of the upper left corner of the interlocking zone where the Icon is located. Through the number of the interlocking zone where the Icon is located, the client system can acquire all the icons of a certain interlocking zone, further calculate the boundary of the interlocking zone, and control the display of the Icon on the screen of the client system through operations such as translation and the like.
The main purpose of Icon is to display the Device's real-time status. The real-time state of the Device is represented by the real-time state of the Device representation code bits.
The Icon comprises a logic table for controlling dynamic display of the Icon, and the logic table comprises a Simple L g-ictable (Simple logic table) and a Complex L g-ictable (Complex logic table), wherein the Simple L g-ictable adopts a truth table to define a Simple dynamic display scheme of a certain Icon, and the Complex L g-ictable adopts a Boolean logic expression to define a Complex dynamic display scheme of the certain Icon.
When an Icon is only displayed statically, the Icon is not associated with a logical table (the index of the logical table corresponding to the Icon is 0), and only displays a default color without dynamic effect. That is, there will not be an empty logical table.
The Icon list element Icon contains 1 attribute, namely, an Icon Index, as shown in table 17.
Table 17Icon contains attributes
Attribute name Type (B) Number of Main key Description of the invention
Index int 1 Is that Icon index, starting with 1.
The Icon list element Icon includes 5 elements, which are respectively a layer element (L evel) to which the Icon belongs, an Icon Type element (Type), a default color index element (ColorIndex), a logical table element (L ogivtable) associated with the Icon, a device index element (devicendex) associated with the Icon, or a button index element (button index) associated with the Icon (either devicendex or button index), a filled or unfilled circular picture element (Circle), a line segment Icon element (L ine), an element (Rect) filled or unfilled rectangular Icon, a Text box Icon element (Text), or a filled or unfilled polygonal Icon element (Polygon) (five selected one of Circle, L ine, Rect, Text, and Polygon), as shown in table 19.
Table 18Icon contains elements
Figure DEST_PATH_GDA0001343231790000121
The logical table element (L ogicTable) associated with the icon contains 1 element, selecting between a Simple logical table element (Simple L ogicTable) and a Complex logical table element (Complex L ogicTable), as shown in table 19.
Table 19L ogicTable contains elements
Figure DEST_PATH_GDA0001343231790000122
A Simple logic table element (Simple L ogicTable) establishes a correspondence of a set of code bits to an Icon color, for N code bits, there is 2NPossible combinations, each associated with a colour, for receiving a code shapeWhile dynamic, Icon can dynamically refresh color.
The Simple logical table element (Simple L ogicTable) contains 2 elements, respectively, a code bit name list element (BitName) and a color index list element (ColorIndex), as shown in table 20.
Table 20Simple L ogicTable contains elements
Element name Type (B) Number of Main key Description of the invention
BitName string [1,∞) Whether or not Code bit name List
ColorIndex int [2,∞) Whether or not Color index list
The following is one example of a simple logical table element:
Figure DEST_PATH_GDA0001343231790000131
when N exceeds 8 (2)8256), the truth table mode of the simple logic table is too complex, and the boolean logic expression mode of the complex logic table is adopted, so that the code bit combination which is impossible to input can be avoided, and the code bit combination is more effective when the code bits are too much, but the mode is not as intuitive as the truth table.
When all Boolean logic expressions are computed to be 0, the Icon displays the default color. Obviously, it is impossible to have the calculation result of more than 1 boolean logic expression in a complex logic table associated with an Icon as 1 in any code bit combination, because one state cannot adopt two color realities at the same time.
The Complex logic table element (Complex L g ictable) contains 1 element, namely, a boolean logic expression list element (L g icexpress), as shown in table 21.
Table 21Complex L ogicTable element
Element name Type (B) Number of Main key Description of the invention
LogicExpression complexType [1,∞) Whether or not Boolean logic expression list
The boolean logic Expression list element (L g icexpresson) includes a boolean logic Expression element (Expression) consisting of a code bit index and a color index element (ColorIndex) that the icon displays when the boolean logic Expression is true, as shown in table 22.
Table 22L g omicExpression contains elements
Figure DEST_PATH_GDA0001343231790000141
The Boolean logic expression syntax is:
E->E1+E2|E1*E2|!E1|(E1)|1|0
boolean operator: + (or), a, and! (not)
The Boolean constant: 1 (true), 0 (false)
Specific examples are as follows:
example 1:
| A ((P2901 occupied) | (P2901 locked)) + ((P2901 occupied) | (P2901 locked))
When P2901 occupancy is 1 and P2901 lock is 0, the value of the above boolean expression is 0
| A T2808 occupancy
When T2808 occupies 0, the value of the above boolean expression is 1
Example 2:
Figure DEST_PATH_GDA0001343231790000142
Figure DEST_PATH_GDA0001343231790000151
the device index DeviceIndex associated with the icon is used for indexing the device, and comprises the following components: device Type element (Type) and device Index element (Index), as shown in table 23.
Table 23DeviceIndex contains elements
Figure DEST_PATH_GDA0001343231790000152
The type Coordinate defines a Coordinate containing elements as shown in table 24.
Table 24Coordinate contains elements
Element name Type (B) Number of Main key Description of the invention
X int
1 Whether or not Abscissa, unit pixel
Y int
1 Whether or not Ordinate, unit pixel
The elements of the filled or unfilled circular icon further include: the upper left corner coordinate element (Pos) of the circle, the Diameter element (Diameter) of the circle, the line width element (Weight) of the circle border, and the Fill-in-or-not element (Fill) are shown in table 25.
TABLE 25Circle contains elements
Element name Type (B) Number of Main key Description of the invention
Pos Coordinate 1 Whether or not Circular upper left corner coordinate
Diameter byte 1 Whether or not Diameter of circle
Weight byte
1 Whether or not The line width of the circular frame is 0, and the frame is not displayed
Fill boolean 1 Whether or not Whether or not to fill
The locations represented by the Pos ①, Weight ②, and Diameter ③ elements in table 25 are shown in figure 4.
The line segment icon element L ine defines a line segment icon data format that includes a line segment start point coordinate element (BeginPos), a line segment end point coordinate element (EndPos), and a line width element (Weight), as shown in Table 26.
Table 26L ine contains elements
Figure DEST_PATH_GDA0001343231790000153
Figure DEST_PATH_GDA0001343231790000161
The positions of BeginPos ①, EndPos ② and Weight ③ in L ine elements are shown in FIG. 5.
The element Rect of a filled or unfilled rectangular icon defines a rectangular icon data format that contains the elements: the coordinates at the upper left corner of the rectangle Pos, the Width of the rectangle, the Height of the rectangle, the Width of the rectangle (Weight), whether the element is filled (Fill), and the rotation Angle of the rectangle (Angle) are shown in table 27.
Table 27Rect contains elements
Element name Type (B) Number of Main key Description of the invention
Pos Coordinate 1 Whether or not Coordinates of upper left corner of rectangle
Width ushort
1 Whether or not Width of rectangle
Height ushort
1 Whether or not Rectangular height
Weight byte
1 Whether or not Rectangular line width, when the line width is 0, no frame is displayed
Fill boolean 1 Whether or not Whether or not to fill
Angle int 1 Whether or not Rectangle is revolvedAngle of rotation
The position schematic diagram of Pos ①, Width ②, Height ③ and Weight ④ elements in Rect elements is shown in FIG. 6.
The filled or unfilled Polygon icon element Polygon icon data format, comprising: the set elements (Paths), polygon linewidth elements (Weight), and Fill or not elements (Fill) of all Paths that make up a polygon are shown in table 28.
Table 28Polygon contains elements
Element name Type (B) Number of Main key Description of the invention
Paths ComplexType
1 Whether or not Set of all paths that make up a polygon
Weight byte
1 Whether or not Polygonal line width, when the line width is 0, no frame is displayed
Fill boolean 1 Whether or not Whether or not to fill
The position of Path ① in the Polygon element is shown in fig. 7, and the number of vertices of the Polygon is 7 as shown in the figure, i.e., VertexCount ═ 7.
The set elements (Paths) of the Paths that make up the polygon contain all the Path list elements (Path), which cannot be less than 3, as shown in table 29.
Table 29Paths contains elements
Element name Type (B) Number of Main key Description of the invention
Path complexType [3,∞) Whether or not Path list
The Path list element (Path) contains one of the elements, i.e., the element whose Path is a Straight line (Straight L ine), the element whose Path is a Bezier curve (Bezier), or the element whose Path is an elliptic Arc (Arc), as shown in table 30.
Table 30Path contains elements
Figure DEST_PATH_GDA0001343231790000171
Type Straight L ine defines a Straight line segment containing elements as shown in table 31.
Table 31 Stright L ine contains elements
Element name Type (B) Number of Main key Description of the invention
BeginPoint Coordinate 1 Whether or not Beginning of line segment
EndPoint Coordinate 1 Whether or not Termination of line segment
The type Bezier defines a cubic Bezier curve containing elements as shown in table 32.
Table 32Bezier contains elements
Element name Type (B) Number of Main key Description of the invention
Point1 Coordinate 1 Whether or not Starting point of curve
Point2 Coordinate 1 Whether or not First control point of curve
Point3 Coordinate 1 Whether or not Second control point of the curve
Point4 Coordinate 1 Whether or not End point of curve
The type Arc defines an elliptical Arc containing elements as shown in Table 33
Table 33Arc contains elements
Element name Type (B) Number of Main key Description of the invention
Pos Coordinate 1 Whether or not Position of upper left corner of rectangular boundary of ellipse from which arc is cut
Width ushort 1 Whether or not Width of rectangular boundary of ellipse from which arc is taken
Height ushort 1 Whether or not Height of rectangular boundary of ellipse from which arc is taken
StartAngle float 1 Whether or not Starting angle of arc, measured clockwise from X-axis in degrees
SweepAngle float
1 Whether or not Angle between StartAngle and end of arc
A Text box icon element (Text) defines a Text box icon data format, and the contents of the Text box must be displayed within the Text box and the out-of-range Text is not displayed. The border of the text box is hidden and transparent, so that the text box can be overlaid on the other elements without blocking the elements on the lower layer. The element Text contains elements of the table 34, i.e., a Text box upper left coordinate element (Pos), a Text box Width element (Width), a Text box Height element (Height), a Text box content element (Value), whether the Text box content can be edited by a customer (Enable), a Text box Chinese character Alignment element (Alignment), and a Text box Chinese character usage font index element (FontIndex).
Table 34Text contains elements
Figure DEST_PATH_GDA0001343231790000181
The Alignment element defines the Alignment of the words in the text box, and includes a horizontal Alignment element (HAlign) and a vertical Alignment element (VAlign) in the text box, as shown in table 35.
Table 35Alignment contains elements
Element name Type (B) Number of Main key Description of the invention
HAlign HAlignType
1 Whether or not Defining the horizontal alignment mode of characters in text box
VAlign VAlignType
1 Whether or not Defining the vertical alignment mode of characters in text box
The basic type of the HAlignType text horizontal alignment is a character string, and the range of values is limited to ("L eft", "Right", "Center"):
l eft-words are left-justified in the text box;
right — words are Right-justified in the text box;
center — the word is centered horizontally in the text box.
The basic type of the VAlignType literal vertical alignment is a string, while the range of values is limited to ("Top", "button", "Center"):
top-words are aligned Top in the text box;
button-words are aligned down in the text box;
center — the word is centered horizontally in the text box.
The elements (Buttons) used to define the format of the graphic XM L file Button contain all the Button list elements (Buttons), and may contain 0 Buttons, see Table 36.
Table 36Buttons contains elements
Element name Type (B) Number of Main key Description of the invention
Button complexType [0,∞) Whether or not Button list
Button, a special Device, is also associated by Icon. The state of Button is also represented by the representation code bit, so the Icon associated with Button still adopts the logic table configuration dynamic display scheme, and is different from the state representation of other devices in that the Button state does not come from the interlock or the ATS, but is set by the client system through the operation of a user. When the state of a Button changes, the client system should redraw all the Icon's associated with the Button.
The element Button contains 1 attribute, namely, the Button Index attribute (Index), see table 37.
Table 37Button contains attributes
Figure DEST_PATH_GDA0001343231790000191
The element Button contains three elements, namely a Button Type element (Type), a device index element (devicendex) associated with the Button, and a current state element (Status) of the Button, which are shown in table 38.
Table 38Button contains elements
Figure DEST_PATH_GDA0001343231790000192
The current state of the type button status type button, the value range [0,2], is: 0 indicates not activated, 1 indicates activated but not pressed, and 2 indicates pressed.
The file Menu format element (Menu) contains all Menu, which may contain 0 Menu. The file menu format element menu contains: a default alignment element (defaultaligment) of the Menu text, a default color index element (DefaultColorIndex) of the Menu text, a default font index element (DefaultFontIndex) of the Menu text, a default background color index element (defaulttbackcolorindex) of the Menu text, and a Menu element (Menu) are shown in table 39.
Table 39Menus contains elements
Element name Type (B) Number of Main key Description of the invention
DefaultAlignment HAlignType
1 Whether or not Default alignment mode of menu text
DefaultColorIndex int
1 Whether or not Default color index for menu text
DefaultFontIndex int
1 Whether or not Default font index for menu text
DefaultBackColorIndex int
1 Whether or not Default background color index for menu text
Menu complexType [0,∞) Whether or not Menu
In order to realize a multi-level Menu, Menu adopts a nested structure, and a Menu item can also contain a sub-Menu. The client system should pop up the menu in a prescribed menu pop-up manner (e.g., pop-up menu when right-clicking the device), and when the menu is popped up and the menu item is clicked, the client system should perform a corresponding operation (e.g., pop-up dialog box for controlling the device) through the data (meaning of data defined by the client system) associated with the menu item. The menu item is associated with control code bits at the same time, and when the control command is determined to be issued, the client system should send the control code bits to the target system.
The element Menu contains 2 attributes, namely a Menu Index attribute (Index) and a Menu popup mode attribute (PopUpMode), as shown in table 40.
Table 40Menu contains attributes
Attribute name Type (B) Number of Main key Description of the invention
Index int 1 Is that Menu index, starting with 1.
PopUpMode PopUpType 1 Whether or not Menu pop-up mode
Element Menu contains all Menu item elements (menuitems), at least 1 MenuItem, as shown in table 41.
Table 41Menu contains elements
Element name Type (B) Number of Main key Description of the invention
MenuItem complexType [1,∞) Whether or not Menu item
The PopUpType is a menu popup mode, the basic type is a character string, and the values are as follows, RightHit represents the popup of a right mouse button, L eftHit represents the popup of a left mouse button, and CenterHit represents the popup of a middle mouse button.
Element MenuItem contains the attribute: an Alignment attribute (Alignment) of the menu item text, a color index attribute (ColorIndex) of the menu item text, a background color index attribute (BackColorIndex) of the menu item, a font index attribute (FontIndex) of the menu item text, and an icon index attribute (ImageIndex) displayed on the left side of the menu item are shown in table 42.
Table 42MenuItem contains attributes
Attribute name Type (B) Number of Main key Description of the invention
Alignment HAlignType [0,1] Whether or not Alignment mode of menu item texts
ColorIndex int [0,1] Whether or not Color indexing of menu item text
BackColorIndex int [0,1] Whether or not Menu item background color index
FontIndex int [0,1] Whether or not Font indexing of menu item text
ImageIndex int [0,1] Whether or not Icon index displayed on left side of menu item
Table 43MenuItem contains elements
Figure DEST_PATH_GDA0001343231790000211
The element RootMenuItem contains elements as shown in table 44.
Table 44rootMenuItem contains elements
Figure DEST_PATH_GDA0001343231790000212
As described in the technical scheme, the interface graph is constructed based on the XM L language, so that the interface graph is rich and detailed in graph, high in data reading and expandability and good in interactivity, and is more convenient to use.
While, for purposes of simplicity of explanation, the methodologies are shown and described as a series of acts, it is to be understood and appreciated that the methodologies are not limited by the order of acts, as some acts may, in accordance with one or more embodiments, occur in different orders and/or concurrently with other acts from that shown and described herein or not shown and described herein, as would be understood by one skilled in the art.
Those of skill would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the overall system. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The various illustrative logical blocks, modules, and circuits described in connection with the embodiments disclosed herein may be implemented or performed with a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination thereof designed to perform the functions described herein. A general purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. A processor may also be implemented as a combination of computing devices, e.g., a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP core, or any other such configuration.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in an ASIC. The ASIC may reside in a user terminal. In the alternative, the processor and the storage medium may reside as discrete components in a user terminal.
If implemented in software as a computer program product, the functions described may be stored on or transmitted by a computer readable medium, including both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another.
The previous description of the disclosure is provided to enable any person skilled in the art to make or use the disclosure. Various modifications to the disclosure will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other variations without departing from the spirit or scope of the disclosure. Thus, the disclosure is not intended to be limited to the examples and designs described herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (19)

1. A full-line yard graph graphical interface system, comprising:
the graphic file storage device is used for storing data files required by the station yard graph interface;
the processor loads the data files in the graphic file storage device to generate a station yard graph which dynamically changes in real time;
the display device displays the real-time dynamically changed station yard graph generated by the processor on the display device;
wherein the data file of the graphic file storage device comprises a root element component, and the root element component further comprises: control element, general information element, interlocking area format element and file menu format element;
the interlocking area list element further comprises an interlocking area index attribute, an element for defining the format of a graphic XM L file icon, and an element for defining the format of a graphic XM L file button;
wherein the elements for defining the format of the graphical XM L file icon further comprise icon list elements further comprising an icon index attribute, a layer to which the icon belongs element, an icon type element, a default color index element, a logical table element associated with the icon, a device index element associated with the icon, a button index element associated with the icon, an element of a filled or unfilled circular icon, a line segment icon element, an element of a filled or unfilled rectangular icon, a text box icon element, a filled or unfilled polygonal icon element;
wherein the logical table elements with which the icons are associated further comprise: the simple logic table element comprises a code bit name list element and a color index list element, and the complex logic table element comprises a Boolean logic expression list element, wherein the logic expression list element comprises a Boolean logic expression element consisting of code bit indexes and a color index element displayed by the icon when the Boolean logic expression is true;
the logic table specifies dynamic display schemes of the icons when the equipment is in different states, each icon comprises one logic table, and when the equipment state changes, the icons can obtain the corresponding display schemes through inquiring the logic tables and update the display of the icons in real time, so that the real-time dynamic display of the station yard graph is realized.
2. The full line yard graphic graphical interface system of claim 1, wherein the control element further comprises: a version number element, an author element, and a CRC check code element.
3. The full wire yard graph graphical interface system of claim 1 wherein the common information elements further comprise: a color library element, a font library element, and a picture library element.
4. The full line yard graphic graphical interface system of claim 3 wherein the color library elements comprise: a color data definition element, a default color index element, a background color index element, a color blinking time interval element.
5. The full line yard graphic graphical interface system of claim 4 wherein the color data definition elements comprise: color index attribute, color name element, custom defined ARGB color value element, flicker or not element, where A is transparency.
6. The full wire yard graph graphical interface system of claim 3 wherein font library elements comprise: font data definition element, default font index element.
7. The full-line yard graph graphical interface system of claim 6 wherein font data definition elements include a font index attribute, a font name element, a height element to specify a unit of character or a character of a font, an element to specify an average width of a character in a font, an element to specify a font size, an element to specify a line width of a font, an element to specify whether a font is bold, an element to be italicized, an element to be underlined, and an element to be strikethrough.
8. The full line yard graphic graphical interface system of claim 3 wherein the picture library element comprises: picture data definition element, default picture index element.
9. The graphical interface system for the full wire yard graph of claim 8 wherein the picture data definition elements include a picture index attribute, a picture UR L path element.
10. The full wire yard graph graphical interface system of claim 1, wherein the icon associated device index element further comprises: device type element, device index element.
11. The full line yard graphic graphical interface system of claim 1, wherein the elements of the filled or unfilled circular icons further comprise: the coordinate element of the upper left corner of the circle, the diameter element of the circle, the line width element of the circular frame and whether the element is filled.
12. The full line yard graph graphical interface system of claim 1 wherein the line segment icon elements further comprise: line segment starting point coordinate elements, line segment end point coordinate elements and line width elements.
13. The full line yard graphic graphical interface system of claim 1, wherein the elements of a filled or unfilled rectangular icon further comprises: a coordinate element at the upper left corner of the rectangle, a rectangle width element, a rectangle height element, a rectangle line width element, a filling element and a rectangle rotation angle element.
14. The full line yard graph graphical interface system as claimed in claim 1, wherein the filled or unfilled polygon icon elements further comprise: set elements of all paths constituting a polygon, polygon line width elements, and fill or not elements.
15. The full wire yard graph graphical interface system of claim 14 wherein the set elements of all paths that make up a polygon further comprise: a path list element, the path list element comprising one of an element of which the path is a straight line, an element of which the path is a bezier curve, or an element of which the path is an elliptical arc, wherein the element of which the path is a straight line comprises a line segment start element, a line segment end element, the element of which the path is a bezier curve comprises a curve start point element, a curve first control point element, a curve second control point element, a curve end point element, and the element of which the path is an elliptical arc comprises an element of which the position of the upper left corner of the rectangular boundary of the ellipse from which the arc is cut, a wide element of which the rectangular boundary of the ellipse from which the arc is cut, a high element of which the rectangular boundary of the ellipse from which the arc is cut, a start angle element of the arc, and an angle element between the start of the.
16. The full line yard graph graphical interface system of claim 1 wherein text box icon elements include: the character alignment mode element in the text box comprises a horizontal alignment mode element defining the characters in the text box and a vertical alignment mode element defining the characters in the text box.
17. The full wire yard graphic graphical interface system of claim 1 wherein the elements used to define the format of the graphic XM L file button comprise a button list element including a button index attribute, a button type element, a button associated device index element, and a button current state element.
18. The full wire yard graph graphical interface system of claim 1 wherein file menu format elements include: a default alignment mode element of the menu text, a default color index element of the menu text, a default font index element of the menu text, a default background color index element of the menu text, and a menu element.
19. The full line yard graphic graphical interface system of claim 18, wherein menu elements comprise: the menu comprises a menu index attribute, a menu popup mode attribute and menu item elements, wherein the menu item elements comprise: the menu item text alignment method comprises an alignment mode attribute of the menu item text, a color index attribute of the menu item text, a menu item background color index attribute, a font index attribute of the menu item text, an icon index attribute displayed on the left side of a menu item, a menu item text element, an element whether the menu item is available, a root menu item element and a menu item element, wherein the root menu item element comprises a menu item associated data element and a control code bit type name element.
CN201710229017.8A 2017-04-10 2017-04-10 Graphical interface system of all-line station yard graph Active CN107133032B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710229017.8A CN107133032B (en) 2017-04-10 2017-04-10 Graphical interface system of all-line station yard graph

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710229017.8A CN107133032B (en) 2017-04-10 2017-04-10 Graphical interface system of all-line station yard graph

Publications (2)

Publication Number Publication Date
CN107133032A CN107133032A (en) 2017-09-05
CN107133032B true CN107133032B (en) 2020-07-31

Family

ID=59715396

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710229017.8A Active CN107133032B (en) 2017-04-10 2017-04-10 Graphical interface system of all-line station yard graph

Country Status (1)

Country Link
CN (1) CN107133032B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107856704B (en) * 2017-11-15 2020-05-12 卡斯柯信号有限公司 Tramcar line station diagram display method at driver view angle
CN110909965A (en) * 2018-09-14 2020-03-24 河南蓝信科技有限责任公司 Digital station yard management system and method
CN111382483B (en) * 2018-12-29 2023-03-31 比亚迪股份有限公司 Station yard graph engineering method, device and equipment
CN111078092A (en) * 2019-12-10 2020-04-28 北京智联友道科技有限公司 Station yard graph drawing method and device
CN111176780A (en) * 2019-12-31 2020-05-19 湖南中车时代通信信号有限公司 Device and method for displaying and controlling general buttons of rail transit station maps
CN112882670B (en) * 2021-02-24 2022-08-12 河南辉煌科技股份有限公司 Splicing display method for station-to-site diagram of TDCS (time-Domain communication System)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104007967A (en) * 2014-05-21 2014-08-27 广州华多网络科技有限公司 User interface generation method and device based on xml

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104007967A (en) * 2014-05-21 2014-08-27 广州华多网络科技有限公司 User interface generation method and device based on xml

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
OT系统的可复用站场图的设计与实现;陈伟嘉 等;《微计算机应用》;20110815;第32卷(第8期);第52-56页 *

Also Published As

Publication number Publication date
CN107133032A (en) 2017-09-05

Similar Documents

Publication Publication Date Title
CN107133032B (en) Graphical interface system of all-line station yard graph
US20230334222A1 (en) System and method for extended dynamic layout
CA1341309C (en) Method and apparatus for representing bordered areas of a generic form
US5208906A (en) Method and apparatus for representing bordered areas of a generic form with records
US20180374184A1 (en) Methods and apparatuses for providing a hardware accelerated web engine
US7924285B2 (en) Exposing various levels of text granularity for animation and other effects
US6552727B2 (en) Method for authoring hints for a font using a graphical user interface
US7750924B2 (en) Method and computer-readable medium for generating graphics having a finite number of dynamically sized and positioned shapes
Calder et al. Glyphs: Flyweight objects for user interfaces
JP2804224B2 (en) Network diagram drawing method and system
US5771034A (en) Font format
KR101331330B1 (en) Semi-transparent highlighting of selected objects in electronic documents
AU2005201993B2 (en) Aligned behavior in templated lists
US6509906B1 (en) Display representations and streams for objects having authorable and dynamic behaviors and appearances
US5710880A (en) Method and system for creating a graphic image with geometric descriptors
US10169307B2 (en) Method and system for the use of adjustment handles to facilitate dynamic layout editing
CN104063211A (en) Layout System For Devices With Variable Display Screen Sizes And Orientations
US5148520A (en) Determining the locations of the contents of bordered areas of a generic form
US20170365078A1 (en) Framework for customized visualizations
CN105528217A (en) Partial refreshing method and device based on display list
US5636340A (en) System and method for special effects for text objects
US6859911B1 (en) Graphically representing data values
JPH04278992A (en) Character string display method
CA1339754C (en) Method and apparatus for determining the location of the contents of bordered areas of a generic form
JP3275277B2 (en) Graphic drawing creation apparatus and method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20171227

Address after: No. 16, West Fourth Ring Road, Haidian District, Beijing, Beijing

Applicant after: CRRC Corporation Limited

Applicant after: Hunan CRRC Times Communications Signal Co., Ltd.

Address before: 410100 Hunan economic and Technological Development Zone, Changsha Province, the people of the East Road, No. 7, building 21, floor

Applicant before: Hunan CRRC Times Communications Signal Co., Ltd.

GR01 Patent grant
GR01 Patent grant