|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hackystat.projectbrowser.page.dailyprojectdata.complexity.ComplexityDataModel
public class ComplexityDataModel
The data model for Complexity DPD display. This data model accommodates multiple Projects. For each project, the data model indicates the number of methods whose level of complexity falls into each of five buckets, from 0-10, 11-20, 21-30, 31-40, 41+. At present, we only get cyclomatic complexity from the JavaNCSS tool. This will change after we update the DPD client to not require the tool argument.
Constructor Summary | |
---|---|
ComplexityDataModel()
The default ComplexityDataModel, which contains no complexity information. |
Method Summary | |
---|---|
void |
clear()
Sets this model to its empty state. |
ComplexityData |
getComplexityData(org.hackystat.sensorbase.resource.projects.jaxb.Project project)
Return the ComplexityData instance associated with the specified project. |
java.util.List<ComplexityData> |
getComplexityDataList()
Returns the list of ComplexityData instances, needed for markup. |
boolean |
isEmpty()
Returns true if this data model contains no information. |
void |
update()
Updates this data model to reflect the complexity information associated with the selected projects and granularity. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ComplexityDataModel()
Method Detail |
---|
public void update()
public void clear()
public boolean isEmpty()
public ComplexityData getComplexityData(org.hackystat.sensorbase.resource.projects.jaxb.Project project)
project
- The project.
public java.util.List<ComplexityData> getComplexityDataList()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |