|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.android.activityminer.model.classification.NaNActivity
public class NaNActivity
Field Summary | |
---|---|
private int |
attributCount
The count of attributes. |
private long |
classid
The class attribute value. |
Constructor Summary | |
---|---|
NaNActivity(int attributCount)
Constructor |
|
NaNActivity(int attributCount,
long classid)
Constructor |
Method Summary | |
---|---|
long |
getActivityClass()
Getter for the class identifier. |
int |
getAttributeCount()
Getter for the attribute count. |
String[] |
getAttributes()
Getter for the attributes in its internal natural order. |
double[] |
getPoint()
Getter for the attribute values (unboxed from the double type) in the internal order of the attributes. |
Long |
getTimeStamp()
Getter for the time stamp. |
Double |
getValue(int idxAttribute)
Getter for an attributes value. |
Double |
getValue(String attribute)
Getter for an attributes value. |
Double[] |
getValues()
Getter for the attribute values in the internal order of the attributes. |
boolean |
hasActivityClass()
Test method if class is set. |
void |
setValue(int idxAttribute,
Double value)
Does set a value at the given attribute index |
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 int attributCount
Constructor Detail |
---|
public NaNActivity(int attributCount)
attributCount
- the count of attributespublic NaNActivity(int attributCount, long classid)
attributCount
- the count of attributesclassid
- the class identifierMethod Detail |
---|
public final boolean hasActivityClass()
Activity
hasActivityClass
in interface Activity
public long getActivityClass()
Activity
getActivityClass
in interface Activity
public Long getTimeStamp()
Activity
getTimeStamp
in interface Activity
public Double getValue(String attribute)
Activity
getValue
in interface Activity
attribute
- the attribute name
public Double getValue(int idxAttribute)
Activity
getValue
in interface Activity
idxAttribute
- the attribute index
public String[] getAttributes()
Activity
getAttributes
in interface Activity
public Double[] getValues()
Activity
getValues
in interface Activity
public double[] getPoint()
Activity
getPoint
in interface Activity
public int getAttributeCount()
Activity
getAttributeCount
in interface Activity
public void setValue(int idxAttribute, Double value)
Activity
setValue
in interface Activity
idxAttribute
- the attribute indexvalue
- the value to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |