目前的构件软件复杂性度量模型未考虑构件之间不同依赖关系和软件构件内部复杂性两个重要因素,度量结果不够完整、准确。针对该问题,通过将软件体系结构抽象为加权的有向图,获得构件之间的依赖矩阵和影响矩阵,进而获取复杂性的度量公式。从度量公式分析和最后的示例可以得出,该度量模型可以更加真实、准确地反映构件之间不同的依赖关系和构件内部复杂性对软件复杂性的影响,而且具有简单、易于实现等特点。
Because current metric model for component-based software complexity doesn' t consider two key factors which are various types of dependence relations among components and intra-component complexity of the software, metric results aren' t accurate and integrated. For resolving this problem, the weighted directed acyclic graph (DAG) is abstracted from software architecture for deriving dependence-matrix and influence-matrix and further building the measuring formula for software complexity. The measuring formula analysis and the end example show that the metric model can reflect more objectively and accurately the relationship of software complexity with various types of dependence and the impact of intra-eomponent complexity on software complexity, and has the features of simple and easy to realize.