|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.android.activityminer.model.evaluation.PerClassStatistic
public final class PerClassStatistic
The per class statistic does contain the metric values for a single class, created from the PerClassResult type.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface android.os.Parcelable |
---|
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T> |
Field Summary | |
---|---|
private long |
classId
The class identifier. |
static Parcelable.Creator<PerClassStatistic> |
CREATOR
The Parcelable creator. |
private double[] |
measureValues
The array with the ordered measure values. |
Fields inherited from interface android.os.Parcelable |
---|
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE |
Constructor Summary | |
---|---|
PerClassStatistic(long classId,
double[] measureValues)
Constructor |
|
PerClassStatistic(long classId,
PerClassResult classResult)
Constructor |
|
PerClassStatistic(Parcel source)
Constructor |
Method Summary | |
---|---|
int |
describeContents()
|
long |
getClassId()
Getter for the class label |
static String[] |
getMeasureDescriptions(Context context)
Getter for the column header descriptions for formatted output. |
double[] |
getMeasureValues()
Getter for the measure values |
static double[] |
getValues(PerClassResult classResult)
Does get the array of ordered measure values from a class result. |
String |
toXML()
|
void |
writeToParcel(Parcel dest,
int flags)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final long classId
private final double[] measureValues
public static final Parcelable.Creator<PerClassStatistic> CREATOR
Constructor Detail |
---|
public PerClassStatistic(long classId, PerClassResult classResult)
classId
- the class identifierclassResult
- the class result to create frompublic PerClassStatistic(long classId, double[] measureValues)
classId
- the class identifiermeasureValues
- the measure valuespublic PerClassStatistic(Parcel source)
source
- the parcel to create fromMethod Detail |
---|
public final void writeToParcel(Parcel dest, int flags)
writeToParcel
in interface Parcelable
public final long getClassId()
public final double[] getMeasureValues()
public static final String[] getMeasureDescriptions(Context context)
context
- the context
public static final double[] getValues(PerClassResult classResult)
classResult
- the class result
public final String toXML() throws Exception
toXML
in interface SerializableData
Exception
public final int describeContents()
describeContents
in interface Parcelable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |