CN106919507A - A kind of system degree of coupling computational methods and device - Google Patents

A kind of system degree of coupling computational methods and device Download PDF

Info

Publication number
CN106919507A
CN106919507A CN201710123813.3A CN201710123813A CN106919507A CN 106919507 A CN106919507 A CN 106919507A CN 201710123813 A CN201710123813 A CN 201710123813A CN 106919507 A CN106919507 A CN 106919507A
Authority
CN
China
Prior art keywords
system interface
interface
atomic
relation
relationship
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710123813.3A
Other languages
Chinese (zh)
Inventor
舒振
张萌萌
陈洪辉
刘俊先
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
National University of Defense Technology
Original Assignee
National University of Defense Technology
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 National University of Defense Technology filed Critical National University of Defense Technology
Priority to CN201710123813.3A priority Critical patent/CN106919507A/en
Publication of CN106919507A publication Critical patent/CN106919507A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3604Software analysis for verifying properties of programs
    • G06F11/3616Software analysis for verifying properties of programs using software metrics

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

Include the invention discloses a kind of system degree of coupling computational methods and device:Obtain and resolution system design data file, according to system design data file according to specified format constructing system structure composition table, system interface relation composition table and internal system information transfer statistical form;Table and system interface relation composition table are constituted according to system architecture, atomic system is chosen and is determined the interface relationship between atomic system, while checking system internal interface relational completeness;According to the system interface relation between atomic system and the degree of coupling of internal system information transfer statistical form computing system.The present invention can provide a kind of effective supporting method for the strength of association weighed and between evaluation system module, so as to provide guidance to analyze the complexity of Complex Information System.

Description

System coupling degree calculation method and device
Technical Field
The invention relates to the field of information system engineering, in particular to a system coupling degree calculation method and device.
Background
With the development of information technology and the increasingly wide application of information systems, the functions of the information systems and the association relations inside the information systems are also increasingly complex. The degree of coupling reflects the strength of the connection established between the system modules through the connection. In the system, the closer the connection among the modules inside is, the stronger the coupling is, the harder the system is to understand and modify, and the more complicated the system is. Therefore, the system coupling degree has an important influence on quality attributes such as the intelligibility, the independence, the testability, the maintainability, the reliability and the like of the system, and is an important factor influencing the complexity of the system. Therefore, when designing an information system, the coupling degree of the system should be reduced as much as possible, and the complexity of the information system should be controlled, so as to ensure the quality of the information system design.
At present, analysis and research on the system coupling degree mainly focus on the field of software engineering, and evaluation on the system coupling degree is an important content of software system design and development. In a software system, the degree of coupling is an important index for measuring how one module (class) depends on or affects the behavior of another module (class), and can be evaluated by measuring the degree of interaction between classes and attributes, between classes and methods, and between methods and methods. The common method is to analyze the relationship among classes, methods and attributes in the software and comprehensively obtain the coupling degree of the software system by analyzing and evaluating three different types of coupling characteristics such as interaction coupling, component coupling and inheritance coupling.
However, for a heterogeneous and large-scale complex information system composed of elements such as software, hardware, equipment, personnel and the like, the software is only one module, so that concepts and calculation methods of the coupling degree in the field of software engineering cannot be used as usual, and no existing coupling degree calculation method in the prior art can provide guidance for the design of the complex information system.
Aiming at the problem that no calculation method of the coupling degree can provide support for the design of a complex information system in the prior art, no effective solution is provided at present.
Disclosure of Invention
In view of this, an object of the embodiments of the present invention is to provide a method and an apparatus for calculating a system coupling degree, which can provide an effective support means for measuring and evaluating the correlation strength between system modules, so as to provide guidance for analyzing the complexity of a complex information system.
The method for calculating the system coupling degree provided by the embodiment of the invention based on the above object comprises the following steps:
acquiring and analyzing a system design data file, and constructing a system structure composition table, a system interface relationship composition table and a system internal information transmission statistical table according to the system design data file and a specified format;
selecting an atomic system and determining an interface relation between the atomic systems according to the system structure composition table and the system interface relation composition table, and simultaneously verifying the completeness of the interface relation in the system;
and calculating the coupling degree of the system according to the system interface relationship between the atomic systems and the system internal information transmission statistical table.
In some embodiments, selecting an atomic system and determining an interface relationship between the atomic systems according to the system structure composition table and the system interface relationship composition table, and verifying the completeness of the interface relationship within the system includes:
selecting an original subsystem from the system structure composition table, adding an atomic system identifier into the selected atomic system, and generating a modified system structure composition table;
determining the system interface relationship between the atomic systems according to the modified system structure composition table and the system interface relationship composition table, and constructing the system interface relationship composition table between the atomic systems;
and verifying the completeness of the system interface relationship according to the system interface relationship composition table and the system interface relationship composition table between the atomic systems, and judging whether the interface relationships in the system design data file are all embodied in the interface relationships between the original subsystems.
In some embodiments, verifying the completeness of the system interface relationship according to the system interface relationship composition table between the system interface relationship composition table and the atomic system, and determining whether the interface relationships in the system design data file are all embodied in the interface relationship between the original subsystems includes:
generating a system interface relation set based on the system interface relation composition table and an interface relation set between atomic systems based on the system interface relation composition table among the atomic systems according to the system interface relation composition table and the system interface relation composition table among the atomic systems;
and performing subtraction operation on the system interface relationship set based on the system interface relationship composition table and the interface relationship set between the atomic systems based on the system interface relationship composition table between the atomic systems, and judging whether the result difference set is null or not, wherein the system interface relationship is complete if the result difference set is null, and otherwise, the system interface relationship is not complete.
In some embodiments, calculating the degree of coupling of the system according to the system interface relationship between the atomic systems and the system internal information transmission statistical table comprises:
verifying the integrity of system interface relation statistics according to a system interface relation table between atomic systems and a system internal information transmission statistical table, and judging whether the channel utilization rate of each atomic system interface is counted in the system internal information transmission statistical table;
verifying the rationality of the channel utilization rate of each system interface according to the system internal information transmission statistical table;
and constructing a system interface relation matrix according to the system interface relation between the atomic systems and the system internal information transmission statistical table, and calculating the coupling degree of the system.
In some embodiments, verifying the integrity of the system interface relationship statistics according to the system interface relationship table between the atomic systems and the system internal information transmission statistics table, and determining whether the channel utilization of each atomic system interface is counted in the system internal information transmission statistics table includes:
generating a system interface relation set based on the system interface relation table between the atomic systems and a system interface relation set based on the system internal information transmission statistical table according to the system interface relation table between the atomic systems and the system internal information transmission statistical table;
and carrying out subtraction operation on a system interface relation set based on a system interface relation table among atomic systems and a system interface relation set based on a system internal information transmission statistical table, and judging whether a result difference set is empty or not, wherein the system interface relation has integrity if the result difference set is empty, and otherwise, the system interface relation does not have integrity.
In some embodiments, according to the system internal information transmission statistical table, the rationality of the channel utilization rate of each system interface is verified as: and respectively calculating the ratio of the average information transmission quantity of each row of elements in the system internal information transmission statistical table to the channel capacity, judging the system to be reasonable if all the ratios are less than or equal to 1, and otherwise, judging the system to be unreasonable.
In some embodiments, constructing the system interface relationship matrix according to the system interface relationship between the atomic systems and the system internal information transmission statistical table includes:
setting the dimensionality of the system interface relation matrix as the total number of the atomic system;
when the system interface relation table between the atomic systems has the system interface relation from one atomic system to another atomic system, each element value in the system interface relation matrix is respectively set as the ratio of the average information transmission quantity and the channel capacity of the information transmission statistical table in the system corresponding to the interface relation.
In some embodiments, calculating the degree of coupling of the system comprises:
judging whether the dimension of the system interface relation matrix is larger than 1;
if the dimension of the system interface relation matrix is not more than 1, the coupling degree of the system is set to be 1;
if the dimension of the system interface relationship matrix is greater than 1, the coupling degree of the system is twice of the sum of all elements of the system interface relationship matrix and the ratio of the product of the total number of the atomic systems and the product of the total number of the atomic systems minus one.
As can be seen from the above description, the method and apparatus for calculating system coupling degree provided in the embodiments of the present invention select atomic systems and determine the interface relationship between the atomic systems by constructing the system structure composition table, the system interface relationship composition table, and the system internal information transmission statistical table, and verify the completeness of the system internal interface relationship, and according to the system interface relationship between the atomic systems and the coupling degree of the system internal information transmission statistical table calculation system, an effective support means can be provided for measuring and evaluating the association strength between the system modules, thereby providing guidance for analyzing the complexity of the complex information system.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic flow chart of a method for calculating a system coupling degree according to the present invention;
fig. 2 is a schematic flow chart illustrating the determination of the completeness of the system internal interface relationship in the system coupling degree calculation method provided in the present invention;
FIG. 3 is a schematic flow chart of constructing an atomic system interface relationship matrix and calculating the overall coupling degree of the system in the system coupling degree calculation method provided by the present invention;
fig. 4 is a schematic structural diagram of a system according to an embodiment of the system coupling degree calculation method provided in the present invention;
fig. 5 is a schematic structural diagram of an interface relationship between systems according to the embodiment in the system coupling degree calculation method provided in the present invention;
fig. 6 is a schematic structural diagram of an interface relationship between systems according to another embodiment of the present invention in the system coupling degree calculation apparatus;
fig. 7 is a schematic hardware structure diagram of an embodiment of the apparatus for performing the method for calculating the system coupling degree according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following embodiments of the present invention are described in further detail with reference to the accompanying drawings.
It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are used for distinguishing two entities with the same name but different names or different parameters, and it should be noted that "first" and "second" are merely for convenience of description and should not be construed as limitations of the embodiments of the present invention, and they are not described in any more detail in the following embodiments.
In view of the above, a first aspect of the embodiments of the present invention provides a first embodiment of a method for calculating a system coupling degree, which is capable of performing data recommendation for different users or different types of users. Fig. 1 is a schematic flow chart of a system coupling degree calculation method according to a first embodiment of the present invention.
The system coupling degree calculation method, optionally applied to a server, includes:
step S101, a system design data file is obtained and analyzed, and a system structure composition table, a system interface relationship composition table and a system internal information transmission statistical table are constructed according to the system design data file and a specified format;
the system design data file is used as the input of the invention, the system design data file is read and analyzed, and a system structure composition table, a system interface relation table and a system internal information transmission statistical table are constructed according to a fixed format.
The system structure composition table mainly represents subsystems of all levels composing the system. There are four description elements in the table, which are system number (SID), system name, parent system number (parent SID), and atomic system id. Wherein an atomic system identifies one item, 0 represents a non-atomic system, and 1 represents an atomic system. However, in this step, atomic systems are not distinguished, and the default is not an atomic system, that is, the value of each record atomic system identification item in the table is 0.
The system interface relation table mainly represents the interface relation between each internal subsystem and the interface relation between the internal subsystem and the external system in the operation process of the system. The external interface refers to an interface for interaction between the system and an external environment or other external systems; the internal interface refers to an interface for interaction among subsystems in the system. There are five description elements in the table, which are system interface number (IID), system interface name, source system number, destination system number, and internal interface identification. For the internal interface identification one entry, 0 denotes the external interface and 1 denotes the internal interface. The interfaces used for evaluating the system coupling degree are all system internal interfaces, so that the distinguishing and the determining of the system internal interfaces are the premise and the basis for effectively applying the method.
The system internal information transmission statistical table mainly represents statistics of the information amount transmitted by each internal interface in the system. There are three description elements in the table, namely system interface number (SID), average traffic (AC) and Channel Capacity (CC).
Step S102, judging the completeness of the internal interface relation of the system according to the system structure composition table and the system interface relation composition table;
step S103, carrying out system coupling degree calculation on the systems with completeness, constructing a system interface relation matrix according to the system interface relation among the atomic systems, and calculating the coupling degree of the systems according to the system interface relation matrix.
As shown in fig. 2, the construction of the system structure composition table, the system interface relationship composition table, and the system internal information transmission statistical table according to the specified format from the system design data file includes:
and step S201, analyzing and refining all the original subsystems. Sequentially traversing each subsystem S in the system structure composition table, judging whether a subsystem S number (SID) appears in a parent system number (parent system SID) of the table, if so, indicating that the system S has a next-level subsystem which is not an atomic system; if not, the system S is an atomic system, and the value of the atomic system identification item corresponding to the system in the table is changed to 1; after traversing the system structure to form the table, all the systems with the atomic system identification items with the value of 1 in the table are all the original subsystems.
Step S202, system interface relation among the atomic systems is determined, and a system interface relation table among the atomic systems is constructed. The system interface relationship table between the atomic systems mainly represents the system interface relationship between the atomic systems. There are four description elements in the table, system interface number (IID), system interface name, source atomic system number (ISID) and destination atomic system number (DSID). And traversing each internal interface relation (namely the system interface with the internal interface identification item being 1) in the system interface relation table in sequence, judging whether the internal interface comprises an atomic system in the source system number and the destination system number corresponding to the table, if so, adding the internal interface and the corresponding atomic system information into the system interface relation table between the atomic systems, otherwise, skipping the internal interface and analyzing the next internal interface in the system interface relation table.
Step S203, verifying the completeness of the internal interface relationship, that is, determining whether all internal interfaces in the system interface relationship table are reflected in the interface relationship between the atomic systems. According to the system interface relationship table and the system interface relationship table between the atomic systems, two sets INF1 and INF2 are established. Wherein, INF1 is an internal interface set obtained according to the system interface relationship table, and INF2 is an internal interface set obtained according to the system interface relationship table between atomic systems. The set INF1 and INF2 are subtracted to obtain a set INF, i.e., INF1-INF 2. If INF is empty, the internal interface is complete, otherwise, the design data of the system needs to be modified.
As shown in fig. 3, constructing a system interface relationship matrix according to the system interface relationship between the atomic systems, and calculating the coupling degree of the system according to the system interface relationship matrix includes:
step S301, verifying the integrity of system interface relation statistics according to a system interface relation table between atomic systems and a system internal information transmission statistical table;
step S302, according to the internal information transmission statistical table of the system, analyzing and verifying the rationality of the utilization rate of each system interface channel;
step S303, constructing a system interface relation matrix according to the system interface relation among the atomic systems and the system internal information transmission statistical table;
and step S304, calculating the coupling degree of the system according to the system interface relation matrix.
And, according to the system interface relation table and the system internal information transmission statistical table between the atomic systems, verifying the integrity of the system interface relation statistics comprises:
and judging whether the channel utilization rate of each atomic system interface is counted in the system internal information transmission statistical table. According to a system interface relation table between atomic systems and a system internal information transmission statistical table, two sets INF3 and INF4 are respectively established, wherein INF3 is a system interface relation set obtained according to the system interface relation table between the atomic systems, and INF4 is a system interface relation set obtained according to the system internal information transmission statistical table. The set INF3 and INF4 are subtracted to obtain a set INF, i.e., INF3-INF 4. If INF is empty, the system interface relation statistics is complete, otherwise, if not, the statistics is needed again.
And, according to the internal information transmission statistical table of the system, analyze and verify the rationality of the channel utilization ratio of each system interface and include:
and judging whether the channel utilization rate of each system interface, namely the ratio of the average information transmission amount to the channel capacity, is not more than 1 in the system internal information transmission statistical table, if so, indicating that each system interface is reasonable, otherwise, unreasonable, and needing to modify the design data of the system interface again. Specifically, each system interface in the system internal information transmission statistical table is traversed in sequence, the value of the corresponding information average transmission quantity divided by the channel capacity is calculated respectively, if the value is not greater than 1, the next system interface is analyzed continuously, otherwise, the system interface is not designed reasonably, and the system interface needs to be designed again.
Moreover, according to the system interface relationship between the atomic systems and the system internal information transmission statistical table, constructing a system interface relationship matrix comprises:
the method includes establishing a system interface relationship matrix according to a system interface relationship table among atomic systems and a system internal information transmission statistical table, setting the number of the atomic systems contained in the system interface relationship table among the atomic systems to be M, setting an information interaction matrix D among the atomic systems to be an M × M matrix, and setting an element D in the matrix to be a channel utilization rate of each system interfaceijMeans of
Wherein s isi→sjIndicating that there is an internal system interface in the system interface relationship table between the atomic systems, the source atomic system of which is siAnd the atomic system of interest is sj,fkAnd ckRespectively representing the average transmission quantity of information and the value of channel capacity in the system internal information transmission statistical table of the interface relation.
Calculating the coupling degree of the system according to the system interface relation matrix, judging whether the dimension of the system interface relation matrix D is larger than 1, and if D is not larger than 1, setting the coupling degree CP of the system to be 1; otherwise
In summary, with the above technical solution of the embodiments of the present invention, by using system design data, on the basis of analyzing the system structure composition table, the system interface relationship composition table, and the system internal information transmission statistical table, the system interface relationship matrix is automatically analyzed and constructed by using a relevant program, and the coupling degree of the system is calculated accordingly. The method can quickly, accurately and efficiently calculate the coupling degree of the system while carrying out structural design on the system, meets the characteristic requirements of coupling degrees such as nonnegativity, monotonicity, regionality (namely, the value of the coupling degree is between 0 and 1) and no increase of the coupling degree value after the subsystems are combined, is an effective coupling degree measuring means, provides an effective analyzing means for measuring and evaluating the coupling degree of a complex information system, provides support for improving and promoting the design quality of the information system, and meets the design requirement of the complex information system.
The embodiment of the invention also provides a second embodiment of the method for calculating the system coupling degree.
The system coupling degree calculation method, optionally applied to a server, includes:
step 1: and analyzing the system design data and constructing a related data table.
The system design data file is used as the input of the invention, the system design data file is read and analyzed, and a system structure composition table, a system interface relationship composition table and a system internal information transmission statistical table are constructed according to a fixed format.
The system structure composition table mainly represents subsystems of all levels composing the system. There are four description elements in the table, which are system number (SID), system name, parent system number (parent SID), and atomic system id.
The system interface relation table mainly represents the interface relation between each internal subsystem and the interface relation between the internal subsystem and the external system in the operation process of the system. There are five description elements in the table, which are system interface number (IID), system interface name, source system number, destination system number, and internal interface identification.
The system internal information transmission statistical table mainly represents statistics of the information quantity transmitted by each internal interface relation in the system. There are three description elements in the table, namely system interface number (SID), average traffic (AC) and Channel Capacity (CC).
In this embodiment, the structural composition and the system interface relationship of the system S are shown in fig. 4 and 5, respectively, the design result is input in an xml file format, and the design file is analyzed to generate a system structural composition table 1, a system interface relationship table 2, and a system internal information transmission statistical table 3.
System ID Name of system Parent system ID Atomic system identification
S0001 System S - 0
S0002 Subsystem S1 S0001 0
S0003 Subsystem S2 S0001 0
S0004 Subsystem S21 S0003 0
S0005 Subsystem S22 S0003 0
S0006 Subsystem S23 S0003 0
S0007 Subsystem S231 S0006 0
S0008 Subsystem S232 S0006 0
S0009 Subsystem S233 S0006 0
S0010 Subsystem S234 S0006 0
S0011 Subsystem S3 S0001 0
S0012 Subsystem S31 S0011 0
S0013 Subsystem S32 S0011 0
S0014 Subsystem S33 S0011 0
S0015 Subsystem S4 S0001 0
Table 1: system structure composition table
Interface ID Interface name Source system numbering Destination System numbering Internal interface identification
I0001 External interface 1 S0002 - 0
I0002 External interface 2 S0003 - 0
I0003 External interface 3 S0011 - 0
I0004 External interface 4 S0015 - 0
I0005 Internal interface 1 S0002 S0003;S0004 1
I0006 Internal interface 2 S0003;S0005 S0011;S0013 1
I0007 Internal interface 3 S0011;S0014 S0015 1
I0008 Internal interface 4 S0004 S0005 1
I0009 Internal interface 5 S0004 S0006;S0008 1
I0010 Internal interface 6 S0012 S0013 1
I0011 Internal interface 7 S0013 S0014 1
I0012 Internal interface 8 S0014 S0012 1
I0013 Internal interface 9 S0007 S0008 1
I0014 Internal interface 10 S0008 S0009 1
I0015 Internal interface 11 S0008 S0010 1
I0016 Internal interface 12 S0010 S0007 1
Table 2: system interface relation table
Table 3: statistical table for transmitting information in system
Step 2: and judging the completeness of the internal interface relation of the system according to the system structure composition table and the system interface relation composition table.
As shown in fig. 2, the steps of the integrity analysis of the system internal interface are as follows:
step 201, analyzing and abstracting all atomic systems, and modifying a system structure composition table.
Respectively reading the data of each record from the 1 st record of the system structure composition table, judging whether the system number (SID) appears in the parent system number of the table, if not, modifying the value of the corresponding atomic system identifier to be 1, otherwise, skipping the record, and analyzing the next record until the record is finished. The finally obtained modified system structure composition table is the system structure composition table after distinguishing the atomic system.
System ID Name of system Parent system ID Atomic system identification
S0001 System S - 0
S0002 Subsystem S1 S0001 1
S0003 Subsystem S2 S0001 0
S0004 Subsystem S21 S0003 1
S0005 Subsystem S22 S0003 1
S0006 Subsystem S23 S0003 0
S0007 Subsystem S231 S0006 1
S0008 Subsystem S232 S0006 1
S0009 Subsystem S233 S0006 1
S0010 Subsystem S234 S0006 1
S0011 Subsystem S3 S0001 0
S0012 Subsystem S31 S0011 1
S0013 Subsystem S32 S0011 1
S0014 Subsystem S33 S0011 1
S0015 Subsystem S4 S0001 1
Table 4: modified system structure composition table
Step 202, the system interface relationship between the atomic systems is determined, and a system interface relationship table between the atomic systems is constructed.
Sequentially taking out each internal interface (namely the system interface with the internal interface identifier of 1) from the system interface relationship table, then finding out the source system number and the destination system number corresponding to the system interface, and then looking at whether the obtained system comprises an atomic system (namely whether the atomic system identifier is 1) in the modified system structure composition table, if so, adding the system interface and the corresponding system identifier into the system interface relationship table between the original subsystems, otherwise, skipping the information, and analyzing the next internal interface until the recording is finished. Finally, the system interface relation table 5 between the atomic systems can be obtained.
Interface ID Interface name Source system numbering Destination System numbering
I0005 Internal interface 1 S0002 S0004
I0006 Internal interface 2 S0005 S0013
I0007 Internal interface 3 S0014 S0015
I0008 Internal interface 4 S0004 S0005
I0009 Internal interface 5 S0004 S0008
I0010 Internal interface 6 S0012 S0013
I0011 Internal interface 7 S0013 S0014
I0012 Internal interface 8 S0014 S0012
I0013 Internal interface 9 S0007 S0008
I0014 Internal interface 10 S0008 S0009
I0015 Internal interface 11 S0008 S0010
I0016 Internal interface 12 S0010 S0007
Table 5: system interface relation table between atomic systems
Step 203, verifying the completeness of the internal interface relationship, that is, determining whether all internal interfaces in the system interface relationship table are reflected in the interface relationship between the atomic systems.
Traversing each record in the system interface relation table 2 in turn, adding the system interface (IID) with the internal interface labeled 1 to the set INF1, and then obtaining the internal information set:
INF1={I0005,I0006,I0007,I0008,I0009,I0010,I0011,I0012,I0013,I0014,I0015,I0016}。
then, each record in the inter-atomic system interface relationship table 5 is read, and the interface number (IID) in each record is added to the set INF2 until the last record in the inter-atomic system interface relationship table 5 is finished, so that an internal information set can be obtained:
INF2={I0005,I0006,I0007,I0008,I0009,I0010,I0011,I0012,I0013,I0014,I0015,I0016}。
comparing the values of INF1 and INF2,it can be seen that, for the system described in fig. 5, all the internal interfaces in the system interface relationship table are embodied in the interface relationship between the atomic systems, and the internal interface relationship is complete.
And step 3: and constructing a system interface relation matrix according to the system interface relation among the atomic systems, and calculating the coupling degree of the system according to the system interface relation matrix.
As shown in fig. 3, the steps of calculating the system interface relationship matrix and the system coupling degree are as follows:
step 301, verifying the integrity of the system interface relation statistics according to the system interface relation table between the atomic systems and the system internal information transmission statistical table.
Sequentially traversing each record in the inter-atomic-system interface relationship table 5, adding an interface number (IID) in each record into the set INF3 until the last record in the inter-atomic-system interface relationship table 5 is finished, and thus obtaining an internal system interface set:
INF3={I0005,I0006,I0007,I0008,I0009,I0010,I0011,I0012,I0013,I0014,I0015,I0016}。
then, each record in the system internal information transmission statistical table 5 is sequentially read, and the interface number (IID) in each record is added to the set INF4 until the last record in the system internal information transmission statistical table 5 is finished, so that an internal system interface set can be obtained:
INF4={I0005,I0006,I0007,I0008,I0009,I0010,I0011,I0012,I0013,I0014,I0015,I0016}。
comparing the values of INF3 and INF4,it can be seen that, for the system described in fig. 5, the system interface relationship between the atomic systems is counted in the system internal information transmission statistics table, so the statistics of the system interface relationship is complete.
And step 302, analyzing and verifying the reasonableness of the channel utilization rate of each system interface according to the system internal information transmission statistical table.
Each record in the system internal information transmission statistical table is traversed in turn, and then the ratio of the average information transmission quantity divided by the channel capacity is calculated, so that the corresponding value of each record is 1/2, 4/5, 2/5, 1/2, 1, 4/5, 2/3, 1/2, 4/5, 1/2, 4/5 and 1/2, which are not more than 1, therefore, the channel capacity of each system interface is satisfied, and the channel utilization rate is reasonable.
Step S303, constructing a system interface relation matrix according to the system interface relation among the atomic systems and the system internal information transmission statistical table;
according to the modified system configuration composition table, eleven subsystems such as subsystems S1, S231, S232, S233, S234, S1, and S1 are known to be atomic systems, and the inter-atomic system interface relationship table indicates that there are interfaces between atomic systems such as S1 → S1, S1 → S231 → S232, S232 → S233, S232 → S232, S234 → S231, and the channel utilization ratio corresponding to each system interface is known to be 1, 1, 1, 1, 361, 1, 1, 1, and the system interface relationship matrix D:
and step 304, calculating the coupling degree of the system according to the system interface relation matrix.
The dimension of the system interface relation matrix is s, whether s is larger than 1 is analyzed, if not, the coupling degree CP of the system is directly made to be 1 (which indicates that the system is an atomic system and cannot be decomposed any more, so that the coupling degree is 1); otherwise, the coupling degree CP of the system needs to be calculated as follows:
wherein,is a matrix D(k)The value of each element in the product.
Thus, CP is 2 × (1/2+4/5+2/5+1/2+1+4/5+2/3+1/2+4/5+1/2+4/5+1/2)/(11 × (11-1)) ═ 0.141
Fig. 6 is a schematic diagram illustrating an interface relationship between another system in this embodiment, and it can be seen from a comparison between fig. 5 and fig. 6 that the structural composition of the system is not changed, but the system interface relationship in fig. 6 is less than the system interface relationship in fig. 5, that is, the association relationship inside each subsystem is reduced, and the final result shows that the system coupling degree calculated based on fig. 6 is also less than the system coupling degree calculated based on fig. 5.
In summary, with the above technical solution of the embodiments of the present invention, by using system design data, on the basis of analyzing the system structure composition table, the system interface relationship composition table, and the system internal information transmission statistical table, the system interface relationship matrix is automatically analyzed and constructed by using a relevant program, and the coupling degree of the system is calculated accordingly. The method can quickly, accurately and efficiently calculate the coupling degree of the system while carrying out structural design on the system, meets the characteristic requirements of coupling degrees such as nonnegativity, monotonicity, regionality (namely, the value of the coupling degree is between 0 and 1) and no increase of the coupling degree value after the subsystems are combined, is an effective coupling degree measuring means, provides an effective analyzing means for measuring and evaluating the coupling degree of a complex information system, provides support for improving and promoting the design quality of the information system, and meets the design requirement of the complex information system.
It should be particularly noted that some steps in the embodiments of the method for calculating the degree of coupling of the system described above may be mutually intersected, replaced, added, or deleted, and therefore, these reasonable permutation and combination transformations should also belong to the scope of the present invention, and should not limit the scope of the present invention to the described embodiments.
In view of the above-mentioned objects, a second aspect of the embodiments of the present invention provides an embodiment of an apparatus for performing the method for calculating a system coupling degree. Fig. 7 is a schematic hardware structural diagram of an embodiment of an apparatus for performing the method for calculating the system coupling degree according to the present invention.
As shown in fig. 7, the apparatus includes:
one or more processors 901 and a memory 902, with one processor 901 being an example in fig. 7.
The apparatus for performing the method for calculating the system coupling degree may further include: an input device 903 and an output device 904.
The processor 901, the memory 902, the input device 903 and the output device 904 may be connected by a bus or other means, and fig. 7 illustrates an example of a connection by a bus.
The memory 902, which is a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions/modules corresponding to the system coupling degree calculation method in the embodiments of the present application. The processor 901 executes various functional applications of the server and data processing by running nonvolatile software programs, instructions, and modules stored in the memory 902, that is, implements the system coupling degree calculation method of the above method embodiment.
The memory 902 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of the system coupling degree calculation device, and the like. Further, the memory 902 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, the memory 902 may optionally include memory that is remotely located from the processor 901. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 903 may receive input numeric or character information and generate key signal inputs related to user settings and function control of the system coupling degree calculation device. The output device 904 may include a display device such as a display screen.
The one or more modules are stored in the memory 902 and when executed by the one or more processors 901 perform the system coupling calculation method in any of the above method embodiments. The technical effect of the embodiment of the device for executing the system coupling degree calculation method is the same as or similar to that of any method embodiment.
In view of the above objects, a third aspect of the embodiments of the present invention proposes an embodiment of a non-transitory computer storage medium storing computer-executable instructions that can perform a processing method of operations in any of the above method embodiments. Embodiments of the non-transitory computer storage medium may be the same or similar in technical effect to any of the method embodiments described above.
Finally, it should be noted that, as will be understood by those skilled in the art, all or part of the processes in the methods of the above embodiments may be implemented by a computer program that can be stored in a computer-readable storage medium and that, when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like. The technical effect of the embodiment of the computer program is the same as or similar to that of any of the method embodiments described above.
Furthermore, the apparatuses, devices and the like according to the embodiments of the present disclosure may be various electronic terminal devices, such as a mobile phone, a Personal Digital Assistant (PDA), a tablet computer (PAD), a smart television and the like, or may be a large terminal device, such as a server and the like, and therefore the scope of the present disclosure should not be limited to a specific type of apparatus, device. The client disclosed by the present disclosure may be applied to any one of the above electronic terminal devices in the form of electronic hardware, computer software, or a combination of both.
Furthermore, the method according to the present disclosure may also be implemented as a computer program executed by a CPU, which may be stored in a computer-readable storage medium. The computer program, when executed by the CPU, performs the above-described functions defined in the method of the present disclosure.
Further, the above method steps and system elements may also be implemented using a controller and a computer readable storage medium for storing a computer program for causing the controller to implement the functions of the above steps or elements.
Further, it should be appreciated that the computer-readable storage media (e.g., memory) described herein can be either volatile memory or nonvolatile memory, or can include both volatile and nonvolatile memory. By way of example, and not limitation, nonvolatile memory can include Read Only Memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM), which can act as external cache memory. By way of example and not limitation, RAM is available in a variety of forms such as synchronous RAM (DRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The memory devices of the disclosed aspects of embodiments of the present invention are intended to comprise, without being limited to, these and other suitable types of memory.
Those of skill would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as software or hardware depends upon the particular application and design constraints imposed on the overall system. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the disclosed embodiments of the present invention.
The various illustrative logical blocks, modules, and circuits described in connection with the disclosure herein may be implemented or performed with the following components designed to perform the functions described herein: a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination of these components. A general purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. A processor may also be implemented as a combination of computing devices, e.g., a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP core, or any other such configuration.
The steps of a method or algorithm described in connection with the disclosure herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in an ASIC. The ASIC may reside in a user terminal. In the alternative, the processor and the storage medium may reside as discrete components in a user terminal.
In one or more exemplary designs, the functions may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer. By way of example, and not limitation, such computer-readable media can comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a general-purpose or special-purpose computer, or a general-purpose or special-purpose processor. Also, any connection is properly termed a computer-readable medium. For example, if the software is transmitted from a website, server, or other remote source using a coaxial cable, fiber optic cable, twisted pair, Digital Subscriber Line (DSL), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium disclosed in embodiments of the present invention. Disk and disc, as used herein, includes Compact Disc (CD), laser disc, optical disc, Digital Versatile Disc (DVD), floppy disk, blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.
The exemplary embodiments disclosed, it should be noted that various changes and modifications could be made herein without departing from the scope of the disclosure as defined by the appended claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. Furthermore, although elements of the disclosure may be described or claimed in the singular, the plural is contemplated unless limitation to the singular is explicitly stated.
It should be understood that, as used herein, the singular forms "a," "an," "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.
The above-mentioned serial numbers of the embodiments of the present disclosure are merely for description and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, is limited to these examples; within the idea of an embodiment of the invention, also technical features in the above embodiment or in different embodiments may be combined and there are many other variations of the different aspects of an embodiment of the invention as described above, which are not provided in detail for the sake of brevity. Therefore, any omissions, modifications, substitutions, improvements, and the like that may be made without departing from the spirit and principles of the embodiments of the present invention are intended to be included within the scope of the embodiments of the present invention.

Claims (10)

1. A method for calculating a system coupling degree is characterized by comprising the following steps:
acquiring and analyzing a system design data file, and constructing a system structure composition table, a system interface relationship composition table and a system internal information transmission statistical table according to the system design data file and a specified format;
selecting an atomic system and determining an interface relation between the atomic systems according to the system structure composition table and the system interface relation composition table, and simultaneously verifying the completeness of the interface relation in the system;
and calculating the coupling degree of the system according to the system interface relationship between the atomic systems and the system internal information transmission statistical table.
2. The method of claim 1, wherein selecting atomic systems and determining interface relationships between atomic systems according to the system architecture composition table and the system interface relationship composition table, and verifying the completeness of system internal interface relationships comprises:
selecting an original subsystem from the system structure composition table, adding an atomic system identifier into the selected atomic system, and generating a modified system structure composition table;
determining the system interface relationship between the atomic systems according to the modified system structure composition table and the system interface relationship composition table, and constructing the system interface relationship composition table between the atomic systems;
and verifying the completeness of the system interface relationship according to the system interface relationship composition table and the system interface relationship composition table between the atomic systems, and judging whether the interface relationships in the system design data file are all embodied in the interface relationships between the original subsystems.
3. The method of claim 2, wherein verifying the completeness of the system interface relationship according to the system interface relationship composition table and the inter-atomic system interface relationship composition table, and determining whether the interface relationships in the system design data file are all embodied in the interface relationships between the original subsystems comprises:
generating a system interface relation set based on the system interface relation composition table and an interface relation set between atomic systems based on the system interface relation composition table among the atomic systems according to the system interface relation composition table and the system interface relation composition table among the atomic systems;
and performing subtraction operation on the system interface relationship set based on the system interface relationship composition table and the interface relationship set between the atomic systems based on the system interface relationship composition table between the atomic systems, and judging whether the result difference set is null or not, wherein the system interface relationship is complete if the result difference set is null, and otherwise, the system interface relationship is not complete.
4. The method of claim 2, wherein calculating the degree of coupling of the system based on the system interface relationship between the atomic systems and the system internal information transfer statistics comprises:
verifying the integrity of system interface relation statistics according to a system interface relation table between atomic systems and a system internal information transmission statistical table, and judging whether the channel utilization rate of each atomic system interface is counted in the system internal information transmission statistical table;
verifying the rationality of the channel utilization rate of each system interface according to the system internal information transmission statistical table;
and constructing a system interface relation matrix according to the system interface relation between the atomic systems and the system internal information transmission statistical table, and calculating the coupling degree of the system.
5. The method of claim 4, wherein verifying the integrity of the system interface relationship statistics based on the system interface relationship table between the atomic systems and the intra-system information transfer statistics table, and wherein determining whether the channel utilization of each atomic system interface is counted in the intra-system information transfer statistics table comprises:
generating a system interface relation set based on the system interface relation table between the atomic systems and a system interface relation set based on the system internal information transmission statistical table according to the system interface relation table between the atomic systems and the system internal information transmission statistical table;
and carrying out subtraction operation on a system interface relation set based on a system interface relation table among atomic systems and a system interface relation set based on a system internal information transmission statistical table, and judging whether a result difference set is empty or not, wherein the system interface relation has integrity if the result difference set is empty, and otherwise, the system interface relation does not have integrity.
6. The method according to claim 4, wherein the validity of the channel utilization of each system interface is verified according to the intra-system information transmission statistical table by: and respectively calculating the ratio of the average information transmission quantity of each row of elements in the system internal information transmission statistical table to the channel capacity, judging the system to be reasonable if all the ratios are less than or equal to 1, and otherwise, judging the system to be unreasonable.
7. The method of claim 4, wherein constructing a system interface relationship matrix based on system interface relationships between atomic systems and system internal information transfer statistics comprises:
setting the dimensionality of the system interface relation matrix as the total number of the atomic system;
when the system interface relation table between the atomic systems has the system interface relation from one atomic system to another atomic system, each element value in the system interface relation matrix is respectively set as the ratio of the average information transmission quantity and the channel capacity of the information transmission statistical table in the system corresponding to the interface relation.
8. The method of claim 4, wherein calculating the degree of coupling of the system comprises:
judging whether the dimension of the system interface relation matrix is larger than 1;
if the dimension of the system interface relation matrix is not more than 1, the coupling degree of the system is set to be 1;
if the dimension of the system interface relationship matrix is greater than 1, the coupling degree of the system is twice of the sum of all elements of the system interface relationship matrix and the ratio of the product of the total number of the atomic systems and the product of the total number of the atomic systems minus one.
9. A system coupling calculation device, characterized in that the method according to any of claims 1-8 is applied.
10. An electronic device comprising at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the one processor to cause the at least one processor to perform the method of any one of claims 1-8.
CN201710123813.3A 2017-03-03 2017-03-03 A kind of system degree of coupling computational methods and device Pending CN106919507A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710123813.3A CN106919507A (en) 2017-03-03 2017-03-03 A kind of system degree of coupling computational methods and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710123813.3A CN106919507A (en) 2017-03-03 2017-03-03 A kind of system degree of coupling computational methods and device

Publications (1)

Publication Number Publication Date
CN106919507A true CN106919507A (en) 2017-07-04

Family

ID=59460285

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710123813.3A Pending CN106919507A (en) 2017-03-03 2017-03-03 A kind of system degree of coupling computational methods and device

Country Status (1)

Country Link
CN (1) CN106919507A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112416781A (en) * 2020-11-25 2021-02-26 广州品唯软件有限公司 Cross-system interface determination method and device, computer equipment and storage medium
CN113535131A (en) * 2021-07-23 2021-10-22 中信银行股份有限公司 Interface management method and device, electronic equipment and readable storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130132777A1 (en) * 2011-11-23 2013-05-23 Stephan Froehlich Analysis of system test procedures for testing a modular system
CN105677565A (en) * 2016-01-06 2016-06-15 浙江理工大学 Defect correlation coefficient measuring method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130132777A1 (en) * 2011-11-23 2013-05-23 Stephan Froehlich Analysis of system test procedures for testing a modular system
CN105677565A (en) * 2016-01-06 2016-06-15 浙江理工大学 Defect correlation coefficient measuring method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
姜志平等: "基于DoD体系结构框架的C4ISR系统耦合度度量方法研究", 《计算机应用》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112416781A (en) * 2020-11-25 2021-02-26 广州品唯软件有限公司 Cross-system interface determination method and device, computer equipment and storage medium
CN113535131A (en) * 2021-07-23 2021-10-22 中信银行股份有限公司 Interface management method and device, electronic equipment and readable storage medium

Similar Documents

Publication Publication Date Title
Serafino et al. True scale-free networks hidden by finite size effects
CN110554958B (en) Graph database testing method, system, device and storage medium
JP7161538B2 (en) Systems, apparatus and methods for processing and managing web traffic data
CN114116065B (en) Method and device for acquiring topological graph data object and electronic equipment
US11204918B2 (en) Systems and methods for accessing a database management system
CN114372006A (en) Method and system for automatically generating test case, computer equipment and storage medium
CN113537370A (en) Cloud computing-based financial data processing method and system
CN115237853A (en) Data query method and device, electronic equipment and storage medium
CN114385722A (en) Interface attribute consistency checking method and device, electronic equipment and storage medium
CN111563199A (en) Data processing method and device
CN117149777B (en) Data query method, device, equipment and storage medium
CN114327493A (en) Data processing method and device, electronic equipment and computer readable medium
CN117493309A (en) Standard model generation method, device, equipment and storage medium
CN106919507A (en) A kind of system degree of coupling computational methods and device
Gazis et al. A Blockchain Cloud Computing Middleware for Academic Manuscript Submission
Canovas Izquierdo et al. Analysis of co-authorship graphs of CORE-ranked software conferences
CN107562790B (en) Method and system for realizing batch warehousing of data processing
CN115357319A (en) User interface rendering method and device
CN110580317B (en) Social information analysis method and device, terminal equipment and storage medium
CN109783559B (en) Method and device for acquiring real estate transaction data, electronic equipment and storage medium
CN114490718A (en) Data output method, data output device, electronic equipment and computer readable medium
WO2021203741A1 (en) Benchmark test method and system, and terminal device
CN113742193A (en) Data analysis method and device, electronic equipment and storage medium
CN106776291B (en) A kind of system structure complexity calculating method
CN111723007A (en) Test case merging method, system, equipment and 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170704