|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hackystat.projectbrowser.page.dailyprojectdata.coupling.CouplingData
public class CouplingData
Data structure for representing coupling information about a single project. This representation includes the Project, plus the number of classes in the project with coupling in each of five buckets: 0-5, 6-10, 11-15, 16-20, and 20+
Constructor Summary | |
---|---|
CouplingData(org.hackystat.sensorbase.resource.projects.jaxb.Project name)
Creates a new couplingData instance and initializes the buckets to zero. |
Method Summary | |
---|---|
void |
addEntry(int couplingCount,
org.hackystat.dailyprojectdata.resource.coupling.jaxb.CouplingData data)
Updates this CouplingData instance with information about the number of couplings for a specific class. |
java.lang.String |
getBucketCountString(int bucket)
Returns the current value of the specified bucket as a string. |
int |
getBucketPercentage(int bucket)
Returns the bucket value as a percentage of the total number of entries across all buckets. |
java.lang.String |
getBucketPercentageString(int bucket)
Returns the bucket percentage as a string. |
int |
getBucketValue(int bucket)
Returns the current value of the specified bucket. |
DailyProjectDetailsPanel |
getPanel(java.lang.String id,
int bucket,
boolean isCount)
Returns a details panel containing information about this bucket. |
org.hackystat.sensorbase.resource.projects.jaxb.Project |
getProject()
Return the project associated with this data. |
int |
getTotal()
Returns the total number of entries across all buckets. |
java.lang.String |
getTotalString()
Returns the total number of entries across all buckets as a string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CouplingData(org.hackystat.sensorbase.resource.projects.jaxb.Project name)
name
- The name of the Project associated with this instance.Method Detail |
---|
public void addEntry(int couplingCount, org.hackystat.dailyprojectdata.resource.coupling.jaxb.CouplingData data)
couplingCount
- The number of couplings.data
- The Coupling data.public int getBucketValue(int bucket)
bucket
- The bucket number, where 0 is the first one and 4 is the last one.
public int getTotal()
public java.lang.String getTotalString()
public int getBucketPercentage(int bucket)
bucket
- The bucket whose percentage is to be returned.
public java.lang.String getBucketCountString(int bucket)
bucket
- The bucket number, where 0 is the first one and 4 is the last one.
public java.lang.String getBucketPercentageString(int bucket)
bucket
- The bucket.
public org.hackystat.sensorbase.resource.projects.jaxb.Project getProject()
public DailyProjectDetailsPanel getPanel(java.lang.String id, int bucket, boolean isCount)
id
- The wicket id for this panel.bucket
- The bucket of interest.isCount
- True if the count should be returned, false if percentage.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |