CN116578273B - Coding structure design method and device, storage medium and electronic equipment - Google Patents

Coding structure design method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN116578273B
CN116578273B CN202310193631.9A CN202310193631A CN116578273B CN 116578273 B CN116578273 B CN 116578273B CN 202310193631 A CN202310193631 A CN 202310193631A CN 116578273 B CN116578273 B CN 116578273B
Authority
CN
China
Prior art keywords
code
configuration file
determining
parameter configuration
coding
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
CN202310193631.9A
Other languages
Chinese (zh)
Other versions
CN116578273A (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.)
Three Gorges High Technology Information Technology Co ltd
China Three Gorges Corp
Original Assignee
Three Gorges High Technology Information Technology Co ltd
China Three Gorges Corp
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 Three Gorges High Technology Information Technology Co ltd, China Three Gorges Corp filed Critical Three Gorges High Technology Information Technology Co ltd
Priority to CN202310193631.9A priority Critical patent/CN116578273B/en
Publication of CN116578273A publication Critical patent/CN116578273A/en
Application granted granted Critical
Publication of CN116578273B publication Critical patent/CN116578273B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • G06F8/24Object-oriented
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Abstract

The invention discloses a coding structure design method, a device, a storage medium and electronic equipment, comprising the following steps: constructing a parameter configuration file set; determining a target parameter configuration file in a parameter configuration file set based on a preset engineering construction management requirement; determining coding structure parameters based on the target parameter configuration file; based on the coding structure parameters, the coding structure of the complex engineering construction management system is obtained through object-oriented design. The invention realizes abstract factory mode by constructing parameter configuration file set, further, the coding structure class is designed by combining object-oriented mode, all elements applied in the management system can be defined in the actual engineering construction process, and the validity of all codes is verified, so as to ensure the validity and consistency of the codes in the whole engineering management process and in a plurality of projects; meanwhile, the abstract factory mode and the configuration file mode are used, so that after a new structure is added, a user can use the new structure.

Description

