CN105740543A - QML based graphical electric power system modeling method and modeling system - Google Patents

QML based graphical electric power system modeling method and modeling system Download PDF

Info

Publication number
CN105740543A
CN105740543A CN201610066228.XA CN201610066228A CN105740543A CN 105740543 A CN105740543 A CN 105740543A CN 201610066228 A CN201610066228 A CN 201610066228A CN 105740543 A CN105740543 A CN 105740543A
Authority
CN
China
Prior art keywords
attribute
power system
qml
modeling
dynamic
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.)
Pending
Application number
CN201610066228.XA
Other languages
Chinese (zh)
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.)
Shandong Luneng Intelligence Technology Co Ltd
Original Assignee
Shandong Luneng Intelligence Technology 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 Shandong Luneng Intelligence Technology Co Ltd filed Critical Shandong Luneng Intelligence Technology Co Ltd
Priority to CN201610066228.XA priority Critical patent/CN105740543A/en
Publication of CN105740543A publication Critical patent/CN105740543A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/30Circuit design
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • G06T11/206Drawing of charts or graphs

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Evolutionary Computation (AREA)
  • Geometry (AREA)
  • General Engineering & Computer Science (AREA)
  • Stored Programmes (AREA)

Abstract

The present invention discloses a OML based graphical electric power system modeling method and modeling system. The modeling method comprises: establishing a basic primitive with a dynamic extension attribute according to a QML language, and storing attribute information of the basic primitive; according to a pre-stored electric power system primitive topological structure, calling the attribute information of the basic primitive required for establishing an electric power system; then according current position information and preset target position information of the basic primitive, acquiring a shortest path with the least crosses when the basic primitive moves, and performing a layout of the shortest path with the least crosses on the basic primitive; and according to the pre-stored attribute information of the primitive in the electric power system, performing modification on the attribute of the basic primitive associated on the laid path by adopting the QML language, and finally completing graphical modeling of the electric power system. The method solves the problem that a large number of modifications need to be performed on programs when newly-added primitive templates, primitive attribute extension, appearance modification and dynamic behaviors are changed in the electric power system.

Description

