The Locality of Attribute Access (LAA) is the ratio of the number of attributes accessed from a method’s (or function’s) owner class to the total number of attributes accessed in the method. This is a subcomponent (method) level metric.

Default Threshold> 0.77


Consider method ‘M’ in class ‘A’ is accessing 2 attributes from class ‘A’. Method ‘M’ is also accessing 1 attribute from foreign class ‘B’ and 3 attributes from another foreign class ‘C’.
Thus LAA for the method ‘M’  = 2/ (2+1+3) = 2/6 = 0.33