com.hadii.stiff.metrics.ResponseForClassMetric Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of stiff-lib Show documentation
Show all versions of stiff-lib Show documentation
stiff-lib is a java library for generating stiff diagrams.
The newest version!
package com.hadii.stiff.metrics;
import com.hadii.clarpse.sourcemodel.Component;
/**
* Represents the Polymorphism Factor metric, which is a measure of the number of overridden methods
* compared to the number of methods.
*/
public class ResponseForClassMetric implements Metric {
private Component component;
public ResponseForClassMetric(Component component) {
this.component = component;
}
public double value() {
return this.component.cyclo();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy