org.android.activityminer.model.classification
Class NaNActivity

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

public class NaNActivity
extends Object
implements Activity


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

classid

private final long classid
The class attribute value.


attributCount

private final int attributCount
The count of attributes.

Constructor Detail

NaNActivity

public NaNActivity(int attributCount)
Constructor

Parameters:
attributCount - the count of attributes

NaNActivity

public NaNActivity(int attributCount,
                   long classid)
Constructor

Parameters:
attributCount - the count of attributes
classid - the class identifier
Method Detail

hasActivityClass

public final boolean hasActivityClass()
Description copied from interface: Activity
Test method if class is set.

Specified by:
hasActivityClass in interface Activity
Returns:
true if the class is set

getActivityClass

public long getActivityClass()
Description copied from interface: Activity
Getter for the class identifier.

Specified by:
getActivityClass in interface Activity
Returns:
the class identifer

getTimeStamp

public Long getTimeStamp()
Description copied from interface: Activity
Getter for the time stamp.

Specified by:
getTimeStamp in interface Activity
Returns:
the time stamp in milliseconds

getValue

public Double getValue(String attribute)
Description copied from interface: Activity
Getter for an attributes value.

Specified by:
getValue in interface Activity
Parameters:
attribute - the attribute name
Returns:
the value for the given attribute

getValue

public Double getValue(int idxAttribute)
Description copied from interface: Activity
Getter for an attributes value.

Specified by:
getValue in interface Activity
Parameters:
idxAttribute - the attribute index
Returns:
the value for the given attribute idxAttribute

getAttributes

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

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

getValues

public 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
Returns:
the attribute values of this sample

getPoint

public 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
Returns:
the attribute values of this sample

getAttributeCount

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

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

setValue

public void setValue(int idxAttribute,
                     Double value)
Description copied from interface: Activity
Does set a value at the given attribute index

Specified by:
setValue in interface Activity
Parameters:
idxAttribute - the attribute index
value - the value to set