CN105303465B - Tree view definition and methods of exhibiting based on CIM model - Google Patents
Tree view definition and methods of exhibiting based on CIM model Download PDFInfo
- Publication number
- CN105303465B CN105303465B CN201510777116.0A CN201510777116A CN105303465B CN 105303465 B CN105303465 B CN 105303465B CN 201510777116 A CN201510777116 A CN 201510777116A CN 105303465 B CN105303465 B CN 105303465B
- Authority
- CN
- China
- Prior art keywords
- attribute
- class
- mode class
- model
- mode
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 26
- 230000001747 exhibiting effect Effects 0.000 title claims abstract description 11
- 238000000547 structure data Methods 0.000 claims description 2
- 238000012986 modification Methods 0.000 abstract description 10
- 230000004048 modification Effects 0.000 abstract description 10
- 238000010586 diagram Methods 0.000 description 4
- 238000013459 approach Methods 0.000 description 2
- 241001269238 Data Species 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The tree view definition and methods of exhibiting that the present invention provides a kind of based on CIM model, the method is the following steps are included: step S10: according to based on CIM model construct tree shape model;Step S20: the attribute to be shown is selected according to the tree shape model and its sequentially forms view definition;Step S30: tree-like hierarchical structure is formed according to the view definition stress model data.To realize that tree-like hierarchical structure flexibly shows CIM model and model data as target, the CIM model to be shown is selected from CIM model, according to the attribute for needing to configure hierarchical structure, being shown and sequence of business.Guarantee to be not required to the fixed code of modification after service display changes in demand or CIM model modification, need to only carry out view definition corresponding modification can meet the needs of business.
Description
Technical field
The present invention relates to electric power project engineering fields, are based on CIM model more particularly to a kind of in power informatization system
Tree hierarchy view definition and methods of exhibiting.
Background technique
The CIM model that 61968 series standard of IEC 61970/IEC proposes is power system management and its information exchange neck
The major criterion in domain.CIM model defines the semanteme of information exchange, and each operation system is made to keep unified semantic understanding, be into
Row application integration, the effective means for information sharing, improving production efficiency, reducing enterprise investment, are the master patterns of power industry,
It is also the future developing trend of power industry.More and more operation systems are directly based upon CIM model to construct, but CIM model
Netted association structure is described, is all that CIM model is shown using tree-like hierarchical structure in practical business use process
And model data, traditional being achieved in that by writing fixed code are completed, are opened up using fixed tree-like hierarchical structure
Show CIM model and model data, traditional approach has following problem when implementing:
1, it with the growth requirement of business, needs to expand CIM model, due to using fixed code mode, expand
Fill the CIM model and model data that expansion cannot be shown in tree-like after CIM model, it is necessary to remodify code to adapt to.
2, since business terms and the description in CIM model cannot correspond completely, can only solidify in showing interface
Into code, flexible modification not can be carried out.
3, it when the modes such as progress table show model data, needs to be ranked up to facilitate business the attribute of displaying
It uses, traditional approach does not have flexible ordering rule, can not only be inconsistent using modes such as title sequences with actual business requirement.
Although 4, multiple tree-like hierarchical structures have similar exhibition method, there is still a need for write to cover different displaying generations more
Code, has carried out duplicate investment.
Summary of the invention
The object of the present invention is to provide based on CIM model tree view definition and methods of exhibiting, to realize tree hierarchy
Flexible structure shows CIM model and model data is target, the CIM model to be shown is selected from CIM model, according to business
Need to configure hierarchical structure, the attribute to be shown and sequence.Guarantee after service display changes in demand or CIM model modification, no
Fixed code need to be modified, corresponding modification need to be only carried out to view definition can meet the needs of business.
In order to achieve the above object, the technical scheme adopted by the invention is as follows: the definition of tree view based on CIM model and
Methods of exhibiting, which is characterized in that the method the following steps are included:
Step S10: according to based on CIM model construct tree shape model;
Step S20: the attribute to be shown is selected according to the tree shape model and its sequentially forms view definition;
Step S30: tree-like hierarchical structure is formed according to the view definition stress model data.
Further, the specific implementation process of step S10 are as follows:
Step S101: according to based on CIM model, set the root mode class of displaying, set its show title, according to business
Requirement, select the mode class in the corresponding CIM model of tree-like root node, referred to as root mode class, according to the requirement of business, if
Set the displaying title of root mode class;
Step S102: according to the root mode class set in step step S101, the association role and junior's mould used is selected
The displaying title of formula class, setting mode class has multiple association roles, difference is respectively associated in CIM model under root mode class
Junior's mode class association role and corresponding junior's mode class are selected according to the requirement of business;
Step S103: according to the mode class set in step step S102, the association role used and junior's mode are selected
Class sets the displaying title of mode class;
Step S104: repeating step step S103, forms tree shape model.
Further, the specific implementation process of step S20 are as follows:
Step S201: the tree shape model formed according to step S10 selects the mode class to be arranged;
Step S202: class according to the selected mode, from it includes attribute in select the attribute to be shown;In CIM model
In, there are multiple attributes under mode class, in practical business in use, not needing whole attributes, needs the requirement according to business
Selected section attribute is shown;
Step S203: according to the generic attribute selected in step S202, the displaying title to set a property belongs in CIM model
Property there is title for indicating its information, but this title and the title that practical business uses are often different, need to set attribute
Set the title for meeting business needs;
Step S204: according to the generic attribute selected in step S202, the displaying sequence to set a property, in CIM model, mould
Attribute under formula class has stringent displaying sequence in practical business without sequence in, needs properties to mode class
Sequence is configured;
Step S205: repeating step S201 to step S204, until all carrying out to mode class all in tree shape model
Setting forms view definition.
Further, the specific implementation process of step S30 are as follows:
Step S301: the view definition formed according to step S20 selects root mode class and its attribute;From view definition
Root mode class start, according to the content of view definition carry out data load;
Step S302: class and its attribute according to the selected mode, loading mode class data, under server loading mode class
All object datas, the attribute configured under mode class in view definition is only loaded when loading data, in CIM model
In the presence of and the attribute that is not configured in view definition, without load;
Step S303: according to the mode generic attribute sequence of step S302 selection, the attribute of displaying is ranked up, according to step
The object data and attribute value of the mode class loaded in rapid S302, according in view definition to the attribute displaying sequence of mode class
Configuration shows the attribute value of object according to the displaying sequence of attribute, according to the selected mode the role of class and its junior's mode
Class, associated junior's mode class data under loading mode class data, is ranked up according to attribute of the attribute sequence to displaying;
Step S304: the object data loaded according to step S303, according to the association configured under mode class in view definition
Role and junior's mode class, load the affiliated partner of object;
Step S305: repeating step S304, forms tree-like hierarchical structure data and shows.
Compared with the prior art, the beneficial effects of the present invention are embodied in:
The present invention is directed to the characteristics of CIM model, constructs the tree-like hierarchical structure of CIM model, after model expansion, it is only necessary to
The model that addition is expanded can be shown to tree-like hierarchical structure, improve the scalability of application.CIM model class object number
After variation, it can automate and object variation is timely reflected in by displaying interface by view definition.To the category of CIM model class
Property screened, only show business need attribute, improve the loading efficiency of data, reduce data occupancy memory.It is right
The attribute of CIM model class is ranked up, and sequence according to requirements of service is shown, and establishes the mapping of business terms and CIM model
Same CIM model can be mapped to different business terms by relationship, make to use good business terms exhibition when showing interface
Show, improves the ease for use of application.The code for carrying out data displaying is not required to change, and only need to update view definition can be completed business
It needs, reduces the maintenance cost of code frequent updating, improve the stability of application.
Detailed description of the invention
Fig. 1 is tree view definition and methods of exhibiting flow chart based on CIM model;
Fig. 2 is tree shape model product process figure;
Fig. 3 is view definition product process figure;
Fig. 4 is that data load shows flow chart;
Fig. 5 is the exemplary diagram of view model;
Fig. 6 a is the exemplary diagram of 14 category attributes and configuration attribute;
Fig. 6 b is the exemplary diagram of 6 category attributes and configuration attribute;
Fig. 7 is that the class object of load shows exemplary diagram.
Specific embodiment
The tree view of the invention based on CIM model is defined with reference to the accompanying drawing and the specific embodiment party of methods of exhibiting
Formula is described in detail.
Technology of the invention, to realize that tree-like hierarchical structure flexibly shows CIM model and model data as target, from CIM
The CIM model to be shown is selected in model, according to the attribute for needing to configure hierarchical structure, being shown and sequence of business.Guarantee
After service display changes in demand or CIM model modification, it is not required to the fixed code of modification, only view definition need to accordingly be repaired
Change the needs that can meet business.
Tree view definition based on CIM model and methods of exhibiting flow chart as shown in Figure 1, mainly comprise the steps that
S10, according to based on CIM model construct tree shape model;In the present embodiment, which is mainly based upon CIM mould
Type selects the mode class to be shown and its shows title, and junior's mode class of selection mode class, building to be shown tree-like
Hierarchical structure forms tree shape model;Shown in Figure 2, Fig. 2 is the tree shape model product process figure of one embodiment, including such as
Lower step:
S101, according to based on CIM model select root mode class;Specifically, according to the CIM model and business being based on
It needs, selects the root mode class of tree-like hierarchical structure, the i.e. corresponding mode class of tree-like root node when data are shown, such as select
Company class is selected as root mode class;The displaying title of root mode class is set, Company class is entitled in CIM model
" company ", and it is commonly referred to as " power supply bureau " in practical applications, the entitled " power supply of the displaying of i.e. setting root mode class in this instance
Office " is to meet the needs of business.
S102 selects association role and junior's mode class under root mode class;Specifically, in CIM model, a mode
There is the object for thering is role ErpOrganisation.Asset to indicate under power supply bureau under multiple association roles, such as Company class under class
Manage equipment, the sub- power supply bureau under role Organisation.Children expression power supply bureau, role
Organisation.ActivityRecords indicates relevant record of power supply bureau etc..Select pass needed for business under root mode class
Join role, the fundamental type of junior's mode class can be determined according to association role, since CIM model is fixed using object-oriented way
Justice, association role what was certain was that junior's mode class parent type, can according to need selection needed for concrete type, such as
The corresponding junior's mode class of ErpOrganisation.Asset role is Asset, is the parent of all physical equipments, in reality
When the middle substation for needing to show under power supply bureau, descendants's type of Asset can choose
TransformerSubstationAsset indicates substation.
S103, it is similar with step S102, the associated role of junior's mode class is selected, determines junior's mode class in tree-like;
When selecting junior's model class, the corresponding mode class of role or its descendants's type can choose;
S104 repeats step S103, until meeting the needs of business, forms tree shape model, final tree shape model such as Fig. 5
It is shown.
In conclusion, according to the CIM model being based on, selecting the mode class to be shown, setting for step S10
The displaying title of mode class forms tree mode, and the class of CIM schema is expanded, it is only necessary to which the mode class after addition expansion is protected
It has demonstrate,proved and the dynamic that CIM model expands has been supported.
S20 sets a property according to tree shape model and sequentially forms view definition;In the present embodiment, which is mainly
According to the tree shape model that step S10 is formed, each mode class attribute, the displaying title of attribute and exhibition of attribute to be shown is set
Show sequence, forms view definition;Shown in Figure 3, Fig. 3 is the view definition product process figure of one embodiment, including as follows
Step:
S201 selects the mode class to be set a property according to the tree shape model that step S10 is generated;
S202, the attribute to be shown under selection mode class, only selection attribute relevant to business, for some and business without
The attribute of pass does not need to select;Specifically, in CIM model, there are multiple attributes under a mode class, these attributes actually make
Only need part attribute that can meet the needs of business in, such as Company class there are 14 attributes, such as Fig. 6 a, and practical industry
Business only needs 6 attributes therein, such as Fig. 6 b.
S203, under the mode class of selection attribute setting show title, according to business need that business is arranged it is corresponding
Title;Specifically, in CIM model, for the needs to modeling, a Chinese title, but this name can be all given to attribute
Title is the convenience for modeling, and different with actual business needs, so needing to be configured the title of attribute, example
If the Organisation.type attribute of Company class is entitled in CIM model " type ", and it is referred to as " group in business
Knit type ".
S204 is ranked up setting to the attribute under the mode class of selection, is arranged according to the key of attribute in business
Sequence;Specifically, in CIM model, attribute is that do not have sequential concept, is needed in practical business in a certain order to category
Property be shown, the displaying that sets a property as shown in Figure 6 b sequence.
The attribute to be shown is arranged to mode class all in tree shape model in S205, attribute shows the exhibition of name and attribute
Show sequence, forms view definition.
In conclusion, according to tree shape model, the attribute to be shown and its displaying sequence is arranged, only for step S20
The attribute information that displaying business needs, explains data with business terms appropriate, expands simultaneously for the attribute of CIM schema
It fills, it is only necessary to which the attribute after addition expansion ensure that and support the dynamic that CIM model expands.
S30, according to view definition stress model data.The step is mainly the view definition formed according to step S20, from
Stress model data in server are constructed the hierarchical relationship of model data by the hierarchical structure of model class in view definition, according to
Attribute, Property Name and the attribute sequence of mode class in view definition, be filtered model data and sort displaying;Referring to figure
Shown in 4, Fig. 4 is that the data load of one embodiment shows flow chart, is included the following steps:
S301, read view definition in root mode class and its attribute information, root mode class be the source of tree-like hierarchical structure
Head constructs specific model data tree structure since root mode class.
S302 loads the data of root mode class from server, and the attribute under mode class has very much, only loads root mode class
The attribute of configuration reduces the burden of server, improves the efficiency of load.
S303, to load complete data be shown, mode class according to its show title show, class object information according to
The attribute of mode class shows that title and sequence are shown.Specifically, such as Company class needs to show 6 attributes, shows
As shown in Figure 6 b, the displaying of class object shows that title and sequence are shown according to the attribute of mode class for title and sequence, such as schemes
7。
S304 loads junior's mode class object data under class object, root after the completion of load according to the configuration of view definition
It is shown according to configuration.
S305, according to the configuration of view definition, recurrence loading classes object information forms the tree hierarchy being made of class object
Structured data is shown.
In conclusion for step S30, according to view definition, by the reticular structure of CIM model data with tree hierarchy knot
Structure is shown, can be to realize business tree structure in the displaying of real time reaction to model data to the modification of view definition
Flexible displaying, do not modify show code in the case where can need to be adjusted tree structure according to business.
Of the invention tree view definition and methods of exhibiting based on CIM model, the characteristics of for CIM model, to adapt to
The fine tuning of expansion and the service display of CIM model is target, is predefined to the model to be shown, view definition is formed, with
The mode of friendly interface externally provides data and checks.Under the premise of not modifying displaying code, view definition need to only be repaired
Change and different tree-like hierarchical structure displayings can be realized.
The embodiments described above only express several embodiments of the present invention, and the description thereof is more specific and detailed, but simultaneously
Limitations on the scope of the patent of the present invention therefore cannot be interpreted as.It should be pointed out that for those of ordinary skill in the art
For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to guarantor of the invention
Protect range.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.
Claims (1)
1. tree view definition and methods of exhibiting based on CIM model, which is characterized in that the method the following steps are included:
Step S10: according to based on CIM model construct tree shape model, the specific implementation process of step S10 are as follows:
Step S101: according to based on CIM model, set the root mode class of displaying, set its show title, according to wanting for business
It asks, selects the mode class in the corresponding CIM model of tree-like root node, referred to as root mode class, according to the requirement of business, root is set
The displaying title of mode class;
Step S102: according to the root mode class set in step step S101, selecting the association role used and junior's mode class,
The displaying title of setting mode class has multiple association roles in CIM model under root mode class, be respectively associated it is different under
Grade mode class selects association role and corresponding junior's mode class according to the requirement of business;
Step S103: according to the mode class set in step step S102, selecting the association role used and junior's mode class, if
The displaying title of mould-fixed class;
Step S104: repeating step step S103, forms tree shape model;
Step S20: the attribute to be shown is selected according to the tree shape model and its sequentially forms view definition;The tool of step S20
Body realizes process are as follows:
Step S201: the tree shape model formed according to step S10 selects the mode class to be arranged;
Step S202: class according to the selected mode, from it includes attribute in select the attribute to be shown;In CIM model, mould
There are multiple attributes under formula class, in practical business in use, not needing whole attributes, needs the requirement selector according to business
Adhering to separately property is shown;
Step S203: according to the attribute selected in step S202, the displaying title to set a property, in CIM model, attribute has
For indicating the title of its information, but this title and the title that practical business uses are often different, need to meet attribute setting
The title that business needs;
Step S204: according to the attribute selected in step S202, the displaying sequence to set a property, in CIM model, under mode class
Attribute without sequence, and have stringent displaying sequence in practical business, need the sequence properties to mode class into
Row setting;
Step S205: repeating step S201 to step S204, until mode class all in tree shape model is all arranged,
Form view definition;
Step S30: tree-like hierarchical structure is formed according to the view definition stress model data;The specific implementation of step S30
Journey are as follows:
Step S301: the view definition formed according to step S20 selects root mode class and its attribute;From the root in view definition
Mode class starts, and the load of data is carried out according to the content of view definition;
Step S302: class and its attribute according to the selected mode, loading mode class data, the institute under server loading mode class
There is object data, the attribute configured under mode class in view definition is only loaded when loading data, for existing in CIM model
And the attribute being not configured in view definition, without load;
Step S303: according to the mode generic attribute sequence of step S302 selection, the attribute of displaying is ranked up, according to step
The object data and attribute value of the mode class loaded in S302 match the attribute displaying sequence of mode class according in view definition
It sets, the attribute value of object is shown according to the displaying sequence of attribute, according to the selected mode the role of class and its junior's mode class,
Associated junior's mode class data, are ranked up according to attribute of the attribute sequence to displaying under loading mode class data;
Step S304: the object data loaded according to step S303, according to the association role configured under mode class in view definition
With junior's mode class, the affiliated partner of object is loaded;
Step S305: repeating step S304, forms tree-like hierarchical structure data and shows.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510777116.0A CN105303465B (en) | 2015-11-13 | 2015-11-13 | Tree view definition and methods of exhibiting based on CIM model |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510777116.0A CN105303465B (en) | 2015-11-13 | 2015-11-13 | Tree view definition and methods of exhibiting based on CIM model |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105303465A CN105303465A (en) | 2016-02-03 |
CN105303465B true CN105303465B (en) | 2019-05-14 |
Family
ID=55200695
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510777116.0A Active CN105303465B (en) | 2015-11-13 | 2015-11-13 | Tree view definition and methods of exhibiting based on CIM model |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105303465B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107957867B (en) * | 2017-10-30 | 2022-11-11 | 中国电力科学研究院有限公司 | Electric power retail market model modeling method and system |
CN111143038B (en) * | 2019-12-31 | 2023-09-12 | 江苏金智科技股份有限公司 | RISC-V architecture microprocessor kernel information model modeling and generating method |
CN112650892A (en) * | 2020-12-30 | 2021-04-13 | 广东电网有限责任公司电力科学研究院 | Tree data loading method and device based on CIM object classification and storage medium |
CN114036781B (en) * | 2022-01-04 | 2022-05-06 | 阿里云计算有限公司 | Data processing method, data display method and device and electronic equipment |
US11803478B1 (en) | 2022-10-19 | 2023-10-31 | Inductive Automation, LLC | Controlled activation of interdependent bindings |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102737086A (en) * | 2012-01-13 | 2012-10-17 | 冶金自动化研究设计院 | Iron and steel enterprise information integration platform based on CIM model |
CN104573960A (en) * | 2015-01-09 | 2015-04-29 | 云南电力调度控制中心 | Novel electric power dispatching statement solution |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060277203A1 (en) * | 2003-09-09 | 2006-12-07 | Frank Uittenbogaard | Method of providing tree-structured views of data |
-
2015
- 2015-11-13 CN CN201510777116.0A patent/CN105303465B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102737086A (en) * | 2012-01-13 | 2012-10-17 | 冶金自动化研究设计院 | Iron and steel enterprise information integration platform based on CIM model |
CN104573960A (en) * | 2015-01-09 | 2015-04-29 | 云南电力调度控制中心 | Novel electric power dispatching statement solution |
Also Published As
Publication number | Publication date |
---|---|
CN105303465A (en) | 2016-02-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105303465B (en) | Tree view definition and methods of exhibiting based on CIM model | |
CN106599493B (en) | Visualization implementation method of BIM (building information modeling) model in three-dimensional large scene | |
Malecki | Connecting local entrepreneurial ecosystems to global innovation networks: open innovation, double networks and knowledge integration | |
CN105389367B (en) | The multilevel distributed storage method of grid graph multi-time Scales based on Mongo databases | |
CN105487864A (en) | Method and device for automatically generating code | |
CN104598376A (en) | Data driving layered automation test system and method | |
CN103186628B (en) | A kind of mapping method between common information model and relevant database | |
JP2016539449A (en) | Database implementation method | |
CN103903086A (en) | Method and system for developing management information system based on service model driving | |
CN106227666A (en) | A kind of automated testing method based on big data and system | |
CN102855332A (en) | Graphic configuration management database based on graphic database | |
CN104866567A (en) | Method and apparatus for presenting business data | |
Mohammadi et al. | Genetic algorithm-based heuristic for capacitated lotsizing problem in flow shops with sequence-dependent setups | |
Erickson et al. | Experiments with settlement aggregation models | |
CN105243237A (en) | Assembly technology structure tree and building method thereof | |
CN105426601B (en) | A kind of diverse designs scheme method for reporting and its system based on BIM | |
CN105279269A (en) | SQL generating method and system for supporting table free association | |
CN103186620A (en) | CIM mapping method | |
CN105573774A (en) | Application parameter managing and configuring method | |
CN111428310A (en) | Underground pipe gallery model construction method based on BIM and GIS | |
CN107451222A (en) | Model data management system | |
CN111831696A (en) | Asset information storage method and system based on graph theory | |
US10140387B2 (en) | Model for managing variations in a product structure for a product | |
CN109344487B (en) | Feature mapping-based part replacement method | |
CN105447605A (en) | APS production model-oriented dynamic modeling 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |