Determining Threshold of Aspect-Oriented Software Metrics Komsan Srivisut 1 and Pornsiri Muenchaisri 2 Software Engineering Laboratory Center of Excellence in Software Engineering Department of Computer Engineering, Faculty of Engineering Chulalongkorn University, Bangkok, 10330, Thailand E-mail: 1 Komsan.S@Student.chula.ac.th and 2 Pornsiri.Mu@chula.ac.th Abstract Threshold of software metrics can be used as indicators to identify possible anomalies in software. Aspect-Oriented (AO) Programming is a new programming paradigm that solved the crosscutting problem by decomposes the crosscutting concern in aspect module. Establishing the threshold of AO software metrics in order to identify anomalies in AO software is necessary. The Gang-of-Four (GoF) patterns are widely accepted as good design. Metrics extracted from the GoF patterns should be relevant information for preliminary obtaining the threshold. In this paper, we present some metric thresholds, which established from the 23 aspect-based GoF patterns. We also validate the thresholds through 2 AO software examples. The results show that the thresholds can be used to preliminary indicate anomalies in AO software. Keywords: Threshold, Software Metrics, Aspect- Oriented Programming บทคัดยอ ชวงของคามาตรวัด สามารถใชเปนตัวชี้เพื่อระบุสิ่ง ผิดปกติในซอฟตแวร โปรแกรมเชิงแงมุมเปนแบบอยาง การโปรแกรมใหม ซึ่งแกปญหาการตัดขวางที่เกิดขึ้น โดย แยกสวนของหนาที่ที่ตัดขวางไวในแงมุม การสรางชวง ของคามาตรวัดซอฟตแวรเชิงแงมุม เพื่อระบุสิ่งผิดปกติใน ซอฟตแวรเชิงแงมุมจึงเปนสิ่งจําเปน แบบรูปแกงคออฟ โฟรเปนที่ยอมรับกันอยางแพรหลายวาเปนการออกแบบที ดี คามาตรวัดที่ไดจากรูปแบบแกงคออฟโฟรจึงเปนขอมูล ที่มีความหมายเพื่อการไดมาเบื้องตนของชวงของคามาตร วัด บทความฉบับนี้ผูวิจัยจึงนําเสนอชวงของคามาตรวัด ซึ่ง สรางมาจาก 23 แบบรูปแกงคออฟโฟรบนพื้นฐานเชิง แงมุม นอกจากนี้ผูวิจัยทําการประเมินชวงของคามาตรวัด ดวย 2 ตัวอยางซอฟตแวรเชิงแงมุม ผลที่ไดพบวาชวงของ คามาตรวัดสามารถระบุสิ่งผิดปกติเบื้องตนในซอฟตแวร เชิงแงมุมได คําสําคัญ: ชวงของคามาตรวัด, มาตรวัดซอฟตแวร , การ โปรแกรมเชิงแงมุม 1. Introduction An appealing operational approach for quality management using OO software metrics is to develop thresholds. Thresholds are defined as [1] “heuristic values used to set ranges of desirable and undesirable metric values for measured software. These thresholds are used to identify anomalies, which may or may not be an actual problem.” For example, we can say that a certain coupling metric has a threshold of seven. If the measured value for a particular class is larger than seven, then we could flag that class as high risk [2]. Thresholds have a practical, theoretical, and methodological significance. It is much easier for quality assurance personnel to use thresholds for identifying potentially high risk classes; they are more actionable than statistical models and equations that commonly resulted from validation studies [2]. AOP [3] is a new paradigm that addresses crosscutting concerns: behavior of a software system which is hard to decompose and isolate in existing paradigm specifically in object orientation. Such