org.android.activityminer.model.classification
Class TrainingActivity

Package class diagram package TrainingActivity
java.lang.Object
  extended by org.android.activityminer.model.classification.ActivityImpl
      extended by org.android.activityminer.model.classification.TrainingActivity
All Implemented Interfaces:
Activity

public final class TrainingActivity
extends ActivityImpl

The special activity representation for training with a reduced feature set.
It does allow to hide attributes in the context of an evaluation run.


Field Summary
private  SortedSet<FeatureTypes> visibleAttributes
          The set with the visible features;
 
Fields inherited from class org.android.activityminer.model.classification.ActivityImpl
featureVector
 
Constructor Summary
TrainingActivity(DBFeatureVector dbFeatureVector)
          Constructor
 
Method Summary
 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.
 Double[] getValues()
          Getter for the attribute values in the internal order of the attributes.
 void setVisibleAttributes(Set<FeatureTypes> visibleAttributes)
          Setter for the visible attributes
 TrainingActivity withActivityClass(long activityId)
           
 
Methods inherited from class org.android.activityminer.model.classification.ActivityImpl
getActivityClass, getTimeStamp, getValue, getValue, hasActivityClass, setActivityClass, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

visibleAttributes

private SortedSet<FeatureTypes> visibleAttributes
The set with the visible features;

Constructor Detail

TrainingActivity

public TrainingActivity(DBFeatureVector dbFeatureVector)
                 throws Exception
Constructor

Parameters:
dbFeatureVector - the database representation of a feature vector
Throws:
Exception - in case of serialization errors
Method Detail

withActivityClass

public final TrainingActivity withActivityClass(long activityId)
Parameters:
activityId - the activity class identifer
Returns:
a reference to this instance

setVisibleAttributes

public final void setVisibleAttributes(Set<FeatureTypes> visibleAttributes)
Setter for the visible attributes

Parameters:
visibleAttributes - the visible attributes to set

getAttributes

public final String[] getAttributes()
Description copied from interface: Activity
Getter for the attributes in its internal natural order.

Specified by:
getAttributes in interface Activity
Overrides:
getAttributes in class ActivityImpl
Returns:
the attributes of this sample

getPoint

public final double[] getPoint()
Description copied from interface: Activity
Getter for the attribute values (unboxed from the double type) in the internal order of the attributes.

Specified by:
getPoint in interface Activity
Overrides:
getPoint in class ActivityImpl
Returns:
the attribute values of this sample

getValues

public final Double[] getValues()
Description copied from interface: Activity
Getter for the attribute values in the internal order of the attributes.

Specified by:
getValues in interface Activity
Overrides:
getValues in class ActivityImpl
Returns:
the attribute values of this sample

getAttributeCount

public final int getAttributeCount()
Description copied from interface: Activity
Getter for the attribute count.

Specified by:
getAttributeCount in interface Activity
Overrides:
getAttributeCount in class ActivityImpl
Returns:
the count of attributes