Based on the patterned power system modeling method of QML and modeling
Technical field
The invention belongs to modeling method field, particularly relate to a kind of based on the patterned power system modeling method of QML and modeling.
Background technology
Development along with New Generation of Intelligent transformer station technology, it is applied to the device category in transformer station get more and more, renewal of the equipment updating speed is more and more faster, in order to coordinate upgrading and the dilatation of transformer station, the graphical authoring tools of transformer station's background monitoring system and man machine interface will accomplish that style is unified, meet the use habit of user, easy to use, facilitate modeling and the extension of equipment.
Present graphical modeling often adopts following several technology: adopt OO programming language to describe;Adopting the vector graphics file form that the drawing instruments such as similar AutoCAD use to describe adopts xml formatted file to describe.These technology mostly have the disadvantage in that when system version is upgraded, and pel outward appearance, attribute and dynamic effect are inconvenient to revise and extend, and mostly require over update routine and realize.And easily causing, during attribute increase and decrease, the figure that incompatible Versions program is drawn, using to engineering makes troubles.
Summary of the invention
For the shortcoming solving prior art, the present invention provides a kind of based on the patterned power system modeling method of QML and modeling, the method realizes the business logic processing that pel is complicated, it is possible to the problem needing a large amount of update routine when solving newly-increased pel masterplate when power system pel draws application program updating, primitive attribute extension, the amendment of pel outward appearance and dynamic primitive behavior change.
For achieving the above object, the present invention is by the following technical solutions:
A kind of based on the patterned power system modeling method of QML, including:
Set up the element figure with dynamic expansion attribute according to QML language, and store described element figure attribute information;
Wherein, set up that attribute is expansible and the process of the element figure of dynamic amendment, including: the appearance attribute of element figure is mapped to certain modeling element of QML language, carries out building the outward appearance of element figure;The dynamic attribute of element figure is mapped to certain modeling element of QML language, carries out the attribute of dynamic expansion element figure, obtain the element figure with dynamic expansion attribute;
Power system pel topological structure according to pre-stored, transfers the attribute information setting up the element figure needed for electric power system model;
The positional information current further according to element figure and goal-selling positional information, obtain minimum intersection when element figure moves and shortest path, element figure carry out the wiring of minimum intersection and shortest path;
According to the attribute information of pel in the power system of pre-stored, adopt QML language to be modified on routing path the attribute of the element figure of association, finally complete the mathematics library of power system.
The process obtaining minimum intersection when element figure moves and shortest path is:
Obtain the current location information of element figure, further according to the goal-selling positional information of described element figure, obtain the current location of element figure to the shortest path between its goal-selling position;
By the transposition of regional area and commutation between element figure needed for electric power system model, simulation calculating obtains minimum crossedpath when element figure moves;
The appearance attribute of described element figure, including the composition shape of element of element figure, size and color.
The appearance attribute of described element figure, also includes the relation between each element of composition element figure and described element position in element figure.
The dynamic attribute of described element figure, including the text message matched with element figure, described text message includes size text and color.
A kind of modeling of the mathematics library method based on QML, including:
Element figure sets up module, and it is for setting up the element figure with dynamic expansion attribute according to QML language, and stores described element figure attribute information;
Described element figure sets up module, and including element figure outward appearance submodule, it, for the appearance attribute of element figure is mapped to certain modeling element of QML language, carries out building the outward appearance of element figure;Element figure dynamic attribute submodule, it, for the dynamic attribute of element figure is mapped to certain modeling element of QML language, carries out the attribute of dynamic expansion element figure, obtains the element figure with dynamic expansion attribute;
Element figure behavior module, it, for the power system pel topological structure according to pre-stored, transfers the attribute information setting up the element figure needed for electric power system model;
Element figure business logic modules, it, for the positional information current further according to element figure and goal-selling positional information, obtains minimum intersection when element figure moves and shortest path, element figure carries out the wiring of minimum intersection and shortest path;
Element figure correcting module, it is for according to the attribute information of pel in the power system of pre-stored, adopts QML language to be modified on routing path the attribute of the element figure of association, finally completes the mathematics library of power system.
Described element figure business logic modules includes:
Path computing submodule, it is for obtaining the current location information of element figure, further according to the goal-selling positional information of described element figure, obtains the current location of element figure to the shortest path between its goal-selling position;By the transposition of regional area and commutation between element figure needed for electric power system model, simulation calculating obtains minimum crossedpath when element figure moves;
Wiring submodule, it for carrying out the wiring of minimum intersection and shortest path to element figure.
The appearance attribute of described element figure, including the composition shape of element of element figure, size and color.
The appearance attribute of described element figure, also includes the relation between each element of composition element figure and described element position in element figure.
The dynamic attribute of described element figure, including the text message matched with element figure, described text message includes size text and color.
The invention have the benefit that
(1) present invention adopts the figure meta modelling technique based on QML, it is achieved the modeling of pel static attribute and pel instantiation in graphic file, and pel outward appearance revises the convenient and primitive attribute convenient effect of extension;
(2) present invention facilitates the modeling of new pel can quickly upgrade again original pel, the problem needing a large amount of update routine when solving newly-increased pel masterplate when power system pel draws application program updating, primitive attribute extension, the amendment of pel outward appearance, dynamic primitive behavior change.
Accompanying drawing explanation
Fig. 1 is the flow chart based on the patterned power system modeling method of QML of the present invention.
Detailed description of the invention
Below in conjunction with accompanying drawing, the present invention will be further described with embodiment:
Fig. 1 is the flow chart based on the patterned power system modeling method of QML, illustrates this modeling method of the present invention in conjunction with Fig. 1, including:
Set up the element figure with dynamic expansion attribute according to QML language, and store described element figure attribute information;
Power system pel topological structure according to pre-stored, transfers the attribute information setting up the element figure needed for electric power system model;
The positional information current further according to element figure and goal-selling positional information, obtain minimum intersection when element figure moves and shortest path, element figure carry out the wiring of minimum intersection and shortest path;
According to the attribute information of pel in the power system of pre-stored, adopt QML language to be modified on routing path the attribute of the element figure of association, finally complete the mathematics library of power system.
What the present invention is presented herein below implements step:
One, newly-built element figure, it includes below step:
(1) newly-built QML file:
QML filename initial as assembly is necessary for capitalization, is used directly as new type in other pels as Button.QML, such Button can serve as the title of pel.
(2) appearance design of element figure:
The customization type that the built-in element of QML or program derive is used to carry out the appearance design of element figure, including the composition graphic element of element figure, the relation between each graphic element, the position in whole pel of each element, the size of each element and color.Wherein, the built-in element of QML includes Rectangle and Item.
The metafile of Button.QML it is called for name:
This is called in the metafile of Button.QML, and attribute id is unique mark of rectangular element in file;Attribute width is the width of pel;Attribute height is the height of pel;Attribute border.width is the width of pel frame;Attribute radius is the radian at four angles of rectangle;Attribute color is the fill color of pel.
By the amendment to these base attributes, can be achieved with the editor to pel appearance attribute.
(3) the dynamic attribute design of element figure:
Pel is except inheriting outermost layer attribute of an element, it is also possible to by adding the mode of dynamic attribute, the distinctive attribute of spread pel.When this characteristic makes substation equipment upgrade, equipment pel attribute increase becomes to be more prone to.
Button.QML file after extension, except having these base attributes of width and height, Button pel also added text, text_color and bgcolor dynamic attribute, and these realize the interpolation of dynamic attribute by using propertyalias determiner.
Button.QML file after extension is:
Two, the behavior description of element figure:
Between the modeling element of the mobile message of element figure and QML language, set up mapping relations, be used for obtaining minimum intersection when element figure moves and shortest path.
Three, the service logic of element figure:
Element figure is combined with shortest path and connects up by power system pel topological structure and the minimum intersection of element figure according to pre-stored.
Four, the correction of element figure:
Adopt the mode with c++ program interaction, it is achieved the process that pel business is relevant, accomplish the loose coupling between the behavior of element figure and the service logic of element figure.The method realizing the relevant process of pel business includes:
(1) in pel, use the derivation class of c++, directly attribute is carried out assignment in a program;
(2) in a program, c++ object is exported to QML environment, pel directly invokes member variable and the function of c++ object;
(3) in c++, directly invoke the interface etc. of QML pel.Realize the loose coupling between graphical interfaces, business module.
The attribute information of the power system pel according to pre-stored, revises the attribute of the element figure of association on routing path, finally completes the mathematics library of power system.
Below the modeling of the patterned power system modeling method of QML based on the present invention is illustrated:
The modeling based on the patterned power system modeling method of QML of the present invention, including:
Element figure sets up module, and it is for setting up the element figure with dynamic expansion attribute according to QML language, and stores described element figure attribute information;
Element figure behavior module, it, for the power system pel topological structure according to pre-stored, transfers the attribute information setting up the element figure needed for electric power system model;
Element figure business logic modules, it, for the positional information current further according to element figure and goal-selling positional information, obtains minimum intersection when element figure moves and shortest path, element figure carries out the wiring of minimum intersection and shortest path;
Element figure correcting module, it is for according to the attribute information of pel in the power system of pre-stored, adopts QML language to be modified on routing path the attribute of the element figure of association, finally completes the mathematics library of power system.
Further, element figure sets up module, including:
Element figure outward appearance submodule, it, for the appearance attribute of element figure is mapped to certain modeling element of QML language, carries out building the outward appearance of element figure;
Element figure dynamic attribute submodule, it, for the dynamic attribute of element figure is mapped to certain modeling element of QML language, carries out the attribute of dynamic expansion element figure, obtains the element figure with dynamic expansion attribute.
Further, element figure business logic modules includes:
Path computing submodule, it is for obtaining the current location information of element figure, further according to the goal-selling positional information of described element figure, obtains the current location of element figure to the shortest path between its goal-selling position;By the transposition of regional area and commutation between element figure needed for electric power system model, simulation calculating obtains minimum crossedpath when element figure moves;
Wiring submodule, it for carrying out the wiring of minimum intersection and shortest path to element figure.
Further, the appearance attribute of element figure, including the composition shape of element of element figure, size and color, composition element figure each element between relation and described element position in element figure.
Further, the dynamic attribute of element figure, including the text message matched with element figure, described text message includes size text and color.
The specific embodiment of the present invention is described in conjunction with accompanying drawing although above-mentioned; but not limiting the scope of the invention; one of ordinary skill in the art should be understood that; on the basis of technical scheme, those skilled in the art need not pay various amendments or deformation that creative work can make still within protection scope of the present invention.

Claims (10)

1. one kind based on the patterned power system modeling method of QML, it is characterised in that including:
Set up the element figure with dynamic expansion attribute according to QML language, and store described element figure attribute information;
Wherein, set up that attribute is expansible and the process of the element figure of dynamic amendment, including: the appearance attribute of element figure is mapped to certain modeling element of QML language, carries out building the outward appearance of element figure;The dynamic attribute of element figure is mapped to certain modeling element of QML language, carries out the attribute of dynamic expansion element figure, obtain the element figure with dynamic expansion attribute;
Power system pel topological structure according to pre-stored, transfers the attribute information setting up the element figure needed for electric power system model;
The positional information current further according to element figure and goal-selling positional information, obtain minimum intersection when element figure moves and shortest path, element figure carry out the wiring of minimum intersection and shortest path;
According to the attribute information of pel in the power system of pre-stored, adopt QML language to be modified on routing path the attribute of the element figure of association, finally complete the mathematics library of power system.
2. as claimed in claim 1 a kind of based on the patterned power system modeling method of QML, it is characterised in that the process obtaining minimum intersection when element figure moves and shortest path is:
Obtain the current location information of element figure, further according to the goal-selling positional information of described element figure, obtain the current location of element figure to the shortest path between its goal-selling position;
By the transposition of regional area and commutation between element figure needed for electric power system model, simulation calculating obtains minimum crossedpath when element figure moves;
3. as claimed in claim 2 a kind of based on the patterned power system modeling method of QML, it is characterised in that the appearance attribute of described element figure, including the composition shape of element of element figure, size and color.
4. as claimed in claim 2 a kind of based on the patterned power system modeling method of QML, it is characterised in that the appearance attribute of described element figure, also include the relation between each element of composition element figure and described element position in element figure.
5. as claimed in claim 2 a kind of based on the patterned power system modeling method of QML, it is characterised in that the dynamic attribute of described element figure, including the text message matched with element figure, described text message includes size text and color.
6. the modeling based on the mathematics library method of QML as claimed in claim 1, it is characterised in that including:
Element figure sets up module, and it is for setting up the element figure with dynamic expansion attribute according to QML language, and stores described element figure attribute information;
Described element figure sets up module, and including element figure outward appearance submodule, it, for the appearance attribute of element figure is mapped to certain modeling element of QML language, carries out building the outward appearance of element figure;Element figure dynamic attribute submodule, it, for the dynamic attribute of element figure is mapped to certain modeling element of QML language, carries out the attribute of dynamic expansion element figure, obtains the element figure with dynamic expansion attribute;
Element figure behavior module, it, for the power system pel topological structure according to pre-stored, transfers the attribute information setting up the element figure needed for electric power system model;
Element figure business logic modules, it, for the positional information current further according to element figure and goal-selling positional information, obtains minimum intersection when element figure moves and shortest path, element figure carries out the wiring of minimum intersection and shortest path;
Element figure correcting module, it is for according to the attribute information of pel in the power system of pre-stored, adopts QML language to be modified on routing path the attribute of the element figure of association, finally completes the mathematics library of power system.
7. modeling as claimed in claim 6, it is characterised in that described element figure business logic modules includes:
Path computing submodule, it is for obtaining the current location information of element figure, further according to the goal-selling positional information of described element figure, obtains the current location of element figure to the shortest path between its goal-selling position;By the transposition of regional area and commutation between element figure needed for electric power system model, simulation calculating obtains minimum crossedpath when element figure moves;
Wiring submodule, it for carrying out the wiring of minimum intersection and shortest path to element figure.
8. modeling as claimed in claim 7, it is characterised in that the appearance attribute of described element figure, including the composition shape of element of element figure, size and color.
9. modeling as claimed in claim 7, it is characterised in that the appearance attribute of described element figure, also includes the relation between each element of composition element figure and described element position in element figure.
10. modeling as claimed in claim 7, it is characterised in that the dynamic attribute of described element figure, including the text message matched with element figure, described text message includes size text and color.
CN201610066228.XA 2016-01-29 2016-01-29 QML based graphical electric power system modeling method and modeling system Pending CN105740543A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610066228.XA CN105740543A (en) 2016-01-29 2016-01-29 QML based graphical electric power system modeling method and modeling system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610066228.XA CN105740543A (en) 2016-01-29 2016-01-29 QML based graphical electric power system modeling method and modeling system

