1 / 16

Software Measurement

Software Measurement. Big and Lack of Cohesion. Representational TOM. empirical relation system (C,R) numerical relation system (N,P) M maps (C,R) to (N,P) representation condition x<y => M(x)<M(y). BIG empirical. We want to measure people as BIG i.e. height and weight

wilson
Télécharger la présentation

Software Measurement

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Software Measurement Big and Lack of Cohesion

  2. Representational TOM • empirical relation system • (C,R) • numerical relation system • (N,P) • M maps (C,R) to (N,P) • representation condition • x<y => M(x)<M(y)

  3. BIG empirical • We want to measure people as BIG • i.e. height and weight • Empirically, if two people are the same height, the heavier is bigger • if two people are the same weight, the taller is bigger

  4. BIG numerical • Tuple: <ht, wgt> • Relationship

  5. BIG scale type

  6. BIG monotonicity

  7. BIG Representation Condition

  8. BIG other mappings

  9. LCOM Lack of Cohesion in Methods

  10. Metric 6: LCOM • Lack of Cohesion in Methods • Let Ii be the set of instance variables used by method i • Let P be set of pairwise null intersections of Ii • Let Q be set of pairwise nonnull intersections • LCOM = max( |P| - |Q|, 0 )

  11. What Abstraction? • Needs to highlight which attributes are used by which functions

  12. Mapping to Abs • How does class get mapped to abstraction?

  13. What transformations? • Add an attribute • Add a statement with attribute ref • Add a statement without attribute ref • Add a function

  14. Mapping Abs to Ans • What is the mapping from the abstraction to the answer set?

  15. Rep Condition • Does the mapping between the partial order on the abstraction and the answer set satisfy the representation condition (one way)?

  16. Scale Types • Which scale type is implied by the transformations, abstraction and mapping?

More Related