|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.android.activityminer.logic.features.calculators.AbstractCalculator<T,U>
T
- the enumeration type for the dimensionsU
- the value typepublic abstract class AbstractCalculator<T extends Enum<T> & Dimensions,U>
This is the base implementation for all calculator types.
Field Summary | |
---|---|
protected T |
dimension
The dimension of the times series to operate on. |
protected U |
value
The current value of the feature. |
Constructor Summary | |
---|---|
AbstractCalculator(T dimension)
Constructor |
Method Summary | |
---|---|
T |
getDimension()
Getter for the operating dimension |
U |
getValue()
Getter for the calculator value |
void |
reset()
Method to reset the calculator value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.android.activityminer.logic.features.calculators.Calculator |
---|
getInitialValue |
Field Detail |
---|
protected final T extends Enum<T> & Dimensions dimension
protected U value
Constructor Detail |
---|
public AbstractCalculator(T dimension)
dimension
- the times series dimension to operate onMethod Detail |
---|
public final T getDimension()
public void reset()
Calculator
reset
in interface Calculator<U>
public U getValue()
Calculator
getValue
in interface Calculator<U>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |