[go: up one dir, main page]

CN114741076B - SOA service parameter rapid definition method - Google Patents

SOA service parameter rapid definition method Download PDF

Info

Publication number
CN114741076B
CN114741076B CN202210415220.5A CN202210415220A CN114741076B CN 114741076 B CN114741076 B CN 114741076B CN 202210415220 A CN202210415220 A CN 202210415220A CN 114741076 B CN114741076 B CN 114741076B
Authority
CN
China
Prior art keywords
data
file
service
value
definition
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
CN202210415220.5A
Other languages
Chinese (zh)
Other versions
CN114741076A (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.)
Chongqing Changan Automobile Co Ltd
Original Assignee
Chongqing Changan Automobile 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 Chongqing Changan Automobile Co Ltd filed Critical Chongqing Changan Automobile Co Ltd
Priority to CN202210415220.5A priority Critical patent/CN114741076B/en
Publication of CN114741076A publication Critical patent/CN114741076A/en
Application granted granted Critical
Publication of CN114741076B publication Critical patent/CN114741076B/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/30Creation or generation of source code
    • G06F8/36Software reuse
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/73Program documentation

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Library & Information Science (AREA)
  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a method for rapidly defining parameters based on SOA service, which comprises the following steps: s1: when a service is newly established, classifying data related to the service to obtain data types, and defining values of the data; the data types comprise basic data and Struct data; s2: after the value definition is completed, an m file associated with the service is exported, and the m file can be downloaded; wherein the m-file includes a macro definition file and an ADT file, and the macro definition file and the ADT file each include a common portion and a value definition portion. The method can provide the defined service for different developers at the vehicle end in a file downloading mode, avoids the phenomenon that different vehicle end developers repeatedly define the parameter values under the same classification, does not need to manually maintain the parameter macro definition file, and greatly improves the development efficiency.

Description

SOA service parameter rapid definition method
Technical Field
The invention relates to the technical field of automobiles and SOA (service oriented architecture) services, in particular to a method for rapidly defining parameters based on the SOA services.
Background
With the rapid development of software technology, the continuously changing business demands make automobile enterprises face the problems of heterogeneous systems, information islands and the like. In order to meet the diversified demands of users and meet the development trend of the automobile field, automobile enterprises also introduce (Service Oriented Architecture, SOA) concepts in the cloud. The SOA service-oriented architecture provides an extensible design model based on open standards, and aims at service-oriented guiding principles and business and application services, well encapsulates resources into individual services, and constructs an application system according to the current requirements by combining the reusable and loosely-coupled services.
Each SOA service needs to create different parameters, and one function is realized by combining a plurality of different services. At present, vehicle end developers independently develop different modules, the same parameter value is repeatedly defined in the development process, and as the number of the developers increases, a lot of workload is increased by manually maintaining the parameter macro definition file, so that the development efficiency is greatly reduced.
Disclosure of Invention
Aiming at the defects existing in the prior art, the invention aims to provide a method for rapidly defining parameters based on SOA services, so as to solve the problems of repeated definition of unified parameter values, increased manual maintenance workload and reduced development efficiency when developers independently develop different modules in the prior art.
In order to solve the technical problems, the invention adopts the following technical scheme:
a method for quickly defining service parameters based on SOA (service oriented architecture) comprises the following steps:
S1: when a service is newly established, classifying data related to the service to obtain data types, and defining values of the data; the data types comprise basic data and Struct data;
S2: after the value definition is completed, an m file associated with the service is exported, and the m file can be downloaded;
Wherein the m-file includes a macro definition file and an ADT file, and the macro definition file and the ADT file each include a common portion and a value definition portion.
Compared with the prior art, the invention has the following beneficial effects:
The method is based on an SOA software architecture system, classifies and sorts defined parameters, packages the whole vehicle application function logic into service components, hides the vehicle type differences, and realizes the standard and the opening of a whole vehicle-level software interface; meanwhile, for the defined service, the service can be provided for different developers at the vehicle end in a file downloading mode, so that the phenomenon that different vehicle end developers repeatedly define the parameter values under the same classification is avoided, and the parameter macro definition file is not required to be manually maintained, so that the development efficiency is greatly improved.
Drawings
FIG. 1 is a diagram of data type classification in accordance with the present invention.
FIG. 2 is a diagram of m-file composition in the present invention.
FIG. 3 is a diagram showing the composition of a macro definition file according to the present invention.
FIG. 4 is a diagram showing the composition of ADT files according to the present invention.
Detailed Description
The present invention will be further described in detail below with reference to the accompanying drawings, for the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more clear, and the described embodiments should not be construed as limiting the present invention, but all other embodiments obtained by those skilled in the art without making creative efforts are within the protection scope of the present invention.
The invention provides a method for rapidly defining parameters based on SOA service, which comprises the following steps:
S1: when a service is newly established, the data related to the service is classified to obtain the data type, and the value definition is carried out on the data. Wherein, the data type comprises basic data and Struct data. When the data type is basic data, the name of the data can be modified, and the value definition can be carried out on the data with the modified name. When the data type is struct data, value definition can be performed on the data. The method parameters related to the service are created while the service is newly created, and different types of data can be simultaneously selected and defined in value. The data is defined in value, and meanwhile, whether the data is exported or not is selected, and parameters required by the selective export of the scene according to the current requirement are selected.
When a service is newly created, the service is classified according to the domain to which the service belongs and the service type, and different types of methods corresponding to the service are created, wherein the creation of the parameter value is different according to the different types of the methods. As shown in FIG. 2, the data types are divided into basic data, struct data, array (Array), and enumeration. The base data can play an alias, namely the name of the base data can be modified, and the value definition can be carried out on the data of the alias, namely the renamed data. Likewise, struct data may also define values for its parameters. When the method parameters are created, multiple data types can be selected at the same time, basic data can be selected, struct data can be selected, and value definition can be performed on the selected data at the same time.
S2: after the value definition is completed, an m-file associated with the service is exported and can be downloaded.
Wherein the m-file includes a macro definition file and an ADT file, and the macro definition file and the ADT file each include a common portion and a value definition portion. The common part is a basic data type, and the value range of each basic data type is limited. The value definition part classifies the service according to the service classification, outputs all value definitions of struct type data under each service classification, and the data of all value definitions are basic data types, and the repeated data only outputs one type. The macro definition file can acquire value definition data according to the domain, divide the value definition data according to the service classification, and display all the value definition data, the basic data type and the value range of the data contained in one classification.
In particular implementations, the present invention designs an m-file in order to export a value definition file associated with a newly created service at one time. As shown in fig. 2, the m-file contains two parts, one part being a macro definition file and the other part being an ADT file. The macro definition file further comprises two parts, wherein one part is fixed content, namely common part, and the other part is a value definition part of the method parameters. As shown in fig. 3 (macro definition file), the content of the fixed part is a base data type, and a range of values is given for each base data type. The value definition part classifies according to service classification, all value definition data of the struct type are output under each service classification, all value definition data are basic data types, the repeated parameters only output one type, and the invention does not consider the parameters of the struct type, the Array type parameters and the enumeration type parameters of the struct data nesting temporarily. The macro definition file can acquire value definition data according to the domain, and divide the value definition data according to the service classification, so that all the value definition data under one classification, the basic data types and the value range specified by the data can be clearly displayed. As shown in fig. 4, the output format of the ADT file is also divided into two parts, and the content of the fixed part is provided to the developer only as an indication, and the key content is the structural member information. The structure member information part divides according to the structure, sequentially displays the members of each structure in front of the structure, and appends information of the data type of the member under the member information. The ADT file can display all the structure data and the member data of the structure by domain, and can display the members of the structure after dividing the structure by the structure. The derived file thus contains the parameters of the service, the type of the parameters, the value definition of the parameters, etc. The use of the developer is convenient, and the workload of maintenance personnel is reduced.
The invention provides a one-time export function for the created parameters, the export function provides personalized selection, whether export can be simultaneously selected when parameter value definition data is created, and the parameters required by the selective export of the scene according to the current requirement can be provided to vehicle-end developers by a user. Since the domain to which the service belongs is selected when it is created, the export file provides only all the services below a certain domain.
As described above, the alert system of the present invention is not limited to the configuration, and other systems that can implement the embodiments of the present invention can fall within the scope of the present invention.
Finally, it should be noted that the above embodiments are only for illustrating the technical solution of the present invention and not for limiting the technical solution, and those skilled in the art should understand that modifications and equivalents may be made to the technical solution of the present invention without departing from the spirit and scope of the present invention, and all such modifications and equivalents are included in the scope of the claims.

Claims (6)

1. The method for rapidly defining the service parameters based on the SOA is characterized by comprising the following steps:
S1: when a service is newly established, classifying data related to the service to obtain data types, and defining values of the data; the data types comprise basic data and Struct data;
S2: after the value definition is completed, an m file associated with the service is exported, and the m file can be downloaded;
the m file comprises a macro definition file and an ADT file, and the macro definition file and the ADT file both comprise a public part and a value definition part;
in S2, the common part of the macro definition file is taken as a basic data type, and the value range of each basic data type is limited;
in S2, the value definition portion of the macro definition file classifies according to the service classifications, outputs all value definitions of struct type data under each service classification, and the data of all value definitions are basic data types, and the repeated data only outputs one type.
2. The method according to claim 1, wherein in S1, when the data type is basic data, the name of the data is modified, and the value of the data whose name is modified is defined.
3. The method for quickly defining SOA service parameters according to claim 1, wherein in S1, when the data type is struct data, the data can be defined in value.
4. The method for quickly defining SOA service parameters according to claim 1, wherein in S1, the method parameters related to the service are created while creating the service, and different types of data can be simultaneously selected and value-defined.
5. The method for quickly defining parameters based on SOA services according to claim 1, wherein in S1, the data is selected to be exported while the data is defined in value, and the parameters required for the selective export of the scene according to the current requirement are selected.
6. The method for quickly defining parameters based on SOA services according to claim 1, wherein the macro definition file is capable of acquiring value definition data according to a domain, dividing the value definition data according to service classification, and displaying all value definition data, basic data types and value ranges of the data contained in one classification.
CN202210415220.5A 2022-04-20 2022-04-20 SOA service parameter rapid definition method Active CN114741076B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210415220.5A CN114741076B (en) 2022-04-20 2022-04-20 SOA service parameter rapid definition method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210415220.5A CN114741076B (en) 2022-04-20 2022-04-20 SOA service parameter rapid definition method