Publications (1)

Publication Number Publication Date
CN105740543A true CN105740543A (en) 2016-07-06

Family

ID=56247172

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610066228.XA Pending CN105740543A (en) 2016-01-29 2016-01-29 QML based graphical electric power system modeling method and modeling system

Country Status (1)

Country Link
CN (1) CN105740543A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106502680A (en) * 2016-10-31 2017-03-15 用友网络科技股份有限公司 A kind of method that pel extension is carried out by visualization interface
CN106547537A (en) * 2016-10-10 2017-03-29 国网新疆电力公司经济技术研究院 One kind realizes assemblnig electric power application software method based on QML technologies
CN108491202A (en) * 2018-03-15 2018-09-04 南京智格电力科技有限公司 A kind of implementation method of the graphics engine based on QML
WO2023093695A1 (en) * 2021-11-25 2023-06-01 芯和半导体科技(上海)股份有限公司 Parametized unit data updating method and apparatus, computer device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020149604A1 (en) * 1999-04-21 2002-10-17 Leland Wilkinson Computer method and apparatus for creating visible graphics by using a graph algebra
CN102819636A (en) * 2012-03-23 2012-12-12 山东电力集团公司青岛供电公司 Modeling system and modeling method based on logical relationship
CN104573209A (en) * 2014-12-30 2015-04-29 国家电网公司 On-demand dynamic display method for internal details of distribution network plant stations and equipment containers
CN105184836A (en) * 2015-09-28 2015-12-23 国网山东省电力公司济南供电公司 Multifunctional electrical wiring diagram display method based on QT graphics frame

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020149604A1 (en) * 1999-04-21 2002-10-17 Leland Wilkinson Computer method and apparatus for creating visible graphics by using a graph algebra
CN102819636A (en) * 2012-03-23 2012-12-12 山东电力集团公司青岛供电公司 Modeling system and modeling method based on logical relationship
CN104573209A (en) * 2014-12-30 2015-04-29 国家电网公司 On-demand dynamic display method for internal details of distribution network plant stations and equipment containers
CN105184836A (en) * 2015-09-28 2015-12-23 国网山东省电力公司济南供电公司 Multifunctional electrical wiring diagram display method based on QT graphics frame

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
小灰: "qml文件格式", 《HTTP://BLOG.SINA.COM.CN/S/BLOG_68C02FB90102V17U.HTML》 *
李文帆 等: "基于Qt的电力***地理接线图绘制软件设计", 《电力***自动化》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106547537A (en) * 2016-10-10 2017-03-29 国网新疆电力公司经济技术研究院 One kind realizes assemblnig electric power application software method based on QML technologies
CN106547537B (en) * 2016-10-10 2020-01-07 国网新疆电力有限公司经济技术研究院 Method for realizing assembled electric power application software based on QML technology
CN106502680A (en) * 2016-10-31 2017-03-15 用友网络科技股份有限公司 A kind of method that pel extension is carried out by visualization interface
CN108491202A (en) * 2018-03-15 2018-09-04 南京智格电力科技有限公司 A kind of implementation method of the graphics engine based on QML
WO2023093695A1 (en) * 2021-11-25 2023-06-01 芯和半导体科技(上海)股份有限公司 Parametized unit data updating method and apparatus, computer device and storage medium