Coding structure design method and device, storage medium and electronic equipment
Technical Field
The present invention relates to the field of coding technologies, and in particular, to a coding structure design method, a device, a storage medium, and an electronic apparatus.
Background
Codes (codes in an application system, rather than codes of a written program) are souls of a computer application system, and various codes exist in the complex engineering construction management process, and each code corresponds to a code structure. The code structure should be able to define all elements that are applied in the management system and verify the validity of all codes to ensure the validity and consistency of the codes throughout one project management and in many projects. However, the codes are common, the commonality of the structures is relatively small (particularly the attribute), and the same code class can define different structures which are possibly unique after the system deployment is completed, cannot define all elements applied in the system, and cannot verify the validity of all codes in the system.
Disclosure of Invention
In view of the above, embodiments of the present invention provide a method, an apparatus, a storage medium, and an electronic device for designing a coding structure, so as to solve the technical problem that in the prior art, all elements in a system cannot be defined and validity of all codes in the system cannot be verified due to uncertainty of the coding structure.
The technical scheme provided by the invention is as follows:
in a first aspect, an embodiment of the present invention provides a coding structure design method, which is used for a complex engineering construction management system; the coding structure design method comprises the following steps: constructing a parameter configuration file set, wherein the parameter configuration file set is used for setting coding structure parameters of a complex engineering construction management system; determining a target parameter configuration file in the parameter configuration file set based on a preset engineering construction management requirement; determining coding structure parameters based on the target parameter configuration file; based on the coding structure parameters, the coding structure of the complex engineering construction management system is obtained through object-oriented design.
With reference to the first aspect, in a possible implementation manner of the first aspect, the parameter configuration file set includes a universal reference code table, a hierarchical structure code, and a structure template.
With reference to the first aspect, in another possible implementation manner of the first aspect, constructing the generic reference code table in the parameter configuration file set includes: determining a universal reference code user group; determining a main table information code of the universal reference code table based on the universal reference code user group; determining a main table information coding value corresponding to the main table information coding based on the engineering construction management requirement; and constructing the universal reference code table based on the main table information code and the main table information code value.
With reference to the first aspect, in a further possible implementation manner of the first aspect, constructing the hierarchy code in the parameter configuration file set includes: determining a coding hierarchy; determining basic information of the hierarchical structure code in a preset hierarchical structure code main table based on the coding hierarchical structure; based on the engineering construction management requirements, determining structural parameters of the hierarchical structure codes corresponding to the basic information of the hierarchical structure codes according to the hierarchical sequence of the main table of the preset hierarchical structure codes; and constructing the hierarchical structure code based on the basic information of the hierarchical structure code and the structural parameters of the hierarchical structure code.
With reference to the first aspect, in a further possible implementation manner of the first aspect, constructing the structural templates in the parameter configuration file set includes: determining basic information of a structure template in a main table of a preset structure template based on the reference code table and the hierarchical structure code; determining template element information of the structure template in a slave table of the preset structure template based on engineering construction management requirements; and constructing the structural template based on the basic information and the template element information.
In a second aspect, an embodiment of the present invention provides a coding structure design apparatus, configured to be used in a complex engineering construction management system; the coding structure design device comprises: the construction module is used for constructing a parameter configuration file set, wherein the parameter configuration file set is used for setting coding structure parameters of the complex engineering construction management system; the first determining module is used for determining a target parameter configuration file in the parameter configuration file set based on a preset engineering construction management requirement; the second determining module is used for determining coding structure parameters based on the target parameter configuration file; and the design module is used for obtaining the coding structure of the complex engineering construction management system through object-oriented design based on the coding structure parameters.
With reference to the second aspect, in a possible implementation manner of the second aspect, the parameter configuration file set includes a universal reference code table, a hierarchical structure code, and a structure template.
With reference to the second aspect, in another possible implementation manner of the second aspect, the building module includes: a first determining sub-module for determining a universal reference code user group; a second determining sub-module, configured to determine, based on the universal reference code user group, a main table information encoding of the universal reference code table; the third determining submodule is used for determining a main table information coding value corresponding to the main table information coding based on the engineering construction management requirement; and the first construction submodule is used for constructing the universal reference code table based on the main table information code and the main table information code value.
In a third aspect, an embodiment of the present invention provides a computer readable storage medium, where computer instructions are stored, where the computer instructions are configured to cause the computer to perform the coding structure design method according to any one of the first aspect and the first aspect of the embodiment of the present invention.
In a fourth aspect, an embodiment of the present invention provides an electronic device, including: the memory is in communication connection with the processor, the memory stores computer instructions, and the processor executes the computer instructions, thereby executing the coding structure design method according to any one of the first aspect and the first aspect of the embodiments of the present invention.
The technical scheme provided by the invention has the following effects:
the coding structure design method provided by the embodiment of the invention realizes an abstract factory mode by constructing a parameter configuration file set, further designs coding structure classes in combination with an object-oriented mode, can define all elements applied in a management system in the actual engineering construction process, and verifies the effectiveness of all codes so as to ensure the effectiveness and consistency of the codes in the whole engineering management process and in a plurality of projects; meanwhile, the abstract factory mode and the configuration file mode are used, so that after a new structure is added, a user can use the new structure.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are needed in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the present invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a coding structure design method provided according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a generic reference code table construction flow provided according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a hierarchical code construction process according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a structural template construction flow provided according to an embodiment of the present invention;
FIG. 5 is a block diagram of an encoding architecture design apparatus provided in accordance with an embodiment of the present invention;
FIG. 6 is a schematic diagram of a computer-readable storage medium provided according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The codes are common, the commonality of the structures is relatively small (particularly the attributes), and the same code class can define different structures which are likely to be unique after the system deployment is completed, cannot define all elements applied in the system, and cannot verify the validity of all codes in the system. In order to solve the above problems, an embodiment of the present invention provides a coding structure design method for a complex engineering construction management system (TGPMS), where the coding structure formed by the method provides an effective coding library within the whole project range, so as to support data input verification and modification, and serve as a basis for data access security control.
As shown in fig. 1, the coding structure design method includes the following steps:
step 101: and constructing a parameter configuration file set.
The parameter configuration file set is used for setting coding structure parameters of the complex engineering construction management system, and may include a universal reference Code Table (Code Table), a hierarchical Code (Hierarchy Matrix) and a structure template (Schema Matrix).
Specifically, some special fields in the complex engineering construction management system (TGPMS) are reference fields, i.e. the values of the fields are referenced (or entered) by means of a value List (LOV).
Further, the reference of the whole system Code is established through a Code Table (Code Table), for example, POS is a general reference Code representing contract status, and specific values are:
0: representing a file control contract (Osr);
1: representing an initial contract;
3: indicating approval;
5: indicating closing and ending.
The complex engineering construction management system (TGPMS) hierarchical structure codes are used for dynamically defining codes with hierarchical structures, the number of layers and the length of the codes can be defined by users, and also, each hierarchical structure code (such as accounting codes, workload list hierarchical codes and the like) needs to be defined with one code, and then the specific number of layers, the length of each layer and the total length of the codes are defined. Since the same hierarchical code, i.e. the number of code layers and the length of each layer and the total length of the code are identical, the usage may be completely different, and therefore, the type of each hierarchical code needs to be defined.
For example, the hierarchical code is an accounting code in TGPMS, and is specifically expressed as follows:
hierarchical code type: ACCT;
hierarchical code encoding: a15;
layer number: 7, preparing a base material;
hierarchical structure: 11123456677;
code length: 11 bits;
layer 1 length: 3 bits;
layer 2 length: 1 position;
layer 3 length: 1 position;
layer 4 length: 1 position;
layer 5 length: 1 position;
layer 6 length: 2 bits;
layer 7 length: 2 bits.
Furthermore, the coding structure used by the user and the corresponding parameters are set in the configuration file, so that the setting of the coding structure parameters of the complex engineering construction management system can be realized.
Step 102: and determining a target parameter configuration file in the parameter configuration file set based on the preset engineering construction management requirement.
Specifically, according to different engineering construction management requirements and complexity, corresponding parameter configuration files are selected from the parameter configuration file set.
For example, 1 parameter configuration file is simply required to be used; if the second hierarchical code or the third structural template is complex, the second hierarchical code or the third structural template needs to be matched.
Step 103: and determining the coding structure parameters based on the target parameter configuration file.
The abstract factory mode can be realized through the target parameter configuration file, is used for representing a creation mode in the design mode, is used for building a product family, and is the most abstract and general one in the factory modes of all modes.
Further, the three parameter configuration files are arranged in a layer-by-layer progressive relationship, for example, the hierarchical structure code arrangement mode needs [ the preposed data support of the reference code table ] + [ other input data ]; the structural template setting mode needs the leading data support of the hierarchical structure code (other input data).
Specifically, after determining the corresponding target parameter configuration file, the setting of the coding structure parameters of the complex engineering construction management system can be realized according to the different setting modes.
Step 104: based on the coding structure parameters, the coding structure of the complex engineering construction management system is obtained through object-oriented design.
The object-oriented mode is a programming mode.
Specifically, after the coding structure parameters are determined, the object-oriented mode is utilized to design, coding family construction is carried out by utilizing the coding structure parameters, and further, the constructed coding structure of the complex engineering construction management system can be obtained.
The coding structure design method provided by the embodiment of the invention realizes an abstract factory mode by constructing a parameter configuration file set, further designs coding structure classes in combination with an object-oriented mode, can define all elements applied in a management system in the actual engineering construction process, and verifies the effectiveness of all codes so as to ensure the effectiveness and consistency of the codes in the whole engineering management process and in a plurality of projects; meanwhile, the abstract factory mode and the configuration file mode are used, so that after a new structure is added, a user can use the new structure
As an optional implementation manner of the embodiment of the present invention, constructing the universal reference code table in the parameter configuration file set includes: determining a universal reference code user group; determining a main table information code of the universal reference code table based on the universal reference code user group; determining a main table information coding value corresponding to the main table information coding based on the engineering construction management requirement; and constructing the universal reference code table based on the main table information code and the main table information code value.
Specifically, the general reference code table is predefined according to the design of the TGPMS system, and a specific construction flow is shown in fig. 2. Wherein the dashed box represents a precondition for entering the solid box.
First, before constructing the reference code table, the corresponding preconditions need to be determined: a complex engineering construction management SYSTEM (TGPMS) has established a SYSTEM user group, i.e. a universal reference code user group. The SYSTEM user group represents that the SYSTEM has 99.99 percent of complete access control right to a complex engineering construction management SYSTEM (TGPMS), is used for ensuring the normal operation of SYSTEM services and endows the SYSTEM and the SYSTEM services with rights.
Secondly, under the control of the SYSTEM user group, a general reference code main table is defined in a complex engineering construction management SYSTEM (TGPMS).
In one embodiment, the following information is entered in the universal reference code master table (D1110):
code table-code POS of general reference code.
Name/description-brief description of coding function POStatus.
Length-the bit length of the reference code value is 2.
Class-class of generic reference code is class C (generic reference code).
Upper level code-when class C codes are used, this field is empty.
Code maintenance-the maintenance user group of the POS generic code table is SYSTEM.
Then, the value of the general reference code table is defined (D1100).
Specifically, according to the actual engineering construction management requirement, the main table information coding values corresponding to the main table information codes are sequentially determined, for example, firstly, the information of the 1 st item value of the coding POS of the universal reference code is defined:
code table-code POS of general reference code.
Encoding table value-POS reference code first item value is 0.
Name/description-description of the POS code table first term value (0) is the file control contract (Osr).
Short/brief-a short description of the POS code table first term value (0) is OSR PO.
The coding type, currently TGPMS, is temporarily unused and empty.
Further, according to the above example requirements, the value information of other items of the POS code table is sequentially determined.
And finally, constructing a corresponding reference code table through the main table information codes and the corresponding main table information code values.
In one example, the universal reference code table is used to obtain the corresponding code structure. For example, the contract information is entered on a contract landing page, and the status field is taken from a POS code value List (LOV).
As an optional implementation manner of the embodiment of the present invention, constructing the hierarchical structure code in the parameter configuration file set includes: determining a coding hierarchy; determining basic information of the hierarchical structure code in a preset hierarchical structure code main table based on the coding hierarchical structure; based on the engineering construction management requirements, determining structural parameters of the hierarchical structure codes corresponding to the basic information of the hierarchical structure codes according to the hierarchical sequence of the main table of the preset hierarchical structure codes; and constructing the hierarchical structure code based on the basic information of the hierarchical structure code and the structural parameters of the hierarchical structure code.
Specifically, the hierarchical code is constructed according to the description of step 101, and a specific construction flow is shown in fig. 3.
First, before constructing the reference code table, the corresponding preconditions need to be determined: the coding hierarchy is determined.
Secondly, entering a complex engineering construction management system (TGPMS), and determining the basic information of the hierarchical structure codes in a preset hierarchical structure code main table (D1019).
In one embodiment, the following information is entered:
name/description—a brief description of the hierarchy Code, which is an Accounting Code.
Hierarchical type-the type of hierarchical structure code is ACCT. The type code must be predefined in the generic reference code table (D1110, D1100).
Hierarchical code-the code of the hierarchical structure code, is A15.
Spacer-no spacer between layers of the hierarchical code, N.
Length-the length of class hierarchy code (including spacer) is 11.
Structure-when the class hierarchy code is specifically defined, the system automatically displays the hierarchy of code, which is "11123456677".
Layer number-hierarchical code maximum layer number is 7.
use-A15 hierarchical structure code is in the use state of the system, and is F, which means that the actual length of the hierarchical structure code is equal to the defined length, the actual length can not be increased, but the hierarchical structure can be adjusted under the condition that the actual length is unchanged.
And then, according to the actual engineering construction management requirements and the hierarchical sequence of a preset hierarchical structure code main table, sequentially determining the structural parameters of the hierarchical structure codes corresponding to the basic information of the hierarchical structure codes.
In one embodiment, first, the structural parameters of the hierarchical code corresponding to the basic information of the hierarchical code of layer 1 are determined:
hierarchy-layer 1 defining the hierarchy code, 1.
Length-the length of layer 1 of the defined hierarchy code is 3.
Remarks—description of the hierarchy code layer 1 is level1.
Further, according to the above example requirements, information of other layers of the a15 hierarchy code is sequentially defined.
And finally, constructing the corresponding hierarchical structure code through the determined basic information of the hierarchical structure code and the structural parameters of the corresponding hierarchical structure code.
As an optional implementation manner of the embodiment of the present invention, constructing the structural template in the parameter configuration file set includes: determining basic information of a structure template in a main table of a preset structure template based on the reference code table and the hierarchical structure code; determining template element information of the structure template in a slave table of the preset structure template based on engineering construction management requirements; and constructing the structural template based on the basic information and the template element information.
Specifically, the code established by setting the coding structure parameters through the structure template (Schema Matrix) is a combined coding structure, which divides the code into two or more parts (template elements), and each part can have an independent coding structure and coding value, so that a user can flexibly define various complex codes according to the needs. The template elements constituting the template of the coding structure can be defined individually, and the values of the template elements can be taken from a certain value List (LOV) when the defined values exist; when the defined value does not exist, it may be defined by a certain Code Input (Code Input) page. Using a structural template, the structural template type and code are first defined, and then the elements that make up the structural template are defined.
In one embodiment, the general code in the TGPMS is a combination code, whose structural templates are:
“_________-_____-_____”
approximate hierarchical code-WBS code-CWP code
Each template element, namely the approximate hierarchical code, the WBS code and the CWP code, has an independent coding structure and a coding value. The approximate hierarchical Code is selected from an approximate hierarchical Code value List (LOV) or an approximate hierarchical Code Input (Code Input) page (D3105) to be defined; the WBS Code is taken from a WBS Code value List (LOV) or a WBS Code Input (Code Input) page (D1100) for definition; the CWP codes are defined from a CWP Code value List (LOV) or a CWP Code Input (Code Input) page (D1180).
It should be noted that the coding structure template is predefined according to the design of the TGPMS system, and generally cannot be modified at will, and the specific construction flow is shown in fig. 4. Wherein the dashed box represents a precondition for entering the solid box.
In one embodiment, an approximate coding structure template Estimate Code is established, the approximate coding structure template is coded as PCWC, and the type of the structure template is PCS. The structural template consists of three parts:
the first part is an approximate hierarchical code which is a hierarchical code, the type of the hierarchical code is ESTM, the hierarchical code is ESTCD, and the bit length is 8;
the second part is WBS code with bit length of 4;
the third part is CWP code, bit length 3.
First, before building a structural template, corresponding preconditions need to be determined.
In one embodiment, the preconditions are: the template structure of Estimate Code has been determined; each element of the structural template is defined in a page (DF 002); the hierarchical code encoding as ESTCD is defined in D1019.
Next, basic information of the structure template is determined in a main table (D1022) of a preset structure template according to the reference code table and the hierarchical structure code that have been determined in the above-described embodiments.
For example, entering into a D1022 screen in a complex engineering construction management system (TGPMS), defining basic information of a structural template in the upper half part (main table) of the screen:
code name-brief description of the approximate Code structure Code template is Estime Code.
Template type-type code of general coding structure template is PCS.
Template coding-coding of a general coding structure template, namely PCWC.
Length-the bit length of the template code (including the spacer) of the approximate coding structure is 17.
Template structure-when the structural template elements are specifically defined, the system automatically displays the template structure of the code, expressed as the number of bits: "12345678-1234-123".
And then, according to the actual engineering construction management requirements, determining template element information of the structure template in a slave table of the preset structure template.
For example, entering the D1022 screen in the complex engineering construction management system (TGPMS), defining specific information of template elements of the structural templates in the upper half of the screen (from the table):
template element-the field name that constitutes the template code is: ESTMATE_HIERARCHY_CODE, which is consistent with the field names of the base tables in the database. This field must be defined in DF002, and the base table name corresponding to this field is "zzzzzzzz", the value of which complies with the check specified in DF 002.
Start (position) -the starting position of the template element in the template structure encoding (including the spacer) is 1.
Length-the bit length of the template element is 8.
Structure-indicating template element structure attribute, which is H, indicating that the template element is a hierarchical template element.
Template type-since the template element structure is H, the type of hierarchical code is specified as ESTM.
Structural code-the code indicating the hierarchical structure code is ESTCD.
Remarks—description of template elements is Hierarchy Estimate Code.
According to the coding structure design method of the complex engineering construction management system, which is provided by the embodiment of the invention, the coding structure is designed in an object-oriented mode and an abstract factory mode, so that after a new structure is added, a user can use the new structure, and the verification of coding effectiveness and consistency can be conveniently carried out; further, definition of all module codes in complex engineering construction management can be completed.
The embodiment of the invention also provides a coding structure design device which is used for the complex engineering construction management system; as shown in fig. 5, the apparatus includes:
a construction module 501, configured to construct a parameter configuration file set, where the parameter configuration file set is used to set coding structure parameters of the complex engineering construction management system; for details, see the description of step 101 in the above method embodiment.
A first determining module 502, configured to determine a target parameter configuration file in the parameter configuration file set based on a preset engineering construction management requirement; for details, see the description of step 102 in the method embodiment described above.
A second determining module 503, configured to determine a coding structure parameter based on the target parameter configuration file; for details, see the description of step 103 in the method embodiment described above.
The design module 504 is configured to obtain a coding structure of the complex engineering construction management system through object-oriented design based on the coding structure parameters; for details, see the description of step 104 in the method embodiment described above.
The coding structure design device provided by the embodiment of the invention realizes an abstract factory mode by constructing a parameter configuration file set, further designs coding structure classes in combination with an object-oriented mode, can define all elements applied in a management system in the actual engineering construction process, and verifies the effectiveness of all codes so as to ensure the effectiveness and consistency of the codes in the whole engineering management process and in a plurality of projects; meanwhile, the abstract factory mode and the configuration file mode are used, so that after a new structure is added, a user can use the new structure.
As an alternative implementation manner of the embodiment of the invention, the parameter configuration file set comprises a general reference code table, a hierarchical structure code and a structure template.
As an alternative implementation manner of the embodiment of the present invention, the building module includes: a first determining sub-module for determining a universal reference code user group; a second determining sub-module, configured to determine, based on the universal reference code user group, a main table information encoding of the universal reference code table; the third determining submodule is used for determining a main table information coding value corresponding to the main table information coding based on the engineering construction management requirement; and the first construction submodule is used for constructing the universal reference code table based on the main table information code and the main table information code value.
As an alternative implementation manner of the embodiment of the present invention, the building module includes: a fourth determination submodule for determining a coding hierarchy; a fifth determining submodule, configured to determine, based on the encoding hierarchy, hierarchy code basic information in a preset hierarchy code main table; a sixth determining submodule, configured to determine structural parameters of a hierarchical structure code corresponding to the basic information of the hierarchical structure code according to a hierarchical sequence of the preset hierarchical structure code main table based on the engineering construction management requirement; and the second construction submodule is used for constructing the hierarchical structure code based on the basic information of the hierarchical structure code and the structural parameters of the hierarchical structure code.
As an alternative implementation manner of the embodiment of the present invention, the building module includes: a seventh determining submodule, configured to determine basic information of a structure template in a main table of a preset structure template based on the reference code table and the hierarchical structure code; an eighth determining submodule, configured to determine template element information of the structural template in a slave table of the preset structural template based on engineering construction management requirements; and the third construction submodule is used for constructing the structural templates based on the basic information and the template element information.
The functional description of the coding structure design device provided by the embodiment of the invention refers to the description of the coding structure design method in the above embodiment in detail.
The embodiment of the present invention also provides a storage medium, as shown in fig. 6, on which a computer program 601 is stored, which when executed by a processor, implements the steps of the coding structure design method in the above embodiment. The storage medium may be a magnetic Disk, an optical disc, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a Flash Memory (Flash Memory), a Hard Disk (HDD), a Solid State Drive (SSD), or the like; the storage medium may also comprise a combination of memories of the kind described above.
It will be appreciated by those skilled in the art that implementing all or part of the above-described embodiment method may be implemented by a computer program to instruct related hardware, where the program may be stored in a computer readable storage medium, and the program may include the above-described embodiment method when executed. The storage medium may be a magnetic Disk, an optical disc, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a flash Memory (flash Memory), a Hard Disk (HDD), a Solid State Drive (SSD), or the like; the storage medium may also comprise a combination of memories of the kind described above.
The present invention also provides an electronic device, as shown in fig. 7, which may include a processor 71 and a memory 72, where the processor 71 and the memory 72 may be connected by a bus or other means, and in fig. 7, the connection is exemplified by a bus.
The processor 71 may be a central processing unit (Central Processing Unit, CPU). The processor 71 may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or combinations of the above.
The memory 72 serves as a non-transitory computer readable storage medium that may be used to store non-transitory software programs, non-transitory computer-executable programs, and modules, such as corresponding program instructions/modules in embodiments of the present invention. The processor 71 executes various functional applications of the processor and data processing by running non-transitory software programs, instructions, and modules stored in the memory 72, i.e., implements the encoding structure design method in the method embodiments described above.
The memory 72 may include a memory program area that may store an operating device, an application program required for at least one function, and a memory data area; the storage data area may store data created by the processor 71, etc. In addition, memory 72 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, memory 72 may optionally include memory located remotely from processor 71, such remote memory being connectable to processor 71 through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The one or more modules are stored in the memory 72, which when executed by the processor 71, perform the encoding structure design method of the embodiments shown in fig. 1-4.
The specific details of the electronic device may be understood correspondingly with reference to the corresponding related descriptions and effects in the embodiments shown in fig. 1 to 4, which are not repeated here.
Although embodiments of the present invention have been described in connection with the accompanying drawings, various modifications and variations may be made by those skilled in the art without departing from the spirit and scope of the invention, and such modifications and variations fall within the scope of the invention as defined by the appended claims.

