SAM: Simple API for Object-Oriented Code Metrics

  • Authors:
  • Adam Edelman;William Frakes;Charles Lillie

  • Affiliations:
  • Northern Virginia Center, Virginia Polytechnic Institute and State University, Virginia, USA 22043;Northern Virginia Center, Virginia Polytechnic Institute and State University, Virginia, USA 22043;Northern Virginia Center, Virginia Polytechnic Institute and State University, Virginia, USA 22043

  • Venue:
  • ICSR '08 Proceedings of the 10th international conference on Software Reuse: High Confidence Software Reuse in Large Systems
  • Year:
  • 2008

Quantified Score

Hi-index 0.00

Visualization

Abstract

This paper introduces the Simple API for Object-Oriented Code Metrics or SAM. SAM has two distinct advantages over current application generators for metrics. First, SAM can collect a much larger set of metrics since it maintains context during metrics analysis. Second, SAM is completely language independent since it specifies the types of events a parser must generate, but not how to generate those events. Through examples, we will demonstrate how our API allows us to collect metrics not possible with application generators. We will also demonstrate how SAM can reduce the lines of code per metric by up to 90 percent when measured against some of today's most popular standalone tools.