org.android.activityminer.model.classification
Interface Activity

Package class diagram package Activity
All Known Implementing Classes:
ActivityImpl, NaNActivity, TrainingActivity

public interface Activity

The interface for the representations of activities in the classification context.


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
 

Method Detail

hasActivityClass

boolean hasActivityClass()
Test method if class is set.

Returns:
true if the class is set

getActivityClass

long getActivityClass()
Getter for the class identifier.

Returns:
the class identifer

getTimeStamp

Long getTimeStamp()
Getter for the time stamp.

Returns:
the time stamp in milliseconds

getValue

Double getValue(String attribute)
Getter for an attributes value.

Parameters:
attribute - the attribute name
Returns:
the value for the given attribute

getValue

Double getValue(int idxAttribute)
Getter for an attributes value.

Parameters:
idxAttribute - the attribute index
Returns:
the value for the given attribute idxAttribute

setValue

void setValue(int idxAttribute,
              Double value)
Does set a value at the given attribute index

Parameters:
idxAttribute - the attribute index
value - the value to set

getAttributes

String[] getAttributes()
Getter for the attributes in its internal natural order.

Returns:
the attributes of this sample

getValues

Double[] getValues()
Getter for the attribute values in the internal order of the attributes.

Returns:
the attribute values of this sample

getPoint

double[] getPoint()
Getter for the attribute values (unboxed from the double type) in the internal order of the attributes.

Returns:
the attribute values of this sample

getAttributeCount

int getAttributeCount()
Getter for the attribute count.

Returns:
the count of attributes