|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ikokoon.serenity.process.aggregator.AAggregator
public abstract class AAggregator
| Field Summary | |
|---|---|
protected IDataBase |
dataBase
|
protected org.apache.log4j.Logger |
logger
|
| Constructor Summary | |
|---|---|
AAggregator(IDataBase dataBase)
|
|
| Method Summary | |
|---|---|
protected double |
getAbstractness(double interfaces,
double implementations)
Abstractness (A): The ratio of the number of abstract classes (and interfaces) in the analyzed package to the total number of classes in the analyzed package. |
protected double |
getComplexity(double methods,
double totalComplexity)
Calculates the complexity for a class. |
protected double |
getCoverage(double lines,
double executed)
Calculates the coverage for a method, class or package. |
protected double |
getDistance(double stability,
double abstractness)
Distance from the Main Sequence (D): The perpendicular distance of a package from the idealised line A + I = 1. |
protected java.util.List<Line<?,?>> |
getLines(Class<?,?> klass,
java.util.List<Line<?,?>> lines)
Returns a list of lines in the class. |
protected java.util.List<Line<?,?>> |
getLines(java.util.List<Package> pakkages)
Returns a list of lines in the packages, i.e. all the lines in the packages. |
protected java.util.List<Line<?,?>> |
getLines(Package<?,?> pakkage)
Returns a list of lines in the package. |
protected java.util.List<Method<?,?>> |
getMethods(Class<?,?> klass,
java.util.List<Method<?,?>> methods)
|
protected java.util.List<Method<?,?>> |
getMethods(java.util.Collection<Package> pakkages)
Returns a list of methods that are in the packages, i.e. all the methods in the package. |
protected java.util.List<Method<?,?>> |
getMethods(Package<?,?> pakkage)
|
protected double |
getStability(double efferent,
double afferent)
Instability (I): The ratio of efferent coupling (Ce) to total coupling (Ce + Ca) such that I = Ce / (Ce + Ca). |
protected void |
setPrecision(Composite<?,?> composite)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.ikokoon.serenity.process.aggregator.IAggregator |
|---|
aggregate |
| Field Detail |
|---|
protected org.apache.log4j.Logger logger
protected IDataBase dataBase
| Constructor Detail |
|---|
public AAggregator(IDataBase dataBase)
| Method Detail |
|---|
protected java.util.List<Line<?,?>> getLines(java.util.List<Package> pakkages)
pakkages -
protected java.util.List<Line<?,?>> getLines(Package<?,?> pakkage)
pakkage -
protected java.util.List<Line<?,?>> getLines(Class<?,?> klass,
java.util.List<Line<?,?>> lines)
klass - lines -
protected java.util.List<Method<?,?>> getMethods(java.util.Collection<Package> pakkages)
pakkages -
protected java.util.List<Method<?,?>> getMethods(Package<?,?> pakkage)
protected java.util.List<Method<?,?>> getMethods(Class<?,?> klass,
java.util.List<Method<?,?>> methods)
protected void setPrecision(Composite<?,?> composite)
protected double getDistance(double stability,
double abstractness)
stability - abstractness -
protected double getAbstractness(double interfaces,
double implementations)
interfaces - implementations -
protected double getStability(double efferent,
double afferent)
efferent - afferent -
protected double getComplexity(double methods,
double totalComplexity)
methods - totalComplexity -
protected double getCoverage(double lines,
double executed)
lines - executed -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||