Groovy Documentation

org.gmetrics.metric.abc
Class AbcVector

java.lang.Object
  org.gmetrics.metric.abc.AbcVector

class AbcVector

Represents a single ABC Metric result: a vector of the three A, B, C values.

author:
Chris Mair
version:
$Revision: 96 $ - $Date: 2010-03-09 20:17:58 -0500 (Tue, 09 Mar 2010) $


Property Summary
int assignments

int branches

int conditions

 
Constructor Summary
AbcVector(int assignments, int branches, int conditions)

 
Method Summary
BigDecimal getMagnitude()

Return the magnitude of this ABC vector, specifically: |ABC| = sqrt((A*A)+(B*B)+(C*C))

String toString()

 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Property Detail

assignments

final int assignments


branches

final int branches


conditions

final int conditions


 
Constructor Detail

AbcVector

public AbcVector(int assignments, int branches, int conditions)


 
Method Detail

getMagnitude

BigDecimal getMagnitude()
Return the magnitude of this ABC vector, specifically: |ABC| = sqrt((A*A)+(B*B)+(C*C))
return:
the magnitude of the ABC vector as a BigDecimal with scale of 1


toString

String toString()


 

Groovy Documentation