Sample Paper
Sample Paper
30
International Journal of Computer Applications (0975 – 8887)
Volume78– No.1, September 2013
Number of statements: This measure indicates total number WMSG Number of message sends, sum of number
of statements in the module. It includes if, else, switch, case, of message sends in all method bodies of class.
while, do while, for statements. WMCX Sum of method complexities.
Comment lines: This measure indicates total number of WNAA Number of times all attributes defined in the
comment lines in a module. class are accessed.
Blank lines: This measure indicates total number of blank WNI Number of method invocations, i.e. in all
lines in a module. method bodies of all methods.
WNMAA Number of all accesses on attributes.
Non-comment Non-blank (NCNB): This measure provides
WNOC Number of all descendants, i.e. sum of all
count of all lines that are not comments and not blanks.
direct and indirect children of a class.
Executable Statements (EXEC): This measure provides a WNOS Number of statements, sum of statements in
count of executable statements regardless of number of all method bodies of class.
physical lines of code.
31
International Journal of Computer Applications (0975 – 8887)
Volume78– No.1, September 2013
METRIC OBJECTIVE
32
International Journal of Computer Applications (0975 – 8887)
Volume78– No.1, September 2013
Figure 1: All Methods Available in Java Program and calculate Metrics Factor
2.5 INHERITANCE METRICS software product can be viewed as an abstract object that
The mechanism supports the class hierarchy design and evolves from an initial statement of need to a finished
captures the IS-A relationship between a super class and its software system, including source and executable code and
subclass. the various forms of documentation produced during
development. Ordinarily, the measurements of the software
2.5.1 Types Available For Corresponding Metrics products and processes are studied and developed for use in
modeling the development process [6]. In this Work two
Dynamic inheritance algorithms for estimation and Measurement of Messing
Multiple inheritance passing, their metrics are then used to estimate/predict product
costs and schedules and to measure productivity and product
2.5.2 Types of Internal Metrics quality. Information gained from metrics can then be used in
the management and control of the development process in
Average Degree of Understandability (AU) Metric order to improve results. Summarizes the overall method
Average Degree of Modifiability (AM) Metric metrics.
Average Inheritance Depth (AID)
Derive Base Ratio Metric (DBRM) 2.7 REUSE METRICS
Average Number of Direct Child (ANDC) Metric Reuse Ratio (U):
Average Number of Indirect Child (ANIC) Metric
The reuse ratio (U) is given by U=number of super class/total
number of class.
2.6 MESSAGE PASSING METRICS
Specialization Ratio(S):
Message passing describes the act of communication between
two or more computer processes (in the form of "messages"). This ratio measures the extent to which a super class has
A metric is a numerical value computed from a collection of captured abstraction. S=number of subclass/number of super
data. Message Passing metrics deal with the measurement class.
of Number of Message passing Iterations involved in
software product or a process by which it is developed. A
33
International Journal of Computer Applications (0975 – 8887)
Volume78– No.1, September 2013
34
International Journal of Computer Applications (0975 – 8887)
Volume78– No.1, September 2013
people, processes, or products being compared must 3.1 Object-oriented software engineering
be known.
Those gathering metrics must be aware of the items
metrics are units of measurement that are
that may influence the metrics they are gathering. used to characterize:
For example, there are the "terrible H's," i.e., the
Heisenberg effect and the Hawthorne effect. object-oriented software engineering products, e.g.,
Metrics can be harmful. More properly, metrics can designs, source code, and test cases,
be misused. object-oriented software engineering processes, e.g.,
the activities of analysis, designing, and coding, and
Object-oriented software engineering people, e.g.,
the efficiency of an individual tester, or the
productivity of an individual designer. Summarizes
the overall Performance Evaluation.
35
International Journal of Computer Applications (0975 – 8887)
Volume78– No.1, September 2013
5. CONCLUSION AND FUTURE SCOPE Make sure the software quality metrics and indicators they
The above results can be used in order to determine when and employ include a clear definition of component parts are
how each of the above metrics can be used according to accurate and readily collectible, and span the development
quality characteristics a practitioner wants to emphasize. spectrum and functional activities. Survey data indicates that
most organizations are on the right track to making use of
36
International Journal of Computer Applications (0975 – 8887)
Volume78– No.1, September 2013
metrics in software projects. For organizations which do not Reengineering, 2009. CSMR 2009. 9th European
reflect “best practices”, and would like to enhance their Conference on, pages 190{191, 21-23}, March 2010.
metrics capabilities, the following recommendations are
suggested to Measure the “best practices” list of metrics more [6] H. Bsar, M. Bauer, O. Ciupke, S. Demeyer, S. Ducasse,
consistently across all projects. Focus on “easy to implement” M. Lanza, R. Marinescu, R. Nebbe, O. Nierstrasz, M.
metrics that are understood by both management and software Przybilski, T. Richner, M. Rieger, C. Riva, A. Sassen, B.
developers, and provide demonstrated insight into software Schulz, P. Steyaert, S. Tichelaar, and J. Weisbrod. The
project activities. FAMOOS Object-Oriented Reengineering Handbook,
Oct. 2006.
6. REFERENCES [7] A. Albrecht: "Measuring application development
[1] A. Albrecht and J. Gaffney: Software Function, Source productivity", in Proc. Joint SHARE/GUIDE/IBM
Lines of Code, and Development Effort Prediction: A Applications Development Symposium, Monterey, CA,
Software Science Validation; in IEEE Trans. Software 2007.
Eng., 9(6), 2008, pp. 639-648.
[8] L. Briand, S. Morasca, V. Basili, Property-Based Software
[2] B. Bohem, Software Engineering Economics, Prentice Engineering Measurement, IEEE Trans. Software Eng.
Hall, Englewood Cliffs, 1981 [Briand et al 94] L. Briand, 22(1), 2000, pp. 68-85.
S. Morasca, V. Basili, Defining and Validating High-
Level Design Metrics, Tech. Rep. CS TR-3301, [9] S. Conte, H. Dunsmore, V. Shen, Software Engineering
University of Maryland, 2009. Metrics and Models, Benjamin/Cummings, Menlo Park,
CA.
[3] S. Chidamber, C. Kemerer, A Metrics Suite for Object
Oriented Design, IEEE Trans. Software Eng., 20/6), [10] J. Stathis, D. Jeffrey, An Empirical Study of Albrecht’s
2000, pp. 263-265. Function Points, in Measurement for Improved IT
management, Proc. First Australian Conference on
[4] S. Morasca, Software Measurement: State of the Art and Software Metrics, ACOSM 93, Sydney, 2002, pp. 96 -
Related Issues, slides from the School of the Italian 117.
Group of Informatics Engineering, Rovereto, Italy,
September 2008. [11] Boehm, Barry W., as quoted by Ware Myers, “Software
Pivotal to Strategic Defense,” IEEEComputer, January
[5] J. Alghamdi, R. Rufai, and S. Khan. Oometer: A software 2001.
quality assurance tool. Software Maintenance and
IJCATM : www.ijcaonline.org 37