MURAL - Maynooth University Research Archive Library



    Specifying Coupling and Cohesion Metrics using OCL and Alloy. Technical Report NUIM-CS-TR-2008-02


    McQuillan, Jacqueline A. and Power, James F. (2008) Specifying Coupling and Cohesion Metrics using OCL and Alloy. Technical Report NUIM-CS-TR-2008-02. Technical Report. Dept. of Computer Science, National University of Ireland Maynooth.

    [thumbnail of JM_NUIM-CS-TR-2008-02.pdf] PDF
    JM_NUIM-CS-TR-2008-02.pdf

    Download (196kB)

    Abstract

    This report presents a MOF-compliant metamodel for calculating software metrics and demonstrates how it is used to generate a metrics tool that calculates coupling and cohesion metrics. We also describe a systematic approach to the analysis ofMOF-compliant metamodels and illustrate the approach using the presented metamodel. In this approach, we express the metamodel using UML and OCL and harness existing automated tools in a framework that generates a Java implementation and an Alloy specification of the metamodel, and use this both to examine the metamodel constraints, and to generate instantiations of the metamodel. Moreover, we describe how the approach can be used to generate test data for any software based on a MOF-compliant metamodel. We extend our framework to support this approach and use it to generate a test suite for the metrics calculation tool that is based on our metamodel.
    Item Type: Monograph (Technical Report)
    Keywords: object-oriented softwaremetrics; coupling; cohesion; metamodels; modelbased testing; OCL; Alloy;
    Academic Unit: Faculty of Science and Engineering > Computer Science
    Item ID: 2397
    Depositing User: CS Editor
    Date Deposited: 20 Jan 2011 15:31
    Publisher: Dept. of Computer Science, National University of Ireland Maynooth
    Related URLs:
    URI: https://mural.maynoothuniversity.ie/id/eprint/2397
    Use Licence: This item is available under a Creative Commons Attribution Non Commercial Share Alike Licence (CC BY-NC-SA). Details of this licence are available here

    Repository Staff Only (login required)

    Item control page
    Item control page

    Downloads

    Downloads per month over past year

    Origin of downloads