Claims (8)

1. A coding structure design method is used for a complex engineering construction management system; characterized in that the method comprises:
the method comprises the steps of constructing a parameter configuration file set, wherein the parameter configuration file set is used for setting coding structure parameters of a complex engineering construction management system and comprises a general reference code table, a hierarchical structure code and a structure template, the general reference code table is used for establishing references of the complex engineering construction management system, the hierarchical structure code is used for dynamically defining codes with hierarchical structures, the number of layers and the length of each layer are defined by defining a code, the total length of the codes is defined, the type of the hierarchical structure code is defined, the number of layers and the length of the codes are defined according to users, and the number of layers of the codes, the length of each layer and the total length of the codes are identical;
determining a target parameter configuration file in the parameter configuration file set based on a preset engineering construction management requirement;
determining coding structure parameters based on the target parameter configuration file;
based on the coding structure parameters, obtaining a coding structure of the complex engineering construction management system through object-oriented mode design;
determining coding structure parameters based on the target parameter configuration file, including:
the abstract factory mode is realized through the target parameter configuration file, is used for representing a creation mode in a design mode, is used for building a product family, and is the most abstract and general form in the factory modes of all forms;
determining encoding structure parameters based on the abstract factory pattern;
wherein implementing the abstract factory pattern via the target parameter configuration file comprises:
when the target parameter configuration file is a hierarchical structure code configuration file, an abstract factory mode is realized by adopting a mode of adding other input data to a prepositive data support of a reference code table;
when the target parameter configuration file is a structural template configuration file, an abstract factory mode is realized by adopting a mode of leading data support of a hierarchical structure code and other input data.
2. The method according to claim 1, characterized in that it comprises: constructing the universal reference code table in the parameter configuration file set, which comprises the following steps:
determining a universal reference code user group;
determining a main table information code of the universal reference code table based on the universal reference code user group;
determining a main table information coding value corresponding to the main table information coding based on the engineering construction management requirement;
and constructing the universal reference code table based on the main table information code and the main table information code value.
3. The method of claim 2, wherein constructing the hierarchy code in a parameter profile set comprises:
determining a coding hierarchy;
determining basic information of the hierarchical structure code in a preset hierarchical structure code main table based on the coding hierarchical structure;
based on the engineering construction management requirements, determining structural parameters of the hierarchical structure codes corresponding to the basic information of the hierarchical structure codes according to the hierarchical sequence of the main table of the preset hierarchical structure codes;
and constructing the hierarchical structure code based on the basic information of the hierarchical structure code and the structural parameters of the hierarchical structure code.
4. A method according to claim 3, wherein constructing the structural templates in a parameter profile set comprises:
determining basic information of a structure template in a main table of a preset structure template based on the reference code table and the hierarchical structure code;
determining template element information of the structure template in a slave table of the preset structure template based on engineering construction management requirements;
and constructing the structural template based on the basic information and the template element information.
5. The coding structure design device is used for a complex engineering construction management system; characterized in that the device comprises:
the construction module is used for constructing a parameter configuration file set, wherein the parameter configuration file set is used for setting coding structure parameters of a complex engineering construction management system and comprises a general reference code table, a hierarchical structure code and a structure template, the general reference code table is used for establishing references of the complex engineering construction management system, the hierarchical structure code is used for dynamically defining codes with hierarchical structures, the codes are obtained by defining a specific number of layers, the length of each layer and the total length of the codes, and the type of the hierarchical structure code, the number of layers and the length of the codes are defined according to users, and the number of layers of the codes, the length of each layer and the total length of the codes are identical;
the first determining module is used for determining a target parameter configuration file in the parameter configuration file set based on a preset engineering construction management requirement;
a second determining module, configured to determine an encoding structure parameter based on the target parameter configuration file, including:
the abstract factory mode is realized through the target parameter configuration file, is used for representing a creation mode in a design mode, is used for building a product family, and is the most abstract and general form in the factory modes of all forms;
determining encoding structure parameters based on the abstract factory pattern;
wherein implementing the abstract factory pattern via the target parameter configuration file comprises: when the target parameter configuration file is a hierarchical structure code configuration file, an abstract factory mode is realized by adopting a mode of adding other input data to a prepositive data support of a reference code table;
when the target parameter configuration file is a structural template configuration file, an abstract factory mode is realized by adopting a mode of leading data support of a hierarchical structure code and other input data;
and the design module is used for obtaining the coding structure of the complex engineering construction management system through object-oriented design based on the coding structure parameters.
6. The apparatus of claim 5, wherein the build module comprises:
a first determining sub-module for determining a universal reference code user group;
a second determining sub-module, configured to determine, based on the universal reference code user group, a main table information encoding of the universal reference code table;
the third determining submodule is used for determining a main table information coding value corresponding to the main table information coding based on the engineering construction management requirement;
and the first construction submodule is used for constructing the universal reference code table based on the main table information code and the main table information code value.
7. A computer-readable storage medium storing computer instructions for causing the computer to execute the encoding structure design method according to any one of claims 1 to 4.
8. An electronic device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, the processor executing the computer instructions to perform the encoding structure design method of any one of claims 1 to 4.
CN202310193631.9A 2023-02-28 2023-02-28 Coding structure design method and device, storage medium and electronic equipment Active CN116578273B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310193631.9A CN116578273B (en) 2023-02-28 2023-02-28 Coding structure design method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310193631.9A CN116578273B (en) 2023-02-28 2023-02-28 Coding structure design method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN116578273A CN116578273A (en) 2023-08-11
CN116578273B true CN116578273B (en) 2024-02-09

