CN104881311B - The judgment method and device of a kind of edition compatibility - Google Patents
The judgment method and device of a kind of edition compatibility Download PDFInfo
- Publication number
- CN104881311B CN104881311B CN201510283911.4A CN201510283911A CN104881311B CN 104881311 B CN104881311 B CN 104881311B CN 201510283911 A CN201510283911 A CN 201510283911A CN 104881311 B CN104881311 B CN 104881311B
- Authority
- CN
- China
- Prior art keywords
- component software
- version
- component
- software
- edition
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 31
- 238000010586 diagram Methods 0.000 description 10
- 238000004590 computer program Methods 0.000 description 7
- 238000012545 processing Methods 0.000 description 6
- 230000006870 function Effects 0.000 description 4
- 238000003860 storage Methods 0.000 description 4
- 230000010354 integration Effects 0.000 description 3
- 238000011161 development Methods 0.000 description 2
- 230000003466 anti-cipated effect Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
Landscapes
- Stored Programmes (AREA)
Abstract
The embodiment of the invention discloses a kind of judgment method of edition compatibility, including:The integrated configuration file of component software system is obtained, integrated configuration file includes the configuration information of N number of component software when component software system is upgraded, and N number of component software includes the component software of at least one upgrading, wherein, N >=1;Obtain the Version Description file of N number of component software;The Version Description file of each component software in N number of component software, judges whether the arbitrary version of each component software is compatible with, and determines that carrying out stablizing for component software system upgrades.The embodiment of the present invention also discloses a kind of judgment means of edition compatibility.
Description
Technical field
The present invention relates to the embedded software Component-Based Development Techniques in computer realm more particularly to a kind of edition compatibilities
Judgment method and device.
Background technology
In general hardware and software platform software life-cycle, software towards application field it is extremely complex changeable, therefore, it is necessary to
Corresponding upgrading update is timely carried out to software version, to adapt to software defect reparation, software function enhances, software performance is excellent
The demands such as change and software runtime environment variation.
In the prior art, the software development carried out using Component-based Design method.Wherein, a software is by more
A component software composition, each component software has the version of oneself, for example, the software group of embedded software and upper computer software
Part can include three classes:Source code component (component during compiling), binary code component (component during link), executable code component
(component during operation).When there is the new version integration release of some component software in software, component software system is again to the software
Component is individually upgraded or component software system upgrades all component softwares of this software, with completion pair
The upgrading of the component software.
However, hardware and software platform, modularization, modularization framework development mode under, using the component software of the prior art
During upgrading mode, individual software component can individually be upgraded, but when individual software component cross-version is upgraded, it can
It is not simultaneous with the component software presence for not having to upgrading other in component software system after the component software upgrading that can encounter new version
The problem of appearance so that the component software system of component software and other component softwares for not having to upgrading including above-mentioned new version is not
Energy normal operation, so as to cause the unstable of component software system.Therefore, can individually be upgraded in individual software component
When, the judgement of the compatibility in component software system between component software becomes the key to solve the above problems.
Invention content
In order to solve the above technical problems, an embodiment of the present invention is intended to provide the judgment method and device of a kind of edition compatibility,
It can judge the edition compatibility between component software, ensure the stability of component software system upgrade.
The technical proposal of the invention is realized in this way:
The embodiment of the present invention provides a kind of judgment method of edition compatibility, the method includes:
Obtain component software system integrated configuration file, the integrated configuration file include the component software system into
The configuration information of N number of component software during row upgrading, N number of component software include the component software of at least one upgrading,
Wherein, N >=1;
Obtain the Version Description file of N number of component software;
The Version Description file of each component software in N number of component software judges each software group
Whether the arbitrary version of part is compatible with, and determines that carrying out stablizing for the component software system upgrades.
In said program, the Version Description file of each component software includes:Each component software with it is described N number of
The dependence between other N-1 component softwares in component software in addition to itself;
Correspondingly, the Version Description file of each component software in N number of component software, described in judgement
Whether each arbitrary version of component software is compatible with, including:
According to the dependence between each component software and other N-1 component software, determine described each soft
The version that part component is relied on;
Judge whether the version that each component software is relied on is compatible with.
In said program, the Version Description file of any one component software in N number of component software further includes:
It is the current version information of any one component software, the previous release information of any one component software, described
The current version information mark compatible with the previous release information of any one component software of any one component software
The old version information of note and any one component software;
Correspondingly, judge the method whether version that any one described component software is relied on is compatible with, including:
According to the current version information of any one component software, the previous version of any one component software
This information, the current version information of any one component software and the previous release of any one component software are believed
The compatible label of breath and the old version information of any one component software generate any one described component software
Arbitrary version between edition tree;
According to the edition tree between the arbitrary version of any one component software, any one described software group is judged
Whether the version that part is relied on is compatible with.
In said program, the edition tree between the arbitrary version of any one component software described in the basis judges
Whether the version that any one described component software is relied on is compatible with, including:
In edition tree between the arbitrary version of any one component software, any one described software group is judged
Any two version that part is relied on is when in compatible branch, any two that any one described component software is relied on
Edition compatibility.
In said program, after any two edition compatibility that any one described component software is relied on, the side
Method further includes:
During any two edition compatibility that each component software in N number of component software is relied on, institute is determined
State the edition compatibility of component software system.
The embodiment of the present invention provides a kind of judgment means of edition compatibility, and described device includes:
Acquiring unit, for obtaining the integrated configuration file of component software system, the integrated configuration file includes described
The configuration information of N number of component software when component software system is upgraded, N number of component software include at least one liter
The component software of grade, wherein, N >=1;
The acquiring unit is additionally operable to obtain the Version Description file of N number of component software;
Judging unit, for each component software in N number of component software for being obtained according to the acquiring unit
Version Description file, judges whether the arbitrary version of each component software is compatible with, and determines to carry out the component software system
Stablize upgrading.
In said program, the Version Description file for each component software that the acquiring unit obtains includes:Often
The dependence between other N-1 component softwares in a component software and N number of component software in addition to itself;It is described
The judgment means of edition compatibility, further include:Determination unit;
The determination unit, for soft according to each component software that the acquiring unit obtains and other N-1
Dependence between part component determines the version that each component software is relied on;
The judging unit, the version being relied on specifically for judging each component software that the determination unit determines
Whether this is compatible with.
In said program, any one component software in N number of component software that the acquiring unit obtains
Version Description file further includes:The current version information of any one component software, any one component software
Previous release information, the current version information of any one component software are previous with any one component software
The compatible label of a version information and the old version information of any one component software;The edition compatibility is sentenced
Disconnected device further includes:Generation unit;
Generation unit, for the current version letter of any one component software according to acquiring unit acquisition
Breath, the previous release information of any one component software, the current version information of any one component software with
The compatible label of the previous release information of any one component software and the history of any one component software
Version information generates the edition tree between the arbitrary version of any one component software;
The judging unit, also particularly useful for times of any one component software according to generation unit generation
The edition tree anticipated between version judges whether is version that any one described component software that the determination unit determines is relied on
It is compatible.
In said program, judging unit, also particularly useful in any one software described in generation unit generation
In edition tree between the arbitrary version of component, any two version that any one described component software is relied on is compatible
Branch on when, any two edition compatibility that any one described component software is relied on.
In said program, the determination unit is additionally operable to the judging unit and judges any one described component software
After any two edition compatibility being relied on, the judging unit judges each software in N number of component software
During any two edition compatibility that component is relied on, the edition compatibility of the component software system is determined.
An embodiment of the present invention provides the judgment method and device of a kind of edition compatibility, the judgment means of edition compatibility obtain
The integrated configuration file of component software system, integrated configuration file include N number of soft when the component software system is upgraded
The configuration information of part component, N number of component software include the component software of at least one upgrading;Obtain the version of N number of component software
This describes file;According to the Version Description file of component software each in N number of component software, the arbitrary version of each component software is judged
Whether this is compatible with, and is upgraded with determining to carry out stablizing for component software system.Using above-mentioned technic relization scheme, due to edition compatibility
Judgment means when thering is the component software of new version to be upgraded in component software system, first judge in component software system
Whether each arbitrary version of component software is compatible with, and then judge whether the version that each component software is relied on is compatible with, so as to
It can determine whether version of the software systems in the component software for using upgrading is compatible with, therefore, pass through sentencing for edition compatibility
Disconnected device completes compatibility determination, and component software system can be caused to carry out the version liter of single component software in edition compatibility
Grade, so as to ensure that the stability of component software system upgrade.
Description of the drawings
Fig. 1 is a kind of flow chart one of the judgment method of edition compatibility provided in an embodiment of the present invention;
Fig. 2 is a kind of flowchart 2 of the judgment method of edition compatibility provided in an embodiment of the present invention;
Fig. 3 is the version dependence graph of illustrative component software provided in an embodiment of the present invention;
Fig. 4 is a kind of flow chart 3 of the judgment method of edition compatibility provided in an embodiment of the present invention;
Fig. 5 is the edition tree of illustrative single component software provided in an embodiment of the present invention;
Fig. 6 is the version dependence graph of illustrative component software provided in an embodiment of the present invention to each single software group
The evolution of the edition tree of part;
Fig. 7 is a kind of flow chart four of the judgment method of edition compatibility provided in an embodiment of the present invention;
Fig. 8 is a kind of structure diagram one of the judgment means of edition compatibility provided in an embodiment of the present invention;
Fig. 9 is a kind of structure diagram two of the judgment means of edition compatibility provided in an embodiment of the present invention;
Figure 10 is a kind of structure diagram three of the judgment means of edition compatibility provided in an embodiment of the present invention;
Figure 11 is a kind of structure diagram of computer provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete
Site preparation describes.
The executive agent of the embodiment of the present invention can be the judgment means or external for the edition compatibility being arranged in computer
With the integration module of computer, the present invention is not restricted, below by taking the judgment means of edition compatibility are arranged in computer as an example
It illustrates.
Embodiment one
The embodiment of the present invention provides a kind of judgment method of edition compatibility, as shown in Figure 1, this method can include:
S101, obtain component software system integrated configuration file, the integrated configuration file include component software system into
The configuration information of N number of component software during row upgrading, N number of component software include the component software of at least one upgrading,
In, N >=1.
The application scenarios of the embodiment of the present invention are:When thering is the component software of new version to issue in some component software system,
The component software system will upgrade the situation of the component software of the new version;This step can be complete by the judgment means of edition compatibility
Into.
It should be noted that the integration release of a component software is carried out by research staff;Specifically:
First, the Version Description file of the component software is configured, corresponding software component can be specifically filled according to form
Version information;When component software is issued, component software Version Description file is simultaneously provided.It is soft that this is recorded in Version Description file
The current version information of part component, the previous release information of the component software, the current version information of the component software are with being somebody's turn to do
The compatible label of the previous release information of component software, and retain the old version information of component software exploitation record and
Dependence, here, dependence refer to the component software rely on it is other soft in addition to itself in component software system
Dependence between part component.When the component software relies on other component softwares, the current of relied on component software is filled in
Version information.
Secondly, the integrated configuration file of configuration software component system specifically fills in the integrated configuration of component software system
File.Due to different possible different using the component software integrated needed for personnel, version, pass through component software system
Integrated configuration file, the configuration information of each component software included by the component software system is described;Wherein, match integrated
Put N number of component software that the component software system is configured in file.
Specifically, the configuration information of N number of component software that includes of integrated configuration file can be N number of software component names and
Its corresponding current version information.
Optionally, the version information in the embodiment of the present invention can be version number.
It should be noted that the current version information in the embodiment of the present invention refers to component software currently version to be used
This, previous release information refers to the legacy version information before current version upgrades.
In embodiments of the present invention, after the new version for often issuing a component software, the judgment means of edition compatibility can
Therefrom to get the integrated configuration file of above-mentioned component software system, and the component software is obtained from the integrated configuration file
The configuration information of required N number of component software when system is upgraded.
It should be noted that the software group of at least one upgrading should be included in N number of component software in component software system
Part (component software of new version), just it is necessary to carry out the judgement of component software system compatible.
Illustratively, component software system can be made of three component softwares, the integrated configuration of the component software system
File includes the configuration information of the IEC103 of the SLAVE and V1.1 versions of MASTER, V1.2 version of V1.3 versions;Integrated configuration
File example is as follows:
Key=MASTER Version=1.3 Time=2014-12-06_16:29:59 Crc=8F6DE121
Key=SLAVE Version=1.2 Time=2014-11-11_20:27:19 Crc=2E9F6B30
Key=IEC103 Version=1.1 Time=2014-10-22_10:25:36 Crc=6A5BC31E
Wherein, Key represents the title of component software, and Version represents the version information of component software, and Time is software group
Part compiles to form the time, and CRC is the check code of component software.
S102, the Version Description file for obtaining N number of component software.
This step can be completed by the judgment means of edition compatibility;It should be noted that the judgment means of edition compatibility are true
After the N number of component software for having determined component software system, the judgment means of the edition compatibility need to only judge N number of component software
Compatibling problem, then, the judgment means of the edition compatibility obtain the Version Description file of N number of component software, to carry out software group
The judgement of part compatibility.
Optionally, the Version Description file of each component software in N number of component software includes:Each component software and N
The dependence between other N-1 component softwares in a component software in addition to itself.
Illustratively, the Version Description file of MASTER includes:The MASTER of V1.3 relies on the SLAVE of V1.1;SLAVE
Version Description file include:The SLAVE of V1.2 versions relies on the MASTER of V1.3;It is wrapped in the Version Description file of IEC103
It includes:The IEC103 of V1.2 relies on the MASTER of the SLAVE and V1.2 of V1.0.
Optionally, the Version Description file of any one component software in N number of component software further includes:Any one is soft
The current version information of part component, the previous release information of any one component software, any one component software it is current
Version information label compatible with the previous release information of any one component software and any one component software are gone through
History version information.
It should be noted that during single component software publication new version, the Version Description file of component software need to be updated, and
Retain the description information of old version.
Illustratively, the form of the Version Description file of any one component software of N number of component software can be as follows
Form:
Wherein, Key is the title of component software, and Current is the current version information of component software, and Child is sub- version
This (current version), Parent are father's version (previous release), and Compatible indicates to be compatible.DependKey is software
The title for other component softwares that component relies on, ReqV are the version information of the other component softwares relied on.
The Version Description file of S103, each component software in N number of component software, judge each component software
Whether arbitrary version is compatible with, and determines that carrying out stablizing for component software system upgrades.
This step can be completed by the judgment means of edition compatibility;The judgment means of edition compatibility obtain N number of component software
After Version Description file, the judgment means of the edition compatibility pass through each component software in N number of component software
Version Description file, judges whether each arbitrary version of component software is compatible with, and then judges to be made of N number of component software soft
The version compatibility of part component system, so that it is determined that the stability of the component software system upgrade.
Specifically, as shown in Fig. 2, after the judgment means execution S101-S102 of edition compatibility, the judgement of edition compatibility fills
The Version Description file of each component software in N number of component software is put, judges that each arbitrary version of component software is
No compatibility can include step:S1031 and S1032;It is specific as follows:
S1031, edition compatibility judgment means according to the dependence passes of each component software and other N-1 component softwares
System, determines the version that each component software is relied on.
After the judgment means of edition compatibility obtain the Version Description file of N number of component software, due to each component software
Version Description file include other N-1 component softwares in each component software and N number of component software in addition to itself
Between dependence, therefore, the judgment means of the edition compatibility can be according to each component software and other N-1 software groups
Dependence between part determines the version that each component software is relied on.
It should be noted that the judgment means of edition compatibility can be according to each component software and other N-1 software groups
Dependence between part determines the version that each component software is relied on, and is relied on so as to draw the version of component software system
Relational graph.
Illustratively, the Version Description file of MASTER includes:The MASTER of V1.3 relies on the SLAVE of V1.1;SLAVE
Version Description file include:The SLAVE of V1.2 versions relies on the MASTER of V1.3;It is wrapped in the Version Description file of IEC103
It includes:The IEC103 of V1.2 relies on the MASTER of the SLAVE and V1.2 of V1.0.The judgment means of edition compatibility can be according to MASTER
Version Description file, the Version Description file of SLAVE and the Version Description file of IEC103, derive:
(1), MASTER is by the version information that other components rely on:V1.3, V1.2, the current version information of MASTER are
V1.3;
(2), SLAVE is by the version information that other components rely on:V1.1, V1.0, the current version information of SLAVE are
V1.2;
(3), IEC103 is not relied on by other components, and the current version information of IEC103 is V1.1.
Wherein, the version dependence graph of the exemplary component software of the offer in the embodiment of the present invention is shown in Fig. 3.
S1032, edition compatibility judgment means judge whether the version that each component software is relied on is compatible with.
It should be noted that in embodiments of the present invention, the judgment means of edition compatibility are by the version of component software system
Matching is split as that the problem of whether version that each component software is relied on is compatible with judged.One component software system is by N number of soft
Part component form, then entire software systems at most form N* (N-1)/2 dependence, sequentially form single component software by according to
Bad version information, if the version information compatibility of single component software, and can develop to the current of the single component software
Version then carries out version merger, in this way, the judgment means of edition compatibility may determine that meet for the single component software it is other soft
The dependence requirement of part component, the version of the single component software is compatible in component software system, and therefore, the present invention is implemented
The criterion of edition compatibility of the entire component software system of example is:If each component software is all version in component software system
This compatibility, then the version of entire component software system is compatible.
Specifically, after the judgment means of edition compatibility determine the version that each component software is relied on, due to each soft
It is further included in the Version Description file of part component:The current version information of each component software, each component software it is previous
The current version information label compatible with the previous release information of each component software of version information, each component software,
And the old version information of each component software, therefore, the judgment means of the edition compatibility can be according to above-mentioned each software
Information in the Version Description file of component, judges whether the version that each component software is relied on is compatible with.
Specifically, as shown in figure 4, the judgment means of edition compatibility judge that the version that any one component software is relied on is
The method of no compatibility, including step:S10321-S10322;It is specific as follows:
S10321, edition compatibility judgment means according to the current version information of any one component software, this is any one
The previous release information of a component software, the current version information of any one component software and any one software group
The compatible label of the previous release information of part and the old version information of any one component software, it is arbitrary to generate this
Edition tree between the arbitrary version of one component software.
Specifically, after the judgment means of edition compatibility determine the version that each component software is relied on, the edition compatibility
Judgment means analyze the Version Description file of any one component software first, and according to the current of any one component software
Version information, the previous release information of any one component software, the current version information of any one component software
The history version of label compatible with the previous release information of any one component software and any one component software
This information forms the edition tree of any one component software, wherein, the data structure table of following N-ary tree can be used in v ion
Show:
It should be noted that the edition tree of any one component software in the embodiment of the present invention is from Version Description file
The initial version of middle record is until the edition tree of all versions of current version.
Illustratively, the edition tree of single component software is illustrated in figure 5, according to the Version Description of the single component software
Information in file, according to N-ary tree structure, from can the initial version V1.0 to current version V1.7 of the single component software
The edition tree of the version information of different branches is derived, wherein, compatible edition upgrading is represented with solid arrow, not compatible
Edition upgrading represented with dotted arrow.
S10322, edition compatibility judgment means according to the edition tree between the arbitrary version of any one component software,
Judge whether the version that any one component software is relied on is compatible with.
After the judgment means of edition compatibility generate the edition tree between the arbitrary version of any one component software, the version
The judgment means of this compatibility can be judged by the branched structure of the edition tree between the arbitrary version of any one component software
Whether the version that any one component software is relied on is compatible with.
Specifically, in edition tree between the arbitrary version of any one component software, any one software group is judged
Any two version that part is relied on is when in compatible branch, any two version which is relied on
This compatibility.
In edition tree between the arbitrary version of any one component software, judge that any one component software is relied on
Any two version not when in compatible branch, any two version which is relied on is not simultaneous
Hold.
Illustratively, it is assumed that component software system is made of MASTER, SLAVE and IEC103, and due to as shown in fig. 6,
In the version dependence graph of component software version, MASTER is by the version information that other components rely on:V1.3, V1.2,
The current version information of MASTER is V1.3;SLAVE is by the version information that other components rely on:V1.1, V1.0, SLAVE's
Current version information is V1.2;IEC103 is not relied on by other components, and the current version information of IEC103 is V1.1.Therefore, version
The judgment means of this compatibility judge the compatibility of the component software by judging the edition compatibility of MASTER, SLAVE and IEC103
Problem.By the respective edition tree of MASTER, SLAVE and IEC103 in Fig. 6, can learn:MASTER is from initial version V1.0-
The branch of V1.1-V1.2- current versions V1.3 is compatible, and SLAVE is from initial version V1.0-V1.1- current versions V1.2
Branch be compatible, the branch of IEC103 from initial version V1.0- current versions V1.1 are compatible.Therefore, edition compatibility
Judgment means judgement obtain:MASTER is compatible by the version information V1.3 and V1.2 that other components rely on;SLAVE is by it
The version information V1.1 and V1.0 that its component relies on are compatible.
Further, as shown in fig. 7, the judgment means of edition compatibility according to the arbitrary version of any one component software it
Between edition tree, after judging whether version that any one component software is relied on is compatible with, this method further includes step
S104, it is specific as follows:
During any two edition compatibility that each component software in S104, N number of component software is relied on, edition compatibility
Judgment means determine the edition compatibility of component software system.
It should be noted that the judgment means of edition compatibility are in any two for judging any one component software and being relied on
After edition compatibility, if any two edition compatibility that each component software in N number of component software is relied on, and can develop to this
The current version of each component software, then carry out the version merger of each component software, in this way, the judgment means of edition compatibility can
To be judged as that each component software meets the dependence requirement of other component softwares, the single software group in component software system
The version of part is compatible, then the judgment means of the edition compatibility are assured that the version of component software system is compatible.
Illustratively, as shown in Figure 6, it is assumed that the version V1.3 of MASTER is the version newly issued, the current version of MASTER
This information is V1.3, and the current version information of SLAVE is V1.2, and the current version information of IEC103 is V1.1, since version is simultaneous
The judgment means judgement of appearance obtains:MASTER is compatible by the version information V1.3 and V1.2 that other components rely on;SLAVE quilts
The version information V1.1 and V1.0 that other components rely on are compatible, and therefore, the V1.2 versions of MASTER can be current using merger
Version information is V1.3, the V1.0 versions of SLAVE can be using merger current version information as V1.2, therefore, MASTER is using working as
Preceding version information is V1.3, and SLAVE is V1.2 using current version information, when IEC103 uses current version information as V1.1,
The version of the component software system is compatible, and then during the edition upgrading of MASTER progress V1.3, the system of the component software
Be stable.
The judgment method of a kind of edition compatibility that the embodiment of the present invention is provided, the judgment means of edition compatibility obtain software
The integrated configuration file of component system, integrated configuration file include N number of software group when the component software system is upgraded
The configuration information of part, N number of component software include the component software of at least one upgrading;The version for obtaining N number of component software is retouched
State file;According to the Version Description file of component software each in N number of component software, judge that the arbitrary version of each component software is
No compatibility is upgraded with determining to carry out stablizing for component software system.Using above-mentioned technic relization scheme, due to sentencing for edition compatibility
When disconnected device has the component software of new version to be upgraded in component software system, first judge each in component software system
Whether the arbitrary version of component software is compatible with, and then judges whether the version that each component software is relied on is compatible with, so as to
It determines whether version of the software systems in the component software for using upgrading is compatible with, therefore, is filled by the judgement of edition compatibility
It puts and completes compatibility determination, component software system can be caused to carry out the edition upgrading of single component software in edition compatibility,
So as to ensure that the stability of component software system upgrade.
Embodiment two
As shown in figure 8, the embodiment of the present invention provides a kind of judgment means 1 of edition compatibility, the judgement of the edition compatibility
Device 1 can include:
Acquiring unit 10, for obtaining the integrated configuration file of component software system, the integrated configuration file includes institute
The configuration information of N number of component software when component software system is upgraded is stated, N number of component software includes at least one
The component software of upgrading, wherein, N >=1.
The acquiring unit 10 is additionally operable to obtain the Version Description file of N number of component software;
Judging unit 11, for each software group in N number of component software for being obtained according to the acquiring unit 10
The Version Description file of part, judges whether the arbitrary version of each component software is compatible with, and determines to carry out the component software system
System stablizes upgrading.
Optionally, as shown in figure 9, the Version Description file packet for each component software that the acquiring unit 10 obtains
It includes:The dependence between other N-1 component softwares in each component software and N number of component software in addition to itself is closed
System;The judgment means 1 of the edition compatibility, further include:Determination unit 12.
The determination unit 12, for each component software and the other N-1 obtained according to the acquiring unit 10
Dependence between a component software determines the version that each component software is relied on.
The judging unit 11, specifically for judging that the determining each component software of the determination unit 12 is relied on
Version whether be compatible with.
Optionally, as shown in Figure 10, any one software in N number of component software that the acquiring unit 10 obtains
The Version Description file of component further includes:The current version information of any one component software, any one described software
The previous release information of component, the current version information of any one component software and any one described component software
The compatible label of previous release information and the old version information of any one component software;The version is simultaneous
The judgment means 1 of appearance further include:Generation unit 13.
Generation unit 13, for the current version of any one component software according to the acquiring unit 10 acquisition
Information, the previous release information of any one component software, the current version information of any one component software
Label compatible with the previous release information of any one component software and any one component software are gone through
History version information generates the edition tree between the arbitrary version of any one component software.
The judging unit 11, also particularly useful for any one component software according to the generation unit 13 generation
Arbitrary version between edition tree, judge the version that any one determining described component software of the determination unit 12 is relied on
Whether this is compatible with.
Optionally, judging unit 11, also particularly useful in any one software group described in the generation unit 13 generation
In edition tree between the arbitrary version of part, any two version that any one described component software is relied on is compatible
When in branch, any two edition compatibility that any one described component software is relied on.
Optionally, the determination unit 12 is additionally operable to the judging unit 11 and judges any one described component software quilt
After any two edition compatibility of dependence, the judging unit 11 judges each software in N number of component software
During any two edition compatibility that component is relied on, the edition compatibility of the component software system is determined.
The judgment means of a kind of edition compatibility that the embodiment of the present invention is provided, the judgment means acquisition of the edition compatibility are soft
The integrated configuration file of part component system, integrated configuration file include N number of software when the component software system is upgraded
The configuration information of component, N number of component software include the component software of at least one upgrading,;Obtain the version of N number of component software
File is described;According to the Version Description file of component software each in N number of component software, the arbitrary version of each component software is judged
Whether it is compatible with, is upgraded with determining to carry out stablizing for component software system.Using above-mentioned technic relization scheme, due to edition compatibility
When judgment means have the component software of new version to be upgraded in component software system, first judge every in component software system
Whether a arbitrary version of component software is compatible with, and then judges whether the version that each component software is relied on is compatible with, so as to
To determine whether version of the software systems in the component software for using upgrading is compatible with, therefore, pass through the judgement of edition compatibility
The compatibility determination that device is completed, can cause component software system to carry out the version liter of single component software in edition compatibility
Grade, so as to ensure that the stability of component software system upgrade.
Embodiment three
As shown in figure 11, the embodiment of the present invention provides a kind of computer, which can include:
Processor 14 and memory 15, wherein, memory 15 is connect with processor 14, for example, memory 15 can be with place
Reason device 14 is connected by bus.
Memory 15 is used to store the executable program code of computer, which includes computer-managed instruction,
Memory 15 may include high-speed RAM memory, it is also possible to further include nonvolatile memory (non-volatile
Memory), for example, at least one magnetic disk storage.
Processor 14 can be central processing unit or specific integrated circuit or be arranged to implement the present invention
One or more integrated circuits.
Specifically, the processor 14, available for obtaining the integrated configuration file of component software system, the integrated configuration
File includes the configuration information of N number of component software when the component software system is upgraded, and is wrapped in N number of component software
The component software of at least one upgrading is included, wherein, N >=1;And obtain the Version Description file of N number of component software;And root
According to the Version Description file of each component software in N number of component software, the arbitrary version of each component software is judged
Whether it is compatible with, determines that carrying out stablizing for the component software system upgrades;The memory 15, available for storing the processor
The 14 integrated configuration files of N number of component software obtained and its Version Description of software code and N number of component software
File and its software code and storage control the software program of the computer completion above process, so that the place
Reason device 14 completes the above process by performing above-mentioned software program and calling above-mentioned software code.
Optionally, the Version Description file for each component software that the processor 14 obtains includes:Each software
Go out the dependence between other N-1 component softwares other than itself in component and N number of component software.
The processor 14 is additionally operable to according to the dependence between each component software and other N-1 component software
Relationship determines the version that each component software is relied on.
The processor 14, specifically for judging whether the version that each component software is relied on is compatible with.
Optionally, the version of any one component software in N number of component software that the processor 14 obtains is retouched
File is stated to further include:The current version information of any one component software, any one component software it is previous
Version information, the current version information of any one component software and the previous release of any one component software
The compatible label of information and the old version information of any one component software.
Processor 14, also particularly useful for the current version information, described any one according to any one component software
The previous release information of a component software, the current version information of any one component software and described any one is soft
The compatible label of the previous release information of part component and the old version information of any one component software, generation
Edition tree between the arbitrary version of any one component software.
The processor 14, also particularly useful for the version between the arbitrary version of any one component software described in basis
Tree, judges whether the version that any one described component software is relied on is compatible with.
Optionally, processor 14, also particularly useful for the version between the arbitrary version of any one component software
In tree, any two version that any one described component software is relied on when in compatible branch, it is described any one
Any two edition compatibility that component software is relied on.
Optionally, it is simultaneous to be additionally operable to any two version that any one described component software is relied on for the processor 14
After appearance, during any two edition compatibility that each component software in N number of component software is relied on, determine described
The edition compatibility of component software system.
A kind of computer that the embodiment of the present invention is provided, the computer obtain the integrated configuration text of component software system
Part, integrated configuration file include the configuration information of N number of component software when the component software system is upgraded, N number of software
Component includes the component software of at least one upgrading;Obtain the Version Description file of N number of component software;According to N number of software group
The Version Description file of each component software, judges whether the arbitrary version of each component software is compatible in part, soft to determine to carry out
Part component system stablizes upgrading.Using above-mentioned technic relization scheme, since computer has new version in component software system
Component software when being upgraded, first judge whether the arbitrary version of each component software in component software system is compatible with, and then
Judge whether the version that each component software is relied on is compatible with, may thereby determine that the software systems in the software for using upgrading
Whether version during component is compatible with, and therefore, completes compatibility determination by computer, component software system can be caused in version
The edition upgrading of single component software is carried out when compatible, so as to ensure that the stability of component software system upgrade.
It should be understood by those skilled in the art that, the embodiment of the present invention can be provided as method, system or computer program
Product.Therefore, the shape of the embodiment in terms of hardware embodiment, software implementation or combination software and hardware can be used in the present invention
Formula.Moreover, the present invention can be used can use storage in one or more computers for wherein including computer usable program code
The form of computer program product that medium is implemented on (including but not limited to magnetic disk storage and optical memory etc.).
The present invention be with reference to according to the method for the embodiment of the present invention, the flow of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that it can be realized by computer program instructions every first-class in flowchart and/or the block diagram
The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be provided
The processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce
A raw machine so that the instruction performed by computer or the processor of other programmable data processing devices is generated for real
The device of function specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that the instruction generation being stored in the computer-readable memory includes referring to
Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or
The function of being specified in multiple boxes.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted
Series of operation steps are performed on calculation machine or other programmable devices to generate computer implemented processing, so as in computer or
The instruction offer performed on other programmable devices is used to implement in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in a box or multiple boxes.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the scope of the present invention.
Claims (8)
1. a kind of judgment method of edition compatibility, which is characterized in that the method includes:
The integrated configuration file of component software system is obtained, the integrated configuration file is risen including the component software system
The configuration information of N number of component software during grade, N number of component software include the component software of at least one upgrading, wherein,
N≥1;
Obtain the Version Description file of N number of component software, the version of each component software in N number of component software
This describes file and includes:The current version information of any one component software, the previous version of any one component software
This information, the current version information of any one component software and the previous release of any one component software are believed
The compatible label and dependence and the old version information of any one component software of breath;
Any one software group described in the Version Description file of each component software in N number of component software
The current version information of part, the previous release information of any one component software, any one component software
Current version information label compatible with the previous release information of any one component software and dependence, Yi Jisuo
The old version information of any one component software is stated, generates the edition tree between each arbitrary version of component software;Root
According to the edition tree, judge whether the arbitrary version of each component software is compatible with, determine to carry out the component software system
Stablize upgrading.
2. the judgment method of edition compatibility according to claim 1, which is characterized in that the dependence includes:Each
The dependence between other N-1 component softwares in component software and N number of component software in addition to itself;
Correspondingly, it is described according to the edition tree, judge whether the arbitrary version of each component software is compatible with, including:
According to the dependence between each component software and other N-1 component software, each software group is determined
The version that part is relied on;
Judge whether the version that each component software is relied on is compatible with.
3. the judgment method of edition compatibility according to claim 2, which is characterized in that any one is soft described in the basis
Edition tree between the arbitrary version of part component, judges whether the version that any one described component software is relied on is compatible with, and wraps
It includes:
In edition tree between the arbitrary version of any one component software, any one described component software quilt is judged
Any two version of dependence is when in compatible branch, any two version that any one described component software is relied on
It is compatible.
4. the judgment method of edition compatibility according to claim 3, which is characterized in that any one described component software quilt
After any two edition compatibility of dependence, the method further includes:
During any two edition compatibility that each component software in N number of component software is relied on, determine described soft
The edition compatibility of part component system.
5. a kind of judgment means of edition compatibility, which is characterized in that described device includes:
Acquiring unit, for obtaining the integrated configuration file of component software system, the integrated configuration file includes the software
The configuration information of N number of component software when component system is upgraded, N number of component software include at least one upgrading
Component software, wherein, N >=1;
The acquiring unit, is additionally operable to obtain the Version Description file of N number of component software, in N number of component software
The Version Description file of each component software includes:It is the current version information of any one component software, described any one
The previous release information of a component software, the current version information of any one component software and described any one is soft
The compatible label and the old version of dependence and any one component software of the previous release information of part component
Information;
Judging unit, for described in each component software in N number of component software that the acquiring unit obtains
The current version information of any one component software described in Version Description file, any one component software it is previous
Version information, the current version information of any one component software and the previous release of any one component software
The compatible label and dependence and the old version information of any one component software of information are generated each soft
Edition tree between the arbitrary version of part component, judges whether the arbitrary version of each component software is compatible with, and determines described in progress
Component software system stablizes upgrading.
6. the judgment means of edition compatibility according to claim 5, which is characterized in that the acquiring unit obtains described
Dependence includes:Between other N-1 component softwares in each component software and N number of component software in addition to itself
Dependence;The judgment means of the edition compatibility, further include:Determination unit;
The determination unit, for each component software and the other N-1 software groups obtained according to the acquiring unit
Dependence between part determines the version that each component software is relied on;
The judging unit, specifically for judging that the version that each component software that the determination unit determines is relied on is
No compatibility.
7. the judgment means of edition compatibility according to claim 6, which is characterized in that
Judging unit, also particularly useful between the arbitrary version of any one component software described in generation unit generation
Edition tree in, any two version that any one described component software is relied on is when in compatible branch, described
Any two edition compatibility that one component software of meaning is relied on.
8. the judgment means of edition compatibility according to claim 7, which is characterized in that
The determination unit is additionally operable to the judging unit and judges any two version that any one described component software is relied on
After this compatibility, the judging unit judges arbitrary two that each component software in N number of component software is relied on
During a edition compatibility, the edition compatibility of the component software system is determined.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510283911.4A CN104881311B (en) | 2015-05-28 | 2015-05-28 | The judgment method and device of a kind of edition compatibility |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510283911.4A CN104881311B (en) | 2015-05-28 | 2015-05-28 | The judgment method and device of a kind of edition compatibility |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104881311A CN104881311A (en) | 2015-09-02 |
CN104881311B true CN104881311B (en) | 2018-06-08 |
Family
ID=53948817
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510283911.4A Expired - Fee Related CN104881311B (en) | 2015-05-28 | 2015-05-28 | The judgment method and device of a kind of edition compatibility |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104881311B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106325921B (en) * | 2016-08-16 | 2020-07-10 | 北京奇虎科技有限公司 | Associated plug-in release method and device |
CN106293763B (en) * | 2016-08-19 | 2019-10-22 | 广州品唯软件有限公司 | The management method and device of application component version |
CN107656749A (en) * | 2017-09-26 | 2018-02-02 | 国网江苏省电力公司 | A kind of device version management-control method and device |
EP4002099A1 (en) * | 2017-09-27 | 2022-05-25 | INTEL Corporation | Firmware component with self-descriptive dependency information |
CN108170465B (en) * | 2018-01-04 | 2021-01-01 | 武汉斗鱼网络科技有限公司 | Version information management method, electronic equipment and readable storage medium |
CN112947956B (en) * | 2020-08-31 | 2023-02-17 | 深圳市明源云科技有限公司 | Application software upgrading method |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1908901A (en) * | 2005-04-29 | 2007-02-07 | 阿尔卡特公司 | Electronic device configuration management systems and methods |
CN1936844A (en) * | 2005-09-23 | 2007-03-28 | 三星电子株式会社 | Method and system for updating software |
CN102708044A (en) * | 2011-03-23 | 2012-10-03 | 沃尔沃汽车公司 | Complete and compatible function |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030145315A1 (en) * | 2002-01-23 | 2003-07-31 | Tuomo Aro | Exchange of data between components of distributed software having different versions of software |
EP1739552A1 (en) * | 2005-06-21 | 2007-01-03 | Hewlett-Packard Development Company, L.P. | Software installation method and computer system |
-
2015
- 2015-05-28 CN CN201510283911.4A patent/CN104881311B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1908901A (en) * | 2005-04-29 | 2007-02-07 | 阿尔卡特公司 | Electronic device configuration management systems and methods |
CN1936844A (en) * | 2005-09-23 | 2007-03-28 | 三星电子株式会社 | Method and system for updating software |
CN102708044A (en) * | 2011-03-23 | 2012-10-03 | 沃尔沃汽车公司 | Complete and compatible function |
Also Published As
Publication number | Publication date |
---|---|
CN104881311A (en) | 2015-09-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104881311B (en) | The judgment method and device of a kind of edition compatibility | |
CN105373401B (en) | Software package method for automatically releasing and system | |
Tolvanen et al. | MetaEdit+ defining and using integrated domain-specific modeling languages | |
CN106155724B (en) | Upgrading method and device | |
CN107678951A (en) | Test exemple automation management method, device, equipment and storage medium | |
CN106909510A (en) | A kind of method and server for obtaining test case | |
CN103942099B (en) | Executing tasks parallelly method and device based on Hive | |
García et al. | Building industrial CPS with the IEC 61499 standard on low-cost hardware platforms | |
CN103744647A (en) | Java workflow development system and method based on workflow GPD | |
CN105468797A (en) | Information processing method and apparatus | |
US9380001B2 (en) | Deploying and modifying a service-oriented architecture deployment environment model | |
CN103870262A (en) | Method and device for automatically generating variables based on SHELL script | |
CN107122626A (en) | The method and system of the bioinformatic analysis of two generations sequencing DNA mutation detection | |
CN106484452B (en) | unified configuration management method and device for software platform | |
Nascimento et al. | A model-driven infrastructure for developing product line architectures using cvl | |
EP3547143B1 (en) | System and method for model-based and behaviour-driven testing | |
CN106294530B (en) | The method and system of rule match | |
CN105867892A (en) | Centralized management method and system of multi-platform development | |
Cicchetti et al. | A Solution for Concurrent Versioning of Metamodels and Models. | |
CN105867894A (en) | Automatic creating method and system of development environment | |
CN108021353A (en) | Generating means, method, equipment and the storage medium of the explanation document of software product | |
US10657476B2 (en) | Just in time compilation (JIT) for business process execution | |
CN106815034A (en) | A kind of data updating method and device | |
Sedlacek et al. | Tool for supporting education process in information technology | |
CN112241268A (en) | Keil engineering compiling method, system and equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
EXSB | Decision made by sipo to initiate substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20180608 |