Similar Documents

Publication Publication Date Title
US7661071B2 (en) Creation of three-dimensional user interface
CN105740543A (en) QML based graphical electric power system modeling method and modeling system
CN103309667B (en) The method of UI control and picture location revision is located in Android system
US10853079B2 (en) Dependency-based streamlined processing
US9495482B2 (en) Computer method and apparatus for creating sketch geometry
CN111400899B (en) Processing method, system and storage medium for cable laying modeling
CN103513976B (en) Service flowpath modelling approach and device
CN107679276B (en) Generation method and device of power system tide wiring diagram and electronic equipment
US11645438B2 (en) Generating a template-driven schematic from a netlist of electronic circuits
CN102222148A (en) Method and device for automatically generating detailed statement of three-dimensional assembly drawing
CN105700925A (en) APP interface implementation method and apparatus
CN104536743A (en) Map plotting method and system based on Android operating system
CN103617247B (en) Adsorption intelligent information mask method and device for CAD system
CN105893591B (en) A kind of data sharing service intelligent arranging method
CN105242931A (en) Method and system for editing and generating codes for game interface
CN113282697A (en) Dojo-based GIS (geographic information System) for realizing multi-platform heterogeneous compatibility and design and deployment methods thereof
CN106846431B (en) Unified Web graph drawing system supporting multiple expression forms
CN112632205A (en) Map making method, device and system
CN104156209B (en) Cross-platform interface modeling method and device
CN105843601A (en) Android system-based screen self-adaptive adaptation technology
CN107369192B (en) Connection relation processing method and device
Schneider et al. Transient view generation in Eclipse
CN114327452A (en) Method for automatically generating IP core GUI based on XML
CN111523161A (en) BIM and Unity 3D-based 3D Internet of things visualization man-machine interaction method
CN110377366A (en) It is a kind of splice multizone map show method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 250101 block B, Yinhe building, 2008 Xinjie street, hi tech Zone, Ji'nan, Shandong.

Applicant after: Shandong Luneng Intelligent Technology Co., Ltd.

Address before: 250101 B block 626, Yinhe building, 2008 Xinjie street, Ji'nan high tech Zone, Shandong.

Applicant before: Shandong Luneng Intelligent Technology Co., Ltd.