Publications (2)

Publication Number Publication Date
CN114741076A CN114741076A (en) 2022-07-12
CN114741076B true CN114741076B (en) 2024-05-31

Family

ID=82282777

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210415220.5A Active CN114741076B (en) 2022-04-20 2022-04-20 SOA service parameter rapid definition method

Country Status (1)

Country Link
CN (1) CN114741076B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1150844A (en) * 1994-06-14 1997-05-28 Lm爱立信电话有限公司 Method of creating software for telecommunication switches
CN101582092A (en) * 2009-06-12 2009-11-18 中兴通讯股份有限公司 Method and device for realizing the store of date in memory
CN102592092A (en) * 2012-01-09 2012-07-18 中标软件有限公司 Strategy adaptation system and method based on SELinux (Security-Enhanced Linux) security subsystem
CN105005496A (en) * 2015-06-25 2015-10-28 桂林力港网络科技有限公司 Processing system and method for cross-language transformation of network data packet definition file
CN108664700A (en) * 2018-04-04 2018-10-16 北京航空航天大学 Acceleration degradation information Fusion Modeling Method based on uncertain data Envelope Analysis
CN114756210A (en) * 2022-04-24 2022-07-15 重庆长安汽车股份有限公司 Configurational tool chain and method for middleware code generation

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7739586B2 (en) * 2005-08-19 2010-06-15 Microsoft Corporation Encoding of markup language data

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1150844A (en) * 1994-06-14 1997-05-28 Lm爱立信电话有限公司 Method of creating software for telecommunication switches
CN101582092A (en) * 2009-06-12 2009-11-18 中兴通讯股份有限公司 Method and device for realizing the store of date in memory
CN102592092A (en) * 2012-01-09 2012-07-18 中标软件有限公司 Strategy adaptation system and method based on SELinux (Security-Enhanced Linux) security subsystem
CN105005496A (en) * 2015-06-25 2015-10-28 桂林力港网络科技有限公司 Processing system and method for cross-language transformation of network data packet definition file
CN108664700A (en) * 2018-04-04 2018-10-16 北京航空航天大学 Acceleration degradation information Fusion Modeling Method based on uncertain data Envelope Analysis
CN114756210A (en) * 2022-04-24 2022-07-15 重庆长安汽车股份有限公司 Configurational tool chain and method for middleware code generation

Also Published As

Publication number Publication date
CN114741076A (en) 2022-07-12

Similar Documents

Publication Publication Date Title
CN110300175A (en) Information push method, device, storage medium and server
CN106569801A (en) Complex parameter-based configuration display control system
CN102104510B (en) Data view processing method and system
CN116993857B (en) Thematic map preparation method and device, storage medium and electronic equipment
CN103324728A (en) Mobile terminal application program searching method and apparatus
CN110032368B (en) Information configuration method and device
CN115100353A (en) Method, system, electronic device and storage medium for generating digital twin instances
CN107038224B (en) Data processing method and data processing device
CN113760242B (en) Data processing method, device, server and medium
CN108345658A (en) Algorithm calculates decomposing process, server and the storage medium of track
CN113010359A (en) Bus test system generation method, system, device and storage medium
CN114741076B (en) SOA service parameter rapid definition method
CN104268346A (en) Implementation method for simulation application of visual integrated environment on basis of object class interaction diagrams
CN115510361A (en) Data chart page generation method based on visual configuration and related equipment
CN115291856A (en) Flow establishing method and device and electronic equipment
CN115905353A (en) Associated data export and import method, device, equipment and storage medium
CN117850764B (en) Design modeling method and device based on integrated model driving architecture
CN114416369B (en) Method and system for distributing data in instrument
CN115422898A (en) Visual self-defined report form analysis system based on container cloud
CN114756210A (en) Configurational tool chain and method for middleware code generation
CN110222286A (en) Information acquisition method, device, terminal and computer readable storage medium
CN116414367A (en) Method, device, chip, equipment and storage medium for generating embedded software system
CN116774131A (en) A high degree of freedom electric energy meter testing system
CN115827670A (en) DSL-based view processing method, system, device and storage medium
CN115525321A (en) Distributed task generation method, device, equipment and storage medium

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