Family

ID=87536550

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310193631.9A Active CN116578273B (en) 2023-02-28 2023-02-28 Coding structure design method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN116578273B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101529351A (en) * 2006-08-24 2009-09-09 西门子能量及自动化公司 Devices, systems, and methods for configuring a programmable logic controller
CN102043616A (en) * 2009-10-22 2011-05-04 上海杉达学院 Factory pattern-based information system architecture and architecture method
CN107844295A (en) * 2017-11-22 2018-03-27 重庆人人生活家科技发展有限公司 Can raising efficiency database coded system
CN108733639A (en) * 2018-04-09 2018-11-02 中国平安人寿保险股份有限公司 A kind of configuration parameter regulation means, device, terminal device and storage medium
CN109683873A (en) * 2018-11-16 2019-04-26 中国西安卫星测控中心 Utilize the coding method of aerospace information interface and system architecture of ASN1 rule
CN110650337A (en) * 2018-06-26 2020-01-03 中兴通讯股份有限公司 Image encoding method, decoding method, encoder, decoder and storage medium
CN111309607A (en) * 2020-02-12 2020-06-19 扬州大学 Software defect positioning method of code method level

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11388195B1 (en) * 2019-02-02 2022-07-12 Clearops, Inc. Information security compliance platform

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101529351A (en) * 2006-08-24 2009-09-09 西门子能量及自动化公司 Devices, systems, and methods for configuring a programmable logic controller
CN102043616A (en) * 2009-10-22 2011-05-04 上海杉达学院 Factory pattern-based information system architecture and architecture method
CN107844295A (en) * 2017-11-22 2018-03-27 重庆人人生活家科技发展有限公司 Can raising efficiency database coded system
CN108733639A (en) * 2018-04-09 2018-11-02 中国平安人寿保险股份有限公司 A kind of configuration parameter regulation means, device, terminal device and storage medium
CN110650337A (en) * 2018-06-26 2020-01-03 中兴通讯股份有限公司 Image encoding method, decoding method, encoder, decoder and storage medium
CN109683873A (en) * 2018-11-16 2019-04-26 中国西安卫星测控中心 Utilize the coding method of aerospace information interface and system architecture of ASN1 rule
CN111309607A (en) * 2020-02-12 2020-06-19 扬州大学 Software defect positioning method of code method level

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
"基于闭包封装和序列展开实现"可选用参泛型抽象工厂"";闵军 等;《软件工程》;第18-22页 *
"能源大数据的系统构想及应用研究";金和平 等;《水电与抽水蓄能》;第1-13页 *

Also Published As

Publication number Publication date
CN116578273A (en) 2023-08-11

Similar Documents

Publication Publication Date Title
Adams et al. Dynamic, extensible and context-aware exception handling for workflows
AU2007289177B9 (en) Dynamically configuring, allocating and deploying computing systems
US8041744B2 (en) Computer-aided modeling
CN101438261B (en) Techniques and system to perform gradual upgrades
US20120272215A1 (en) Application builder for industrial automation
CN101593111A (en) A kind of Service Component reaches the applied software development method and system based on Service Component
CN101192143A (en) Software interface construction method
CN105164660A (en) Cloud based service design inheritance
CN103593443A (en) Method for electronic file metadata expansion
CN110990396B (en) Data storage method, device and storage medium
CN101799754A (en) Method and system for developing web application
CN110661665B (en) Alarming method based on Internet of things cloud platform, computer storage medium and equipment
CN102222278A (en) Operation process customizing method and device
CN115454974A (en) Product inspection method, system, terminal and computer storage medium
CN107133044A (en) The quick development method and system of the data maintenance type page
CN116578273B (en) Coding structure design method and device, storage medium and electronic equipment
CN102609494B (en) Method for processing data of machine account and device
CN112486952A (en) Flow creation method, system, storage medium and electronic device
CN103971225A (en) Workflow dynamic expanding method and system
CN114140047B (en) System bill of materials generation method, system, storage medium and equipment
CN113076086B (en) Metadata management system and method for modeling model object using the same
CN112418796B (en) Sub-process task node activation method and device, electronic equipment and storage medium
CN114048194A (en) Data management method and device and electronic equipment
EP3869769B1 (en) Smart repository based on relational metadata
KR101726663B1 (en) Method and System for automated I/O-port linking framework between the models using the concept of cloud or cloud-computing in Model Based Design under the block diagram environment

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
GR01 Patent grant
GR01 Patent grant